]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
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 | ||
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 | ||
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) | |
173 | ||
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) | |
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 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
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[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxPreviewFrame swig_types[1] | |
211 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[2] | |
212 | #define SWIGTYPE_p_wxPyPanel swig_types[3] | |
213 | #define SWIGTYPE_p_wxMenu swig_types[4] | |
f20a2e1f RD |
214 | #define SWIGTYPE_p_wxFontData swig_types[5] |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxPrintData swig_types[7] | |
d55e5bfc RD |
217 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[8] |
218 | #define SWIGTYPE_p_wxIconBundle swig_types[9] | |
219 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[10] | |
220 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[12] | |
222 | #define SWIGTYPE_p_wxFont swig_types[13] | |
223 | #define SWIGTYPE_p_wxSplitterEvent swig_types[14] | |
224 | #define SWIGTYPE_p_wxRegion swig_types[15] | |
225 | #define SWIGTYPE_p_wxFindReplaceData swig_types[16] | |
226 | #define SWIGTYPE_p_int swig_types[17] | |
227 | #define SWIGTYPE_p_wxSize swig_types[18] | |
228 | #define SWIGTYPE_p_wxDC swig_types[19] | |
229 | #define SWIGTYPE_p_wxIcon swig_types[20] | |
f20a2e1f RD |
230 | #define SWIGTYPE_p_wxVisualAttributes swig_types[21] |
231 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[22] | |
232 | #define SWIGTYPE_p_wxColourData swig_types[23] | |
233 | #define SWIGTYPE_p_wxNotifyEvent swig_types[24] | |
234 | #define SWIGTYPE_p_wxPyWindow swig_types[25] | |
235 | #define SWIGTYPE_p_wxSplashScreen swig_types[26] | |
236 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[27] | |
237 | #define SWIGTYPE_p_wxProgressDialog swig_types[28] | |
238 | #define SWIGTYPE_p_wxMessageDialog swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[30] | |
240 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[31] | |
241 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[32] | |
242 | #define SWIGTYPE_p_wxFileDialog swig_types[33] | |
243 | #define SWIGTYPE_p_wxPrinter swig_types[34] | |
244 | #define SWIGTYPE_p_wxArrayInt swig_types[35] | |
245 | #define SWIGTYPE_p_wxEvtHandler swig_types[36] | |
246 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[38] | |
248 | #define SWIGTYPE_p_wxPyVListBox swig_types[39] | |
249 | #define SWIGTYPE_p_wxRect swig_types[40] | |
250 | #define SWIGTYPE_p_char swig_types[41] | |
251 | #define SWIGTYPE_p_wxMiniFrame swig_types[42] | |
252 | #define SWIGTYPE_p_wxFrame swig_types[43] | |
253 | #define SWIGTYPE_p_wxPyPrintout swig_types[44] | |
254 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxStatusBar swig_types[47] | |
257 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[48] | |
258 | #define SWIGTYPE_p_wxPoint swig_types[49] | |
259 | #define SWIGTYPE_p_wxObject swig_types[50] | |
260 | #define SWIGTYPE_p_wxOutputStream swig_types[51] | |
261 | #define SWIGTYPE_p_unsigned_long swig_types[52] | |
262 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[53] | |
263 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[54] | |
264 | #define SWIGTYPE_p_wxTipWindow swig_types[55] | |
265 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxSplitterWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxPopupWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxSashWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxScrolledWindow swig_types[64] | |
274 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[65] | |
275 | #define SWIGTYPE_p_wxMenuBar swig_types[66] | |
276 | #define SWIGTYPE_p_wxPrintPreview swig_types[67] | |
277 | #define SWIGTYPE_p_wxSashEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxString swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[70] | |
280 | #define SWIGTYPE_p_wxFontDialog swig_types[71] | |
281 | #define SWIGTYPE_p_wxDirDialog swig_types[72] | |
282 | #define SWIGTYPE_p_wxColourDialog swig_types[73] | |
283 | #define SWIGTYPE_p_wxDialog swig_types[74] | |
284 | #define SWIGTYPE_p_wxPanel swig_types[75] | |
285 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[76] | |
286 | #define SWIGTYPE_p_wxPrintDialog swig_types[77] | |
287 | #define SWIGTYPE_p_wxFileSystem swig_types[78] | |
288 | #define SWIGTYPE_p_wxBitmap swig_types[79] | |
289 | #define SWIGTYPE_p_wxCommandEvent swig_types[80] | |
290 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxColour swig_types[83] | |
293 | #define SWIGTYPE_p_wxToolBar swig_types[84] | |
294 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[85] | |
295 | #define SWIGTYPE_p_wxPrintDialogData swig_types[86] | |
296 | static swig_type_info *swig_types[88]; | |
d55e5bfc RD |
297 | |
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _windows_.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_windows_ | |
305 | ||
306 | #define SWIG_name "_windows_" | |
307 | ||
308 | /* Auxiliar swig macros */ | |
309 | ||
310 | #ifdef __cplusplus | |
311 | #define SWIGSTATICINLINE(a) static inline a | |
312 | #define SWIGSTATIC(a) static a | |
313 | #define swig_new_array(type, size) (new type[(size)]) | |
314 | #define swig_delete_array(cptr) delete[] cptr | |
315 | #define swig_const_cast(type,a) const_cast<type>(a) | |
316 | #define swig_static_cast(type,a) static_cast<type>(a) | |
317 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
318 | ||
319 | #ifdef HAVE_NUMERIC_CAST | |
320 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
321 | #else | |
322 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
323 | #endif | |
324 | ||
325 | #else /* C case */ | |
326 | ||
327 | #define SWIGSTATICINLINE(a) static a | |
328 | #define SWIGSTATIC(a) static a | |
329 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
330 | #define swig_delete_array(cptr) free((char*)cptr) | |
331 | #define swig_const_cast(type,a) (type)(a) | |
332 | #define swig_static_cast(type,a) (type)(a) | |
333 | #define swig_reinterpret_cast(type,a) (type)(a) | |
334 | #define swig_numeric_cast(type,a) (type)(a) | |
335 | ||
336 | #endif /* __cplusplus */ | |
337 | ||
338 | ||
339 | #define SWIG_FromSignedChar PyInt_FromLong | |
340 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
341 | #define SWIG_FromShort PyInt_FromLong | |
342 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
343 | #define SWIG_FromInt PyInt_FromLong | |
344 | #define SWIG_FromLong PyInt_FromLong | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | #define SWIG_FromFloat PyFloat_FromDouble | |
348 | #define SWIG_FromDouble PyFloat_FromDouble | |
349 | ||
350 | ||
351 | #include "wx/wxPython/wxPython.h" | |
352 | #include "wx/wxPython/pyclasses.h" | |
353 | ||
354 | ||
355 | static const wxString wxPyEmptyString(wxEmptyString); | |
356 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
357 | ||
358 | ||
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
438 | } | |
439 | ||
440 | ||
441 | SWIGSTATICINLINE(bool) | |
442 | SWIG_AsBool(PyObject *obj) | |
443 | { | |
444 | return PyObject_IsTrue(obj) ? true : false; | |
445 | } | |
446 | ||
447 | ||
448 | SWIGSTATICINLINE(int) | |
449 | SWIG_CheckBool(PyObject* obj) | |
450 | { | |
451 | SWIG_AsBool(obj); | |
452 | if (PyErr_Occurred()) { | |
453 | PyErr_Clear(); | |
454 | return 0; | |
455 | } else { | |
456 | return 1; | |
457 | } | |
458 | } | |
459 | ||
460 | ||
461 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
462 | PyObject* o2; | |
463 | PyObject* o3; | |
464 | ||
465 | if (!target) { | |
466 | target = o; | |
467 | } else if (target == Py_None) { | |
468 | Py_DECREF(Py_None); | |
469 | target = o; | |
470 | } else { | |
471 | if (!PyTuple_Check(target)) { | |
472 | o2 = target; | |
473 | target = PyTuple_New(1); | |
474 | PyTuple_SetItem(target, 0, o2); | |
475 | } | |
476 | o3 = PyTuple_New(1); | |
477 | PyTuple_SetItem(o3, 0, o); | |
478 | ||
479 | o2 = target; | |
480 | target = PySequence_Concat(o2, o3); | |
481 | Py_DECREF(o2); | |
482 | Py_DECREF(o3); | |
483 | } | |
484 | return target; | |
485 | } | |
486 | ||
487 | ||
488 | SWIGSTATICINLINE(double) | |
489 | SWIG_AsDouble(PyObject *obj) | |
490 | { | |
491 | if (PyNumber_Check(obj)) | |
492 | return PyFloat_AsDouble(obj); | |
493 | else { | |
494 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
495 | obj->ob_type->tp_name); | |
496 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
497 | Py_DECREF(errmsg); | |
498 | return 0; | |
499 | } | |
500 | } | |
501 | ||
502 | ||
503 | SWIGSTATICINLINE(int) | |
504 | SWIG_CheckDouble(PyObject* obj) | |
505 | { | |
506 | SWIG_AsDouble(obj); | |
507 | if (PyErr_Occurred()) { | |
508 | PyErr_Clear(); | |
509 | return 0; | |
510 | } else { | |
511 | return 1; | |
512 | } | |
513 | } | |
514 | ||
515 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
516 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
517 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
518 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
519 | ||
520 | ||
521 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ | |
522 | wxRect r; | |
523 | self->GetFieldRect(i, r); | |
524 | return r; | |
525 | } | |
526 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
527 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
528 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
529 | ||
530 | #include <wx/popupwin.h> | |
531 | ||
532 | ||
533 | class wxPopupWindow : public wxWindow { | |
534 | public: | |
535 | wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
536 | wxPopupWindow() { wxPyRaiseNotImplemented(); } | |
537 | }; | |
538 | ||
539 | class wxPyPopupTransientWindow : public wxPopupWindow | |
540 | { | |
541 | public: | |
542 | wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
543 | wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } | |
544 | }; | |
545 | ||
546 | ||
547 | #include <wx/tipwin.h> | |
548 | ||
549 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
550 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
551 | } | |
552 | ||
553 | #include <wx/tipwin.h> | |
554 | ||
555 | ||
556 | #include <wx/vscroll.h> | |
557 | ||
558 | ||
559 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
560 | { | |
561 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
562 | public: | |
563 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
564 | ||
565 | wxPyVScrolledWindow(wxWindow *parent, | |
566 | wxWindowID id = wxID_ANY, | |
567 | const wxPoint& pos = wxDefaultPosition, | |
568 | const wxSize& size = wxDefaultSize, | |
569 | long style = 0, | |
570 | const wxString& name = wxPyPanelNameStr) | |
571 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
572 | {} | |
573 | ||
574 | // Overridable virtuals | |
575 | ||
576 | // this function must be overridden in the derived class and it should | |
577 | // return the height of the given line in pixels | |
578 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
579 | ||
580 | ||
581 | // this function doesn't have to be overridden but it may be useful to do | |
582 | // it if calculating the lines heights is a relatively expensive operation | |
583 | // as it gives the user code a possibility to calculate several of them at | |
584 | // once | |
585 | // | |
586 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
587 | // shouldn't rely on the latter being called for all lines in the interval | |
588 | // specified here. It is also possible that OnGetLineHeight() will be | |
589 | // called for the lines outside of this interval, so this is really just a | |
590 | // hint, not a promise. | |
591 | // | |
592 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
593 | // usual | |
594 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
595 | ||
596 | ||
597 | // when the number of lines changes, we try to estimate the total height | |
598 | // of all lines which is a rather expensive operation in terms of lines | |
599 | // access, so if the user code may estimate the average height | |
600 | // better/faster than we do, it should override this function to implement | |
601 | // its own logic | |
602 | // | |
603 | // this function should return the best guess for the total height it may | |
604 | // make | |
605 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
606 | ||
607 | ||
608 | // Also expose some other interesting protected methods | |
609 | ||
610 | ||
611 | // find the index of the line we need to show at the top of the window such | |
612 | // that the last (fully or partially) visible line is the given one | |
613 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
614 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
615 | ||
616 | // get the total height of the lines between lineMin (inclusive) and | |
617 | // lineMax (exclusive) | |
618 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
619 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
620 | ||
621 | ||
622 | PYPRIVATE; | |
623 | }; | |
624 | ||
625 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
626 | ||
627 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
628 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
629 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
630 | ||
631 | ||
632 | SWIGSTATICINLINE(unsigned long) | |
633 | SWIG_AsUnsignedLong(PyObject * obj) | |
634 | { | |
635 | if (PyLong_Check(obj)) { | |
636 | return PyLong_AsUnsignedLong(obj); | |
637 | } else { | |
638 | long i = SWIG_AsLong(obj); | |
639 | if ( !PyErr_Occurred() && (i < 0)) { | |
640 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
641 | } | |
642 | return i; | |
643 | } | |
644 | } | |
645 | ||
646 | ||
647 | SWIGSTATICINLINE(int) | |
648 | SWIG_CheckUnsignedLong(PyObject* obj) | |
649 | { | |
650 | SWIG_AsUnsignedLong(obj); | |
651 | if (PyErr_Occurred()) { | |
652 | PyErr_Clear(); | |
653 | return 0; | |
654 | } else { | |
655 | return 1; | |
656 | } | |
657 | } | |
658 | ||
659 | ||
660 | SWIGSTATICINLINE(PyObject* ) | |
661 | SWIG_FromUnsignedLong(unsigned long value) | |
662 | { | |
663 | return (value > LONG_MAX) ? | |
664 | PyLong_FromUnsignedLong(value) | |
665 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
666 | } | |
667 | ||
668 | ||
669 | #include <wx/vlbox.h> | |
670 | ||
671 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
672 | ||
673 | class wxPyVListBox : public wxVListBox | |
674 | { | |
675 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
676 | public: | |
677 | wxPyVListBox() : wxVListBox() {} | |
678 | ||
679 | wxPyVListBox(wxWindow *parent, | |
680 | wxWindowID id = wxID_ANY, | |
681 | const wxPoint& pos = wxDefaultPosition, | |
682 | const wxSize& size = wxDefaultSize, | |
683 | long style = 0, | |
684 | const wxString& name = wxPyVListBoxNameStr) | |
685 | : wxVListBox(parent, id, pos, size, style, name) | |
686 | {} | |
687 | ||
688 | // Overridable virtuals | |
689 | ||
690 | // the derived class must implement this function to actually draw the item | |
691 | // with the given index on the provided DC | |
692 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
693 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
694 | ||
695 | ||
696 | // the derived class must implement this method to return the height of the | |
697 | // specified item | |
698 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
699 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
700 | ||
701 | ||
702 | // this method may be used to draw separators between the lines; note that | |
703 | // the rectangle may be modified, typically to deflate it a bit before | |
704 | // passing to OnDrawItem() | |
705 | // | |
706 | // the base class version doesn't do anything | |
707 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
708 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
709 | ||
710 | ||
711 | // this method is used to draw the items background and, maybe, a border | |
712 | // around it | |
713 | // | |
714 | // the base class version implements a reasonable default behaviour which | |
715 | // consists in drawing the selected item with the standard background | |
716 | // colour and drawing a border around the item if it is either selected or | |
717 | // current | |
718 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
719 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
720 | ||
721 | ||
722 | PYPRIVATE; | |
723 | }; | |
724 | ||
725 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
726 | ||
727 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
728 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
729 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
730 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
731 | ||
732 | ||
733 | ||
734 | #include <wx/htmllbox.h> | |
735 | ||
736 | ||
737 | class wxPyHtmlListBox : public wxHtmlListBox | |
738 | { | |
739 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
740 | public: | |
741 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
742 | ||
743 | wxPyHtmlListBox(wxWindow *parent, | |
744 | wxWindowID id = wxID_ANY, | |
745 | const wxPoint& pos = wxDefaultPosition, | |
746 | const wxSize& size = wxDefaultSize, | |
747 | long style = 0, | |
748 | const wxString& name = wxPyVListBoxNameStr) | |
749 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
750 | {} | |
751 | ||
752 | // Overridable virtuals | |
753 | ||
754 | // this method must be implemented in the derived class and should return | |
755 | // the body (i.e. without <html>) of the HTML for the given item | |
756 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
757 | ||
758 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
759 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
760 | ||
761 | // TODO: | |
762 | // // this method allows to customize the selection appearance: it may be used | |
763 | // // to specify the colour of the text which normally has the given colour | |
764 | // // colFg when it is inside the selection | |
765 | // // | |
766 | // // by default, the original colour is not used at all and all text has the | |
767 | // // same (default for this system) colour inside selection | |
768 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
769 | ||
770 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
771 | // // background colour -- this is even more rarely used as you can change it | |
772 | // // globally using SetSelectionBackground() | |
773 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
774 | ||
775 | ||
776 | PYPRIVATE; | |
777 | }; | |
778 | ||
779 | ||
780 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
781 | ||
782 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
783 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
784 | ||
785 | ||
786 | ||
787 | ||
788 | ||
789 | #ifdef __WXMAC__ | |
790 | // implement dummy classes and such for wxMac | |
791 | ||
792 | class wxTaskBarIcon : public wxEvtHandler | |
793 | { | |
794 | public: | |
795 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
796 | }; | |
797 | ||
798 | ||
799 | class wxTaskBarIconEvent : public wxEvent | |
800 | { | |
801 | public: | |
802 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
803 | { wxPyRaiseNotImplemented(); } | |
804 | virtual wxEvent* Clone() const { return NULL; } | |
805 | }; | |
806 | ||
807 | enum { | |
808 | wxEVT_TASKBAR_MOVE = 0, | |
809 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
810 | wxEVT_TASKBAR_LEFT_UP = 0, | |
811 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
812 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
813 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
814 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
815 | }; | |
816 | #endif | |
817 | ||
818 | void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ | |
819 | ||
820 | ||
821 | ||
822 | } | |
823 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
824 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
825 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
826 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
827 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
828 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
829 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
830 | wxArrayString arr; | |
831 | self->GetFilenames(arr); | |
832 | return wxArrayString2PyList_helper(arr); | |
833 | } | |
834 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
835 | wxArrayString arr; | |
836 | self->GetPaths(arr); | |
837 | return wxArrayString2PyList_helper(arr); | |
838 | } | |
839 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
840 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
841 | } | |
842 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
843 | return new wxSingleChoiceDialog(parent, message, caption, | |
844 | choices, choices_array, NULL, style, pos); | |
845 | } | |
846 | ||
847 | #include <wx/mdi.h> | |
848 | ||
849 | // C++ version of Python aware wxWindow | |
850 | class wxPyWindow : public wxWindow | |
851 | { | |
852 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
853 | public: | |
854 | wxPyWindow() : wxWindow() {} | |
855 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
856 | const wxPoint& pos = wxDefaultPosition, | |
857 | const wxSize& size = wxDefaultSize, | |
858 | long style = 0, | |
859 | const wxString& name = wxPyPanelNameStr) | |
860 | : wxWindow(parent, id, pos, size, style, name) {} | |
861 | ||
a5ee0656 | 862 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc RD |
863 | |
864 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
865 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
866 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
867 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
868 | ||
869 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
870 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
871 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
872 | ||
873 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
874 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
875 | ||
876 | DEC_PYCALLBACK__(InitDialog); | |
877 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
878 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
879 | DEC_PYCALLBACK_BOOL_(Validate); | |
880 | ||
881 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
882 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
883 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
884 | ||
885 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
886 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
887 | ||
a5ee0656 | 888 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 889 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 890 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
891 | |
892 | PYPRIVATE; | |
893 | }; | |
894 | ||
895 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
896 | ||
897 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
898 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
899 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
900 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
901 | ||
902 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
903 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
904 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
905 | ||
906 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
907 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
908 | ||
909 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
910 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
911 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
912 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
913 | ||
914 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
915 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
916 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
917 | ||
918 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
919 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
920 | ||
a5ee0656 | 921 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
d55e5bfc | 922 | IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); |
a5ee0656 | 923 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
d55e5bfc RD |
924 | |
925 | ||
926 | // C++ version of Python aware wxPanel | |
927 | class wxPyPanel : public wxPanel | |
928 | { | |
929 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
930 | public: | |
931 | wxPyPanel() : wxPanel() {} | |
932 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
933 | const wxPoint& pos = wxDefaultPosition, | |
934 | const wxSize& size = wxDefaultSize, | |
935 | long style = 0, | |
936 | const wxString& name = wxPyPanelNameStr) | |
937 | : wxPanel(parent, id, pos, size, style, name) {} | |
938 | ||
a5ee0656 RD |
939 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
940 | ||
d55e5bfc RD |
941 | |
942 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
943 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
944 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
945 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
946 | ||
947 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
948 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
949 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
950 | ||
951 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
952 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
953 | ||
954 | DEC_PYCALLBACK__(InitDialog); | |
955 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
956 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
957 | DEC_PYCALLBACK_BOOL_(Validate); | |
958 | ||
959 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
960 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
961 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
962 | ||
963 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
964 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
965 | ||
a5ee0656 | 966 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 967 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 968 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
969 | |
970 | PYPRIVATE; | |
971 | }; | |
972 | ||
973 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
974 | ||
975 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
976 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
977 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
978 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
979 | ||
980 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
981 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
982 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
983 | ||
984 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
985 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
986 | ||
987 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
988 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
989 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
990 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
991 | ||
992 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
993 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
994 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
995 | ||
996 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
997 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
998 | ||
a5ee0656 | 999 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
d55e5bfc | 1000 | IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); |
a5ee0656 | 1001 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 1002 | |
a5ee0656 | 1003 | |
d55e5bfc RD |
1004 | // C++ version of Python aware wxScrolledWindow |
1005 | class wxPyScrolledWindow : public wxScrolledWindow | |
1006 | { | |
1007 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
1008 | public: | |
1009 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
1010 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
1011 | const wxPoint& pos = wxDefaultPosition, | |
1012 | const wxSize& size = wxDefaultSize, | |
1013 | long style = 0, | |
1014 | const wxString& name = wxPyPanelNameStr) | |
1015 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
1016 | ||
a5ee0656 | 1017 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
d55e5bfc RD |
1018 | |
1019 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1020 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1021 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1022 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1023 | ||
1024 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1025 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1026 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1027 | ||
1028 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1029 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1030 | ||
1031 | DEC_PYCALLBACK__(InitDialog); | |
1032 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1033 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1034 | DEC_PYCALLBACK_BOOL_(Validate); | |
1035 | ||
1036 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1037 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1038 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1039 | ||
1040 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1041 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1042 | ||
a5ee0656 | 1043 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1044 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 1045 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1046 | |
1047 | PYPRIVATE; | |
1048 | }; | |
1049 | ||
1050 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
1051 | ||
1052 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
1053 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
1054 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
1055 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
1056 | ||
1057 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
1058 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
1059 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
1060 | ||
1061 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
1062 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
1063 | ||
1064 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
1065 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
1066 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
1067 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
1068 | ||
1069 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
1070 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
1071 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
1072 | ||
1073 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
1074 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
1075 | ||
a5ee0656 | 1076 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
d55e5bfc | 1077 | IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); |
a5ee0656 RD |
1078 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
1079 | ||
d55e5bfc RD |
1080 | |
1081 | ||
1082 | #include "wx/wxPython/printfw.h" | |
1083 | ||
1084 | ||
1085 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
1086 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1087 | ||
1088 | ||
1089 | ||
1090 | // Since this one would be tough and ugly to do with the Macros... | |
1091 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1092 | bool hadErr = False; | |
1093 | bool found; | |
1094 | ||
1095 | bool blocked = wxPyBeginBlockThreads(); | |
1096 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1097 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1098 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1099 | PyObject* val; | |
1100 | ||
1101 | val = PyTuple_GetItem(result, 0); | |
1102 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1103 | else hadErr = True; | |
1104 | ||
1105 | val = PyTuple_GetItem(result, 1); | |
1106 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1107 | else hadErr = True; | |
1108 | ||
1109 | val = PyTuple_GetItem(result, 2); | |
1110 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1111 | else hadErr = True; | |
1112 | ||
1113 | val = PyTuple_GetItem(result, 3); | |
1114 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1115 | else hadErr = True; | |
1116 | } | |
1117 | else | |
1118 | hadErr = True; | |
1119 | ||
1120 | if (hadErr) { | |
1121 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1122 | PyErr_Print(); | |
1123 | } | |
1124 | Py_DECREF(result); | |
1125 | } | |
1126 | wxPyEndBlockThreads(blocked); | |
1127 | if (! found) | |
1128 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1129 | } | |
1130 | ||
1131 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1132 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1133 | } | |
1134 | ||
1135 | ||
1136 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1137 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1138 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1139 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1140 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1141 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1142 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1143 | ||
1144 | ||
1145 | ||
1146 | ||
1147 | ||
1148 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1149 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1150 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1151 | ||
1152 | ||
1153 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1154 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1155 | bool rval=False; \ | |
1156 | bool found; \ | |
1157 | bool blocked = wxPyBeginBlockThreads(); \ | |
1158 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
1159 | PyObject* win = wxPyMake_wxObject(a); \ | |
1160 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
1161 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
1162 | Py_DECREF(win); \ | |
1163 | Py_DECREF(dc); \ | |
1164 | } \ | |
1165 | wxPyEndBlockThreads(blocked); \ | |
1166 | if (! found) \ | |
1167 | rval = PCLASS::CBNAME(a, b); \ | |
1168 | return rval; \ | |
1169 | } \ | |
1170 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1171 | return PCLASS::CBNAME(a, b); \ | |
1172 | } | |
1173 | ||
1174 | ||
1175 | ||
1176 | ||
1177 | class wxPyPrintPreview : public wxPrintPreview | |
1178 | { | |
1179 | DECLARE_CLASS(wxPyPrintPreview) | |
1180 | public: | |
1181 | wxPyPrintPreview(wxPyPrintout* printout, | |
1182 | wxPyPrintout* printoutForPrinting, | |
1183 | wxPrintDialogData* data=NULL) | |
1184 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1185 | {} | |
1186 | wxPyPrintPreview(wxPyPrintout* printout, | |
1187 | wxPyPrintout* printoutForPrinting, | |
1188 | wxPrintData* data=NULL) | |
1189 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1190 | {} | |
1191 | ||
1192 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1193 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1194 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1195 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1196 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1197 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1198 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1199 | ||
1200 | PYPRIVATE; | |
1201 | }; | |
1202 | ||
1203 | // Stupid renamed classes... Fix this in 2.5... | |
1204 | #if defined(__WXMSW__) | |
1205 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1206 | #elif defined(__WXMAC__) | |
1207 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1208 | #else | |
1209 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1210 | #endif | |
1211 | ||
1212 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1213 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1214 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1215 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1216 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1217 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1218 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1219 | ||
1220 | ||
1221 | class wxPyPreviewFrame : public wxPreviewFrame | |
1222 | { | |
1223 | DECLARE_CLASS(wxPyPreviewFrame); | |
1224 | public: | |
1225 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1226 | const wxString& title, | |
1227 | const wxPoint& pos = wxDefaultPosition, | |
1228 | const wxSize& size = wxDefaultSize, | |
1229 | long style = wxDEFAULT_FRAME_STYLE, | |
1230 | const wxString& name = wxPyFrameNameStr) | |
1231 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1232 | {} | |
1233 | ||
1234 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1235 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1236 | ||
1237 | DEC_PYCALLBACK_VOID_(Initialize); | |
1238 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1239 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1240 | ||
1241 | PYPRIVATE; | |
1242 | }; | |
1243 | ||
1244 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1245 | ||
1246 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1247 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1248 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1249 | ||
1250 | ||
1251 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1252 | { | |
1253 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1254 | public: | |
1255 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1256 | long buttons, | |
1257 | wxWindow *parent, | |
1258 | const wxPoint& pos = wxDefaultPosition, | |
1259 | const wxSize& size = wxDefaultSize, | |
1260 | long style = 0, | |
1261 | const wxString& name = wxPyPanelNameStr) | |
1262 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1263 | {} | |
1264 | ||
1265 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1266 | ||
1267 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1268 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1269 | ||
1270 | PYPRIVATE; | |
1271 | }; | |
1272 | ||
1273 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1274 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1275 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1276 | ||
1277 | #ifdef __cplusplus | |
1278 | extern "C" { | |
1279 | #endif | |
1280 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1281 | PyObject *resultobj; | |
1282 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1283 | int arg2 = (int) (int)-1 ; | |
1284 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1285 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1286 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1287 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1288 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1289 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1290 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1291 | wxPanel *result; | |
1292 | wxPoint temp3 ; | |
1293 | wxSize temp4 ; | |
1294 | bool temp6 = False ; | |
1295 | PyObject * obj0 = 0 ; | |
1296 | PyObject * obj1 = 0 ; | |
1297 | PyObject * obj2 = 0 ; | |
1298 | PyObject * obj3 = 0 ; | |
1299 | PyObject * obj4 = 0 ; | |
1300 | PyObject * obj5 = 0 ; | |
1301 | char *kwnames[] = { | |
1302 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1303 | }; | |
1304 | ||
1305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1308 | if (obj1) { | |
1309 | arg2 = (int const) SWIG_AsInt(obj1); | |
1310 | if (PyErr_Occurred()) SWIG_fail; | |
1311 | } | |
1312 | if (obj2) { | |
1313 | { | |
1314 | arg3 = &temp3; | |
1315 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1316 | } | |
1317 | } | |
1318 | if (obj3) { | |
1319 | { | |
1320 | arg4 = &temp4; | |
1321 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1322 | } | |
1323 | } | |
1324 | if (obj4) { | |
1325 | arg5 = (long) SWIG_AsLong(obj4); | |
1326 | if (PyErr_Occurred()) SWIG_fail; | |
1327 | } | |
1328 | if (obj5) { | |
1329 | { | |
1330 | arg6 = wxString_in_helper(obj5); | |
1331 | if (arg6 == NULL) SWIG_fail; | |
1332 | temp6 = True; | |
1333 | } | |
1334 | } | |
1335 | { | |
0439c23b | 1336 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1338 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1339 | ||
1340 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1341 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1342 | } |
e058867b RD |
1343 | { |
1344 | resultobj = wxPyMake_wxObject(result); | |
1345 | } | |
d55e5bfc RD |
1346 | { |
1347 | if (temp6) | |
1348 | delete arg6; | |
1349 | } | |
1350 | return resultobj; | |
1351 | fail: | |
1352 | { | |
1353 | if (temp6) | |
1354 | delete arg6; | |
1355 | } | |
1356 | return NULL; | |
1357 | } | |
1358 | ||
1359 | ||
1360 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1361 | PyObject *resultobj; | |
1362 | wxPanel *result; | |
1363 | char *kwnames[] = { | |
1364 | NULL | |
1365 | }; | |
1366 | ||
1367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1368 | { | |
0439c23b | 1369 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1371 | result = (wxPanel *)new wxPanel(); | |
1372 | ||
1373 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1374 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1375 | } |
e058867b RD |
1376 | { |
1377 | resultobj = wxPyMake_wxObject(result); | |
1378 | } | |
d55e5bfc RD |
1379 | return resultobj; |
1380 | fail: | |
1381 | return NULL; | |
1382 | } | |
1383 | ||
1384 | ||
1385 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1386 | PyObject *resultobj; | |
1387 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1388 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1389 | int arg3 = (int) (int)-1 ; | |
1390 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1391 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1392 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1393 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1394 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1395 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1396 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1397 | bool result; | |
1398 | wxPoint temp4 ; | |
1399 | wxSize temp5 ; | |
1400 | bool temp7 = False ; | |
1401 | PyObject * obj0 = 0 ; | |
1402 | PyObject * obj1 = 0 ; | |
1403 | PyObject * obj2 = 0 ; | |
1404 | PyObject * obj3 = 0 ; | |
1405 | PyObject * obj4 = 0 ; | |
1406 | PyObject * obj5 = 0 ; | |
1407 | PyObject * obj6 = 0 ; | |
1408 | char *kwnames[] = { | |
1409 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1410 | }; | |
1411 | ||
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1417 | if (obj2) { | |
1418 | arg3 = (int const) SWIG_AsInt(obj2); | |
1419 | if (PyErr_Occurred()) SWIG_fail; | |
1420 | } | |
1421 | if (obj3) { | |
1422 | { | |
1423 | arg4 = &temp4; | |
1424 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1425 | } | |
1426 | } | |
1427 | if (obj4) { | |
1428 | { | |
1429 | arg5 = &temp5; | |
1430 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1431 | } | |
1432 | } | |
1433 | if (obj5) { | |
1434 | arg6 = (long) SWIG_AsLong(obj5); | |
1435 | if (PyErr_Occurred()) SWIG_fail; | |
1436 | } | |
1437 | if (obj6) { | |
1438 | { | |
1439 | arg7 = wxString_in_helper(obj6); | |
1440 | if (arg7 == NULL) SWIG_fail; | |
1441 | temp7 = True; | |
1442 | } | |
1443 | } | |
1444 | { | |
1445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1446 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1447 | ||
1448 | wxPyEndAllowThreads(__tstate); | |
1449 | if (PyErr_Occurred()) SWIG_fail; | |
1450 | } | |
1451 | { | |
1452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1453 | } | |
1454 | { | |
1455 | if (temp7) | |
1456 | delete arg7; | |
1457 | } | |
1458 | return resultobj; | |
1459 | fail: | |
1460 | { | |
1461 | if (temp7) | |
1462 | delete arg7; | |
1463 | } | |
1464 | return NULL; | |
1465 | } | |
1466 | ||
1467 | ||
1468 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1469 | PyObject *resultobj; | |
1470 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1471 | PyObject * obj0 = 0 ; | |
1472 | char *kwnames[] = { | |
1473 | (char *) "self", NULL | |
1474 | }; | |
1475 | ||
1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1479 | { | |
1480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1481 | (arg1)->InitDialog(); | |
1482 | ||
1483 | wxPyEndAllowThreads(__tstate); | |
1484 | if (PyErr_Occurred()) SWIG_fail; | |
1485 | } | |
1486 | Py_INCREF(Py_None); resultobj = Py_None; | |
1487 | return resultobj; | |
1488 | fail: | |
1489 | return NULL; | |
1490 | } | |
1491 | ||
1492 | ||
f20a2e1f RD |
1493 | static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1494 | PyObject *resultobj; | |
1495 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1496 | wxVisualAttributes result; | |
1497 | PyObject * obj0 = 0 ; | |
1498 | char *kwnames[] = { | |
1499 | (char *) "variant", NULL | |
1500 | }; | |
1501 | ||
1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1503 | if (obj0) { | |
1504 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1505 | if (PyErr_Occurred()) SWIG_fail; | |
1506 | } | |
1507 | { | |
0439c23b | 1508 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1510 | result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1511 | ||
1512 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1513 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1514 | } |
1515 | { | |
1516 | wxVisualAttributes * resultptr; | |
1517 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1518 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1519 | } | |
1520 | return resultobj; | |
1521 | fail: | |
1522 | return NULL; | |
1523 | } | |
1524 | ||
1525 | ||
d55e5bfc RD |
1526 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { |
1527 | PyObject *obj; | |
1528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1529 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1530 | Py_INCREF(obj); | |
1531 | return Py_BuildValue((char *)""); | |
1532 | } | |
1533 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject *resultobj; | |
1535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1536 | int arg2 = (int) (int)-1 ; | |
1537 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1538 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1539 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1540 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1541 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1542 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1543 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1544 | wxScrolledWindow *result; | |
1545 | wxPoint temp3 ; | |
1546 | wxSize temp4 ; | |
1547 | bool temp6 = False ; | |
1548 | PyObject * obj0 = 0 ; | |
1549 | PyObject * obj1 = 0 ; | |
1550 | PyObject * obj2 = 0 ; | |
1551 | PyObject * obj3 = 0 ; | |
1552 | PyObject * obj4 = 0 ; | |
1553 | PyObject * obj5 = 0 ; | |
1554 | char *kwnames[] = { | |
1555 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1556 | }; | |
1557 | ||
1558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1561 | if (obj1) { | |
1562 | arg2 = (int const) SWIG_AsInt(obj1); | |
1563 | if (PyErr_Occurred()) SWIG_fail; | |
1564 | } | |
1565 | if (obj2) { | |
1566 | { | |
1567 | arg3 = &temp3; | |
1568 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1569 | } | |
1570 | } | |
1571 | if (obj3) { | |
1572 | { | |
1573 | arg4 = &temp4; | |
1574 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1575 | } | |
1576 | } | |
1577 | if (obj4) { | |
1578 | arg5 = (long) SWIG_AsLong(obj4); | |
1579 | if (PyErr_Occurred()) SWIG_fail; | |
1580 | } | |
1581 | if (obj5) { | |
1582 | { | |
1583 | arg6 = wxString_in_helper(obj5); | |
1584 | if (arg6 == NULL) SWIG_fail; | |
1585 | temp6 = True; | |
1586 | } | |
1587 | } | |
1588 | { | |
0439c23b | 1589 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1591 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1592 | ||
1593 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1594 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1595 | } |
1596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1597 | { | |
1598 | if (temp6) | |
1599 | delete arg6; | |
1600 | } | |
1601 | return resultobj; | |
1602 | fail: | |
1603 | { | |
1604 | if (temp6) | |
1605 | delete arg6; | |
1606 | } | |
1607 | return NULL; | |
1608 | } | |
1609 | ||
1610 | ||
1611 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject *resultobj; | |
1613 | wxScrolledWindow *result; | |
1614 | char *kwnames[] = { | |
1615 | NULL | |
1616 | }; | |
1617 | ||
1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1619 | { | |
0439c23b | 1620 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1622 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1623 | ||
1624 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1625 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1626 | } |
1627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1628 | return resultobj; | |
1629 | fail: | |
1630 | return NULL; | |
1631 | } | |
1632 | ||
1633 | ||
1634 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1635 | PyObject *resultobj; | |
1636 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1637 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1638 | int arg3 = (int) (int)-1 ; | |
1639 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1640 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1641 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1642 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1643 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1644 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1645 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1646 | bool result; | |
1647 | wxPoint temp4 ; | |
1648 | wxSize temp5 ; | |
1649 | bool temp7 = False ; | |
1650 | PyObject * obj0 = 0 ; | |
1651 | PyObject * obj1 = 0 ; | |
1652 | PyObject * obj2 = 0 ; | |
1653 | PyObject * obj3 = 0 ; | |
1654 | PyObject * obj4 = 0 ; | |
1655 | PyObject * obj5 = 0 ; | |
1656 | PyObject * obj6 = 0 ; | |
1657 | char *kwnames[] = { | |
1658 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1659 | }; | |
1660 | ||
1661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1664 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1666 | if (obj2) { | |
1667 | arg3 = (int const) SWIG_AsInt(obj2); | |
1668 | if (PyErr_Occurred()) SWIG_fail; | |
1669 | } | |
1670 | if (obj3) { | |
1671 | { | |
1672 | arg4 = &temp4; | |
1673 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1674 | } | |
1675 | } | |
1676 | if (obj4) { | |
1677 | { | |
1678 | arg5 = &temp5; | |
1679 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1680 | } | |
1681 | } | |
1682 | if (obj5) { | |
1683 | arg6 = (long) SWIG_AsLong(obj5); | |
1684 | if (PyErr_Occurred()) SWIG_fail; | |
1685 | } | |
1686 | if (obj6) { | |
1687 | { | |
1688 | arg7 = wxString_in_helper(obj6); | |
1689 | if (arg7 == NULL) SWIG_fail; | |
1690 | temp7 = True; | |
1691 | } | |
1692 | } | |
1693 | { | |
1694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1695 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1696 | ||
1697 | wxPyEndAllowThreads(__tstate); | |
1698 | if (PyErr_Occurred()) SWIG_fail; | |
1699 | } | |
1700 | { | |
1701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1702 | } | |
1703 | { | |
1704 | if (temp7) | |
1705 | delete arg7; | |
1706 | } | |
1707 | return resultobj; | |
1708 | fail: | |
1709 | { | |
1710 | if (temp7) | |
1711 | delete arg7; | |
1712 | } | |
1713 | return NULL; | |
1714 | } | |
1715 | ||
1716 | ||
1717 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1718 | PyObject *resultobj; | |
1719 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1720 | int arg2 ; | |
1721 | int arg3 ; | |
1722 | int arg4 ; | |
1723 | int arg5 ; | |
1724 | int arg6 = (int) 0 ; | |
1725 | int arg7 = (int) 0 ; | |
1726 | bool arg8 = (bool) False ; | |
1727 | PyObject * obj0 = 0 ; | |
1728 | PyObject * obj1 = 0 ; | |
1729 | PyObject * obj2 = 0 ; | |
1730 | PyObject * obj3 = 0 ; | |
1731 | PyObject * obj4 = 0 ; | |
1732 | PyObject * obj5 = 0 ; | |
1733 | PyObject * obj6 = 0 ; | |
1734 | PyObject * obj7 = 0 ; | |
1735 | char *kwnames[] = { | |
1736 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1737 | }; | |
1738 | ||
1739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1742 | arg2 = (int) SWIG_AsInt(obj1); | |
1743 | if (PyErr_Occurred()) SWIG_fail; | |
1744 | arg3 = (int) SWIG_AsInt(obj2); | |
1745 | if (PyErr_Occurred()) SWIG_fail; | |
1746 | arg4 = (int) SWIG_AsInt(obj3); | |
1747 | if (PyErr_Occurred()) SWIG_fail; | |
1748 | arg5 = (int) SWIG_AsInt(obj4); | |
1749 | if (PyErr_Occurred()) SWIG_fail; | |
1750 | if (obj5) { | |
1751 | arg6 = (int) SWIG_AsInt(obj5); | |
1752 | if (PyErr_Occurred()) SWIG_fail; | |
1753 | } | |
1754 | if (obj6) { | |
1755 | arg7 = (int) SWIG_AsInt(obj6); | |
1756 | if (PyErr_Occurred()) SWIG_fail; | |
1757 | } | |
1758 | if (obj7) { | |
1759 | arg8 = (bool) SWIG_AsBool(obj7); | |
1760 | if (PyErr_Occurred()) SWIG_fail; | |
1761 | } | |
1762 | { | |
1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1764 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1765 | ||
1766 | wxPyEndAllowThreads(__tstate); | |
1767 | if (PyErr_Occurred()) SWIG_fail; | |
1768 | } | |
1769 | Py_INCREF(Py_None); resultobj = Py_None; | |
1770 | return resultobj; | |
1771 | fail: | |
1772 | return NULL; | |
1773 | } | |
1774 | ||
1775 | ||
1776 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1777 | PyObject *resultobj; | |
1778 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1779 | int arg2 ; | |
1780 | int arg3 ; | |
1781 | PyObject * obj0 = 0 ; | |
1782 | PyObject * obj1 = 0 ; | |
1783 | PyObject * obj2 = 0 ; | |
1784 | char *kwnames[] = { | |
1785 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1786 | }; | |
1787 | ||
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1791 | arg2 = (int) SWIG_AsInt(obj1); | |
1792 | if (PyErr_Occurred()) SWIG_fail; | |
1793 | arg3 = (int) SWIG_AsInt(obj2); | |
1794 | if (PyErr_Occurred()) SWIG_fail; | |
1795 | { | |
1796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1797 | (arg1)->Scroll(arg2,arg3); | |
1798 | ||
1799 | wxPyEndAllowThreads(__tstate); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
1802 | Py_INCREF(Py_None); resultobj = Py_None; | |
1803 | return resultobj; | |
1804 | fail: | |
1805 | return NULL; | |
1806 | } | |
1807 | ||
1808 | ||
1809 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1810 | PyObject *resultobj; | |
1811 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1812 | int arg2 ; | |
1813 | int result; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | PyObject * obj1 = 0 ; | |
1816 | char *kwnames[] = { | |
1817 | (char *) "self",(char *) "orient", NULL | |
1818 | }; | |
1819 | ||
1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1823 | arg2 = (int) SWIG_AsInt(obj1); | |
1824 | if (PyErr_Occurred()) SWIG_fail; | |
1825 | { | |
1826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1827 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1828 | ||
1829 | wxPyEndAllowThreads(__tstate); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
1831 | } | |
1832 | resultobj = SWIG_FromInt((int)result); | |
1833 | return resultobj; | |
1834 | fail: | |
1835 | return NULL; | |
1836 | } | |
1837 | ||
1838 | ||
1839 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject *resultobj; | |
1841 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1842 | int arg2 ; | |
1843 | int arg3 ; | |
1844 | PyObject * obj0 = 0 ; | |
1845 | PyObject * obj1 = 0 ; | |
1846 | PyObject * obj2 = 0 ; | |
1847 | char *kwnames[] = { | |
1848 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1849 | }; | |
1850 | ||
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1854 | arg2 = (int) SWIG_AsInt(obj1); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | arg3 = (int) SWIG_AsInt(obj2); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | { | |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | Py_INCREF(Py_None); resultobj = Py_None; | |
1866 | return resultobj; | |
1867 | fail: | |
1868 | return NULL; | |
1869 | } | |
1870 | ||
1871 | ||
1872 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject *resultobj; | |
1874 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1875 | int arg2 ; | |
1876 | int arg3 ; | |
1877 | PyObject * obj0 = 0 ; | |
1878 | PyObject * obj1 = 0 ; | |
1879 | PyObject * obj2 = 0 ; | |
1880 | char *kwnames[] = { | |
1881 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1882 | }; | |
1883 | ||
1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1887 | arg2 = (int) SWIG_AsInt(obj1); | |
1888 | if (PyErr_Occurred()) SWIG_fail; | |
1889 | arg3 = (int) SWIG_AsInt(obj2); | |
1890 | if (PyErr_Occurred()) SWIG_fail; | |
1891 | { | |
1892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1893 | (arg1)->SetScrollRate(arg2,arg3); | |
1894 | ||
1895 | wxPyEndAllowThreads(__tstate); | |
1896 | if (PyErr_Occurred()) SWIG_fail; | |
1897 | } | |
1898 | Py_INCREF(Py_None); resultobj = Py_None; | |
1899 | return resultobj; | |
1900 | fail: | |
1901 | return NULL; | |
1902 | } | |
1903 | ||
1904 | ||
1905 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject *resultobj; | |
1907 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1908 | int *arg2 = (int *) 0 ; | |
1909 | int *arg3 = (int *) 0 ; | |
1910 | int temp2 ; | |
1911 | int temp3 ; | |
1912 | PyObject * obj0 = 0 ; | |
1913 | char *kwnames[] = { | |
1914 | (char *) "self", NULL | |
1915 | }; | |
1916 | ||
1917 | arg2 = &temp2; | |
1918 | arg3 = &temp3; | |
1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1922 | { | |
1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1924 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1925 | ||
1926 | wxPyEndAllowThreads(__tstate); | |
1927 | if (PyErr_Occurred()) SWIG_fail; | |
1928 | } | |
1929 | Py_INCREF(Py_None); resultobj = Py_None; | |
1930 | { | |
1931 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1932 | resultobj = t_output_helper(resultobj,o); | |
1933 | } | |
1934 | { | |
1935 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1936 | resultobj = t_output_helper(resultobj,o); | |
1937 | } | |
1938 | return resultobj; | |
1939 | fail: | |
1940 | return NULL; | |
1941 | } | |
1942 | ||
1943 | ||
1944 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1945 | PyObject *resultobj; | |
1946 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1947 | bool arg2 ; | |
1948 | bool arg3 ; | |
1949 | PyObject * obj0 = 0 ; | |
1950 | PyObject * obj1 = 0 ; | |
1951 | PyObject * obj2 = 0 ; | |
1952 | char *kwnames[] = { | |
1953 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1954 | }; | |
1955 | ||
1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1959 | arg2 = (bool) SWIG_AsBool(obj1); | |
1960 | if (PyErr_Occurred()) SWIG_fail; | |
1961 | arg3 = (bool) SWIG_AsBool(obj2); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
1963 | { | |
1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1965 | (arg1)->EnableScrolling(arg2,arg3); | |
1966 | ||
1967 | wxPyEndAllowThreads(__tstate); | |
1968 | if (PyErr_Occurred()) SWIG_fail; | |
1969 | } | |
1970 | Py_INCREF(Py_None); resultobj = Py_None; | |
1971 | return resultobj; | |
1972 | fail: | |
1973 | return NULL; | |
1974 | } | |
1975 | ||
1976 | ||
1977 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1978 | PyObject *resultobj; | |
1979 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1980 | int *arg2 = (int *) 0 ; | |
1981 | int *arg3 = (int *) 0 ; | |
1982 | int temp2 ; | |
1983 | int temp3 ; | |
1984 | PyObject * obj0 = 0 ; | |
1985 | char *kwnames[] = { | |
1986 | (char *) "self", NULL | |
1987 | }; | |
1988 | ||
1989 | arg2 = &temp2; | |
1990 | arg3 = &temp3; | |
1991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1994 | { | |
1995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1996 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1997 | ||
1998 | wxPyEndAllowThreads(__tstate); | |
1999 | if (PyErr_Occurred()) SWIG_fail; | |
2000 | } | |
2001 | Py_INCREF(Py_None); resultobj = Py_None; | |
2002 | { | |
2003 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2004 | resultobj = t_output_helper(resultobj,o); | |
2005 | } | |
2006 | { | |
2007 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
2008 | resultobj = t_output_helper(resultobj,o); | |
2009 | } | |
2010 | return resultobj; | |
2011 | fail: | |
2012 | return NULL; | |
2013 | } | |
2014 | ||
2015 | ||
2016 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2017 | PyObject *resultobj; | |
2018 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2019 | double arg2 ; | |
2020 | double arg3 ; | |
2021 | PyObject * obj0 = 0 ; | |
2022 | PyObject * obj1 = 0 ; | |
2023 | PyObject * obj2 = 0 ; | |
2024 | char *kwnames[] = { | |
2025 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
2026 | }; | |
2027 | ||
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2031 | arg2 = (double) SWIG_AsDouble(obj1); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | arg3 = (double) SWIG_AsDouble(obj2); | |
2034 | if (PyErr_Occurred()) SWIG_fail; | |
2035 | { | |
2036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2037 | (arg1)->SetScale(arg2,arg3); | |
2038 | ||
2039 | wxPyEndAllowThreads(__tstate); | |
2040 | if (PyErr_Occurred()) SWIG_fail; | |
2041 | } | |
2042 | Py_INCREF(Py_None); resultobj = Py_None; | |
2043 | return resultobj; | |
2044 | fail: | |
2045 | return NULL; | |
2046 | } | |
2047 | ||
2048 | ||
2049 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2050 | PyObject *resultobj; | |
2051 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2052 | double result; | |
2053 | PyObject * obj0 = 0 ; | |
2054 | char *kwnames[] = { | |
2055 | (char *) "self", NULL | |
2056 | }; | |
2057 | ||
2058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
2059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2061 | { | |
2062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2063 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
2064 | ||
2065 | wxPyEndAllowThreads(__tstate); | |
2066 | if (PyErr_Occurred()) SWIG_fail; | |
2067 | } | |
2068 | resultobj = SWIG_FromDouble((double)result); | |
2069 | return resultobj; | |
2070 | fail: | |
2071 | return NULL; | |
2072 | } | |
2073 | ||
2074 | ||
2075 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2076 | PyObject *resultobj; | |
2077 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2078 | double result; | |
2079 | PyObject * obj0 = 0 ; | |
2080 | char *kwnames[] = { | |
2081 | (char *) "self", NULL | |
2082 | }; | |
2083 | ||
2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
2085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2087 | { | |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2089 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
2090 | ||
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
2094 | resultobj = SWIG_FromDouble((double)result); | |
2095 | return resultobj; | |
2096 | fail: | |
2097 | return NULL; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2102 | PyObject *resultobj; | |
2103 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2104 | wxPoint *arg2 = 0 ; | |
2105 | wxPoint result; | |
2106 | wxPoint temp2 ; | |
2107 | PyObject * obj0 = 0 ; | |
2108 | PyObject * obj1 = 0 ; | |
2109 | ||
2110 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
2111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2113 | { | |
2114 | arg2 = &temp2; | |
2115 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2116 | } | |
2117 | { | |
2118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2119 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
2120 | ||
2121 | wxPyEndAllowThreads(__tstate); | |
2122 | if (PyErr_Occurred()) SWIG_fail; | |
2123 | } | |
2124 | { | |
2125 | wxPoint * resultptr; | |
2126 | resultptr = new wxPoint((wxPoint &) result); | |
2127 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2128 | } | |
2129 | return resultobj; | |
2130 | fail: | |
2131 | return NULL; | |
2132 | } | |
2133 | ||
2134 | ||
2135 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2136 | PyObject *resultobj; | |
2137 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2138 | int arg2 ; | |
2139 | int arg3 ; | |
2140 | int *arg4 = (int *) 0 ; | |
2141 | int *arg5 = (int *) 0 ; | |
2142 | int temp4 ; | |
2143 | int temp5 ; | |
2144 | PyObject * obj0 = 0 ; | |
2145 | PyObject * obj1 = 0 ; | |
2146 | PyObject * obj2 = 0 ; | |
2147 | ||
2148 | arg4 = &temp4; | |
2149 | arg5 = &temp5; | |
2150 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2153 | arg2 = (int) SWIG_AsInt(obj1); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | arg3 = (int) SWIG_AsInt(obj2); | |
2156 | if (PyErr_Occurred()) SWIG_fail; | |
2157 | { | |
2158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2159 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2160 | ||
2161 | wxPyEndAllowThreads(__tstate); | |
2162 | if (PyErr_Occurred()) SWIG_fail; | |
2163 | } | |
2164 | Py_INCREF(Py_None); resultobj = Py_None; | |
2165 | { | |
2166 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2167 | resultobj = t_output_helper(resultobj,o); | |
2168 | } | |
2169 | { | |
2170 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2171 | resultobj = t_output_helper(resultobj,o); | |
2172 | } | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | return NULL; | |
2176 | } | |
2177 | ||
2178 | ||
2179 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2180 | int argc; | |
2181 | PyObject *argv[4]; | |
2182 | int ii; | |
2183 | ||
2184 | argc = PyObject_Length(args); | |
2185 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2186 | argv[ii] = PyTuple_GetItem(args,ii); | |
2187 | } | |
2188 | if (argc == 2) { | |
2189 | int _v; | |
2190 | { | |
2191 | void *ptr; | |
2192 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2193 | _v = 0; | |
2194 | PyErr_Clear(); | |
2195 | } else { | |
2196 | _v = 1; | |
2197 | } | |
2198 | } | |
2199 | if (_v) { | |
2200 | { | |
2201 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2202 | } | |
2203 | if (_v) { | |
2204 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2205 | } | |
2206 | } | |
2207 | } | |
2208 | if (argc == 3) { | |
2209 | int _v; | |
2210 | { | |
2211 | void *ptr; | |
2212 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2213 | _v = 0; | |
2214 | PyErr_Clear(); | |
2215 | } else { | |
2216 | _v = 1; | |
2217 | } | |
2218 | } | |
2219 | if (_v) { | |
2220 | _v = SWIG_CheckInt(argv[1]); | |
2221 | if (_v) { | |
2222 | _v = SWIG_CheckInt(argv[2]); | |
2223 | if (_v) { | |
2224 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2225 | } | |
2226 | } | |
2227 | } | |
2228 | } | |
2229 | ||
2230 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2231 | return NULL; | |
2232 | } | |
2233 | ||
2234 | ||
2235 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2236 | PyObject *resultobj; | |
2237 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2238 | wxPoint *arg2 = 0 ; | |
2239 | wxPoint result; | |
2240 | wxPoint temp2 ; | |
2241 | PyObject * obj0 = 0 ; | |
2242 | PyObject * obj1 = 0 ; | |
2243 | ||
2244 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2247 | { | |
2248 | arg2 = &temp2; | |
2249 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2250 | } | |
2251 | { | |
2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2253 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2254 | ||
2255 | wxPyEndAllowThreads(__tstate); | |
2256 | if (PyErr_Occurred()) SWIG_fail; | |
2257 | } | |
2258 | { | |
2259 | wxPoint * resultptr; | |
2260 | resultptr = new wxPoint((wxPoint &) result); | |
2261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2262 | } | |
2263 | return resultobj; | |
2264 | fail: | |
2265 | return NULL; | |
2266 | } | |
2267 | ||
2268 | ||
2269 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2270 | PyObject *resultobj; | |
2271 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2272 | int arg2 ; | |
2273 | int arg3 ; | |
2274 | int *arg4 = (int *) 0 ; | |
2275 | int *arg5 = (int *) 0 ; | |
2276 | int temp4 ; | |
2277 | int temp5 ; | |
2278 | PyObject * obj0 = 0 ; | |
2279 | PyObject * obj1 = 0 ; | |
2280 | PyObject * obj2 = 0 ; | |
2281 | ||
2282 | arg4 = &temp4; | |
2283 | arg5 = &temp5; | |
2284 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2287 | arg2 = (int) SWIG_AsInt(obj1); | |
2288 | if (PyErr_Occurred()) SWIG_fail; | |
2289 | arg3 = (int) SWIG_AsInt(obj2); | |
2290 | if (PyErr_Occurred()) SWIG_fail; | |
2291 | { | |
2292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2293 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2294 | ||
2295 | wxPyEndAllowThreads(__tstate); | |
2296 | if (PyErr_Occurred()) SWIG_fail; | |
2297 | } | |
2298 | Py_INCREF(Py_None); resultobj = Py_None; | |
2299 | { | |
2300 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2301 | resultobj = t_output_helper(resultobj,o); | |
2302 | } | |
2303 | { | |
2304 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2305 | resultobj = t_output_helper(resultobj,o); | |
2306 | } | |
2307 | return resultobj; | |
2308 | fail: | |
2309 | return NULL; | |
2310 | } | |
2311 | ||
2312 | ||
2313 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2314 | int argc; | |
2315 | PyObject *argv[4]; | |
2316 | int ii; | |
2317 | ||
2318 | argc = PyObject_Length(args); | |
2319 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2320 | argv[ii] = PyTuple_GetItem(args,ii); | |
2321 | } | |
2322 | if (argc == 2) { | |
2323 | int _v; | |
2324 | { | |
2325 | void *ptr; | |
2326 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2327 | _v = 0; | |
2328 | PyErr_Clear(); | |
2329 | } else { | |
2330 | _v = 1; | |
2331 | } | |
2332 | } | |
2333 | if (_v) { | |
2334 | { | |
2335 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2336 | } | |
2337 | if (_v) { | |
2338 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2339 | } | |
2340 | } | |
2341 | } | |
2342 | if (argc == 3) { | |
2343 | int _v; | |
2344 | { | |
2345 | void *ptr; | |
2346 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2347 | _v = 0; | |
2348 | PyErr_Clear(); | |
2349 | } else { | |
2350 | _v = 1; | |
2351 | } | |
2352 | } | |
2353 | if (_v) { | |
2354 | _v = SWIG_CheckInt(argv[1]); | |
2355 | if (_v) { | |
2356 | _v = SWIG_CheckInt(argv[2]); | |
2357 | if (_v) { | |
2358 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2359 | } | |
2360 | } | |
2361 | } | |
2362 | } | |
2363 | ||
2364 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2365 | return NULL; | |
2366 | } | |
2367 | ||
2368 | ||
2369 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2370 | PyObject *resultobj; | |
2371 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2372 | PyObject * obj0 = 0 ; | |
2373 | char *kwnames[] = { | |
2374 | (char *) "self", NULL | |
2375 | }; | |
2376 | ||
2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2380 | { | |
2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2382 | (arg1)->AdjustScrollbars(); | |
2383 | ||
2384 | wxPyEndAllowThreads(__tstate); | |
2385 | if (PyErr_Occurred()) SWIG_fail; | |
2386 | } | |
2387 | Py_INCREF(Py_None); resultobj = Py_None; | |
2388 | return resultobj; | |
2389 | fail: | |
2390 | return NULL; | |
2391 | } | |
2392 | ||
2393 | ||
2394 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2395 | PyObject *resultobj; | |
2396 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2397 | wxScrollWinEvent *arg2 = 0 ; | |
2398 | int result; | |
2399 | PyObject * obj0 = 0 ; | |
2400 | PyObject * obj1 = 0 ; | |
2401 | char *kwnames[] = { | |
2402 | (char *) "self",(char *) "event", NULL | |
2403 | }; | |
2404 | ||
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2410 | SWIG_fail; | |
2411 | if (arg2 == NULL) { | |
2412 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2413 | SWIG_fail; | |
2414 | } | |
2415 | { | |
2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2417 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2418 | ||
2419 | wxPyEndAllowThreads(__tstate); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | } | |
2422 | resultobj = SWIG_FromInt((int)result); | |
2423 | return resultobj; | |
2424 | fail: | |
2425 | return NULL; | |
2426 | } | |
2427 | ||
2428 | ||
2429 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2430 | PyObject *resultobj; | |
2431 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2432 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2433 | PyObject * obj0 = 0 ; | |
2434 | PyObject * obj1 = 0 ; | |
2435 | char *kwnames[] = { | |
2436 | (char *) "self",(char *) "target", NULL | |
2437 | }; | |
2438 | ||
2439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2442 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2444 | { | |
2445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2446 | (arg1)->SetTargetWindow(arg2); | |
2447 | ||
2448 | wxPyEndAllowThreads(__tstate); | |
2449 | if (PyErr_Occurred()) SWIG_fail; | |
2450 | } | |
2451 | Py_INCREF(Py_None); resultobj = Py_None; | |
2452 | return resultobj; | |
2453 | fail: | |
2454 | return NULL; | |
2455 | } | |
2456 | ||
2457 | ||
2458 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2459 | PyObject *resultobj; | |
2460 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2461 | wxWindow *result; | |
2462 | PyObject * obj0 = 0 ; | |
2463 | char *kwnames[] = { | |
2464 | (char *) "self", NULL | |
2465 | }; | |
2466 | ||
2467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2470 | { | |
2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2472 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2473 | ||
2474 | wxPyEndAllowThreads(__tstate); | |
2475 | if (PyErr_Occurred()) SWIG_fail; | |
2476 | } | |
2477 | { | |
2478 | resultobj = wxPyMake_wxObject(result); | |
2479 | } | |
2480 | return resultobj; | |
2481 | fail: | |
2482 | return NULL; | |
2483 | } | |
2484 | ||
2485 | ||
2486 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject *resultobj; | |
2488 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2489 | wxRect *arg2 = 0 ; | |
2490 | wxRect temp2 ; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | PyObject * obj1 = 0 ; | |
2493 | char *kwnames[] = { | |
2494 | (char *) "self",(char *) "rect", NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2500 | { | |
2501 | arg2 = &temp2; | |
2502 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2503 | } | |
2504 | { | |
2505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2506 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2507 | ||
2508 | wxPyEndAllowThreads(__tstate); | |
2509 | if (PyErr_Occurred()) SWIG_fail; | |
2510 | } | |
2511 | Py_INCREF(Py_None); resultobj = Py_None; | |
2512 | return resultobj; | |
2513 | fail: | |
2514 | return NULL; | |
2515 | } | |
2516 | ||
2517 | ||
2518 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2519 | PyObject *resultobj; | |
2520 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2521 | wxRect result; | |
2522 | PyObject * obj0 = 0 ; | |
2523 | char *kwnames[] = { | |
2524 | (char *) "self", NULL | |
2525 | }; | |
2526 | ||
2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2530 | { | |
2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2532 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2533 | ||
2534 | wxPyEndAllowThreads(__tstate); | |
2535 | if (PyErr_Occurred()) SWIG_fail; | |
2536 | } | |
2537 | { | |
2538 | wxRect * resultptr; | |
2539 | resultptr = new wxRect((wxRect &) result); | |
2540 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2541 | } | |
2542 | return resultobj; | |
2543 | fail: | |
2544 | return NULL; | |
2545 | } | |
2546 | ||
2547 | ||
f20a2e1f RD |
2548 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2549 | PyObject *resultobj; | |
2550 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2551 | wxVisualAttributes result; | |
2552 | PyObject * obj0 = 0 ; | |
2553 | char *kwnames[] = { | |
2554 | (char *) "variant", NULL | |
2555 | }; | |
2556 | ||
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2558 | if (obj0) { | |
2559 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2560 | if (PyErr_Occurred()) SWIG_fail; | |
2561 | } | |
2562 | { | |
0439c23b | 2563 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2565 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2566 | ||
2567 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2568 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2569 | } |
2570 | { | |
2571 | wxVisualAttributes * resultptr; | |
2572 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2574 | } | |
2575 | return resultobj; | |
2576 | fail: | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
d55e5bfc RD |
2581 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
2582 | PyObject *obj; | |
2583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2584 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2585 | Py_INCREF(obj); | |
2586 | return Py_BuildValue((char *)""); | |
2587 | } | |
2588 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2589 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2590 | return 1; | |
2591 | } | |
2592 | ||
2593 | ||
2594 | static PyObject *_wrap_FrameNameStr_get() { | |
2595 | PyObject *pyobj; | |
2596 | ||
2597 | { | |
2598 | #if wxUSE_UNICODE | |
2599 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2600 | #else | |
2601 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2602 | #endif | |
2603 | } | |
2604 | return pyobj; | |
2605 | } | |
2606 | ||
2607 | ||
2608 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2609 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2610 | return 1; | |
2611 | } | |
2612 | ||
2613 | ||
2614 | static PyObject *_wrap_DialogNameStr_get() { | |
2615 | PyObject *pyobj; | |
2616 | ||
2617 | { | |
2618 | #if wxUSE_UNICODE | |
2619 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2620 | #else | |
2621 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2622 | #endif | |
2623 | } | |
2624 | return pyobj; | |
2625 | } | |
2626 | ||
2627 | ||
2628 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2629 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2630 | return 1; | |
2631 | } | |
2632 | ||
2633 | ||
2634 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2635 | PyObject *pyobj; | |
2636 | ||
2637 | { | |
2638 | #if wxUSE_UNICODE | |
2639 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2640 | #else | |
2641 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2642 | #endif | |
2643 | } | |
2644 | return pyobj; | |
2645 | } | |
2646 | ||
2647 | ||
2648 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2649 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2650 | return 1; | |
2651 | } | |
2652 | ||
2653 | ||
2654 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2655 | PyObject *pyobj; | |
2656 | ||
2657 | { | |
2658 | #if wxUSE_UNICODE | |
2659 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2660 | #else | |
2661 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2662 | #endif | |
2663 | } | |
2664 | return pyobj; | |
2665 | } | |
2666 | ||
2667 | ||
2668 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject *resultobj; | |
2670 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2671 | bool arg2 = (bool) True ; | |
2672 | PyObject * obj0 = 0 ; | |
2673 | PyObject * obj1 = 0 ; | |
2674 | char *kwnames[] = { | |
2675 | (char *) "self",(char *) "maximize", NULL | |
2676 | }; | |
2677 | ||
2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2681 | if (obj1) { | |
2682 | arg2 = (bool) SWIG_AsBool(obj1); | |
2683 | if (PyErr_Occurred()) SWIG_fail; | |
2684 | } | |
2685 | { | |
2686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2687 | (arg1)->Maximize(arg2); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
2692 | Py_INCREF(Py_None); resultobj = Py_None; | |
2693 | return resultobj; | |
2694 | fail: | |
2695 | return NULL; | |
2696 | } | |
2697 | ||
2698 | ||
2699 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2700 | PyObject *resultobj; | |
2701 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2702 | PyObject * obj0 = 0 ; | |
2703 | char *kwnames[] = { | |
2704 | (char *) "self", NULL | |
2705 | }; | |
2706 | ||
2707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2710 | { | |
2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2712 | (arg1)->Restore(); | |
2713 | ||
2714 | wxPyEndAllowThreads(__tstate); | |
2715 | if (PyErr_Occurred()) SWIG_fail; | |
2716 | } | |
2717 | Py_INCREF(Py_None); resultobj = Py_None; | |
2718 | return resultobj; | |
2719 | fail: | |
2720 | return NULL; | |
2721 | } | |
2722 | ||
2723 | ||
2724 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject *resultobj; | |
2726 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2727 | bool arg2 = (bool) True ; | |
2728 | PyObject * obj0 = 0 ; | |
2729 | PyObject * obj1 = 0 ; | |
2730 | char *kwnames[] = { | |
2731 | (char *) "self",(char *) "iconize", NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2737 | if (obj1) { | |
2738 | arg2 = (bool) SWIG_AsBool(obj1); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
2740 | } | |
2741 | { | |
2742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2743 | (arg1)->Iconize(arg2); | |
2744 | ||
2745 | wxPyEndAllowThreads(__tstate); | |
2746 | if (PyErr_Occurred()) SWIG_fail; | |
2747 | } | |
2748 | Py_INCREF(Py_None); resultobj = Py_None; | |
2749 | return resultobj; | |
2750 | fail: | |
2751 | return NULL; | |
2752 | } | |
2753 | ||
2754 | ||
2755 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2756 | PyObject *resultobj; | |
2757 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2758 | bool result; | |
2759 | PyObject * obj0 = 0 ; | |
2760 | char *kwnames[] = { | |
2761 | (char *) "self", NULL | |
2762 | }; | |
2763 | ||
2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2767 | { | |
2768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2769 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2770 | ||
2771 | wxPyEndAllowThreads(__tstate); | |
2772 | if (PyErr_Occurred()) SWIG_fail; | |
2773 | } | |
2774 | { | |
2775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2776 | } | |
2777 | return resultobj; | |
2778 | fail: | |
2779 | return NULL; | |
2780 | } | |
2781 | ||
2782 | ||
2783 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2784 | PyObject *resultobj; | |
2785 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2786 | bool result; | |
2787 | PyObject * obj0 = 0 ; | |
2788 | char *kwnames[] = { | |
2789 | (char *) "self", NULL | |
2790 | }; | |
2791 | ||
2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2795 | { | |
2796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2797 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2798 | ||
2799 | wxPyEndAllowThreads(__tstate); | |
2800 | if (PyErr_Occurred()) SWIG_fail; | |
2801 | } | |
2802 | { | |
2803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2804 | } | |
2805 | return resultobj; | |
2806 | fail: | |
2807 | return NULL; | |
2808 | } | |
2809 | ||
2810 | ||
2811 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2812 | PyObject *resultobj; | |
2813 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2814 | wxIcon result; | |
2815 | PyObject * obj0 = 0 ; | |
2816 | char *kwnames[] = { | |
2817 | (char *) "self", NULL | |
2818 | }; | |
2819 | ||
2820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2823 | { | |
2824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2825 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2826 | ||
2827 | wxPyEndAllowThreads(__tstate); | |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
2829 | } | |
2830 | { | |
2831 | wxIcon * resultptr; | |
2832 | resultptr = new wxIcon((wxIcon &) result); | |
2833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2834 | } | |
2835 | return resultobj; | |
2836 | fail: | |
2837 | return NULL; | |
2838 | } | |
2839 | ||
2840 | ||
2841 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2842 | PyObject *resultobj; | |
2843 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2844 | wxIcon *arg2 = 0 ; | |
2845 | PyObject * obj0 = 0 ; | |
2846 | PyObject * obj1 = 0 ; | |
2847 | char *kwnames[] = { | |
2848 | (char *) "self",(char *) "icon", NULL | |
2849 | }; | |
2850 | ||
2851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2854 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2855 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2856 | SWIG_fail; | |
2857 | if (arg2 == NULL) { | |
2858 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2859 | SWIG_fail; | |
2860 | } | |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2863 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2864 | ||
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) SWIG_fail; | |
2867 | } | |
2868 | Py_INCREF(Py_None); resultobj = Py_None; | |
2869 | return resultobj; | |
2870 | fail: | |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
2875 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2876 | PyObject *resultobj; | |
2877 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2878 | wxIconBundle *arg2 = 0 ; | |
2879 | PyObject * obj0 = 0 ; | |
2880 | PyObject * obj1 = 0 ; | |
2881 | char *kwnames[] = { | |
2882 | (char *) "self",(char *) "icons", NULL | |
2883 | }; | |
2884 | ||
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2890 | SWIG_fail; | |
2891 | if (arg2 == NULL) { | |
2892 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2893 | SWIG_fail; | |
2894 | } | |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2902 | Py_INCREF(Py_None); resultobj = Py_None; | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2912 | bool arg2 ; | |
2913 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2914 | bool result; | |
2915 | PyObject * obj0 = 0 ; | |
2916 | PyObject * obj1 = 0 ; | |
2917 | PyObject * obj2 = 0 ; | |
2918 | char *kwnames[] = { | |
2919 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2920 | }; | |
2921 | ||
2922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2925 | arg2 = (bool) SWIG_AsBool(obj1); | |
2926 | if (PyErr_Occurred()) SWIG_fail; | |
2927 | if (obj2) { | |
2928 | arg3 = (long) SWIG_AsLong(obj2); | |
2929 | if (PyErr_Occurred()) SWIG_fail; | |
2930 | } | |
2931 | { | |
2932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2933 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2934 | ||
2935 | wxPyEndAllowThreads(__tstate); | |
2936 | if (PyErr_Occurred()) SWIG_fail; | |
2937 | } | |
2938 | { | |
2939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2940 | } | |
2941 | return resultobj; | |
2942 | fail: | |
2943 | return NULL; | |
2944 | } | |
2945 | ||
2946 | ||
2947 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2948 | PyObject *resultobj; | |
2949 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2950 | bool result; | |
2951 | PyObject * obj0 = 0 ; | |
2952 | char *kwnames[] = { | |
2953 | (char *) "self", NULL | |
2954 | }; | |
2955 | ||
2956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2959 | { | |
2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2961 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2962 | ||
2963 | wxPyEndAllowThreads(__tstate); | |
2964 | if (PyErr_Occurred()) SWIG_fail; | |
2965 | } | |
2966 | { | |
2967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2968 | } | |
2969 | return resultobj; | |
2970 | fail: | |
2971 | return NULL; | |
2972 | } | |
2973 | ||
2974 | ||
2975 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2976 | PyObject *resultobj; | |
2977 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2978 | wxString *arg2 = 0 ; | |
2979 | bool temp2 = False ; | |
2980 | PyObject * obj0 = 0 ; | |
2981 | PyObject * obj1 = 0 ; | |
2982 | char *kwnames[] = { | |
2983 | (char *) "self",(char *) "title", NULL | |
2984 | }; | |
2985 | ||
2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2989 | { | |
2990 | arg2 = wxString_in_helper(obj1); | |
2991 | if (arg2 == NULL) SWIG_fail; | |
2992 | temp2 = True; | |
2993 | } | |
2994 | { | |
2995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2996 | (arg1)->SetTitle((wxString const &)*arg2); | |
2997 | ||
2998 | wxPyEndAllowThreads(__tstate); | |
2999 | if (PyErr_Occurred()) SWIG_fail; | |
3000 | } | |
3001 | Py_INCREF(Py_None); resultobj = Py_None; | |
3002 | { | |
3003 | if (temp2) | |
3004 | delete arg2; | |
3005 | } | |
3006 | return resultobj; | |
3007 | fail: | |
3008 | { | |
3009 | if (temp2) | |
3010 | delete arg2; | |
3011 | } | |
3012 | return NULL; | |
3013 | } | |
3014 | ||
3015 | ||
3016 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3017 | PyObject *resultobj; | |
3018 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3019 | wxString result; | |
3020 | PyObject * obj0 = 0 ; | |
3021 | char *kwnames[] = { | |
3022 | (char *) "self", NULL | |
3023 | }; | |
3024 | ||
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3028 | { | |
3029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3030 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3031 | ||
3032 | wxPyEndAllowThreads(__tstate); | |
3033 | if (PyErr_Occurred()) SWIG_fail; | |
3034 | } | |
3035 | { | |
3036 | #if wxUSE_UNICODE | |
3037 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3038 | #else | |
3039 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3040 | #endif | |
3041 | } | |
3042 | return resultobj; | |
3043 | fail: | |
3044 | return NULL; | |
3045 | } | |
3046 | ||
3047 | ||
3048 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3049 | PyObject *resultobj; | |
3050 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3051 | wxRegion *arg2 = 0 ; | |
3052 | bool result; | |
3053 | PyObject * obj0 = 0 ; | |
3054 | PyObject * obj1 = 0 ; | |
3055 | char *kwnames[] = { | |
3056 | (char *) "self",(char *) "region", NULL | |
3057 | }; | |
3058 | ||
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3063 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3064 | SWIG_fail; | |
3065 | if (arg2 == NULL) { | |
3066 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3067 | SWIG_fail; | |
3068 | } | |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
3076 | { | |
3077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3078 | } | |
3079 | return resultobj; | |
3080 | fail: | |
3081 | return NULL; | |
3082 | } | |
3083 | ||
3084 | ||
3085 | static PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3086 | PyObject *resultobj; | |
3087 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3088 | bool arg2 ; | |
3089 | PyObject * obj0 = 0 ; | |
3090 | PyObject * obj1 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "self",(char *) "on", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) goto fail; | |
3096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3098 | arg2 = (bool) SWIG_AsBool(obj1); | |
3099 | if (PyErr_Occurred()) SWIG_fail; | |
3100 | { | |
3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3102 | (arg1)->MacSetMetalAppearance(arg2); | |
3103 | ||
3104 | wxPyEndAllowThreads(__tstate); | |
3105 | if (PyErr_Occurred()) SWIG_fail; | |
3106 | } | |
3107 | Py_INCREF(Py_None); resultobj = Py_None; | |
3108 | return resultobj; | |
3109 | fail: | |
3110 | return NULL; | |
3111 | } | |
3112 | ||
3113 | ||
3114 | static PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3115 | PyObject *resultobj; | |
3116 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3117 | bool result; | |
3118 | PyObject * obj0 = 0 ; | |
3119 | char *kwnames[] = { | |
3120 | (char *) "self", NULL | |
3121 | }; | |
3122 | ||
3123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_MacGetMetalAppearance",kwnames,&obj0)) goto fail; | |
3124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3126 | { | |
3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3128 | result = (bool)((wxTopLevelWindow const *)arg1)->MacGetMetalAppearance(); | |
3129 | ||
3130 | wxPyEndAllowThreads(__tstate); | |
3131 | if (PyErr_Occurred()) SWIG_fail; | |
3132 | } | |
3133 | { | |
3134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3135 | } | |
3136 | return resultobj; | |
3137 | fail: | |
3138 | return NULL; | |
3139 | } | |
3140 | ||
3141 | ||
3142 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3143 | PyObject *obj; | |
3144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3145 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3146 | Py_INCREF(obj); | |
3147 | return Py_BuildValue((char *)""); | |
3148 | } | |
3149 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3150 | PyObject *resultobj; | |
3151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3152 | int arg2 ; | |
3153 | wxString *arg3 = 0 ; | |
3154 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3155 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3156 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3157 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3158 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3159 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3160 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3161 | wxFrame *result; | |
3162 | bool temp3 = False ; | |
3163 | wxPoint temp4 ; | |
3164 | wxSize temp5 ; | |
3165 | bool temp7 = False ; | |
3166 | PyObject * obj0 = 0 ; | |
3167 | PyObject * obj1 = 0 ; | |
3168 | PyObject * obj2 = 0 ; | |
3169 | PyObject * obj3 = 0 ; | |
3170 | PyObject * obj4 = 0 ; | |
3171 | PyObject * obj5 = 0 ; | |
3172 | PyObject * obj6 = 0 ; | |
3173 | char *kwnames[] = { | |
3174 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3175 | }; | |
3176 | ||
3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3180 | arg2 = (int const) SWIG_AsInt(obj1); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | { | |
3183 | arg3 = wxString_in_helper(obj2); | |
3184 | if (arg3 == NULL) SWIG_fail; | |
3185 | temp3 = True; | |
3186 | } | |
3187 | if (obj3) { | |
3188 | { | |
3189 | arg4 = &temp4; | |
3190 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3191 | } | |
3192 | } | |
3193 | if (obj4) { | |
3194 | { | |
3195 | arg5 = &temp5; | |
3196 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3197 | } | |
3198 | } | |
3199 | if (obj5) { | |
3200 | arg6 = (long) SWIG_AsLong(obj5); | |
3201 | if (PyErr_Occurred()) SWIG_fail; | |
3202 | } | |
3203 | if (obj6) { | |
3204 | { | |
3205 | arg7 = wxString_in_helper(obj6); | |
3206 | if (arg7 == NULL) SWIG_fail; | |
3207 | temp7 = True; | |
3208 | } | |
3209 | } | |
3210 | { | |
0439c23b | 3211 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3213 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3214 | ||
3215 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3216 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3217 | } |
3218 | { | |
3219 | resultobj = wxPyMake_wxObject(result); | |
3220 | } | |
3221 | { | |
3222 | if (temp3) | |
3223 | delete arg3; | |
3224 | } | |
3225 | { | |
3226 | if (temp7) | |
3227 | delete arg7; | |
3228 | } | |
3229 | return resultobj; | |
3230 | fail: | |
3231 | { | |
3232 | if (temp3) | |
3233 | delete arg3; | |
3234 | } | |
3235 | { | |
3236 | if (temp7) | |
3237 | delete arg7; | |
3238 | } | |
3239 | return NULL; | |
3240 | } | |
3241 | ||
3242 | ||
3243 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3244 | PyObject *resultobj; | |
3245 | wxFrame *result; | |
3246 | char *kwnames[] = { | |
3247 | NULL | |
3248 | }; | |
3249 | ||
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3251 | { | |
0439c23b | 3252 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3254 | result = (wxFrame *)new wxFrame(); | |
3255 | ||
3256 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3257 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3258 | } |
3259 | { | |
3260 | resultobj = wxPyMake_wxObject(result); | |
3261 | } | |
3262 | return resultobj; | |
3263 | fail: | |
3264 | return NULL; | |
3265 | } | |
3266 | ||
3267 | ||
3268 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject *resultobj; | |
3270 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3271 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3272 | int arg3 ; | |
3273 | wxString *arg4 = 0 ; | |
3274 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3275 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3276 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3277 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3278 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3279 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3280 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3281 | bool result; | |
3282 | bool temp4 = False ; | |
3283 | wxPoint temp5 ; | |
3284 | wxSize temp6 ; | |
3285 | bool temp8 = False ; | |
3286 | PyObject * obj0 = 0 ; | |
3287 | PyObject * obj1 = 0 ; | |
3288 | PyObject * obj2 = 0 ; | |
3289 | PyObject * obj3 = 0 ; | |
3290 | PyObject * obj4 = 0 ; | |
3291 | PyObject * obj5 = 0 ; | |
3292 | PyObject * obj6 = 0 ; | |
3293 | PyObject * obj7 = 0 ; | |
3294 | char *kwnames[] = { | |
3295 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3296 | }; | |
3297 | ||
3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3303 | arg3 = (int const) SWIG_AsInt(obj2); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | { | |
3306 | arg4 = wxString_in_helper(obj3); | |
3307 | if (arg4 == NULL) SWIG_fail; | |
3308 | temp4 = True; | |
3309 | } | |
3310 | if (obj4) { | |
3311 | { | |
3312 | arg5 = &temp5; | |
3313 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3314 | } | |
3315 | } | |
3316 | if (obj5) { | |
3317 | { | |
3318 | arg6 = &temp6; | |
3319 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3320 | } | |
3321 | } | |
3322 | if (obj6) { | |
3323 | arg7 = (long) SWIG_AsLong(obj6); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
3326 | if (obj7) { | |
3327 | { | |
3328 | arg8 = wxString_in_helper(obj7); | |
3329 | if (arg8 == NULL) SWIG_fail; | |
3330 | temp8 = True; | |
3331 | } | |
3332 | } | |
3333 | { | |
3334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3335 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3336 | ||
3337 | wxPyEndAllowThreads(__tstate); | |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
3339 | } | |
3340 | { | |
3341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3342 | } | |
3343 | { | |
3344 | if (temp4) | |
3345 | delete arg4; | |
3346 | } | |
3347 | { | |
3348 | if (temp8) | |
3349 | delete arg8; | |
3350 | } | |
3351 | return resultobj; | |
3352 | fail: | |
3353 | { | |
3354 | if (temp4) | |
3355 | delete arg4; | |
3356 | } | |
3357 | { | |
3358 | if (temp8) | |
3359 | delete arg8; | |
3360 | } | |
3361 | return NULL; | |
3362 | } | |
3363 | ||
3364 | ||
3365 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3366 | PyObject *resultobj; | |
3367 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3368 | wxPoint result; | |
3369 | PyObject * obj0 = 0 ; | |
3370 | char *kwnames[] = { | |
3371 | (char *) "self", NULL | |
3372 | }; | |
3373 | ||
3374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3377 | { | |
3378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3379 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3380 | ||
3381 | wxPyEndAllowThreads(__tstate); | |
3382 | if (PyErr_Occurred()) SWIG_fail; | |
3383 | } | |
3384 | { | |
3385 | wxPoint * resultptr; | |
3386 | resultptr = new wxPoint((wxPoint &) result); | |
3387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3388 | } | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
3395 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject *resultobj; | |
3397 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3398 | PyObject * obj0 = 0 ; | |
3399 | char *kwnames[] = { | |
3400 | (char *) "self", NULL | |
3401 | }; | |
3402 | ||
3403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3406 | { | |
3407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3408 | (arg1)->SendSizeEvent(); | |
3409 | ||
3410 | wxPyEndAllowThreads(__tstate); | |
3411 | if (PyErr_Occurred()) SWIG_fail; | |
3412 | } | |
3413 | Py_INCREF(Py_None); resultobj = Py_None; | |
3414 | return resultobj; | |
3415 | fail: | |
3416 | return NULL; | |
3417 | } | |
3418 | ||
3419 | ||
3420 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3421 | PyObject *resultobj; | |
3422 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3423 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3424 | PyObject * obj0 = 0 ; | |
3425 | PyObject * obj1 = 0 ; | |
3426 | char *kwnames[] = { | |
3427 | (char *) "self",(char *) "menubar", NULL | |
3428 | }; | |
3429 | ||
3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | (arg1)->SetMenuBar(arg2); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | Py_INCREF(Py_None); resultobj = Py_None; | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
3449 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3450 | PyObject *resultobj; | |
3451 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3452 | wxMenuBar *result; | |
3453 | PyObject * obj0 = 0 ; | |
3454 | char *kwnames[] = { | |
3455 | (char *) "self", NULL | |
3456 | }; | |
3457 | ||
3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3461 | { | |
3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3463 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3464 | ||
3465 | wxPyEndAllowThreads(__tstate); | |
3466 | if (PyErr_Occurred()) SWIG_fail; | |
3467 | } | |
3468 | { | |
3469 | resultobj = wxPyMake_wxObject(result); | |
3470 | } | |
3471 | return resultobj; | |
3472 | fail: | |
3473 | return NULL; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject *resultobj; | |
3479 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3480 | int arg2 ; | |
3481 | bool result; | |
3482 | PyObject * obj0 = 0 ; | |
3483 | PyObject * obj1 = 0 ; | |
3484 | char *kwnames[] = { | |
3485 | (char *) "self",(char *) "winid", NULL | |
3486 | }; | |
3487 | ||
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3491 | arg2 = (int) SWIG_AsInt(obj1); | |
3492 | if (PyErr_Occurred()) SWIG_fail; | |
3493 | { | |
3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3495 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3496 | ||
3497 | wxPyEndAllowThreads(__tstate); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | } | |
3500 | { | |
3501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3502 | } | |
3503 | return resultobj; | |
3504 | fail: | |
3505 | return NULL; | |
3506 | } | |
3507 | ||
3508 | ||
3509 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3510 | PyObject *resultobj; | |
3511 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3512 | int arg2 = (int) 1 ; | |
3513 | long arg3 = (long) wxST_SIZEGRIP ; | |
3514 | int arg4 = (int) 0 ; | |
3515 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3516 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3517 | wxStatusBar *result; | |
3518 | bool temp5 = False ; | |
3519 | PyObject * obj0 = 0 ; | |
3520 | PyObject * obj1 = 0 ; | |
3521 | PyObject * obj2 = 0 ; | |
3522 | PyObject * obj3 = 0 ; | |
3523 | PyObject * obj4 = 0 ; | |
3524 | char *kwnames[] = { | |
3525 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3526 | }; | |
3527 | ||
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3531 | if (obj1) { | |
3532 | arg2 = (int) SWIG_AsInt(obj1); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
3534 | } | |
3535 | if (obj2) { | |
3536 | arg3 = (long) SWIG_AsLong(obj2); | |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
3538 | } | |
3539 | if (obj3) { | |
3540 | arg4 = (int) SWIG_AsInt(obj3); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | if (obj4) { | |
3544 | { | |
3545 | arg5 = wxString_in_helper(obj4); | |
3546 | if (arg5 == NULL) SWIG_fail; | |
3547 | temp5 = True; | |
3548 | } | |
3549 | } | |
3550 | { | |
3551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3552 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3553 | ||
3554 | wxPyEndAllowThreads(__tstate); | |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
3556 | } | |
3557 | { | |
3558 | resultobj = wxPyMake_wxObject(result); | |
3559 | } | |
3560 | { | |
3561 | if (temp5) | |
3562 | delete arg5; | |
3563 | } | |
3564 | return resultobj; | |
3565 | fail: | |
3566 | { | |
3567 | if (temp5) | |
3568 | delete arg5; | |
3569 | } | |
3570 | return NULL; | |
3571 | } | |
3572 | ||
3573 | ||
3574 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3575 | PyObject *resultobj; | |
3576 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3577 | wxStatusBar *result; | |
3578 | PyObject * obj0 = 0 ; | |
3579 | char *kwnames[] = { | |
3580 | (char *) "self", NULL | |
3581 | }; | |
3582 | ||
3583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3586 | { | |
3587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3588 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3589 | ||
3590 | wxPyEndAllowThreads(__tstate); | |
3591 | if (PyErr_Occurred()) SWIG_fail; | |
3592 | } | |
3593 | { | |
3594 | resultobj = wxPyMake_wxObject(result); | |
3595 | } | |
3596 | return resultobj; | |
3597 | fail: | |
3598 | return NULL; | |
3599 | } | |
3600 | ||
3601 | ||
3602 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject *resultobj; | |
3604 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3605 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3606 | PyObject * obj0 = 0 ; | |
3607 | PyObject * obj1 = 0 ; | |
3608 | char *kwnames[] = { | |
3609 | (char *) "self",(char *) "statBar", NULL | |
3610 | }; | |
3611 | ||
3612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3617 | { | |
3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3619 | (arg1)->SetStatusBar(arg2); | |
3620 | ||
3621 | wxPyEndAllowThreads(__tstate); | |
3622 | if (PyErr_Occurred()) SWIG_fail; | |
3623 | } | |
3624 | Py_INCREF(Py_None); resultobj = Py_None; | |
3625 | return resultobj; | |
3626 | fail: | |
3627 | return NULL; | |
3628 | } | |
3629 | ||
3630 | ||
3631 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3632 | PyObject *resultobj; | |
3633 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3634 | wxString *arg2 = 0 ; | |
3635 | int arg3 = (int) 0 ; | |
3636 | bool temp2 = False ; | |
3637 | PyObject * obj0 = 0 ; | |
3638 | PyObject * obj1 = 0 ; | |
3639 | PyObject * obj2 = 0 ; | |
3640 | char *kwnames[] = { | |
3641 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3642 | }; | |
3643 | ||
3644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3647 | { | |
3648 | arg2 = wxString_in_helper(obj1); | |
3649 | if (arg2 == NULL) SWIG_fail; | |
3650 | temp2 = True; | |
3651 | } | |
3652 | if (obj2) { | |
3653 | arg3 = (int) SWIG_AsInt(obj2); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
3655 | } | |
3656 | { | |
3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3658 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3659 | ||
3660 | wxPyEndAllowThreads(__tstate); | |
3661 | if (PyErr_Occurred()) SWIG_fail; | |
3662 | } | |
3663 | Py_INCREF(Py_None); resultobj = Py_None; | |
3664 | { | |
3665 | if (temp2) | |
3666 | delete arg2; | |
3667 | } | |
3668 | return resultobj; | |
3669 | fail: | |
3670 | { | |
3671 | if (temp2) | |
3672 | delete arg2; | |
3673 | } | |
3674 | return NULL; | |
3675 | } | |
3676 | ||
3677 | ||
3678 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3679 | PyObject *resultobj; | |
3680 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3681 | int arg2 ; | |
3682 | int *arg3 = (int *) 0 ; | |
3683 | PyObject * obj0 = 0 ; | |
3684 | PyObject * obj1 = 0 ; | |
3685 | char *kwnames[] = { | |
3686 | (char *) "self",(char *) "widths", NULL | |
3687 | }; | |
3688 | ||
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3692 | { | |
3693 | arg2 = PyList_Size(obj1); | |
3694 | arg3 = int_LIST_helper(obj1); | |
3695 | if (arg3 == NULL) SWIG_fail; | |
3696 | } | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | Py_INCREF(Py_None); resultobj = Py_None; | |
3705 | { | |
3706 | if (arg3) delete [] arg3; | |
3707 | } | |
3708 | return resultobj; | |
3709 | fail: | |
3710 | { | |
3711 | if (arg3) delete [] arg3; | |
3712 | } | |
3713 | return NULL; | |
3714 | } | |
3715 | ||
3716 | ||
3717 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3718 | PyObject *resultobj; | |
3719 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3720 | wxString *arg2 = 0 ; | |
3721 | int arg3 = (int) 0 ; | |
3722 | bool temp2 = False ; | |
3723 | PyObject * obj0 = 0 ; | |
3724 | PyObject * obj1 = 0 ; | |
3725 | PyObject * obj2 = 0 ; | |
3726 | char *kwnames[] = { | |
3727 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3728 | }; | |
3729 | ||
3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3733 | { | |
3734 | arg2 = wxString_in_helper(obj1); | |
3735 | if (arg2 == NULL) SWIG_fail; | |
3736 | temp2 = True; | |
3737 | } | |
3738 | if (obj2) { | |
3739 | arg3 = (int) SWIG_AsInt(obj2); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
3742 | { | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | } | |
3749 | Py_INCREF(Py_None); resultobj = Py_None; | |
3750 | { | |
3751 | if (temp2) | |
3752 | delete arg2; | |
3753 | } | |
3754 | return resultobj; | |
3755 | fail: | |
3756 | { | |
3757 | if (temp2) | |
3758 | delete arg2; | |
3759 | } | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
3764 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject *resultobj; | |
3766 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3767 | int arg2 = (int) 0 ; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | PyObject * obj1 = 0 ; | |
3770 | char *kwnames[] = { | |
3771 | (char *) "self",(char *) "number", NULL | |
3772 | }; | |
3773 | ||
3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3777 | if (obj1) { | |
3778 | arg2 = (int) SWIG_AsInt(obj1); | |
3779 | if (PyErr_Occurred()) SWIG_fail; | |
3780 | } | |
3781 | { | |
3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3783 | (arg1)->PopStatusText(arg2); | |
3784 | ||
3785 | wxPyEndAllowThreads(__tstate); | |
3786 | if (PyErr_Occurred()) SWIG_fail; | |
3787 | } | |
3788 | Py_INCREF(Py_None); resultobj = Py_None; | |
3789 | return resultobj; | |
3790 | fail: | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
3795 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3796 | PyObject *resultobj; | |
3797 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3798 | int arg2 ; | |
3799 | PyObject * obj0 = 0 ; | |
3800 | PyObject * obj1 = 0 ; | |
3801 | char *kwnames[] = { | |
3802 | (char *) "self",(char *) "n", NULL | |
3803 | }; | |
3804 | ||
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3808 | arg2 = (int) SWIG_AsInt(obj1); | |
3809 | if (PyErr_Occurred()) SWIG_fail; | |
3810 | { | |
3811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3812 | (arg1)->SetStatusBarPane(arg2); | |
3813 | ||
3814 | wxPyEndAllowThreads(__tstate); | |
3815 | if (PyErr_Occurred()) SWIG_fail; | |
3816 | } | |
3817 | Py_INCREF(Py_None); resultobj = Py_None; | |
3818 | return resultobj; | |
3819 | fail: | |
3820 | return NULL; | |
3821 | } | |
3822 | ||
3823 | ||
3824 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3825 | PyObject *resultobj; | |
3826 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3827 | int result; | |
3828 | PyObject * obj0 = 0 ; | |
3829 | char *kwnames[] = { | |
3830 | (char *) "self", NULL | |
3831 | }; | |
3832 | ||
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3836 | { | |
3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3838 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3839 | ||
3840 | wxPyEndAllowThreads(__tstate); | |
3841 | if (PyErr_Occurred()) SWIG_fail; | |
3842 | } | |
3843 | resultobj = SWIG_FromInt((int)result); | |
3844 | return resultobj; | |
3845 | fail: | |
3846 | return NULL; | |
3847 | } | |
3848 | ||
3849 | ||
3850 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject *resultobj; | |
3852 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3853 | long arg2 = (long) -1 ; | |
3854 | int arg3 = (int) -1 ; | |
3855 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3856 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3857 | wxToolBar *result; | |
3858 | bool temp4 = False ; | |
3859 | PyObject * obj0 = 0 ; | |
3860 | PyObject * obj1 = 0 ; | |
3861 | PyObject * obj2 = 0 ; | |
3862 | PyObject * obj3 = 0 ; | |
3863 | char *kwnames[] = { | |
3864 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3865 | }; | |
3866 | ||
3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3870 | if (obj1) { | |
3871 | arg2 = (long) SWIG_AsLong(obj1); | |
3872 | if (PyErr_Occurred()) SWIG_fail; | |
3873 | } | |
3874 | if (obj2) { | |
3875 | arg3 = (int) SWIG_AsInt(obj2); | |
3876 | if (PyErr_Occurred()) SWIG_fail; | |
3877 | } | |
3878 | if (obj3) { | |
3879 | { | |
3880 | arg4 = wxString_in_helper(obj3); | |
3881 | if (arg4 == NULL) SWIG_fail; | |
3882 | temp4 = True; | |
3883 | } | |
3884 | } | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | { | |
3893 | resultobj = wxPyMake_wxObject(result); | |
3894 | } | |
3895 | { | |
3896 | if (temp4) | |
3897 | delete arg4; | |
3898 | } | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | { | |
3902 | if (temp4) | |
3903 | delete arg4; | |
3904 | } | |
3905 | return NULL; | |
3906 | } | |
3907 | ||
3908 | ||
3909 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject *resultobj; | |
3911 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3912 | wxToolBar *result; | |
3913 | PyObject * obj0 = 0 ; | |
3914 | char *kwnames[] = { | |
3915 | (char *) "self", NULL | |
3916 | }; | |
3917 | ||
3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3921 | { | |
3922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3923 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3924 | ||
3925 | wxPyEndAllowThreads(__tstate); | |
3926 | if (PyErr_Occurred()) SWIG_fail; | |
3927 | } | |
3928 | { | |
3929 | resultobj = wxPyMake_wxObject(result); | |
3930 | } | |
3931 | return resultobj; | |
3932 | fail: | |
3933 | return NULL; | |
3934 | } | |
3935 | ||
3936 | ||
3937 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject *resultobj; | |
3939 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3940 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3941 | PyObject * obj0 = 0 ; | |
3942 | PyObject * obj1 = 0 ; | |
3943 | char *kwnames[] = { | |
3944 | (char *) "self",(char *) "toolbar", NULL | |
3945 | }; | |
3946 | ||
3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3952 | { | |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | (arg1)->SetToolBar(arg2); | |
3955 | ||
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
3959 | Py_INCREF(Py_None); resultobj = Py_None; | |
3960 | return resultobj; | |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
3966 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject *resultobj; | |
3968 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3969 | wxString *arg2 = 0 ; | |
3970 | bool arg3 ; | |
3971 | bool temp2 = False ; | |
3972 | PyObject * obj0 = 0 ; | |
3973 | PyObject * obj1 = 0 ; | |
3974 | PyObject * obj2 = 0 ; | |
3975 | char *kwnames[] = { | |
3976 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3977 | }; | |
3978 | ||
3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3982 | { | |
3983 | arg2 = wxString_in_helper(obj1); | |
3984 | if (arg2 == NULL) SWIG_fail; | |
3985 | temp2 = True; | |
3986 | } | |
3987 | arg3 = (bool) SWIG_AsBool(obj2); | |
3988 | if (PyErr_Occurred()) SWIG_fail; | |
3989 | { | |
3990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3991 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3992 | ||
3993 | wxPyEndAllowThreads(__tstate); | |
3994 | if (PyErr_Occurred()) SWIG_fail; | |
3995 | } | |
3996 | Py_INCREF(Py_None); resultobj = Py_None; | |
3997 | { | |
3998 | if (temp2) | |
3999 | delete arg2; | |
4000 | } | |
4001 | return resultobj; | |
4002 | fail: | |
4003 | { | |
4004 | if (temp2) | |
4005 | delete arg2; | |
4006 | } | |
4007 | return NULL; | |
4008 | } | |
4009 | ||
4010 | ||
4011 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4012 | PyObject *resultobj; | |
4013 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4014 | wxMenu *arg2 = (wxMenu *) NULL ; | |
4015 | PyObject * obj0 = 0 ; | |
4016 | PyObject * obj1 = 0 ; | |
4017 | char *kwnames[] = { | |
4018 | (char *) "self",(char *) "menu", NULL | |
4019 | }; | |
4020 | ||
4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
4022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4024 | if (obj1) { | |
4025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
4026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4027 | } | |
4028 | { | |
4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4030 | (arg1)->DoMenuUpdates(arg2); | |
4031 | ||
4032 | wxPyEndAllowThreads(__tstate); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | } | |
4035 | Py_INCREF(Py_None); resultobj = Py_None; | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | return NULL; | |
4039 | } | |
4040 | ||
4041 | ||
f20a2e1f RD |
4042 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4043 | PyObject *resultobj; | |
4044 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4045 | wxVisualAttributes result; | |
4046 | PyObject * obj0 = 0 ; | |
4047 | char *kwnames[] = { | |
4048 | (char *) "variant", NULL | |
4049 | }; | |
4050 | ||
4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4052 | if (obj0) { | |
4053 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4054 | if (PyErr_Occurred()) SWIG_fail; | |
4055 | } | |
4056 | { | |
0439c23b | 4057 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4059 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4060 | ||
4061 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4062 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4063 | } |
4064 | { | |
4065 | wxVisualAttributes * resultptr; | |
4066 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4067 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4068 | } | |
4069 | return resultobj; | |
4070 | fail: | |
4071 | return NULL; | |
4072 | } | |
4073 | ||
4074 | ||
d55e5bfc RD |
4075 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { |
4076 | PyObject *obj; | |
4077 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4078 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4079 | Py_INCREF(obj); | |
4080 | return Py_BuildValue((char *)""); | |
4081 | } | |
4082 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4083 | PyObject *resultobj; | |
4084 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4085 | int arg2 ; | |
4086 | wxString *arg3 = 0 ; | |
4087 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4088 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4089 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4090 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4091 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4092 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4093 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4094 | wxDialog *result; | |
4095 | bool temp3 = False ; | |
4096 | wxPoint temp4 ; | |
4097 | wxSize temp5 ; | |
4098 | bool temp7 = False ; | |
4099 | PyObject * obj0 = 0 ; | |
4100 | PyObject * obj1 = 0 ; | |
4101 | PyObject * obj2 = 0 ; | |
4102 | PyObject * obj3 = 0 ; | |
4103 | PyObject * obj4 = 0 ; | |
4104 | PyObject * obj5 = 0 ; | |
4105 | PyObject * obj6 = 0 ; | |
4106 | char *kwnames[] = { | |
4107 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4108 | }; | |
4109 | ||
4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4113 | arg2 = (int const) SWIG_AsInt(obj1); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | { | |
4116 | arg3 = wxString_in_helper(obj2); | |
4117 | if (arg3 == NULL) SWIG_fail; | |
4118 | temp3 = True; | |
4119 | } | |
4120 | if (obj3) { | |
4121 | { | |
4122 | arg4 = &temp4; | |
4123 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4124 | } | |
4125 | } | |
4126 | if (obj4) { | |
4127 | { | |
4128 | arg5 = &temp5; | |
4129 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4130 | } | |
4131 | } | |
4132 | if (obj5) { | |
4133 | arg6 = (long) SWIG_AsLong(obj5); | |
4134 | if (PyErr_Occurred()) SWIG_fail; | |
4135 | } | |
4136 | if (obj6) { | |
4137 | { | |
4138 | arg7 = wxString_in_helper(obj6); | |
4139 | if (arg7 == NULL) SWIG_fail; | |
4140 | temp7 = True; | |
4141 | } | |
4142 | } | |
4143 | { | |
0439c23b | 4144 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4146 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4147 | ||
4148 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4149 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4150 | } |
e058867b RD |
4151 | { |
4152 | resultobj = wxPyMake_wxObject(result); | |
4153 | } | |
d55e5bfc RD |
4154 | { |
4155 | if (temp3) | |
4156 | delete arg3; | |
4157 | } | |
4158 | { | |
4159 | if (temp7) | |
4160 | delete arg7; | |
4161 | } | |
4162 | return resultobj; | |
4163 | fail: | |
4164 | { | |
4165 | if (temp3) | |
4166 | delete arg3; | |
4167 | } | |
4168 | { | |
4169 | if (temp7) | |
4170 | delete arg7; | |
4171 | } | |
4172 | return NULL; | |
4173 | } | |
4174 | ||
4175 | ||
4176 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4177 | PyObject *resultobj; | |
4178 | wxDialog *result; | |
4179 | char *kwnames[] = { | |
4180 | NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4184 | { | |
0439c23b | 4185 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4187 | result = (wxDialog *)new wxDialog(); | |
4188 | ||
4189 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4190 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4191 | } |
e058867b RD |
4192 | { |
4193 | resultobj = wxPyMake_wxObject(result); | |
4194 | } | |
d55e5bfc RD |
4195 | return resultobj; |
4196 | fail: | |
4197 | return NULL; | |
4198 | } | |
4199 | ||
4200 | ||
4201 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4202 | PyObject *resultobj; | |
4203 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4204 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4205 | int arg3 ; | |
4206 | wxString *arg4 = 0 ; | |
4207 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4208 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4209 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4210 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4211 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4212 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4213 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4214 | bool result; | |
4215 | bool temp4 = False ; | |
4216 | wxPoint temp5 ; | |
4217 | wxSize temp6 ; | |
4218 | bool temp8 = False ; | |
4219 | PyObject * obj0 = 0 ; | |
4220 | PyObject * obj1 = 0 ; | |
4221 | PyObject * obj2 = 0 ; | |
4222 | PyObject * obj3 = 0 ; | |
4223 | PyObject * obj4 = 0 ; | |
4224 | PyObject * obj5 = 0 ; | |
4225 | PyObject * obj6 = 0 ; | |
4226 | PyObject * obj7 = 0 ; | |
4227 | char *kwnames[] = { | |
4228 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4229 | }; | |
4230 | ||
4231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4234 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4236 | arg3 = (int const) SWIG_AsInt(obj2); | |
4237 | if (PyErr_Occurred()) SWIG_fail; | |
4238 | { | |
4239 | arg4 = wxString_in_helper(obj3); | |
4240 | if (arg4 == NULL) SWIG_fail; | |
4241 | temp4 = True; | |
4242 | } | |
4243 | if (obj4) { | |
4244 | { | |
4245 | arg5 = &temp5; | |
4246 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4247 | } | |
4248 | } | |
4249 | if (obj5) { | |
4250 | { | |
4251 | arg6 = &temp6; | |
4252 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4253 | } | |
4254 | } | |
4255 | if (obj6) { | |
4256 | arg7 = (long) SWIG_AsLong(obj6); | |
4257 | if (PyErr_Occurred()) SWIG_fail; | |
4258 | } | |
4259 | if (obj7) { | |
4260 | { | |
4261 | arg8 = wxString_in_helper(obj7); | |
4262 | if (arg8 == NULL) SWIG_fail; | |
4263 | temp8 = True; | |
4264 | } | |
4265 | } | |
4266 | { | |
4267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4268 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4269 | ||
4270 | wxPyEndAllowThreads(__tstate); | |
4271 | if (PyErr_Occurred()) SWIG_fail; | |
4272 | } | |
4273 | { | |
4274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4275 | } | |
4276 | { | |
4277 | if (temp4) | |
4278 | delete arg4; | |
4279 | } | |
4280 | { | |
4281 | if (temp8) | |
4282 | delete arg8; | |
4283 | } | |
4284 | return resultobj; | |
4285 | fail: | |
4286 | { | |
4287 | if (temp4) | |
4288 | delete arg4; | |
4289 | } | |
4290 | { | |
4291 | if (temp8) | |
4292 | delete arg8; | |
4293 | } | |
4294 | return NULL; | |
4295 | } | |
4296 | ||
4297 | ||
4298 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4299 | PyObject *resultobj; | |
4300 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4301 | int arg2 ; | |
4302 | PyObject * obj0 = 0 ; | |
4303 | PyObject * obj1 = 0 ; | |
4304 | char *kwnames[] = { | |
4305 | (char *) "self",(char *) "returnCode", NULL | |
4306 | }; | |
4307 | ||
4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4311 | arg2 = (int) SWIG_AsInt(obj1); | |
4312 | if (PyErr_Occurred()) SWIG_fail; | |
4313 | { | |
4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4315 | (arg1)->SetReturnCode(arg2); | |
4316 | ||
4317 | wxPyEndAllowThreads(__tstate); | |
4318 | if (PyErr_Occurred()) SWIG_fail; | |
4319 | } | |
4320 | Py_INCREF(Py_None); resultobj = Py_None; | |
4321 | return resultobj; | |
4322 | fail: | |
4323 | return NULL; | |
4324 | } | |
4325 | ||
4326 | ||
4327 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4328 | PyObject *resultobj; | |
4329 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4330 | int result; | |
4331 | PyObject * obj0 = 0 ; | |
4332 | char *kwnames[] = { | |
4333 | (char *) "self", NULL | |
4334 | }; | |
4335 | ||
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4339 | { | |
4340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4341 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4342 | ||
4343 | wxPyEndAllowThreads(__tstate); | |
4344 | if (PyErr_Occurred()) SWIG_fail; | |
4345 | } | |
4346 | resultobj = SWIG_FromInt((int)result); | |
4347 | return resultobj; | |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj; | |
4355 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4356 | wxString *arg2 = 0 ; | |
4357 | wxSizer *result; | |
4358 | bool temp2 = False ; | |
4359 | PyObject * obj0 = 0 ; | |
4360 | PyObject * obj1 = 0 ; | |
4361 | char *kwnames[] = { | |
4362 | (char *) "self",(char *) "message", NULL | |
4363 | }; | |
4364 | ||
4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4368 | { | |
4369 | arg2 = wxString_in_helper(obj1); | |
4370 | if (arg2 == NULL) SWIG_fail; | |
4371 | temp2 = True; | |
4372 | } | |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4375 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4376 | ||
4377 | wxPyEndAllowThreads(__tstate); | |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | { | |
4381 | resultobj = wxPyMake_wxSizer(result); | |
4382 | } | |
4383 | { | |
4384 | if (temp2) | |
4385 | delete arg2; | |
4386 | } | |
4387 | return resultobj; | |
4388 | fail: | |
4389 | { | |
4390 | if (temp2) | |
4391 | delete arg2; | |
4392 | } | |
4393 | return NULL; | |
4394 | } | |
4395 | ||
4396 | ||
4397 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4398 | PyObject *resultobj; | |
4399 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4400 | long arg2 ; | |
4401 | wxSizer *result; | |
4402 | PyObject * obj0 = 0 ; | |
4403 | PyObject * obj1 = 0 ; | |
4404 | char *kwnames[] = { | |
4405 | (char *) "self",(char *) "flags", NULL | |
4406 | }; | |
4407 | ||
4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4411 | arg2 = (long) SWIG_AsLong(obj1); | |
4412 | if (PyErr_Occurred()) SWIG_fail; | |
4413 | { | |
4414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4415 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4416 | ||
4417 | wxPyEndAllowThreads(__tstate); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
4420 | { | |
4421 | resultobj = wxPyMake_wxSizer(result); | |
4422 | } | |
4423 | return resultobj; | |
4424 | fail: | |
4425 | return NULL; | |
4426 | } | |
4427 | ||
4428 | ||
4429 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4430 | PyObject *resultobj; | |
4431 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4432 | bool result; | |
4433 | PyObject * obj0 = 0 ; | |
4434 | char *kwnames[] = { | |
4435 | (char *) "self", NULL | |
4436 | }; | |
4437 | ||
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4441 | { | |
4442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4443 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4444 | ||
4445 | wxPyEndAllowThreads(__tstate); | |
4446 | if (PyErr_Occurred()) SWIG_fail; | |
4447 | } | |
4448 | { | |
4449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4450 | } | |
4451 | return resultobj; | |
4452 | fail: | |
4453 | return NULL; | |
4454 | } | |
4455 | ||
4456 | ||
4457 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4458 | PyObject *resultobj; | |
4459 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4460 | int result; | |
4461 | PyObject * obj0 = 0 ; | |
4462 | char *kwnames[] = { | |
4463 | (char *) "self", NULL | |
4464 | }; | |
4465 | ||
4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | result = (int)(arg1)->ShowModal(); | |
4472 | ||
4473 | wxPyEndAllowThreads(__tstate); | |
4474 | if (PyErr_Occurred()) SWIG_fail; | |
4475 | } | |
4476 | resultobj = SWIG_FromInt((int)result); | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
4483 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4484 | PyObject *resultobj; | |
4485 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4486 | int arg2 ; | |
4487 | PyObject * obj0 = 0 ; | |
4488 | PyObject * obj1 = 0 ; | |
4489 | char *kwnames[] = { | |
4490 | (char *) "self",(char *) "retCode", NULL | |
4491 | }; | |
4492 | ||
4493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4496 | arg2 = (int) SWIG_AsInt(obj1); | |
4497 | if (PyErr_Occurred()) SWIG_fail; | |
4498 | { | |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4500 | (arg1)->EndModal(arg2); | |
4501 | ||
4502 | wxPyEndAllowThreads(__tstate); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
4504 | } | |
4505 | Py_INCREF(Py_None); resultobj = Py_None; | |
4506 | return resultobj; | |
4507 | fail: | |
4508 | return NULL; | |
4509 | } | |
4510 | ||
4511 | ||
f20a2e1f RD |
4512 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4513 | PyObject *resultobj; | |
4514 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4515 | wxVisualAttributes result; | |
4516 | PyObject * obj0 = 0 ; | |
4517 | char *kwnames[] = { | |
4518 | (char *) "variant", NULL | |
4519 | }; | |
4520 | ||
4521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4522 | if (obj0) { | |
4523 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4524 | if (PyErr_Occurred()) SWIG_fail; | |
4525 | } | |
4526 | { | |
0439c23b | 4527 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4529 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4530 | ||
4531 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4532 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4533 | } |
4534 | { | |
4535 | wxVisualAttributes * resultptr; | |
4536 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4537 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4538 | } | |
4539 | return resultobj; | |
4540 | fail: | |
4541 | return NULL; | |
4542 | } | |
4543 | ||
4544 | ||
d55e5bfc RD |
4545 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { |
4546 | PyObject *obj; | |
4547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4548 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4549 | Py_INCREF(obj); | |
4550 | return Py_BuildValue((char *)""); | |
4551 | } | |
4552 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject *resultobj; | |
4554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4555 | int arg2 ; | |
4556 | wxString *arg3 = 0 ; | |
4557 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4558 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4559 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4560 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4561 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4562 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4563 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4564 | wxMiniFrame *result; | |
4565 | bool temp3 = False ; | |
4566 | wxPoint temp4 ; | |
4567 | wxSize temp5 ; | |
4568 | bool temp7 = False ; | |
4569 | PyObject * obj0 = 0 ; | |
4570 | PyObject * obj1 = 0 ; | |
4571 | PyObject * obj2 = 0 ; | |
4572 | PyObject * obj3 = 0 ; | |
4573 | PyObject * obj4 = 0 ; | |
4574 | PyObject * obj5 = 0 ; | |
4575 | PyObject * obj6 = 0 ; | |
4576 | char *kwnames[] = { | |
4577 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4578 | }; | |
4579 | ||
4580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4583 | arg2 = (int const) SWIG_AsInt(obj1); | |
4584 | if (PyErr_Occurred()) SWIG_fail; | |
4585 | { | |
4586 | arg3 = wxString_in_helper(obj2); | |
4587 | if (arg3 == NULL) SWIG_fail; | |
4588 | temp3 = True; | |
4589 | } | |
4590 | if (obj3) { | |
4591 | { | |
4592 | arg4 = &temp4; | |
4593 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4594 | } | |
4595 | } | |
4596 | if (obj4) { | |
4597 | { | |
4598 | arg5 = &temp5; | |
4599 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4600 | } | |
4601 | } | |
4602 | if (obj5) { | |
4603 | arg6 = (long) SWIG_AsLong(obj5); | |
4604 | if (PyErr_Occurred()) SWIG_fail; | |
4605 | } | |
4606 | if (obj6) { | |
4607 | { | |
4608 | arg7 = wxString_in_helper(obj6); | |
4609 | if (arg7 == NULL) SWIG_fail; | |
4610 | temp7 = True; | |
4611 | } | |
4612 | } | |
4613 | { | |
0439c23b | 4614 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4616 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4617 | ||
4618 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4619 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4620 | } |
4621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4622 | { | |
4623 | if (temp3) | |
4624 | delete arg3; | |
4625 | } | |
4626 | { | |
4627 | if (temp7) | |
4628 | delete arg7; | |
4629 | } | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | { | |
4633 | if (temp3) | |
4634 | delete arg3; | |
4635 | } | |
4636 | { | |
4637 | if (temp7) | |
4638 | delete arg7; | |
4639 | } | |
4640 | return NULL; | |
4641 | } | |
4642 | ||
4643 | ||
4644 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4645 | PyObject *resultobj; | |
4646 | wxMiniFrame *result; | |
4647 | char *kwnames[] = { | |
4648 | NULL | |
4649 | }; | |
4650 | ||
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4652 | { | |
0439c23b | 4653 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4655 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4656 | ||
4657 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4658 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4659 | } |
4660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4661 | return resultobj; | |
4662 | fail: | |
4663 | return NULL; | |
4664 | } | |
4665 | ||
4666 | ||
4667 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4668 | PyObject *resultobj; | |
4669 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4670 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4671 | int arg3 ; | |
4672 | wxString *arg4 = 0 ; | |
4673 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4674 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4675 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4676 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4677 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4678 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4679 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4680 | bool result; | |
4681 | bool temp4 = False ; | |
4682 | wxPoint temp5 ; | |
4683 | wxSize temp6 ; | |
4684 | bool temp8 = False ; | |
4685 | PyObject * obj0 = 0 ; | |
4686 | PyObject * obj1 = 0 ; | |
4687 | PyObject * obj2 = 0 ; | |
4688 | PyObject * obj3 = 0 ; | |
4689 | PyObject * obj4 = 0 ; | |
4690 | PyObject * obj5 = 0 ; | |
4691 | PyObject * obj6 = 0 ; | |
4692 | PyObject * obj7 = 0 ; | |
4693 | char *kwnames[] = { | |
4694 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4695 | }; | |
4696 | ||
4697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, | |
4699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4702 | arg3 = (int const) SWIG_AsInt(obj2); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | { | |
4705 | arg4 = wxString_in_helper(obj3); | |
4706 | if (arg4 == NULL) SWIG_fail; | |
4707 | temp4 = True; | |
4708 | } | |
4709 | if (obj4) { | |
4710 | { | |
4711 | arg5 = &temp5; | |
4712 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4713 | } | |
4714 | } | |
4715 | if (obj5) { | |
4716 | { | |
4717 | arg6 = &temp6; | |
4718 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4719 | } | |
4720 | } | |
4721 | if (obj6) { | |
4722 | arg7 = (long) SWIG_AsLong(obj6); | |
4723 | if (PyErr_Occurred()) SWIG_fail; | |
4724 | } | |
4725 | if (obj7) { | |
4726 | { | |
4727 | arg8 = wxString_in_helper(obj7); | |
4728 | if (arg8 == NULL) SWIG_fail; | |
4729 | temp8 = True; | |
4730 | } | |
4731 | } | |
4732 | { | |
4733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4734 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4735 | ||
4736 | wxPyEndAllowThreads(__tstate); | |
4737 | if (PyErr_Occurred()) SWIG_fail; | |
4738 | } | |
4739 | { | |
4740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4741 | } | |
4742 | { | |
4743 | if (temp4) | |
4744 | delete arg4; | |
4745 | } | |
4746 | { | |
4747 | if (temp8) | |
4748 | delete arg8; | |
4749 | } | |
4750 | return resultobj; | |
4751 | fail: | |
4752 | { | |
4753 | if (temp4) | |
4754 | delete arg4; | |
4755 | } | |
4756 | { | |
4757 | if (temp8) | |
4758 | delete arg8; | |
4759 | } | |
4760 | return NULL; | |
4761 | } | |
4762 | ||
4763 | ||
4764 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4765 | PyObject *obj; | |
4766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4767 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4768 | Py_INCREF(obj); | |
4769 | return Py_BuildValue((char *)""); | |
4770 | } | |
4771 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4772 | PyObject *resultobj; | |
4773 | wxBitmap *arg1 = 0 ; | |
4774 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4775 | int arg3 ; | |
4776 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4777 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4778 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4779 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4780 | long arg6 = (long) wxNO_BORDER ; | |
4781 | wxSplashScreenWindow *result; | |
4782 | wxPoint temp4 ; | |
4783 | wxSize temp5 ; | |
4784 | PyObject * obj0 = 0 ; | |
4785 | PyObject * obj1 = 0 ; | |
4786 | PyObject * obj2 = 0 ; | |
4787 | PyObject * obj3 = 0 ; | |
4788 | PyObject * obj4 = 0 ; | |
4789 | PyObject * obj5 = 0 ; | |
4790 | char *kwnames[] = { | |
4791 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4792 | }; | |
4793 | ||
4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4796 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4797 | SWIG_fail; | |
4798 | if (arg1 == NULL) { | |
4799 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4800 | SWIG_fail; | |
4801 | } | |
4802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4804 | arg3 = (int) SWIG_AsInt(obj2); | |
4805 | if (PyErr_Occurred()) SWIG_fail; | |
4806 | if (obj3) { | |
4807 | { | |
4808 | arg4 = &temp4; | |
4809 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4810 | } | |
4811 | } | |
4812 | if (obj4) { | |
4813 | { | |
4814 | arg5 = &temp5; | |
4815 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4816 | } | |
4817 | } | |
4818 | if (obj5) { | |
4819 | arg6 = (long) SWIG_AsLong(obj5); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | } | |
4822 | { | |
0439c23b | 4823 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4825 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4826 | ||
4827 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4828 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4829 | } |
4830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4831 | return resultobj; | |
4832 | fail: | |
4833 | return NULL; | |
4834 | } | |
4835 | ||
4836 | ||
4837 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4838 | PyObject *resultobj; | |
4839 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4840 | wxBitmap *arg2 = 0 ; | |
4841 | PyObject * obj0 = 0 ; | |
4842 | PyObject * obj1 = 0 ; | |
4843 | char *kwnames[] = { | |
4844 | (char *) "self",(char *) "bitmap", NULL | |
4845 | }; | |
4846 | ||
4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4852 | SWIG_fail; | |
4853 | if (arg2 == NULL) { | |
4854 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4855 | SWIG_fail; | |
4856 | } | |
4857 | { | |
4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4859 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4860 | ||
4861 | wxPyEndAllowThreads(__tstate); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | } | |
4864 | Py_INCREF(Py_None); resultobj = Py_None; | |
4865 | return resultobj; | |
4866 | fail: | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
4871 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4872 | PyObject *resultobj; | |
4873 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4874 | wxBitmap *result; | |
4875 | PyObject * obj0 = 0 ; | |
4876 | char *kwnames[] = { | |
4877 | (char *) "self", NULL | |
4878 | }; | |
4879 | ||
4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | { | |
4886 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4887 | result = (wxBitmap *) &_result_ref; | |
4888 | } | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | } | |
4893 | { | |
4894 | wxBitmap* resultptr = new wxBitmap(*result); | |
4895 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4896 | } | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4904 | PyObject *obj; | |
4905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4906 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4907 | Py_INCREF(obj); | |
4908 | return Py_BuildValue((char *)""); | |
4909 | } | |
4910 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4911 | PyObject *resultobj; | |
4912 | wxBitmap *arg1 = 0 ; | |
4913 | long arg2 ; | |
4914 | int arg3 ; | |
4915 | wxWindow *arg4 = (wxWindow *) 0 ; | |
4916 | int arg5 ; | |
4917 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
4918 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4919 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4920 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4921 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4922 | wxSplashScreen *result; | |
4923 | wxPoint temp6 ; | |
4924 | wxSize temp7 ; | |
4925 | PyObject * obj0 = 0 ; | |
4926 | PyObject * obj1 = 0 ; | |
4927 | PyObject * obj2 = 0 ; | |
4928 | PyObject * obj3 = 0 ; | |
4929 | PyObject * obj4 = 0 ; | |
4930 | PyObject * obj5 = 0 ; | |
4931 | PyObject * obj6 = 0 ; | |
4932 | PyObject * obj7 = 0 ; | |
4933 | char *kwnames[] = { | |
4934 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4935 | }; | |
4936 | ||
4937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4940 | SWIG_fail; | |
4941 | if (arg1 == NULL) { | |
4942 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4943 | SWIG_fail; | |
4944 | } | |
4945 | arg2 = (long) SWIG_AsLong(obj1); | |
4946 | if (PyErr_Occurred()) SWIG_fail; | |
4947 | arg3 = (int) SWIG_AsInt(obj2); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4951 | arg5 = (int) SWIG_AsInt(obj4); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | if (obj5) { | |
4954 | { | |
4955 | arg6 = &temp6; | |
4956 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4957 | } | |
4958 | } | |
4959 | if (obj6) { | |
4960 | { | |
4961 | arg7 = &temp7; | |
4962 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4963 | } | |
4964 | } | |
4965 | if (obj7) { | |
4966 | arg8 = (long) SWIG_AsLong(obj7); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
4968 | } | |
4969 | { | |
0439c23b | 4970 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4972 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4973 | ||
4974 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4975 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4976 | } |
4977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
4978 | return resultobj; | |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
4984 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject *resultobj; | |
4986 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4987 | long result; | |
4988 | PyObject * obj0 = 0 ; | |
4989 | char *kwnames[] = { | |
4990 | (char *) "self", NULL | |
4991 | }; | |
4992 | ||
4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4996 | { | |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
5003 | resultobj = SWIG_FromLong((long)result); | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
5010 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject *resultobj; | |
5012 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5013 | wxSplashScreenWindow *result; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | char *kwnames[] = { | |
5016 | (char *) "self", NULL | |
5017 | }; | |
5018 | ||
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
5020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5022 | { | |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | return NULL; | |
5033 | } | |
5034 | ||
5035 | ||
5036 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5037 | PyObject *resultobj; | |
5038 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5039 | int result; | |
5040 | PyObject * obj0 = 0 ; | |
5041 | char *kwnames[] = { | |
5042 | (char *) "self", NULL | |
5043 | }; | |
5044 | ||
5045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
5046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | resultobj = SWIG_FromInt((int)result); | |
5056 | return resultobj; | |
5057 | fail: | |
5058 | return NULL; | |
5059 | } | |
5060 | ||
5061 | ||
5062 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
5063 | PyObject *obj; | |
5064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5065 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
5066 | Py_INCREF(obj); | |
5067 | return Py_BuildValue((char *)""); | |
5068 | } | |
5069 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5070 | PyObject *resultobj; | |
5071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5072 | int arg2 = (int) -1 ; | |
5073 | long arg3 = (long) wxST_SIZEGRIP ; | |
5074 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
5075 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5076 | wxStatusBar *result; | |
5077 | bool temp4 = False ; | |
5078 | PyObject * obj0 = 0 ; | |
5079 | PyObject * obj1 = 0 ; | |
5080 | PyObject * obj2 = 0 ; | |
5081 | PyObject * obj3 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5084 | }; | |
5085 | ||
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5089 | if (obj1) { | |
5090 | arg2 = (int) SWIG_AsInt(obj1); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | } | |
5093 | if (obj2) { | |
5094 | arg3 = (long) SWIG_AsLong(obj2); | |
5095 | if (PyErr_Occurred()) SWIG_fail; | |
5096 | } | |
5097 | if (obj3) { | |
5098 | { | |
5099 | arg4 = wxString_in_helper(obj3); | |
5100 | if (arg4 == NULL) SWIG_fail; | |
5101 | temp4 = True; | |
5102 | } | |
5103 | } | |
5104 | { | |
0439c23b | 5105 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5107 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5108 | ||
5109 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5110 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5111 | } |
5112 | { | |
5113 | resultobj = wxPyMake_wxObject(result); | |
5114 | } | |
5115 | { | |
5116 | if (temp4) | |
5117 | delete arg4; | |
5118 | } | |
5119 | return resultobj; | |
5120 | fail: | |
5121 | { | |
5122 | if (temp4) | |
5123 | delete arg4; | |
5124 | } | |
5125 | return NULL; | |
5126 | } | |
5127 | ||
5128 | ||
5129 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5130 | PyObject *resultobj; | |
5131 | wxStatusBar *result; | |
5132 | char *kwnames[] = { | |
5133 | NULL | |
5134 | }; | |
5135 | ||
5136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5137 | { | |
0439c23b | 5138 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5140 | result = (wxStatusBar *)new wxStatusBar(); | |
5141 | ||
5142 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5143 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5144 | } |
5145 | { | |
5146 | resultobj = wxPyMake_wxObject(result); | |
5147 | } | |
5148 | return resultobj; | |
5149 | fail: | |
5150 | return NULL; | |
5151 | } | |
5152 | ||
5153 | ||
5154 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5155 | PyObject *resultobj; | |
5156 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5157 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5158 | int arg3 ; | |
5159 | long arg4 = (long) wxST_SIZEGRIP ; | |
5160 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5161 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5162 | bool result; | |
5163 | bool temp5 = False ; | |
5164 | PyObject * obj0 = 0 ; | |
5165 | PyObject * obj1 = 0 ; | |
5166 | PyObject * obj2 = 0 ; | |
5167 | PyObject * obj3 = 0 ; | |
5168 | PyObject * obj4 = 0 ; | |
5169 | char *kwnames[] = { | |
5170 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5171 | }; | |
5172 | ||
5173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5178 | arg3 = (int) SWIG_AsInt(obj2); | |
5179 | if (PyErr_Occurred()) SWIG_fail; | |
5180 | if (obj3) { | |
5181 | arg4 = (long) SWIG_AsLong(obj3); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | if (obj4) { | |
5185 | { | |
5186 | arg5 = wxString_in_helper(obj4); | |
5187 | if (arg5 == NULL) SWIG_fail; | |
5188 | temp5 = True; | |
5189 | } | |
5190 | } | |
5191 | { | |
5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5193 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5194 | ||
5195 | wxPyEndAllowThreads(__tstate); | |
5196 | if (PyErr_Occurred()) SWIG_fail; | |
5197 | } | |
5198 | { | |
5199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5200 | } | |
5201 | { | |
5202 | if (temp5) | |
5203 | delete arg5; | |
5204 | } | |
5205 | return resultobj; | |
5206 | fail: | |
5207 | { | |
5208 | if (temp5) | |
5209 | delete arg5; | |
5210 | } | |
5211 | return NULL; | |
5212 | } | |
5213 | ||
5214 | ||
5215 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5216 | PyObject *resultobj; | |
5217 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5218 | int arg2 = (int) 1 ; | |
5219 | PyObject * obj0 = 0 ; | |
5220 | PyObject * obj1 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "self",(char *) "number", NULL | |
5223 | }; | |
5224 | ||
5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5228 | if (obj1) { | |
5229 | arg2 = (int) SWIG_AsInt(obj1); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | { | |
5233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5234 | (arg1)->SetFieldsCount(arg2); | |
5235 | ||
5236 | wxPyEndAllowThreads(__tstate); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
5238 | } | |
5239 | Py_INCREF(Py_None); resultobj = Py_None; | |
5240 | return resultobj; | |
5241 | fail: | |
5242 | return NULL; | |
5243 | } | |
5244 | ||
5245 | ||
5246 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject *resultobj; | |
5248 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5249 | int result; | |
5250 | PyObject * obj0 = 0 ; | |
5251 | char *kwnames[] = { | |
5252 | (char *) "self", NULL | |
5253 | }; | |
5254 | ||
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5258 | { | |
5259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5260 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5261 | ||
5262 | wxPyEndAllowThreads(__tstate); | |
5263 | if (PyErr_Occurred()) SWIG_fail; | |
5264 | } | |
5265 | resultobj = SWIG_FromInt((int)result); | |
5266 | return resultobj; | |
5267 | fail: | |
5268 | return NULL; | |
5269 | } | |
5270 | ||
5271 | ||
5272 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5273 | PyObject *resultobj; | |
5274 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5275 | wxString *arg2 = 0 ; | |
5276 | int arg3 = (int) 0 ; | |
5277 | bool temp2 = False ; | |
5278 | PyObject * obj0 = 0 ; | |
5279 | PyObject * obj1 = 0 ; | |
5280 | PyObject * obj2 = 0 ; | |
5281 | char *kwnames[] = { | |
5282 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5283 | }; | |
5284 | ||
5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5288 | { | |
5289 | arg2 = wxString_in_helper(obj1); | |
5290 | if (arg2 == NULL) SWIG_fail; | |
5291 | temp2 = True; | |
5292 | } | |
5293 | if (obj2) { | |
5294 | arg3 = (int) SWIG_AsInt(obj2); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | { | |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5300 | ||
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
5304 | Py_INCREF(Py_None); resultobj = Py_None; | |
5305 | { | |
5306 | if (temp2) | |
5307 | delete arg2; | |
5308 | } | |
5309 | return resultobj; | |
5310 | fail: | |
5311 | { | |
5312 | if (temp2) | |
5313 | delete arg2; | |
5314 | } | |
5315 | return NULL; | |
5316 | } | |
5317 | ||
5318 | ||
5319 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5320 | PyObject *resultobj; | |
5321 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5322 | int arg2 = (int) 0 ; | |
5323 | wxString result; | |
5324 | PyObject * obj0 = 0 ; | |
5325 | PyObject * obj1 = 0 ; | |
5326 | char *kwnames[] = { | |
5327 | (char *) "self",(char *) "number", NULL | |
5328 | }; | |
5329 | ||
5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5333 | if (obj1) { | |
5334 | arg2 = (int) SWIG_AsInt(obj1); | |
5335 | if (PyErr_Occurred()) SWIG_fail; | |
5336 | } | |
5337 | { | |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
5344 | { | |
5345 | #if wxUSE_UNICODE | |
5346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5347 | #else | |
5348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5349 | #endif | |
5350 | } | |
5351 | return resultobj; | |
5352 | fail: | |
5353 | return NULL; | |
5354 | } | |
5355 | ||
5356 | ||
5357 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5358 | PyObject *resultobj; | |
5359 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5360 | wxString *arg2 = 0 ; | |
5361 | int arg3 = (int) 0 ; | |
5362 | bool temp2 = False ; | |
5363 | PyObject * obj0 = 0 ; | |
5364 | PyObject * obj1 = 0 ; | |
5365 | PyObject * obj2 = 0 ; | |
5366 | char *kwnames[] = { | |
5367 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5368 | }; | |
5369 | ||
5370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5373 | { | |
5374 | arg2 = wxString_in_helper(obj1); | |
5375 | if (arg2 == NULL) SWIG_fail; | |
5376 | temp2 = True; | |
5377 | } | |
5378 | if (obj2) { | |
5379 | arg3 = (int) SWIG_AsInt(obj2); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
5382 | { | |
5383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5384 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5385 | ||
5386 | wxPyEndAllowThreads(__tstate); | |
5387 | if (PyErr_Occurred()) SWIG_fail; | |
5388 | } | |
5389 | Py_INCREF(Py_None); resultobj = Py_None; | |
5390 | { | |
5391 | if (temp2) | |
5392 | delete arg2; | |
5393 | } | |
5394 | return resultobj; | |
5395 | fail: | |
5396 | { | |
5397 | if (temp2) | |
5398 | delete arg2; | |
5399 | } | |
5400 | return NULL; | |
5401 | } | |
5402 | ||
5403 | ||
5404 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5405 | PyObject *resultobj; | |
5406 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5407 | int arg2 = (int) 0 ; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | PyObject * obj1 = 0 ; | |
5410 | char *kwnames[] = { | |
5411 | (char *) "self",(char *) "number", NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5417 | if (obj1) { | |
5418 | arg2 = (int) SWIG_AsInt(obj1); | |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
5420 | } | |
5421 | { | |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | (arg1)->PopStatusText(arg2); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
5428 | Py_INCREF(Py_None); resultobj = Py_None; | |
5429 | return resultobj; | |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
5435 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject *resultobj; | |
5437 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5438 | int arg2 ; | |
5439 | int *arg3 = (int *) 0 ; | |
5440 | PyObject * obj0 = 0 ; | |
5441 | PyObject * obj1 = 0 ; | |
5442 | char *kwnames[] = { | |
5443 | (char *) "self",(char *) "widths", NULL | |
5444 | }; | |
5445 | ||
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5449 | { | |
5450 | arg2 = PyList_Size(obj1); | |
5451 | arg3 = int_LIST_helper(obj1); | |
5452 | if (arg3 == NULL) SWIG_fail; | |
5453 | } | |
5454 | { | |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | Py_INCREF(Py_None); resultobj = Py_None; | |
5462 | { | |
5463 | if (arg3) delete [] arg3; | |
5464 | } | |
5465 | return resultobj; | |
5466 | fail: | |
5467 | { | |
5468 | if (arg3) delete [] arg3; | |
5469 | } | |
5470 | return NULL; | |
5471 | } | |
5472 | ||
5473 | ||
5474 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject *resultobj; | |
5476 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5477 | int arg2 ; | |
5478 | wxRect result; | |
5479 | PyObject * obj0 = 0 ; | |
5480 | PyObject * obj1 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self",(char *) "i", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5488 | arg2 = (int) SWIG_AsInt(obj1); | |
5489 | if (PyErr_Occurred()) SWIG_fail; | |
5490 | { | |
5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5492 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5493 | ||
5494 | wxPyEndAllowThreads(__tstate); | |
5495 | if (PyErr_Occurred()) SWIG_fail; | |
5496 | } | |
5497 | { | |
5498 | wxRect * resultptr; | |
5499 | resultptr = new wxRect((wxRect &) result); | |
5500 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5501 | } | |
5502 | return resultobj; | |
5503 | fail: | |
5504 | return NULL; | |
5505 | } | |
5506 | ||
5507 | ||
5508 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5509 | PyObject *resultobj; | |
5510 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5511 | int arg2 ; | |
5512 | PyObject * obj0 = 0 ; | |
5513 | PyObject * obj1 = 0 ; | |
5514 | char *kwnames[] = { | |
5515 | (char *) "self",(char *) "height", NULL | |
5516 | }; | |
5517 | ||
5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5521 | arg2 = (int) SWIG_AsInt(obj1); | |
5522 | if (PyErr_Occurred()) SWIG_fail; | |
5523 | { | |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | (arg1)->SetMinHeight(arg2); | |
5526 | ||
5527 | wxPyEndAllowThreads(__tstate); | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
5530 | Py_INCREF(Py_None); resultobj = Py_None; | |
5531 | return resultobj; | |
5532 | fail: | |
5533 | return NULL; | |
5534 | } | |
5535 | ||
5536 | ||
5537 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject *resultobj; | |
5539 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5540 | int result; | |
5541 | PyObject * obj0 = 0 ; | |
5542 | char *kwnames[] = { | |
5543 | (char *) "self", NULL | |
5544 | }; | |
5545 | ||
5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5551 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5552 | ||
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
5556 | resultobj = SWIG_FromInt((int)result); | |
5557 | return resultobj; | |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5566 | int result; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "self", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5575 | { | |
5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5577 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5578 | ||
5579 | wxPyEndAllowThreads(__tstate); | |
5580 | if (PyErr_Occurred()) SWIG_fail; | |
5581 | } | |
5582 | resultobj = SWIG_FromInt((int)result); | |
5583 | return resultobj; | |
5584 | fail: | |
5585 | return NULL; | |
5586 | } | |
5587 | ||
5588 | ||
f20a2e1f RD |
5589 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5590 | PyObject *resultobj; | |
5591 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5592 | wxVisualAttributes result; | |
5593 | PyObject * obj0 = 0 ; | |
5594 | char *kwnames[] = { | |
5595 | (char *) "variant", NULL | |
5596 | }; | |
5597 | ||
5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5599 | if (obj0) { | |
5600 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5601 | if (PyErr_Occurred()) SWIG_fail; | |
5602 | } | |
5603 | { | |
0439c23b | 5604 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5606 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5607 | ||
5608 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5609 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5610 | } |
5611 | { | |
5612 | wxVisualAttributes * resultptr; | |
5613 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5614 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5615 | } | |
5616 | return resultobj; | |
5617 | fail: | |
5618 | return NULL; | |
5619 | } | |
5620 | ||
5621 | ||
d55e5bfc RD |
5622 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { |
5623 | PyObject *obj; | |
5624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5625 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5626 | Py_INCREF(obj); | |
5627 | return Py_BuildValue((char *)""); | |
5628 | } | |
5629 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5630 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5631 | return 1; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | static PyObject *_wrap_SplitterNameStr_get() { | |
5636 | PyObject *pyobj; | |
5637 | ||
5638 | { | |
5639 | #if wxUSE_UNICODE | |
5640 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5641 | #else | |
5642 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5643 | #endif | |
5644 | } | |
5645 | return pyobj; | |
5646 | } | |
5647 | ||
5648 | ||
5649 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject *resultobj; | |
5651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5652 | int arg2 = (int) -1 ; | |
5653 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5654 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5655 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5656 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5657 | long arg5 = (long) wxSP_3D ; | |
5658 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5659 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5660 | wxSplitterWindow *result; | |
5661 | wxPoint temp3 ; | |
5662 | wxSize temp4 ; | |
5663 | bool temp6 = False ; | |
5664 | PyObject * obj0 = 0 ; | |
5665 | PyObject * obj1 = 0 ; | |
5666 | PyObject * obj2 = 0 ; | |
5667 | PyObject * obj3 = 0 ; | |
5668 | PyObject * obj4 = 0 ; | |
5669 | PyObject * obj5 = 0 ; | |
5670 | char *kwnames[] = { | |
5671 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5672 | }; | |
5673 | ||
5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5677 | if (obj1) { | |
5678 | arg2 = (int) SWIG_AsInt(obj1); | |
5679 | if (PyErr_Occurred()) SWIG_fail; | |
5680 | } | |
5681 | if (obj2) { | |
5682 | { | |
5683 | arg3 = &temp3; | |
5684 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5685 | } | |
5686 | } | |
5687 | if (obj3) { | |
5688 | { | |
5689 | arg4 = &temp4; | |
5690 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5691 | } | |
5692 | } | |
5693 | if (obj4) { | |
5694 | arg5 = (long) SWIG_AsLong(obj4); | |
5695 | if (PyErr_Occurred()) SWIG_fail; | |
5696 | } | |
5697 | if (obj5) { | |
5698 | { | |
5699 | arg6 = wxString_in_helper(obj5); | |
5700 | if (arg6 == NULL) SWIG_fail; | |
5701 | temp6 = True; | |
5702 | } | |
5703 | } | |
5704 | { | |
0439c23b | 5705 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5707 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5708 | ||
5709 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5710 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5711 | } |
5712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5713 | { | |
5714 | if (temp6) | |
5715 | delete arg6; | |
5716 | } | |
5717 | return resultobj; | |
5718 | fail: | |
5719 | { | |
5720 | if (temp6) | |
5721 | delete arg6; | |
5722 | } | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
5727 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5728 | PyObject *resultobj; | |
5729 | wxSplitterWindow *result; | |
5730 | char *kwnames[] = { | |
5731 | NULL | |
5732 | }; | |
5733 | ||
5734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5735 | { | |
0439c23b | 5736 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5738 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5739 | ||
5740 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5741 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5742 | } |
5743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject *resultobj; | |
5752 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5754 | int arg3 = (int) -1 ; | |
5755 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5756 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5757 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5758 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5759 | long arg6 = (long) wxSP_3D ; | |
5760 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5761 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5762 | bool result; | |
5763 | wxPoint temp4 ; | |
5764 | wxSize temp5 ; | |
5765 | bool temp7 = False ; | |
5766 | PyObject * obj0 = 0 ; | |
5767 | PyObject * obj1 = 0 ; | |
5768 | PyObject * obj2 = 0 ; | |
5769 | PyObject * obj3 = 0 ; | |
5770 | PyObject * obj4 = 0 ; | |
5771 | PyObject * obj5 = 0 ; | |
5772 | PyObject * obj6 = 0 ; | |
5773 | char *kwnames[] = { | |
5774 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5775 | }; | |
5776 | ||
5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5782 | if (obj2) { | |
5783 | arg3 = (int) SWIG_AsInt(obj2); | |
5784 | if (PyErr_Occurred()) SWIG_fail; | |
5785 | } | |
5786 | if (obj3) { | |
5787 | { | |
5788 | arg4 = &temp4; | |
5789 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5790 | } | |
5791 | } | |
5792 | if (obj4) { | |
5793 | { | |
5794 | arg5 = &temp5; | |
5795 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5796 | } | |
5797 | } | |
5798 | if (obj5) { | |
5799 | arg6 = (long) SWIG_AsLong(obj5); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
5801 | } | |
5802 | if (obj6) { | |
5803 | { | |
5804 | arg7 = wxString_in_helper(obj6); | |
5805 | if (arg7 == NULL) SWIG_fail; | |
5806 | temp7 = True; | |
5807 | } | |
5808 | } | |
5809 | { | |
5810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5811 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5812 | ||
5813 | wxPyEndAllowThreads(__tstate); | |
5814 | if (PyErr_Occurred()) SWIG_fail; | |
5815 | } | |
5816 | { | |
5817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5818 | } | |
5819 | { | |
5820 | if (temp7) | |
5821 | delete arg7; | |
5822 | } | |
5823 | return resultobj; | |
5824 | fail: | |
5825 | { | |
5826 | if (temp7) | |
5827 | delete arg7; | |
5828 | } | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
5833 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5834 | PyObject *resultobj; | |
5835 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5836 | wxWindow *result; | |
5837 | PyObject * obj0 = 0 ; | |
5838 | char *kwnames[] = { | |
5839 | (char *) "self", NULL | |
5840 | }; | |
5841 | ||
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5845 | { | |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5848 | ||
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
5852 | { | |
5853 | resultobj = wxPyMake_wxObject(result); | |
5854 | } | |
5855 | return resultobj; | |
5856 | fail: | |
5857 | return NULL; | |
5858 | } | |
5859 | ||
5860 | ||
5861 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5862 | PyObject *resultobj; | |
5863 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5864 | wxWindow *result; | |
5865 | PyObject * obj0 = 0 ; | |
5866 | char *kwnames[] = { | |
5867 | (char *) "self", NULL | |
5868 | }; | |
5869 | ||
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5873 | { | |
5874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5875 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5876 | ||
5877 | wxPyEndAllowThreads(__tstate); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | } | |
5880 | { | |
5881 | resultobj = wxPyMake_wxObject(result); | |
5882 | } | |
5883 | return resultobj; | |
5884 | fail: | |
5885 | return NULL; | |
5886 | } | |
5887 | ||
5888 | ||
5889 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5890 | PyObject *resultobj; | |
5891 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5892 | int arg2 ; | |
5893 | PyObject * obj0 = 0 ; | |
5894 | PyObject * obj1 = 0 ; | |
5895 | char *kwnames[] = { | |
5896 | (char *) "self",(char *) "mode", NULL | |
5897 | }; | |
5898 | ||
5899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5902 | arg2 = (int) SWIG_AsInt(obj1); | |
5903 | if (PyErr_Occurred()) SWIG_fail; | |
5904 | { | |
5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5906 | (arg1)->SetSplitMode(arg2); | |
5907 | ||
5908 | wxPyEndAllowThreads(__tstate); | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
5910 | } | |
5911 | Py_INCREF(Py_None); resultobj = Py_None; | |
5912 | return resultobj; | |
5913 | fail: | |
5914 | return NULL; | |
5915 | } | |
5916 | ||
5917 | ||
5918 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj; | |
5920 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5921 | int result; | |
5922 | PyObject * obj0 = 0 ; | |
5923 | char *kwnames[] = { | |
5924 | (char *) "self", NULL | |
5925 | }; | |
5926 | ||
5927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5930 | { | |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5933 | ||
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
5937 | resultobj = SWIG_FromInt((int)result); | |
5938 | return resultobj; | |
5939 | fail: | |
5940 | return NULL; | |
5941 | } | |
5942 | ||
5943 | ||
5944 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5945 | PyObject *resultobj; | |
5946 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5947 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5948 | PyObject * obj0 = 0 ; | |
5949 | PyObject * obj1 = 0 ; | |
5950 | char *kwnames[] = { | |
5951 | (char *) "self",(char *) "window", NULL | |
5952 | }; | |
5953 | ||
5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5959 | { | |
5960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5961 | (arg1)->Initialize(arg2); | |
5962 | ||
5963 | wxPyEndAllowThreads(__tstate); | |
5964 | if (PyErr_Occurred()) SWIG_fail; | |
5965 | } | |
5966 | Py_INCREF(Py_None); resultobj = Py_None; | |
5967 | return resultobj; | |
5968 | fail: | |
5969 | return NULL; | |
5970 | } | |
5971 | ||
5972 | ||
5973 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject *resultobj; | |
5975 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5976 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5977 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5978 | int arg4 = (int) 0 ; | |
5979 | bool result; | |
5980 | PyObject * obj0 = 0 ; | |
5981 | PyObject * obj1 = 0 ; | |
5982 | PyObject * obj2 = 0 ; | |
5983 | PyObject * obj3 = 0 ; | |
5984 | char *kwnames[] = { | |
5985 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5986 | }; | |
5987 | ||
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5993 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5995 | if (obj3) { | |
5996 | arg4 = (int) SWIG_AsInt(obj3); | |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
5998 | } | |
5999 | { | |
6000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6001 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
6002 | ||
6003 | wxPyEndAllowThreads(__tstate); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
6006 | { | |
6007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6008 | } | |
6009 | return resultobj; | |
6010 | fail: | |
6011 | return NULL; | |
6012 | } | |
6013 | ||
6014 | ||
6015 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6016 | PyObject *resultobj; | |
6017 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6018 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6019 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6020 | int arg4 = (int) 0 ; | |
6021 | bool result; | |
6022 | PyObject * obj0 = 0 ; | |
6023 | PyObject * obj1 = 0 ; | |
6024 | PyObject * obj2 = 0 ; | |
6025 | PyObject * obj3 = 0 ; | |
6026 | char *kwnames[] = { | |
6027 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6028 | }; | |
6029 | ||
6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6033 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6035 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6037 | if (obj3) { | |
6038 | arg4 = (int) SWIG_AsInt(obj3); | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | { | |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6043 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
6044 | ||
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | { | |
6049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6050 | } | |
6051 | return resultobj; | |
6052 | fail: | |
6053 | return NULL; | |
6054 | } | |
6055 | ||
6056 | ||
6057 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6058 | PyObject *resultobj; | |
6059 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6060 | wxWindow *arg2 = (wxWindow *) NULL ; | |
6061 | bool result; | |
6062 | PyObject * obj0 = 0 ; | |
6063 | PyObject * obj1 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self",(char *) "toRemove", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
6069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6071 | if (obj1) { | |
6072 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6074 | } | |
6075 | { | |
6076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6077 | result = (bool)(arg1)->Unsplit(arg2); | |
6078 | ||
6079 | wxPyEndAllowThreads(__tstate); | |
6080 | if (PyErr_Occurred()) SWIG_fail; | |
6081 | } | |
6082 | { | |
6083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6084 | } | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6094 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6095 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6096 | bool result; | |
6097 | PyObject * obj0 = 0 ; | |
6098 | PyObject * obj1 = 0 ; | |
6099 | PyObject * obj2 = 0 ; | |
6100 | char *kwnames[] = { | |
6101 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6102 | }; | |
6103 | ||
6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6109 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6111 | { | |
6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6113 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6114 | ||
6115 | wxPyEndAllowThreads(__tstate); | |
6116 | if (PyErr_Occurred()) SWIG_fail; | |
6117 | } | |
6118 | { | |
6119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6120 | } | |
6121 | return resultobj; | |
6122 | fail: | |
6123 | return NULL; | |
6124 | } | |
6125 | ||
6126 | ||
6127 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6128 | PyObject *resultobj; | |
6129 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6130 | PyObject * obj0 = 0 ; | |
6131 | char *kwnames[] = { | |
6132 | (char *) "self", NULL | |
6133 | }; | |
6134 | ||
6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6138 | { | |
6139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6140 | (arg1)->UpdateSize(); | |
6141 | ||
6142 | wxPyEndAllowThreads(__tstate); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
6144 | } | |
6145 | Py_INCREF(Py_None); resultobj = Py_None; | |
6146 | return resultobj; | |
6147 | fail: | |
6148 | return NULL; | |
6149 | } | |
6150 | ||
6151 | ||
6152 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject *resultobj; | |
6154 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6155 | bool result; | |
6156 | PyObject * obj0 = 0 ; | |
6157 | char *kwnames[] = { | |
6158 | (char *) "self", NULL | |
6159 | }; | |
6160 | ||
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6164 | { | |
6165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6166 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6167 | ||
6168 | wxPyEndAllowThreads(__tstate); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
6171 | { | |
6172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6173 | } | |
6174 | return resultobj; | |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
6180 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6181 | PyObject *resultobj; | |
6182 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6183 | int arg2 ; | |
6184 | PyObject * obj0 = 0 ; | |
6185 | PyObject * obj1 = 0 ; | |
6186 | char *kwnames[] = { | |
6187 | (char *) "self",(char *) "width", NULL | |
6188 | }; | |
6189 | ||
6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6193 | arg2 = (int) SWIG_AsInt(obj1); | |
6194 | if (PyErr_Occurred()) SWIG_fail; | |
6195 | { | |
6196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6197 | (arg1)->SetSashSize(arg2); | |
6198 | ||
6199 | wxPyEndAllowThreads(__tstate); | |
6200 | if (PyErr_Occurred()) SWIG_fail; | |
6201 | } | |
6202 | Py_INCREF(Py_None); resultobj = Py_None; | |
6203 | return resultobj; | |
6204 | fail: | |
6205 | return NULL; | |
6206 | } | |
6207 | ||
6208 | ||
6209 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject *resultobj; | |
6211 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6212 | int arg2 ; | |
6213 | PyObject * obj0 = 0 ; | |
6214 | PyObject * obj1 = 0 ; | |
6215 | char *kwnames[] = { | |
6216 | (char *) "self",(char *) "width", NULL | |
6217 | }; | |
6218 | ||
6219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6222 | arg2 = (int) SWIG_AsInt(obj1); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | { | |
6225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6226 | (arg1)->SetBorderSize(arg2); | |
6227 | ||
6228 | wxPyEndAllowThreads(__tstate); | |
6229 | if (PyErr_Occurred()) SWIG_fail; | |
6230 | } | |
6231 | Py_INCREF(Py_None); resultobj = Py_None; | |
6232 | return resultobj; | |
6233 | fail: | |
6234 | return NULL; | |
6235 | } | |
6236 | ||
6237 | ||
6238 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6239 | PyObject *resultobj; | |
6240 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6241 | int result; | |
6242 | PyObject * obj0 = 0 ; | |
6243 | char *kwnames[] = { | |
6244 | (char *) "self", NULL | |
6245 | }; | |
6246 | ||
6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6253 | ||
6254 | wxPyEndAllowThreads(__tstate); | |
6255 | if (PyErr_Occurred()) SWIG_fail; | |
6256 | } | |
6257 | resultobj = SWIG_FromInt((int)result); | |
6258 | return resultobj; | |
6259 | fail: | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
6264 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6265 | PyObject *resultobj; | |
6266 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6267 | int result; | |
6268 | PyObject * obj0 = 0 ; | |
6269 | char *kwnames[] = { | |
6270 | (char *) "self", NULL | |
6271 | }; | |
6272 | ||
6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6276 | { | |
6277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6278 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6279 | ||
6280 | wxPyEndAllowThreads(__tstate); | |
6281 | if (PyErr_Occurred()) SWIG_fail; | |
6282 | } | |
6283 | resultobj = SWIG_FromInt((int)result); | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | return NULL; | |
6287 | } | |
6288 | ||
6289 | ||
6290 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6291 | PyObject *resultobj; | |
6292 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6293 | int arg2 ; | |
6294 | bool arg3 = (bool) True ; | |
6295 | PyObject * obj0 = 0 ; | |
6296 | PyObject * obj1 = 0 ; | |
6297 | PyObject * obj2 = 0 ; | |
6298 | char *kwnames[] = { | |
6299 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6300 | }; | |
6301 | ||
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6305 | arg2 = (int) SWIG_AsInt(obj1); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | if (obj2) { | |
6308 | arg3 = (bool) SWIG_AsBool(obj2); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
6311 | { | |
6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6313 | (arg1)->SetSashPosition(arg2,arg3); | |
6314 | ||
6315 | wxPyEndAllowThreads(__tstate); | |
6316 | if (PyErr_Occurred()) SWIG_fail; | |
6317 | } | |
6318 | Py_INCREF(Py_None); resultobj = Py_None; | |
6319 | return resultobj; | |
6320 | fail: | |
6321 | return NULL; | |
6322 | } | |
6323 | ||
6324 | ||
6325 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6326 | PyObject *resultobj; | |
6327 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6328 | int result; | |
6329 | PyObject * obj0 = 0 ; | |
6330 | char *kwnames[] = { | |
6331 | (char *) "self", NULL | |
6332 | }; | |
6333 | ||
6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6337 | { | |
6338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6339 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6340 | ||
6341 | wxPyEndAllowThreads(__tstate); | |
6342 | if (PyErr_Occurred()) SWIG_fail; | |
6343 | } | |
6344 | resultobj = SWIG_FromInt((int)result); | |
6345 | return resultobj; | |
6346 | fail: | |
6347 | return NULL; | |
6348 | } | |
6349 | ||
6350 | ||
6351 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6352 | PyObject *resultobj; | |
6353 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6354 | int arg2 ; | |
6355 | PyObject * obj0 = 0 ; | |
6356 | PyObject * obj1 = 0 ; | |
6357 | char *kwnames[] = { | |
6358 | (char *) "self",(char *) "min", NULL | |
6359 | }; | |
6360 | ||
6361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6364 | arg2 = (int) SWIG_AsInt(obj1); | |
6365 | if (PyErr_Occurred()) SWIG_fail; | |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6368 | (arg1)->SetMinimumPaneSize(arg2); | |
6369 | ||
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
6373 | Py_INCREF(Py_None); resultobj = Py_None; | |
6374 | return resultobj; | |
6375 | fail: | |
6376 | return NULL; | |
6377 | } | |
6378 | ||
6379 | ||
6380 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6381 | PyObject *resultobj; | |
6382 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6383 | int result; | |
6384 | PyObject * obj0 = 0 ; | |
6385 | char *kwnames[] = { | |
6386 | (char *) "self", NULL | |
6387 | }; | |
6388 | ||
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6392 | { | |
6393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6394 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6395 | ||
6396 | wxPyEndAllowThreads(__tstate); | |
6397 | if (PyErr_Occurred()) SWIG_fail; | |
6398 | } | |
6399 | resultobj = SWIG_FromInt((int)result); | |
6400 | return resultobj; | |
6401 | fail: | |
6402 | return NULL; | |
6403 | } | |
6404 | ||
6405 | ||
6406 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6407 | PyObject *resultobj; | |
6408 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6409 | int arg2 ; | |
6410 | int arg3 ; | |
6411 | int arg4 = (int) 5 ; | |
6412 | bool result; | |
6413 | PyObject * obj0 = 0 ; | |
6414 | PyObject * obj1 = 0 ; | |
6415 | PyObject * obj2 = 0 ; | |
6416 | PyObject * obj3 = 0 ; | |
6417 | char *kwnames[] = { | |
6418 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6419 | }; | |
6420 | ||
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6424 | arg2 = (int) SWIG_AsInt(obj1); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | arg3 = (int) SWIG_AsInt(obj2); | |
6427 | if (PyErr_Occurred()) SWIG_fail; | |
6428 | if (obj3) { | |
6429 | arg4 = (int) SWIG_AsInt(obj3); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
6432 | { | |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
6439 | { | |
6440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6441 | } | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | return NULL; | |
6445 | } | |
6446 | ||
6447 | ||
6448 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject *resultobj; | |
6450 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6451 | PyObject * obj0 = 0 ; | |
6452 | char *kwnames[] = { | |
6453 | (char *) "self", NULL | |
6454 | }; | |
6455 | ||
6456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6459 | { | |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6461 | (arg1)->SizeWindows(); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
6466 | Py_INCREF(Py_None); resultobj = Py_None; | |
6467 | return resultobj; | |
6468 | fail: | |
6469 | return NULL; | |
6470 | } | |
6471 | ||
6472 | ||
6473 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject *resultobj; | |
6475 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6476 | bool arg2 ; | |
6477 | PyObject * obj0 = 0 ; | |
6478 | PyObject * obj1 = 0 ; | |
6479 | char *kwnames[] = { | |
6480 | (char *) "self",(char *) "needUpdating", NULL | |
6481 | }; | |
6482 | ||
6483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6486 | arg2 = (bool) SWIG_AsBool(obj1); | |
6487 | if (PyErr_Occurred()) SWIG_fail; | |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | (arg1)->SetNeedUpdating(arg2); | |
6491 | ||
6492 | wxPyEndAllowThreads(__tstate); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
6495 | Py_INCREF(Py_None); resultobj = Py_None; | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
6502 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject *resultobj; | |
6504 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6505 | bool result; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | char *kwnames[] = { | |
6508 | (char *) "self", NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6514 | { | |
6515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6516 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6517 | ||
6518 | wxPyEndAllowThreads(__tstate); | |
6519 | if (PyErr_Occurred()) SWIG_fail; | |
6520 | } | |
6521 | { | |
6522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6523 | } | |
6524 | return resultobj; | |
6525 | fail: | |
6526 | return NULL; | |
6527 | } | |
6528 | ||
6529 | ||
f20a2e1f RD |
6530 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6531 | PyObject *resultobj; | |
6532 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6533 | wxVisualAttributes result; | |
6534 | PyObject * obj0 = 0 ; | |
6535 | char *kwnames[] = { | |
6536 | (char *) "variant", NULL | |
6537 | }; | |
6538 | ||
6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6540 | if (obj0) { | |
6541 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6542 | if (PyErr_Occurred()) SWIG_fail; | |
6543 | } | |
6544 | { | |
0439c23b | 6545 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6547 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6548 | ||
6549 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6550 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6551 | } |
6552 | { | |
6553 | wxVisualAttributes * resultptr; | |
6554 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6556 | } | |
6557 | return resultobj; | |
6558 | fail: | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
d55e5bfc RD |
6563 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { |
6564 | PyObject *obj; | |
6565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6566 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6567 | Py_INCREF(obj); | |
6568 | return Py_BuildValue((char *)""); | |
6569 | } | |
6570 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6571 | PyObject *resultobj; | |
6572 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6573 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6574 | wxSplitterEvent *result; | |
6575 | PyObject * obj0 = 0 ; | |
6576 | PyObject * obj1 = 0 ; | |
6577 | char *kwnames[] = { | |
6578 | (char *) "type",(char *) "splitter", NULL | |
6579 | }; | |
6580 | ||
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6582 | if (obj0) { | |
6583 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6584 | if (PyErr_Occurred()) SWIG_fail; | |
6585 | } | |
6586 | if (obj1) { | |
6587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6589 | } | |
6590 | { | |
6591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6592 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6593 | ||
6594 | wxPyEndAllowThreads(__tstate); | |
6595 | if (PyErr_Occurred()) SWIG_fail; | |
6596 | } | |
6597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6607 | int arg2 ; | |
6608 | PyObject * obj0 = 0 ; | |
6609 | PyObject * obj1 = 0 ; | |
6610 | char *kwnames[] = { | |
6611 | (char *) "self",(char *) "pos", NULL | |
6612 | }; | |
6613 | ||
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6617 | arg2 = (int) SWIG_AsInt(obj1); | |
6618 | if (PyErr_Occurred()) SWIG_fail; | |
6619 | { | |
6620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6621 | (arg1)->SetSashPosition(arg2); | |
6622 | ||
6623 | wxPyEndAllowThreads(__tstate); | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | Py_INCREF(Py_None); resultobj = Py_None; | |
6627 | return resultobj; | |
6628 | fail: | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject *resultobj; | |
6635 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6636 | int result; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6645 | { | |
6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6647 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6648 | ||
6649 | wxPyEndAllowThreads(__tstate); | |
6650 | if (PyErr_Occurred()) SWIG_fail; | |
6651 | } | |
6652 | resultobj = SWIG_FromInt((int)result); | |
6653 | return resultobj; | |
6654 | fail: | |
6655 | return NULL; | |
6656 | } | |
6657 | ||
6658 | ||
6659 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6660 | PyObject *resultobj; | |
6661 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6662 | wxWindow *result; | |
6663 | PyObject * obj0 = 0 ; | |
6664 | char *kwnames[] = { | |
6665 | (char *) "self", NULL | |
6666 | }; | |
6667 | ||
6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6671 | { | |
6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6673 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6674 | ||
6675 | wxPyEndAllowThreads(__tstate); | |
6676 | if (PyErr_Occurred()) SWIG_fail; | |
6677 | } | |
6678 | { | |
6679 | resultobj = wxPyMake_wxObject(result); | |
6680 | } | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6690 | int result; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "self", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | resultobj = SWIG_FromInt((int)result); | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
6713 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject *resultobj; | |
6715 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6716 | int result; | |
6717 | PyObject * obj0 = 0 ; | |
6718 | char *kwnames[] = { | |
6719 | (char *) "self", NULL | |
6720 | }; | |
6721 | ||
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | resultobj = SWIG_FromInt((int)result); | |
6733 | return resultobj; | |
6734 | fail: | |
6735 | return NULL; | |
6736 | } | |
6737 | ||
6738 | ||
6739 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6740 | PyObject *obj; | |
6741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6742 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6743 | Py_INCREF(obj); | |
6744 | return Py_BuildValue((char *)""); | |
6745 | } | |
6746 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6747 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6748 | return 1; | |
6749 | } | |
6750 | ||
6751 | ||
6752 | static PyObject *_wrap_SashNameStr_get() { | |
6753 | PyObject *pyobj; | |
6754 | ||
6755 | { | |
6756 | #if wxUSE_UNICODE | |
6757 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6758 | #else | |
6759 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6760 | #endif | |
6761 | } | |
6762 | return pyobj; | |
6763 | } | |
6764 | ||
6765 | ||
6766 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6767 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6768 | return 1; | |
6769 | } | |
6770 | ||
6771 | ||
6772 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6773 | PyObject *pyobj; | |
6774 | ||
6775 | { | |
6776 | #if wxUSE_UNICODE | |
6777 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6778 | #else | |
6779 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6780 | #endif | |
6781 | } | |
6782 | return pyobj; | |
6783 | } | |
6784 | ||
6785 | ||
6786 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6787 | PyObject *resultobj; | |
6788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6789 | int arg2 ; | |
6790 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6791 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6792 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6793 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6794 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6795 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6796 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6797 | wxSashWindow *result; | |
6798 | wxPoint temp3 ; | |
6799 | wxSize temp4 ; | |
6800 | bool temp6 = False ; | |
6801 | PyObject * obj0 = 0 ; | |
6802 | PyObject * obj1 = 0 ; | |
6803 | PyObject * obj2 = 0 ; | |
6804 | PyObject * obj3 = 0 ; | |
6805 | PyObject * obj4 = 0 ; | |
6806 | PyObject * obj5 = 0 ; | |
6807 | char *kwnames[] = { | |
6808 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6809 | }; | |
6810 | ||
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6814 | arg2 = (int) SWIG_AsInt(obj1); | |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
6816 | if (obj2) { | |
6817 | { | |
6818 | arg3 = &temp3; | |
6819 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6820 | } | |
6821 | } | |
6822 | if (obj3) { | |
6823 | { | |
6824 | arg4 = &temp4; | |
6825 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6826 | } | |
6827 | } | |
6828 | if (obj4) { | |
6829 | arg5 = (long) SWIG_AsLong(obj4); | |
6830 | if (PyErr_Occurred()) SWIG_fail; | |
6831 | } | |
6832 | if (obj5) { | |
6833 | { | |
6834 | arg6 = wxString_in_helper(obj5); | |
6835 | if (arg6 == NULL) SWIG_fail; | |
6836 | temp6 = True; | |
6837 | } | |
6838 | } | |
6839 | { | |
0439c23b | 6840 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6842 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6843 | ||
6844 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6845 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6846 | } |
6847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6848 | { | |
6849 | if (temp6) | |
6850 | delete arg6; | |
6851 | } | |
6852 | return resultobj; | |
6853 | fail: | |
6854 | { | |
6855 | if (temp6) | |
6856 | delete arg6; | |
6857 | } | |
6858 | return NULL; | |
6859 | } | |
6860 | ||
6861 | ||
6862 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6863 | PyObject *resultobj; | |
6864 | wxSashWindow *result; | |
6865 | char *kwnames[] = { | |
6866 | NULL | |
6867 | }; | |
6868 | ||
6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6870 | { | |
0439c23b | 6871 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6873 | result = (wxSashWindow *)new wxSashWindow(); | |
6874 | ||
6875 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6876 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6877 | } |
6878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6879 | return resultobj; | |
6880 | fail: | |
6881 | return NULL; | |
6882 | } | |
6883 | ||
6884 | ||
6885 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6886 | PyObject *resultobj; | |
6887 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6888 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6889 | int arg3 ; | |
6890 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6891 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6892 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6893 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6894 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6895 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6896 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6897 | bool result; | |
6898 | wxPoint temp4 ; | |
6899 | wxSize temp5 ; | |
6900 | bool temp7 = False ; | |
6901 | PyObject * obj0 = 0 ; | |
6902 | PyObject * obj1 = 0 ; | |
6903 | PyObject * obj2 = 0 ; | |
6904 | PyObject * obj3 = 0 ; | |
6905 | PyObject * obj4 = 0 ; | |
6906 | PyObject * obj5 = 0 ; | |
6907 | PyObject * obj6 = 0 ; | |
6908 | char *kwnames[] = { | |
6909 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6910 | }; | |
6911 | ||
6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6915 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6917 | arg3 = (int) SWIG_AsInt(obj2); | |
6918 | if (PyErr_Occurred()) SWIG_fail; | |
6919 | if (obj3) { | |
6920 | { | |
6921 | arg4 = &temp4; | |
6922 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6923 | } | |
6924 | } | |
6925 | if (obj4) { | |
6926 | { | |
6927 | arg5 = &temp5; | |
6928 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6929 | } | |
6930 | } | |
6931 | if (obj5) { | |
6932 | arg6 = (long) SWIG_AsLong(obj5); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
6935 | if (obj6) { | |
6936 | { | |
6937 | arg7 = wxString_in_helper(obj6); | |
6938 | if (arg7 == NULL) SWIG_fail; | |
6939 | temp7 = True; | |
6940 | } | |
6941 | } | |
6942 | { | |
6943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6944 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6945 | ||
6946 | wxPyEndAllowThreads(__tstate); | |
6947 | if (PyErr_Occurred()) SWIG_fail; | |
6948 | } | |
6949 | { | |
6950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6951 | } | |
6952 | { | |
6953 | if (temp7) | |
6954 | delete arg7; | |
6955 | } | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | { | |
6959 | if (temp7) | |
6960 | delete arg7; | |
6961 | } | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
6968 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6969 | int arg2 ; | |
6970 | bool arg3 ; | |
6971 | PyObject * obj0 = 0 ; | |
6972 | PyObject * obj1 = 0 ; | |
6973 | PyObject * obj2 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6981 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | arg3 = (bool) SWIG_AsBool(obj2); | |
6984 | if (PyErr_Occurred()) SWIG_fail; | |
6985 | { | |
6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6987 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6988 | ||
6989 | wxPyEndAllowThreads(__tstate); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | } | |
6992 | Py_INCREF(Py_None); resultobj = Py_None; | |
6993 | return resultobj; | |
6994 | fail: | |
6995 | return NULL; | |
6996 | } | |
6997 | ||
6998 | ||
6999 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7000 | PyObject *resultobj; | |
7001 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7002 | int arg2 ; | |
7003 | bool result; | |
7004 | PyObject * obj0 = 0 ; | |
7005 | PyObject * obj1 = 0 ; | |
7006 | char *kwnames[] = { | |
7007 | (char *) "self",(char *) "edge", NULL | |
7008 | }; | |
7009 | ||
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
7011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7013 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
7015 | { | |
7016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7017 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
7018 | ||
7019 | wxPyEndAllowThreads(__tstate); | |
7020 | if (PyErr_Occurred()) SWIG_fail; | |
7021 | } | |
7022 | { | |
7023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7024 | } | |
7025 | return resultobj; | |
7026 | fail: | |
7027 | return NULL; | |
7028 | } | |
7029 | ||
7030 | ||
7031 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7032 | PyObject *resultobj; | |
7033 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7034 | int arg2 ; | |
7035 | bool arg3 ; | |
7036 | PyObject * obj0 = 0 ; | |
7037 | PyObject * obj1 = 0 ; | |
7038 | PyObject * obj2 = 0 ; | |
7039 | char *kwnames[] = { | |
7040 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
7041 | }; | |
7042 | ||
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7046 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | arg3 = (bool) SWIG_AsBool(obj2); | |
7049 | if (PyErr_Occurred()) SWIG_fail; | |
7050 | { | |
7051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7052 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
7053 | ||
7054 | wxPyEndAllowThreads(__tstate); | |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
7056 | } | |
7057 | Py_INCREF(Py_None); resultobj = Py_None; | |
7058 | return resultobj; | |
7059 | fail: | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
7064 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject *resultobj; | |
7066 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7067 | int arg2 ; | |
7068 | bool result; | |
7069 | PyObject * obj0 = 0 ; | |
7070 | PyObject * obj1 = 0 ; | |
7071 | char *kwnames[] = { | |
7072 | (char *) "self",(char *) "edge", NULL | |
7073 | }; | |
7074 | ||
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
7076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7078 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | { | |
7081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7082 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
7083 | ||
7084 | wxPyEndAllowThreads(__tstate); | |
7085 | if (PyErr_Occurred()) SWIG_fail; | |
7086 | } | |
7087 | { | |
7088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7089 | } | |
7090 | return resultobj; | |
7091 | fail: | |
7092 | return NULL; | |
7093 | } | |
7094 | ||
7095 | ||
7096 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7097 | PyObject *resultobj; | |
7098 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7099 | int arg2 ; | |
7100 | int result; | |
7101 | PyObject * obj0 = 0 ; | |
7102 | PyObject * obj1 = 0 ; | |
7103 | char *kwnames[] = { | |
7104 | (char *) "self",(char *) "edge", NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7110 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
7112 | { | |
7113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7114 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7115 | ||
7116 | wxPyEndAllowThreads(__tstate); | |
7117 | if (PyErr_Occurred()) SWIG_fail; | |
7118 | } | |
7119 | resultobj = SWIG_FromInt((int)result); | |
7120 | return resultobj; | |
7121 | fail: | |
7122 | return NULL; | |
7123 | } | |
7124 | ||
7125 | ||
7126 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject *resultobj; | |
7128 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7129 | int arg2 ; | |
7130 | PyObject * obj0 = 0 ; | |
7131 | PyObject * obj1 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "self",(char *) "width", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7139 | arg2 = (int) SWIG_AsInt(obj1); | |
7140 | if (PyErr_Occurred()) SWIG_fail; | |
7141 | { | |
7142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7143 | (arg1)->SetDefaultBorderSize(arg2); | |
7144 | ||
7145 | wxPyEndAllowThreads(__tstate); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
7148 | Py_INCREF(Py_None); resultobj = Py_None; | |
7149 | return resultobj; | |
7150 | fail: | |
7151 | return NULL; | |
7152 | } | |
7153 | ||
7154 | ||
7155 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7156 | PyObject *resultobj; | |
7157 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7158 | int result; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | char *kwnames[] = { | |
7161 | (char *) "self", NULL | |
7162 | }; | |
7163 | ||
7164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | resultobj = SWIG_FromInt((int)result); | |
7175 | return resultobj; | |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj; | |
7183 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7184 | int arg2 ; | |
7185 | PyObject * obj0 = 0 ; | |
7186 | PyObject * obj1 = 0 ; | |
7187 | char *kwnames[] = { | |
7188 | (char *) "self",(char *) "width", NULL | |
7189 | }; | |
7190 | ||
7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7194 | arg2 = (int) SWIG_AsInt(obj1); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | { | |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | (arg1)->SetExtraBorderSize(arg2); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | Py_INCREF(Py_None); resultobj = Py_None; | |
7204 | return resultobj; | |
7205 | fail: | |
7206 | return NULL; | |
7207 | } | |
7208 | ||
7209 | ||
7210 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7211 | PyObject *resultobj; | |
7212 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7213 | int result; | |
7214 | PyObject * obj0 = 0 ; | |
7215 | char *kwnames[] = { | |
7216 | (char *) "self", NULL | |
7217 | }; | |
7218 | ||
7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7222 | { | |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7224 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7225 | ||
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
7229 | resultobj = SWIG_FromInt((int)result); | |
7230 | return resultobj; | |
7231 | fail: | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
7236 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject *resultobj; | |
7238 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7239 | int arg2 ; | |
7240 | PyObject * obj0 = 0 ; | |
7241 | PyObject * obj1 = 0 ; | |
7242 | char *kwnames[] = { | |
7243 | (char *) "self",(char *) "min", NULL | |
7244 | }; | |
7245 | ||
7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7249 | arg2 = (int) SWIG_AsInt(obj1); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | (arg1)->SetMinimumSizeX(arg2); | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | Py_INCREF(Py_None); resultobj = Py_None; | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7266 | PyObject *resultobj; | |
7267 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7268 | int arg2 ; | |
7269 | PyObject * obj0 = 0 ; | |
7270 | PyObject * obj1 = 0 ; | |
7271 | char *kwnames[] = { | |
7272 | (char *) "self",(char *) "min", NULL | |
7273 | }; | |
7274 | ||
7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7278 | arg2 = (int) SWIG_AsInt(obj1); | |
7279 | if (PyErr_Occurred()) SWIG_fail; | |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | (arg1)->SetMinimumSizeY(arg2); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | Py_INCREF(Py_None); resultobj = Py_None; | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
7294 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject *resultobj; | |
7296 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7297 | int result; | |
7298 | PyObject * obj0 = 0 ; | |
7299 | char *kwnames[] = { | |
7300 | (char *) "self", NULL | |
7301 | }; | |
7302 | ||
7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7306 | { | |
7307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7308 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7309 | ||
7310 | wxPyEndAllowThreads(__tstate); | |
7311 | if (PyErr_Occurred()) SWIG_fail; | |
7312 | } | |
7313 | resultobj = SWIG_FromInt((int)result); | |
7314 | return resultobj; | |
7315 | fail: | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
7320 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject *resultobj; | |
7322 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7323 | int result; | |
7324 | PyObject * obj0 = 0 ; | |
7325 | char *kwnames[] = { | |
7326 | (char *) "self", NULL | |
7327 | }; | |
7328 | ||
7329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7332 | { | |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7335 | ||
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | resultobj = SWIG_FromInt((int)result); | |
7340 | return resultobj; | |
7341 | fail: | |
7342 | return NULL; | |
7343 | } | |
7344 | ||
7345 | ||
7346 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7347 | PyObject *resultobj; | |
7348 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7349 | int arg2 ; | |
7350 | PyObject * obj0 = 0 ; | |
7351 | PyObject * obj1 = 0 ; | |
7352 | char *kwnames[] = { | |
7353 | (char *) "self",(char *) "max", NULL | |
7354 | }; | |
7355 | ||
7356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7359 | arg2 = (int) SWIG_AsInt(obj1); | |
7360 | if (PyErr_Occurred()) SWIG_fail; | |
7361 | { | |
7362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7363 | (arg1)->SetMaximumSizeX(arg2); | |
7364 | ||
7365 | wxPyEndAllowThreads(__tstate); | |
7366 | if (PyErr_Occurred()) SWIG_fail; | |
7367 | } | |
7368 | Py_INCREF(Py_None); resultobj = Py_None; | |
7369 | return resultobj; | |
7370 | fail: | |
7371 | return NULL; | |
7372 | } | |
7373 | ||
7374 | ||
7375 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7376 | PyObject *resultobj; | |
7377 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7378 | int arg2 ; | |
7379 | PyObject * obj0 = 0 ; | |
7380 | PyObject * obj1 = 0 ; | |
7381 | char *kwnames[] = { | |
7382 | (char *) "self",(char *) "max", NULL | |
7383 | }; | |
7384 | ||
7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7388 | arg2 = (int) SWIG_AsInt(obj1); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | (arg1)->SetMaximumSizeY(arg2); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | Py_INCREF(Py_None); resultobj = Py_None; | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj; | |
7406 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7407 | int result; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | char *kwnames[] = { | |
7410 | (char *) "self", NULL | |
7411 | }; | |
7412 | ||
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7416 | { | |
7417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7418 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7419 | ||
7420 | wxPyEndAllowThreads(__tstate); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | } | |
7423 | resultobj = SWIG_FromInt((int)result); | |
7424 | return resultobj; | |
7425 | fail: | |
7426 | return NULL; | |
7427 | } | |
7428 | ||
7429 | ||
7430 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7431 | PyObject *resultobj; | |
7432 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7433 | int result; | |
7434 | PyObject * obj0 = 0 ; | |
7435 | char *kwnames[] = { | |
7436 | (char *) "self", NULL | |
7437 | }; | |
7438 | ||
7439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7442 | { | |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7445 | ||
7446 | wxPyEndAllowThreads(__tstate); | |
7447 | if (PyErr_Occurred()) SWIG_fail; | |
7448 | } | |
7449 | resultobj = SWIG_FromInt((int)result); | |
7450 | return resultobj; | |
7451 | fail: | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
7456 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject *resultobj; | |
7458 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7459 | int arg2 ; | |
7460 | int arg3 ; | |
7461 | int arg4 = (int) 2 ; | |
7462 | int result; | |
7463 | PyObject * obj0 = 0 ; | |
7464 | PyObject * obj1 = 0 ; | |
7465 | PyObject * obj2 = 0 ; | |
7466 | PyObject * obj3 = 0 ; | |
7467 | char *kwnames[] = { | |
7468 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7469 | }; | |
7470 | ||
7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7474 | arg2 = (int) SWIG_AsInt(obj1); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | arg3 = (int) SWIG_AsInt(obj2); | |
7477 | if (PyErr_Occurred()) SWIG_fail; | |
7478 | if (obj3) { | |
7479 | arg4 = (int) SWIG_AsInt(obj3); | |
7480 | if (PyErr_Occurred()) SWIG_fail; | |
7481 | } | |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
7489 | resultobj = SWIG_FromInt((int)result); | |
7490 | return resultobj; | |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj; | |
7498 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7499 | PyObject * obj0 = 0 ; | |
7500 | char *kwnames[] = { | |
7501 | (char *) "self", NULL | |
7502 | }; | |
7503 | ||
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | (arg1)->SizeWindows(); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
7514 | Py_INCREF(Py_None); resultobj = Py_None; | |
7515 | return resultobj; | |
7516 | fail: | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
7521 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7522 | PyObject *obj; | |
7523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7524 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7525 | Py_INCREF(obj); | |
7526 | return Py_BuildValue((char *)""); | |
7527 | } | |
7528 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | int arg1 = (int) 0 ; | |
7531 | int arg2 = (int) wxSASH_NONE ; | |
7532 | wxSashEvent *result; | |
7533 | PyObject * obj0 = 0 ; | |
7534 | PyObject * obj1 = 0 ; | |
7535 | char *kwnames[] = { | |
7536 | (char *) "id",(char *) "edge", NULL | |
7537 | }; | |
7538 | ||
7539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7540 | if (obj0) { | |
7541 | arg1 = (int) SWIG_AsInt(obj0); | |
7542 | if (PyErr_Occurred()) SWIG_fail; | |
7543 | } | |
7544 | if (obj1) { | |
7545 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
7548 | { | |
7549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7550 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7551 | ||
7552 | wxPyEndAllowThreads(__tstate); | |
7553 | if (PyErr_Occurred()) SWIG_fail; | |
7554 | } | |
7555 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7556 | return resultobj; | |
7557 | fail: | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject *resultobj; | |
7564 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7565 | int arg2 ; | |
7566 | PyObject * obj0 = 0 ; | |
7567 | PyObject * obj1 = 0 ; | |
7568 | char *kwnames[] = { | |
7569 | (char *) "self",(char *) "edge", NULL | |
7570 | }; | |
7571 | ||
7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7575 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7576 | if (PyErr_Occurred()) SWIG_fail; | |
7577 | { | |
7578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7579 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7580 | ||
7581 | wxPyEndAllowThreads(__tstate); | |
7582 | if (PyErr_Occurred()) SWIG_fail; | |
7583 | } | |
7584 | Py_INCREF(Py_None); resultobj = Py_None; | |
7585 | return resultobj; | |
7586 | fail: | |
7587 | return NULL; | |
7588 | } | |
7589 | ||
7590 | ||
7591 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7592 | PyObject *resultobj; | |
7593 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7594 | int result; | |
7595 | PyObject * obj0 = 0 ; | |
7596 | char *kwnames[] = { | |
7597 | (char *) "self", NULL | |
7598 | }; | |
7599 | ||
7600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7603 | { | |
7604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7605 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7606 | ||
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
7610 | resultobj = SWIG_FromInt((int)result); | |
7611 | return resultobj; | |
7612 | fail: | |
7613 | return NULL; | |
7614 | } | |
7615 | ||
7616 | ||
7617 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7618 | PyObject *resultobj; | |
7619 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7620 | wxRect *arg2 = 0 ; | |
7621 | wxRect temp2 ; | |
7622 | PyObject * obj0 = 0 ; | |
7623 | PyObject * obj1 = 0 ; | |
7624 | char *kwnames[] = { | |
7625 | (char *) "self",(char *) "rect", NULL | |
7626 | }; | |
7627 | ||
7628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7631 | { | |
7632 | arg2 = &temp2; | |
7633 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7634 | } | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | Py_INCREF(Py_None); resultobj = Py_None; | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
7649 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject *resultobj; | |
7651 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7652 | wxRect result; | |
7653 | PyObject * obj0 = 0 ; | |
7654 | char *kwnames[] = { | |
7655 | (char *) "self", NULL | |
7656 | }; | |
7657 | ||
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7661 | { | |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | { | |
7669 | wxRect * resultptr; | |
7670 | resultptr = new wxRect((wxRect &) result); | |
7671 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7672 | } | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7682 | int arg2 ; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | PyObject * obj1 = 0 ; | |
7685 | char *kwnames[] = { | |
7686 | (char *) "self",(char *) "status", NULL | |
7687 | }; | |
7688 | ||
7689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7692 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7693 | if (PyErr_Occurred()) SWIG_fail; | |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7696 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7697 | ||
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | Py_INCREF(Py_None); resultobj = Py_None; | |
7702 | return resultobj; | |
7703 | fail: | |
7704 | return NULL; | |
7705 | } | |
7706 | ||
7707 | ||
7708 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7709 | PyObject *resultobj; | |
7710 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7711 | int result; | |
7712 | PyObject * obj0 = 0 ; | |
7713 | char *kwnames[] = { | |
7714 | (char *) "self", NULL | |
7715 | }; | |
7716 | ||
7717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7720 | { | |
7721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7723 | ||
7724 | wxPyEndAllowThreads(__tstate); | |
7725 | if (PyErr_Occurred()) SWIG_fail; | |
7726 | } | |
7727 | resultobj = SWIG_FromInt((int)result); | |
7728 | return resultobj; | |
7729 | fail: | |
7730 | return NULL; | |
7731 | } | |
7732 | ||
7733 | ||
7734 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7735 | PyObject *obj; | |
7736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7737 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7738 | Py_INCREF(obj); | |
7739 | return Py_BuildValue((char *)""); | |
7740 | } | |
7741 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj; | |
7743 | int arg1 = (int) 0 ; | |
7744 | wxQueryLayoutInfoEvent *result; | |
7745 | PyObject * obj0 = 0 ; | |
7746 | char *kwnames[] = { | |
7747 | (char *) "id", NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7751 | if (obj0) { | |
7752 | arg1 = (int) SWIG_AsInt(obj0); | |
7753 | if (PyErr_Occurred()) SWIG_fail; | |
7754 | } | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
7762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7763 | return resultobj; | |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7770 | PyObject *resultobj; | |
7771 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7772 | int arg2 ; | |
7773 | PyObject * obj0 = 0 ; | |
7774 | PyObject * obj1 = 0 ; | |
7775 | char *kwnames[] = { | |
7776 | (char *) "self",(char *) "length", NULL | |
7777 | }; | |
7778 | ||
7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7782 | arg2 = (int) SWIG_AsInt(obj1); | |
7783 | if (PyErr_Occurred()) SWIG_fail; | |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | (arg1)->SetRequestedLength(arg2); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
7791 | Py_INCREF(Py_None); resultobj = Py_None; | |
7792 | return resultobj; | |
7793 | fail: | |
7794 | return NULL; | |
7795 | } | |
7796 | ||
7797 | ||
7798 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7799 | PyObject *resultobj; | |
7800 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7801 | int result; | |
7802 | PyObject * obj0 = 0 ; | |
7803 | char *kwnames[] = { | |
7804 | (char *) "self", NULL | |
7805 | }; | |
7806 | ||
7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7810 | { | |
7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7812 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7813 | ||
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | resultobj = SWIG_FromInt((int)result); | |
7818 | return resultobj; | |
7819 | fail: | |
7820 | return NULL; | |
7821 | } | |
7822 | ||
7823 | ||
7824 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7825 | PyObject *resultobj; | |
7826 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7827 | int arg2 ; | |
7828 | PyObject * obj0 = 0 ; | |
7829 | PyObject * obj1 = 0 ; | |
7830 | char *kwnames[] = { | |
7831 | (char *) "self",(char *) "flags", NULL | |
7832 | }; | |
7833 | ||
7834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7837 | arg2 = (int) SWIG_AsInt(obj1); | |
7838 | if (PyErr_Occurred()) SWIG_fail; | |
7839 | { | |
7840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7841 | (arg1)->SetFlags(arg2); | |
7842 | ||
7843 | wxPyEndAllowThreads(__tstate); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | } | |
7846 | Py_INCREF(Py_None); resultobj = Py_None; | |
7847 | return resultobj; | |
7848 | fail: | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
7853 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7854 | PyObject *resultobj; | |
7855 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7856 | int result; | |
7857 | PyObject * obj0 = 0 ; | |
7858 | char *kwnames[] = { | |
7859 | (char *) "self", NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7865 | { | |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7868 | ||
7869 | wxPyEndAllowThreads(__tstate); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
7872 | resultobj = SWIG_FromInt((int)result); | |
7873 | return resultobj; | |
7874 | fail: | |
7875 | return NULL; | |
7876 | } | |
7877 | ||
7878 | ||
7879 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7880 | PyObject *resultobj; | |
7881 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7882 | wxSize *arg2 = 0 ; | |
7883 | wxSize temp2 ; | |
7884 | PyObject * obj0 = 0 ; | |
7885 | PyObject * obj1 = 0 ; | |
7886 | char *kwnames[] = { | |
7887 | (char *) "self",(char *) "size", NULL | |
7888 | }; | |
7889 | ||
7890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7893 | { | |
7894 | arg2 = &temp2; | |
7895 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7896 | } | |
7897 | { | |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | (arg1)->SetSize((wxSize const &)*arg2); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | Py_INCREF(Py_None); resultobj = Py_None; | |
7905 | return resultobj; | |
7906 | fail: | |
7907 | return NULL; | |
7908 | } | |
7909 | ||
7910 | ||
7911 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7912 | PyObject *resultobj; | |
7913 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7914 | wxSize result; | |
7915 | PyObject * obj0 = 0 ; | |
7916 | char *kwnames[] = { | |
7917 | (char *) "self", NULL | |
7918 | }; | |
7919 | ||
7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7923 | { | |
7924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7925 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7926 | ||
7927 | wxPyEndAllowThreads(__tstate); | |
7928 | if (PyErr_Occurred()) SWIG_fail; | |
7929 | } | |
7930 | { | |
7931 | wxSize * resultptr; | |
7932 | resultptr = new wxSize((wxSize &) result); | |
7933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7934 | } | |
7935 | return resultobj; | |
7936 | fail: | |
7937 | return NULL; | |
7938 | } | |
7939 | ||
7940 | ||
7941 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7942 | PyObject *resultobj; | |
7943 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7944 | int arg2 ; | |
7945 | PyObject * obj0 = 0 ; | |
7946 | PyObject * obj1 = 0 ; | |
7947 | char *kwnames[] = { | |
7948 | (char *) "self",(char *) "orient", NULL | |
7949 | }; | |
7950 | ||
7951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
7952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7954 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | { | |
7957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7958 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7959 | ||
7960 | wxPyEndAllowThreads(__tstate); | |
7961 | if (PyErr_Occurred()) SWIG_fail; | |
7962 | } | |
7963 | Py_INCREF(Py_None); resultobj = Py_None; | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7973 | int result; | |
7974 | PyObject * obj0 = 0 ; | |
7975 | char *kwnames[] = { | |
7976 | (char *) "self", NULL | |
7977 | }; | |
7978 | ||
7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7982 | { | |
7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7984 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7985 | ||
7986 | wxPyEndAllowThreads(__tstate); | |
7987 | if (PyErr_Occurred()) SWIG_fail; | |
7988 | } | |
7989 | resultobj = SWIG_FromInt((int)result); | |
7990 | return resultobj; | |
7991 | fail: | |
7992 | return NULL; | |
7993 | } | |
7994 | ||
7995 | ||
7996 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7997 | PyObject *resultobj; | |
7998 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7999 | int arg2 ; | |
8000 | PyObject * obj0 = 0 ; | |
8001 | PyObject * obj1 = 0 ; | |
8002 | char *kwnames[] = { | |
8003 | (char *) "self",(char *) "align", NULL | |
8004 | }; | |
8005 | ||
8006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8009 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8010 | if (PyErr_Occurred()) SWIG_fail; | |
8011 | { | |
8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8013 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8014 | ||
8015 | wxPyEndAllowThreads(__tstate); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | Py_INCREF(Py_None); resultobj = Py_None; | |
8019 | return resultobj; | |
8020 | fail: | |
8021 | return NULL; | |
8022 | } | |
8023 | ||
8024 | ||
8025 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8026 | PyObject *resultobj; | |
8027 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8028 | int result; | |
8029 | PyObject * obj0 = 0 ; | |
8030 | char *kwnames[] = { | |
8031 | (char *) "self", NULL | |
8032 | }; | |
8033 | ||
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
8035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8037 | { | |
8038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8039 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
8040 | ||
8041 | wxPyEndAllowThreads(__tstate); | |
8042 | if (PyErr_Occurred()) SWIG_fail; | |
8043 | } | |
8044 | resultobj = SWIG_FromInt((int)result); | |
8045 | return resultobj; | |
8046 | fail: | |
8047 | return NULL; | |
8048 | } | |
8049 | ||
8050 | ||
8051 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
8052 | PyObject *obj; | |
8053 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8054 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
8055 | Py_INCREF(obj); | |
8056 | return Py_BuildValue((char *)""); | |
8057 | } | |
8058 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | int arg1 = (int) 0 ; | |
8061 | wxCalculateLayoutEvent *result; | |
8062 | PyObject * obj0 = 0 ; | |
8063 | char *kwnames[] = { | |
8064 | (char *) "id", NULL | |
8065 | }; | |
8066 | ||
8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
8068 | if (obj0) { | |
8069 | arg1 = (int) SWIG_AsInt(obj0); | |
8070 | if (PyErr_Occurred()) SWIG_fail; | |
8071 | } | |
8072 | { | |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
8079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
8080 | return resultobj; | |
8081 | fail: | |
8082 | return NULL; | |
8083 | } | |
8084 | ||
8085 | ||
8086 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8087 | PyObject *resultobj; | |
8088 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8089 | int arg2 ; | |
8090 | PyObject * obj0 = 0 ; | |
8091 | PyObject * obj1 = 0 ; | |
8092 | char *kwnames[] = { | |
8093 | (char *) "self",(char *) "flags", NULL | |
8094 | }; | |
8095 | ||
8096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8099 | arg2 = (int) SWIG_AsInt(obj1); | |
8100 | if (PyErr_Occurred()) SWIG_fail; | |
8101 | { | |
8102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8103 | (arg1)->SetFlags(arg2); | |
8104 | ||
8105 | wxPyEndAllowThreads(__tstate); | |
8106 | if (PyErr_Occurred()) SWIG_fail; | |
8107 | } | |
8108 | Py_INCREF(Py_None); resultobj = Py_None; | |
8109 | return resultobj; | |
8110 | fail: | |
8111 | return NULL; | |
8112 | } | |
8113 | ||
8114 | ||
8115 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8116 | PyObject *resultobj; | |
8117 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8118 | int result; | |
8119 | PyObject * obj0 = 0 ; | |
8120 | char *kwnames[] = { | |
8121 | (char *) "self", NULL | |
8122 | }; | |
8123 | ||
8124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8127 | { | |
8128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8129 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8130 | ||
8131 | wxPyEndAllowThreads(__tstate); | |
8132 | if (PyErr_Occurred()) SWIG_fail; | |
8133 | } | |
8134 | resultobj = SWIG_FromInt((int)result); | |
8135 | return resultobj; | |
8136 | fail: | |
8137 | return NULL; | |
8138 | } | |
8139 | ||
8140 | ||
8141 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8142 | PyObject *resultobj; | |
8143 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8144 | wxRect *arg2 = 0 ; | |
8145 | wxRect temp2 ; | |
8146 | PyObject * obj0 = 0 ; | |
8147 | PyObject * obj1 = 0 ; | |
8148 | char *kwnames[] = { | |
8149 | (char *) "self",(char *) "rect", NULL | |
8150 | }; | |
8151 | ||
8152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8155 | { | |
8156 | arg2 = &temp2; | |
8157 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8158 | } | |
8159 | { | |
8160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8161 | (arg1)->SetRect((wxRect const &)*arg2); | |
8162 | ||
8163 | wxPyEndAllowThreads(__tstate); | |
8164 | if (PyErr_Occurred()) SWIG_fail; | |
8165 | } | |
8166 | Py_INCREF(Py_None); resultobj = Py_None; | |
8167 | return resultobj; | |
8168 | fail: | |
8169 | return NULL; | |
8170 | } | |
8171 | ||
8172 | ||
8173 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8174 | PyObject *resultobj; | |
8175 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8176 | wxRect result; | |
8177 | PyObject * obj0 = 0 ; | |
8178 | char *kwnames[] = { | |
8179 | (char *) "self", NULL | |
8180 | }; | |
8181 | ||
8182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8185 | { | |
8186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8187 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8188 | ||
8189 | wxPyEndAllowThreads(__tstate); | |
8190 | if (PyErr_Occurred()) SWIG_fail; | |
8191 | } | |
8192 | { | |
8193 | wxRect * resultptr; | |
8194 | resultptr = new wxRect((wxRect &) result); | |
8195 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8196 | } | |
8197 | return resultobj; | |
8198 | fail: | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8204 | PyObject *obj; | |
8205 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8206 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8207 | Py_INCREF(obj); | |
8208 | return Py_BuildValue((char *)""); | |
8209 | } | |
8210 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject *resultobj; | |
8212 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8213 | int arg2 ; | |
8214 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8215 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8216 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8217 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8218 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8219 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8220 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8221 | wxSashLayoutWindow *result; | |
8222 | wxPoint temp3 ; | |
8223 | wxSize temp4 ; | |
8224 | bool temp6 = False ; | |
8225 | PyObject * obj0 = 0 ; | |
8226 | PyObject * obj1 = 0 ; | |
8227 | PyObject * obj2 = 0 ; | |
8228 | PyObject * obj3 = 0 ; | |
8229 | PyObject * obj4 = 0 ; | |
8230 | PyObject * obj5 = 0 ; | |
8231 | char *kwnames[] = { | |
8232 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8233 | }; | |
8234 | ||
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8238 | arg2 = (int) SWIG_AsInt(obj1); | |
8239 | if (PyErr_Occurred()) SWIG_fail; | |
8240 | if (obj2) { | |
8241 | { | |
8242 | arg3 = &temp3; | |
8243 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8244 | } | |
8245 | } | |
8246 | if (obj3) { | |
8247 | { | |
8248 | arg4 = &temp4; | |
8249 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8250 | } | |
8251 | } | |
8252 | if (obj4) { | |
8253 | arg5 = (long) SWIG_AsLong(obj4); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
8256 | if (obj5) { | |
8257 | { | |
8258 | arg6 = wxString_in_helper(obj5); | |
8259 | if (arg6 == NULL) SWIG_fail; | |
8260 | temp6 = True; | |
8261 | } | |
8262 | } | |
8263 | { | |
0439c23b | 8264 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8266 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8267 | ||
8268 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8269 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8270 | } |
8271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8272 | { | |
8273 | if (temp6) | |
8274 | delete arg6; | |
8275 | } | |
8276 | return resultobj; | |
8277 | fail: | |
8278 | { | |
8279 | if (temp6) | |
8280 | delete arg6; | |
8281 | } | |
8282 | return NULL; | |
8283 | } | |
8284 | ||
8285 | ||
8286 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8287 | PyObject *resultobj; | |
8288 | wxSashLayoutWindow *result; | |
8289 | char *kwnames[] = { | |
8290 | NULL | |
8291 | }; | |
8292 | ||
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8294 | { | |
0439c23b | 8295 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8297 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8298 | ||
8299 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8300 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8301 | } |
8302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8303 | return resultobj; | |
8304 | fail: | |
8305 | return NULL; | |
8306 | } | |
8307 | ||
8308 | ||
8309 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8310 | PyObject *resultobj; | |
8311 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8312 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8313 | int arg3 ; | |
8314 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8315 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8316 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8317 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8318 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8319 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8320 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8321 | bool result; | |
8322 | wxPoint temp4 ; | |
8323 | wxSize temp5 ; | |
8324 | bool temp7 = False ; | |
8325 | PyObject * obj0 = 0 ; | |
8326 | PyObject * obj1 = 0 ; | |
8327 | PyObject * obj2 = 0 ; | |
8328 | PyObject * obj3 = 0 ; | |
8329 | PyObject * obj4 = 0 ; | |
8330 | PyObject * obj5 = 0 ; | |
8331 | PyObject * obj6 = 0 ; | |
8332 | char *kwnames[] = { | |
8333 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8334 | }; | |
8335 | ||
8336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8341 | arg3 = (int) SWIG_AsInt(obj2); | |
8342 | if (PyErr_Occurred()) SWIG_fail; | |
8343 | if (obj3) { | |
8344 | { | |
8345 | arg4 = &temp4; | |
8346 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8347 | } | |
8348 | } | |
8349 | if (obj4) { | |
8350 | { | |
8351 | arg5 = &temp5; | |
8352 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8353 | } | |
8354 | } | |
8355 | if (obj5) { | |
8356 | arg6 = (long) SWIG_AsLong(obj5); | |
8357 | if (PyErr_Occurred()) SWIG_fail; | |
8358 | } | |
8359 | if (obj6) { | |
8360 | { | |
8361 | arg7 = wxString_in_helper(obj6); | |
8362 | if (arg7 == NULL) SWIG_fail; | |
8363 | temp7 = True; | |
8364 | } | |
8365 | } | |
8366 | { | |
8367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8368 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8369 | ||
8370 | wxPyEndAllowThreads(__tstate); | |
8371 | if (PyErr_Occurred()) SWIG_fail; | |
8372 | } | |
8373 | { | |
8374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8375 | } | |
8376 | { | |
8377 | if (temp7) | |
8378 | delete arg7; | |
8379 | } | |
8380 | return resultobj; | |
8381 | fail: | |
8382 | { | |
8383 | if (temp7) | |
8384 | delete arg7; | |
8385 | } | |
8386 | return NULL; | |
8387 | } | |
8388 | ||
8389 | ||
8390 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8391 | PyObject *resultobj; | |
8392 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8393 | int result; | |
8394 | PyObject * obj0 = 0 ; | |
8395 | char *kwnames[] = { | |
8396 | (char *) "self", NULL | |
8397 | }; | |
8398 | ||
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8402 | { | |
8403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8404 | result = (int)(arg1)->GetAlignment(); | |
8405 | ||
8406 | wxPyEndAllowThreads(__tstate); | |
8407 | if (PyErr_Occurred()) SWIG_fail; | |
8408 | } | |
8409 | resultobj = SWIG_FromInt((int)result); | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8417 | PyObject *resultobj; | |
8418 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8419 | int result; | |
8420 | PyObject * obj0 = 0 ; | |
8421 | char *kwnames[] = { | |
8422 | (char *) "self", NULL | |
8423 | }; | |
8424 | ||
8425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8428 | { | |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8430 | result = (int)(arg1)->GetOrientation(); | |
8431 | ||
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
8435 | resultobj = SWIG_FromInt((int)result); | |
8436 | return resultobj; | |
8437 | fail: | |
8438 | return NULL; | |
8439 | } | |
8440 | ||
8441 | ||
8442 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8443 | PyObject *resultobj; | |
8444 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8445 | int arg2 ; | |
8446 | PyObject * obj0 = 0 ; | |
8447 | PyObject * obj1 = 0 ; | |
8448 | char *kwnames[] = { | |
8449 | (char *) "self",(char *) "alignment", NULL | |
8450 | }; | |
8451 | ||
8452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8455 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | { | |
8458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8459 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8460 | ||
8461 | wxPyEndAllowThreads(__tstate); | |
8462 | if (PyErr_Occurred()) SWIG_fail; | |
8463 | } | |
8464 | Py_INCREF(Py_None); resultobj = Py_None; | |
8465 | return resultobj; | |
8466 | fail: | |
8467 | return NULL; | |
8468 | } | |
8469 | ||
8470 | ||
8471 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject *resultobj; | |
8473 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8474 | wxSize *arg2 = 0 ; | |
8475 | wxSize temp2 ; | |
8476 | PyObject * obj0 = 0 ; | |
8477 | PyObject * obj1 = 0 ; | |
8478 | char *kwnames[] = { | |
8479 | (char *) "self",(char *) "size", NULL | |
8480 | }; | |
8481 | ||
8482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8485 | { | |
8486 | arg2 = &temp2; | |
8487 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8488 | } | |
8489 | { | |
8490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8491 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8492 | ||
8493 | wxPyEndAllowThreads(__tstate); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
8496 | Py_INCREF(Py_None); resultobj = Py_None; | |
8497 | return resultobj; | |
8498 | fail: | |
8499 | return NULL; | |
8500 | } | |
8501 | ||
8502 | ||
8503 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8504 | PyObject *resultobj; | |
8505 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8506 | int arg2 ; | |
8507 | PyObject * obj0 = 0 ; | |
8508 | PyObject * obj1 = 0 ; | |
8509 | char *kwnames[] = { | |
8510 | (char *) "self",(char *) "orientation", NULL | |
8511 | }; | |
8512 | ||
8513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8516 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | { | |
8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8520 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8521 | ||
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | Py_INCREF(Py_None); resultobj = Py_None; | |
8526 | return resultobj; | |
8527 | fail: | |
8528 | return NULL; | |
8529 | } | |
8530 | ||
8531 | ||
8532 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8533 | PyObject *obj; | |
8534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8535 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8536 | Py_INCREF(obj); | |
8537 | return Py_BuildValue((char *)""); | |
8538 | } | |
8539 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8540 | PyObject *resultobj; | |
8541 | wxLayoutAlgorithm *result; | |
8542 | char *kwnames[] = { | |
8543 | NULL | |
8544 | }; | |
8545 | ||
8546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8547 | { | |
8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8549 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8550 | ||
8551 | wxPyEndAllowThreads(__tstate); | |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
8553 | } | |
8554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8555 | return resultobj; | |
8556 | fail: | |
8557 | return NULL; | |
8558 | } | |
8559 | ||
8560 | ||
8561 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8562 | PyObject *resultobj; | |
8563 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8564 | PyObject * obj0 = 0 ; | |
8565 | char *kwnames[] = { | |
8566 | (char *) "self", NULL | |
8567 | }; | |
8568 | ||
8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8572 | { | |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8574 | delete arg1; | |
8575 | ||
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
8579 | Py_INCREF(Py_None); resultobj = Py_None; | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
8586 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8587 | PyObject *resultobj; | |
8588 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8589 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8590 | wxRect *arg3 = (wxRect *) NULL ; | |
8591 | bool result; | |
8592 | PyObject * obj0 = 0 ; | |
8593 | PyObject * obj1 = 0 ; | |
8594 | PyObject * obj2 = 0 ; | |
8595 | char *kwnames[] = { | |
8596 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8597 | }; | |
8598 | ||
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8602 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8604 | if (obj2) { | |
8605 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8607 | } | |
8608 | { | |
8609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8610 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8611 | ||
8612 | wxPyEndAllowThreads(__tstate); | |
8613 | if (PyErr_Occurred()) SWIG_fail; | |
8614 | } | |
8615 | { | |
8616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8617 | } | |
8618 | return resultobj; | |
8619 | fail: | |
8620 | return NULL; | |
8621 | } | |
8622 | ||
8623 | ||
8624 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8625 | PyObject *resultobj; | |
8626 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8627 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8628 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8629 | bool result; | |
8630 | PyObject * obj0 = 0 ; | |
8631 | PyObject * obj1 = 0 ; | |
8632 | PyObject * obj2 = 0 ; | |
8633 | char *kwnames[] = { | |
8634 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8635 | }; | |
8636 | ||
8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8642 | if (obj2) { | |
8643 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8645 | } | |
8646 | { | |
8647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8648 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8649 | ||
8650 | wxPyEndAllowThreads(__tstate); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | { | |
8654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8655 | } | |
8656 | return resultobj; | |
8657 | fail: | |
8658 | return NULL; | |
8659 | } | |
8660 | ||
8661 | ||
8662 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject *resultobj; | |
8664 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8666 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8667 | bool result; | |
8668 | PyObject * obj0 = 0 ; | |
8669 | PyObject * obj1 = 0 ; | |
8670 | PyObject * obj2 = 0 ; | |
8671 | char *kwnames[] = { | |
8672 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8673 | }; | |
8674 | ||
8675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8678 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8680 | if (obj2) { | |
8681 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8683 | } | |
8684 | { | |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
8690 | } | |
8691 | { | |
8692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8693 | } | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | return NULL; | |
8697 | } | |
8698 | ||
8699 | ||
8700 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8701 | PyObject *obj; | |
8702 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8703 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8704 | Py_INCREF(obj); | |
8705 | return Py_BuildValue((char *)""); | |
8706 | } | |
8707 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8708 | PyObject *resultobj; | |
8709 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8710 | int arg2 = (int) wxBORDER_NONE ; | |
8711 | wxPopupWindow *result; | |
8712 | PyObject * obj0 = 0 ; | |
8713 | PyObject * obj1 = 0 ; | |
8714 | char *kwnames[] = { | |
8715 | (char *) "parent",(char *) "flags", NULL | |
8716 | }; | |
8717 | ||
8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8721 | if (obj1) { | |
8722 | arg2 = (int) SWIG_AsInt(obj1); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | { | |
8726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8727 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8728 | ||
8729 | wxPyEndAllowThreads(__tstate); | |
8730 | if (PyErr_Occurred()) SWIG_fail; | |
8731 | } | |
8732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8733 | return resultobj; | |
8734 | fail: | |
8735 | return NULL; | |
8736 | } | |
8737 | ||
8738 | ||
8739 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8740 | PyObject *resultobj; | |
8741 | wxPopupWindow *result; | |
8742 | char *kwnames[] = { | |
8743 | NULL | |
8744 | }; | |
8745 | ||
8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8747 | { | |
8748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8749 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8750 | ||
8751 | wxPyEndAllowThreads(__tstate); | |
8752 | if (PyErr_Occurred()) SWIG_fail; | |
8753 | } | |
8754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8755 | return resultobj; | |
8756 | fail: | |
8757 | return NULL; | |
8758 | } | |
8759 | ||
8760 | ||
8761 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8762 | PyObject *obj; | |
8763 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8764 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8765 | Py_INCREF(obj); | |
8766 | return Py_BuildValue((char *)""); | |
8767 | } | |
8768 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8769 | PyObject *resultobj; | |
8770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8771 | int arg2 = (int) wxBORDER_NONE ; | |
8772 | wxPyPopupTransientWindow *result; | |
8773 | PyObject * obj0 = 0 ; | |
8774 | PyObject * obj1 = 0 ; | |
8775 | char *kwnames[] = { | |
8776 | (char *) "parent",(char *) "style", NULL | |
8777 | }; | |
8778 | ||
8779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8782 | if (obj1) { | |
8783 | arg2 = (int) SWIG_AsInt(obj1); | |
8784 | if (PyErr_Occurred()) SWIG_fail; | |
8785 | } | |
8786 | { | |
8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8788 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8789 | ||
8790 | wxPyEndAllowThreads(__tstate); | |
8791 | if (PyErr_Occurred()) SWIG_fail; | |
8792 | } | |
8793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8794 | return resultobj; | |
8795 | fail: | |
8796 | return NULL; | |
8797 | } | |
8798 | ||
8799 | ||
8800 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8801 | PyObject *resultobj; | |
8802 | wxPyPopupTransientWindow *result; | |
8803 | char *kwnames[] = { | |
8804 | NULL | |
8805 | }; | |
8806 | ||
8807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8808 | { | |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8810 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8811 | ||
8812 | wxPyEndAllowThreads(__tstate); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
8815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8816 | return resultobj; | |
8817 | fail: | |
8818 | return NULL; | |
8819 | } | |
8820 | ||
8821 | ||
8822 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
8823 | PyObject *obj; | |
8824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8825 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8826 | Py_INCREF(obj); | |
8827 | return Py_BuildValue((char *)""); | |
8828 | } | |
8829 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject *resultobj; | |
8831 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8832 | wxString *arg2 = 0 ; | |
8833 | int arg3 = (int) 100 ; | |
8834 | wxRect *arg4 = (wxRect *) NULL ; | |
8835 | wxTipWindow *result; | |
8836 | bool temp2 = False ; | |
8837 | PyObject * obj0 = 0 ; | |
8838 | PyObject * obj1 = 0 ; | |
8839 | PyObject * obj2 = 0 ; | |
8840 | PyObject * obj3 = 0 ; | |
8841 | char *kwnames[] = { | |
8842 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8843 | }; | |
8844 | ||
8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8848 | { | |
8849 | arg2 = wxString_in_helper(obj1); | |
8850 | if (arg2 == NULL) SWIG_fail; | |
8851 | temp2 = True; | |
8852 | } | |
8853 | if (obj2) { | |
8854 | arg3 = (int) SWIG_AsInt(obj2); | |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | } | |
8857 | if (obj3) { | |
8858 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
8859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8860 | } | |
8861 | { | |
0439c23b | 8862 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8864 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8865 | ||
8866 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8867 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8868 | } |
8869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
8870 | { | |
8871 | if (temp2) | |
8872 | delete arg2; | |
8873 | } | |
8874 | return resultobj; | |
8875 | fail: | |
8876 | { | |
8877 | if (temp2) | |
8878 | delete arg2; | |
8879 | } | |
8880 | return NULL; | |
8881 | } | |
8882 | ||
8883 | ||
8884 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8885 | PyObject *resultobj; | |
8886 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8887 | wxRect *arg2 = 0 ; | |
8888 | wxRect temp2 ; | |
8889 | PyObject * obj0 = 0 ; | |
8890 | PyObject * obj1 = 0 ; | |
8891 | char *kwnames[] = { | |
8892 | (char *) "self",(char *) "rectBound", NULL | |
8893 | }; | |
8894 | ||
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8898 | { | |
8899 | arg2 = &temp2; | |
8900 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8901 | } | |
8902 | { | |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | Py_INCREF(Py_None); resultobj = Py_None; | |
8910 | return resultobj; | |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
8916 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8917 | PyObject *resultobj; | |
8918 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8919 | PyObject * obj0 = 0 ; | |
8920 | char *kwnames[] = { | |
8921 | (char *) "self", NULL | |
8922 | }; | |
8923 | ||
8924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8927 | { | |
8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8929 | (arg1)->Close(); | |
8930 | ||
8931 | wxPyEndAllowThreads(__tstate); | |
8932 | if (PyErr_Occurred()) SWIG_fail; | |
8933 | } | |
8934 | Py_INCREF(Py_None); resultobj = Py_None; | |
8935 | return resultobj; | |
8936 | fail: | |
8937 | return NULL; | |
8938 | } | |
8939 | ||
8940 | ||
8941 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
8942 | PyObject *obj; | |
8943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8944 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
8945 | Py_INCREF(obj); | |
8946 | return Py_BuildValue((char *)""); | |
8947 | } | |
8948 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8949 | PyObject *resultobj; | |
8950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8951 | int arg2 = (int) wxID_ANY ; | |
8952 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8953 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8954 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8955 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8956 | long arg5 = (long) 0 ; | |
8957 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8958 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8959 | wxPyVScrolledWindow *result; | |
8960 | wxPoint temp3 ; | |
8961 | wxSize temp4 ; | |
8962 | bool temp6 = False ; | |
8963 | PyObject * obj0 = 0 ; | |
8964 | PyObject * obj1 = 0 ; | |
8965 | PyObject * obj2 = 0 ; | |
8966 | PyObject * obj3 = 0 ; | |
8967 | PyObject * obj4 = 0 ; | |
8968 | PyObject * obj5 = 0 ; | |
8969 | char *kwnames[] = { | |
8970 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8971 | }; | |
8972 | ||
8973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8976 | if (obj1) { | |
8977 | arg2 = (int) SWIG_AsInt(obj1); | |
8978 | if (PyErr_Occurred()) SWIG_fail; | |
8979 | } | |
8980 | if (obj2) { | |
8981 | { | |
8982 | arg3 = &temp3; | |
8983 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8984 | } | |
8985 | } | |
8986 | if (obj3) { | |
8987 | { | |
8988 | arg4 = &temp4; | |
8989 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8990 | } | |
8991 | } | |
8992 | if (obj4) { | |
8993 | arg5 = (long) SWIG_AsLong(obj4); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | } | |
8996 | if (obj5) { | |
8997 | { | |
8998 | arg6 = wxString_in_helper(obj5); | |
8999 | if (arg6 == NULL) SWIG_fail; | |
9000 | temp6 = True; | |
9001 | } | |
9002 | } | |
9003 | { | |
0439c23b | 9004 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9006 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9007 | ||
9008 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9009 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9010 | } |
9011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9012 | { | |
9013 | if (temp6) | |
9014 | delete arg6; | |
9015 | } | |
9016 | return resultobj; | |
9017 | fail: | |
9018 | { | |
9019 | if (temp6) | |
9020 | delete arg6; | |
9021 | } | |
9022 | return NULL; | |
9023 | } | |
9024 | ||
9025 | ||
9026 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9027 | PyObject *resultobj; | |
9028 | wxPyVScrolledWindow *result; | |
9029 | char *kwnames[] = { | |
9030 | NULL | |
9031 | }; | |
9032 | ||
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
9034 | { | |
0439c23b | 9035 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9037 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
9038 | ||
9039 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9040 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9041 | } |
9042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9043 | return resultobj; | |
9044 | fail: | |
9045 | return NULL; | |
9046 | } | |
9047 | ||
9048 | ||
9049 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject *resultobj; | |
9051 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9052 | PyObject *arg2 = (PyObject *) 0 ; | |
9053 | PyObject *arg3 = (PyObject *) 0 ; | |
9054 | PyObject * obj0 = 0 ; | |
9055 | PyObject * obj1 = 0 ; | |
9056 | PyObject * obj2 = 0 ; | |
9057 | char *kwnames[] = { | |
9058 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9059 | }; | |
9060 | ||
9061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9064 | arg2 = obj1; | |
9065 | arg3 = obj2; | |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | Py_INCREF(Py_None); resultobj = Py_None; | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
9080 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9081 | PyObject *resultobj; | |
9082 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9083 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9084 | int arg3 = (int) wxID_ANY ; | |
9085 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9086 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9087 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9088 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9089 | long arg6 = (long) 0 ; | |
9090 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9091 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9092 | bool result; | |
9093 | wxPoint temp4 ; | |
9094 | wxSize temp5 ; | |
9095 | bool temp7 = False ; | |
9096 | PyObject * obj0 = 0 ; | |
9097 | PyObject * obj1 = 0 ; | |
9098 | PyObject * obj2 = 0 ; | |
9099 | PyObject * obj3 = 0 ; | |
9100 | PyObject * obj4 = 0 ; | |
9101 | PyObject * obj5 = 0 ; | |
9102 | PyObject * obj6 = 0 ; | |
9103 | char *kwnames[] = { | |
9104 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9105 | }; | |
9106 | ||
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9110 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9112 | if (obj2) { | |
9113 | arg3 = (int) SWIG_AsInt(obj2); | |
9114 | if (PyErr_Occurred()) SWIG_fail; | |
9115 | } | |
9116 | if (obj3) { | |
9117 | { | |
9118 | arg4 = &temp4; | |
9119 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9120 | } | |
9121 | } | |
9122 | if (obj4) { | |
9123 | { | |
9124 | arg5 = &temp5; | |
9125 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9126 | } | |
9127 | } | |
9128 | if (obj5) { | |
9129 | arg6 = (long) SWIG_AsLong(obj5); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | if (obj6) { | |
9133 | { | |
9134 | arg7 = wxString_in_helper(obj6); | |
9135 | if (arg7 == NULL) SWIG_fail; | |
9136 | temp7 = True; | |
9137 | } | |
9138 | } | |
9139 | { | |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | { | |
9147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9148 | } | |
9149 | { | |
9150 | if (temp7) | |
9151 | delete arg7; | |
9152 | } | |
9153 | return resultobj; | |
9154 | fail: | |
9155 | { | |
9156 | if (temp7) | |
9157 | delete arg7; | |
9158 | } | |
9159 | return NULL; | |
9160 | } | |
9161 | ||
9162 | ||
9163 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9164 | PyObject *resultobj; | |
9165 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9166 | size_t arg2 ; | |
9167 | PyObject * obj0 = 0 ; | |
9168 | PyObject * obj1 = 0 ; | |
9169 | char *kwnames[] = { | |
9170 | (char *) "self",(char *) "count", NULL | |
9171 | }; | |
9172 | ||
9173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9176 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | { | |
9179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9180 | (arg1)->SetLineCount(arg2); | |
9181 | ||
9182 | wxPyEndAllowThreads(__tstate); | |
9183 | if (PyErr_Occurred()) SWIG_fail; | |
9184 | } | |
9185 | Py_INCREF(Py_None); resultobj = Py_None; | |
9186 | return resultobj; | |
9187 | fail: | |
9188 | return NULL; | |
9189 | } | |
9190 | ||
9191 | ||
9192 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9193 | PyObject *resultobj; | |
9194 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9195 | size_t arg2 ; | |
9196 | bool result; | |
9197 | PyObject * obj0 = 0 ; | |
9198 | PyObject * obj1 = 0 ; | |
9199 | char *kwnames[] = { | |
9200 | (char *) "self",(char *) "line", NULL | |
9201 | }; | |
9202 | ||
9203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9206 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | { | |
9209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9210 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9211 | ||
9212 | wxPyEndAllowThreads(__tstate); | |
9213 | if (PyErr_Occurred()) SWIG_fail; | |
9214 | } | |
9215 | { | |
9216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9217 | } | |
9218 | return resultobj; | |
9219 | fail: | |
9220 | return NULL; | |
9221 | } | |
9222 | ||
9223 | ||
9224 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9225 | PyObject *resultobj; | |
9226 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9227 | int arg2 ; | |
9228 | bool result; | |
9229 | PyObject * obj0 = 0 ; | |
9230 | PyObject * obj1 = 0 ; | |
9231 | char *kwnames[] = { | |
9232 | (char *) "self",(char *) "lines", NULL | |
9233 | }; | |
9234 | ||
9235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9238 | arg2 = (int) SWIG_AsInt(obj1); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | { | |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | result = (bool)(arg1)->ScrollLines(arg2); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | { | |
9248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9249 | } | |
9250 | return resultobj; | |
9251 | fail: | |
9252 | return NULL; | |
9253 | } | |
9254 | ||
9255 | ||
9256 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9257 | PyObject *resultobj; | |
9258 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9259 | int arg2 ; | |
9260 | bool result; | |
9261 | PyObject * obj0 = 0 ; | |
9262 | PyObject * obj1 = 0 ; | |
9263 | char *kwnames[] = { | |
9264 | (char *) "self",(char *) "pages", NULL | |
9265 | }; | |
9266 | ||
9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9270 | arg2 = (int) SWIG_AsInt(obj1); | |
9271 | if (PyErr_Occurred()) SWIG_fail; | |
9272 | { | |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (bool)(arg1)->ScrollPages(arg2); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | { | |
9280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9281 | } | |
9282 | return resultobj; | |
9283 | fail: | |
9284 | return NULL; | |
9285 | } | |
9286 | ||
9287 | ||
9288 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9289 | PyObject *resultobj; | |
9290 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9291 | size_t arg2 ; | |
9292 | PyObject * obj0 = 0 ; | |
9293 | PyObject * obj1 = 0 ; | |
9294 | char *kwnames[] = { | |
9295 | (char *) "self",(char *) "line", NULL | |
9296 | }; | |
9297 | ||
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9301 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | { | |
9304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9305 | (arg1)->RefreshLine(arg2); | |
9306 | ||
9307 | wxPyEndAllowThreads(__tstate); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | } | |
9310 | Py_INCREF(Py_None); resultobj = Py_None; | |
9311 | return resultobj; | |
9312 | fail: | |
9313 | return NULL; | |
9314 | } | |
9315 | ||
9316 | ||
9317 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9318 | PyObject *resultobj; | |
9319 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9320 | size_t arg2 ; | |
9321 | size_t arg3 ; | |
9322 | PyObject * obj0 = 0 ; | |
9323 | PyObject * obj1 = 0 ; | |
9324 | PyObject * obj2 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9332 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9333 | if (PyErr_Occurred()) SWIG_fail; | |
9334 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9335 | if (PyErr_Occurred()) SWIG_fail; | |
9336 | { | |
9337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9338 | (arg1)->RefreshLines(arg2,arg3); | |
9339 | ||
9340 | wxPyEndAllowThreads(__tstate); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | } | |
9343 | Py_INCREF(Py_None); resultobj = Py_None; | |
9344 | return resultobj; | |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject *resultobj; | |
9352 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9353 | int arg2 ; | |
9354 | int arg3 ; | |
9355 | int result; | |
9356 | PyObject * obj0 = 0 ; | |
9357 | PyObject * obj1 = 0 ; | |
9358 | PyObject * obj2 = 0 ; | |
9359 | char *kwnames[] = { | |
9360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9361 | }; | |
9362 | ||
9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9366 | arg2 = (int) SWIG_AsInt(obj1); | |
9367 | if (PyErr_Occurred()) SWIG_fail; | |
9368 | arg3 = (int) SWIG_AsInt(obj2); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9373 | ||
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
9377 | resultobj = SWIG_FromInt((int)result); | |
9378 | return resultobj; | |
9379 | fail: | |
9380 | return NULL; | |
9381 | } | |
9382 | ||
9383 | ||
9384 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9385 | PyObject *resultobj; | |
9386 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9387 | wxPoint *arg2 = 0 ; | |
9388 | int result; | |
9389 | wxPoint temp2 ; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | PyObject * obj1 = 0 ; | |
9392 | char *kwnames[] = { | |
9393 | (char *) "self",(char *) "pt", NULL | |
9394 | }; | |
9395 | ||
9396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9399 | { | |
9400 | arg2 = &temp2; | |
9401 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9402 | } | |
9403 | { | |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9405 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9406 | ||
9407 | wxPyEndAllowThreads(__tstate); | |
9408 | if (PyErr_Occurred()) SWIG_fail; | |
9409 | } | |
9410 | resultobj = SWIG_FromInt((int)result); | |
9411 | return resultobj; | |
9412 | fail: | |
9413 | return NULL; | |
9414 | } | |
9415 | ||
9416 | ||
9417 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9418 | PyObject *resultobj; | |
9419 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9420 | PyObject * obj0 = 0 ; | |
9421 | char *kwnames[] = { | |
9422 | (char *) "self", NULL | |
9423 | }; | |
9424 | ||
9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9428 | { | |
9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9430 | (arg1)->RefreshAll(); | |
9431 | ||
9432 | wxPyEndAllowThreads(__tstate); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
9434 | } | |
9435 | Py_INCREF(Py_None); resultobj = Py_None; | |
9436 | return resultobj; | |
9437 | fail: | |
9438 | return NULL; | |
9439 | } | |
9440 | ||
9441 | ||
9442 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9443 | PyObject *resultobj; | |
9444 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9445 | size_t result; | |
9446 | PyObject * obj0 = 0 ; | |
9447 | char *kwnames[] = { | |
9448 | (char *) "self", NULL | |
9449 | }; | |
9450 | ||
9451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9454 | { | |
9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9456 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9457 | ||
9458 | wxPyEndAllowThreads(__tstate); | |
9459 | if (PyErr_Occurred()) SWIG_fail; | |
9460 | } | |
9461 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9462 | return resultobj; | |
9463 | fail: | |
9464 | return NULL; | |
9465 | } | |
9466 | ||
9467 | ||
9468 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9469 | PyObject *resultobj; | |
9470 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9471 | size_t result; | |
9472 | PyObject * obj0 = 0 ; | |
9473 | char *kwnames[] = { | |
9474 | (char *) "self", NULL | |
9475 | }; | |
9476 | ||
9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9480 | { | |
9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9482 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9483 | ||
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
9487 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9488 | return resultobj; | |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj; | |
9496 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9497 | size_t result; | |
9498 | PyObject * obj0 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9506 | { | |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9509 | ||
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
9513 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9514 | return resultobj; | |
9515 | fail: | |
9516 | return NULL; | |
9517 | } | |
9518 | ||
9519 | ||
9520 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9521 | PyObject *resultobj; | |
9522 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9523 | size_t arg2 ; | |
9524 | bool result; | |
9525 | PyObject * obj0 = 0 ; | |
9526 | PyObject * obj1 = 0 ; | |
9527 | char *kwnames[] = { | |
9528 | (char *) "self",(char *) "line", NULL | |
9529 | }; | |
9530 | ||
9531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9534 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | { | |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9539 | ||
9540 | wxPyEndAllowThreads(__tstate); | |
9541 | if (PyErr_Occurred()) SWIG_fail; | |
9542 | } | |
9543 | { | |
9544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9545 | } | |
9546 | return resultobj; | |
9547 | fail: | |
9548 | return NULL; | |
9549 | } | |
9550 | ||
9551 | ||
9552 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9553 | PyObject *obj; | |
9554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9555 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9556 | Py_INCREF(obj); | |
9557 | return Py_BuildValue((char *)""); | |
9558 | } | |
9559 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9560 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9561 | return 1; | |
9562 | } | |
9563 | ||
9564 | ||
9565 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9566 | PyObject *pyobj; | |
9567 | ||
9568 | { | |
9569 | #if wxUSE_UNICODE | |
9570 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9571 | #else | |
9572 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9573 | #endif | |
9574 | } | |
9575 | return pyobj; | |
9576 | } | |
9577 | ||
9578 | ||
9579 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9580 | PyObject *resultobj; | |
9581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9582 | int arg2 = (int) wxID_ANY ; | |
9583 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9584 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9585 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9586 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9587 | long arg5 = (long) 0 ; | |
9588 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9589 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9590 | wxPyVListBox *result; | |
9591 | wxPoint temp3 ; | |
9592 | wxSize temp4 ; | |
9593 | bool temp6 = False ; | |
9594 | PyObject * obj0 = 0 ; | |
9595 | PyObject * obj1 = 0 ; | |
9596 | PyObject * obj2 = 0 ; | |
9597 | PyObject * obj3 = 0 ; | |
9598 | PyObject * obj4 = 0 ; | |
9599 | PyObject * obj5 = 0 ; | |
9600 | char *kwnames[] = { | |
9601 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9602 | }; | |
9603 | ||
9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9607 | if (obj1) { | |
9608 | arg2 = (int) SWIG_AsInt(obj1); | |
9609 | if (PyErr_Occurred()) SWIG_fail; | |
9610 | } | |
9611 | if (obj2) { | |
9612 | { | |
9613 | arg3 = &temp3; | |
9614 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9615 | } | |
9616 | } | |
9617 | if (obj3) { | |
9618 | { | |
9619 | arg4 = &temp4; | |
9620 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9621 | } | |
9622 | } | |
9623 | if (obj4) { | |
9624 | arg5 = (long) SWIG_AsLong(obj4); | |
9625 | if (PyErr_Occurred()) SWIG_fail; | |
9626 | } | |
9627 | if (obj5) { | |
9628 | { | |
9629 | arg6 = wxString_in_helper(obj5); | |
9630 | if (arg6 == NULL) SWIG_fail; | |
9631 | temp6 = True; | |
9632 | } | |
9633 | } | |
9634 | { | |
0439c23b | 9635 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9637 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9638 | ||
9639 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9640 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9641 | } |
9642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9643 | { | |
9644 | if (temp6) | |
9645 | delete arg6; | |
9646 | } | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | { | |
9650 | if (temp6) | |
9651 | delete arg6; | |
9652 | } | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj; | |
9659 | wxPyVListBox *result; | |
9660 | char *kwnames[] = { | |
9661 | NULL | |
9662 | }; | |
9663 | ||
9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9665 | { | |
0439c23b | 9666 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9668 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9669 | ||
9670 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9671 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9672 | } |
9673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9674 | return resultobj; | |
9675 | fail: | |
9676 | return NULL; | |
9677 | } | |
9678 | ||
9679 | ||
9680 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9681 | PyObject *resultobj; | |
9682 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9683 | PyObject *arg2 = (PyObject *) 0 ; | |
9684 | PyObject *arg3 = (PyObject *) 0 ; | |
9685 | PyObject * obj0 = 0 ; | |
9686 | PyObject * obj1 = 0 ; | |
9687 | PyObject * obj2 = 0 ; | |
9688 | char *kwnames[] = { | |
9689 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9690 | }; | |
9691 | ||
9692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9695 | arg2 = obj1; | |
9696 | arg3 = obj2; | |
9697 | { | |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9699 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
9702 | if (PyErr_Occurred()) SWIG_fail; | |
9703 | } | |
9704 | Py_INCREF(Py_None); resultobj = Py_None; | |
9705 | return resultobj; | |
9706 | fail: | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject *resultobj; | |
9713 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9715 | int arg3 = (int) wxID_ANY ; | |
9716 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9717 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9718 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9719 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9720 | long arg6 = (long) 0 ; | |
9721 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9722 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9723 | bool result; | |
9724 | wxPoint temp4 ; | |
9725 | wxSize temp5 ; | |
9726 | bool temp7 = False ; | |
9727 | PyObject * obj0 = 0 ; | |
9728 | PyObject * obj1 = 0 ; | |
9729 | PyObject * obj2 = 0 ; | |
9730 | PyObject * obj3 = 0 ; | |
9731 | PyObject * obj4 = 0 ; | |
9732 | PyObject * obj5 = 0 ; | |
9733 | PyObject * obj6 = 0 ; | |
9734 | char *kwnames[] = { | |
9735 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9736 | }; | |
9737 | ||
9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9743 | if (obj2) { | |
9744 | arg3 = (int) SWIG_AsInt(obj2); | |
9745 | if (PyErr_Occurred()) SWIG_fail; | |
9746 | } | |
9747 | if (obj3) { | |
9748 | { | |
9749 | arg4 = &temp4; | |
9750 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9751 | } | |
9752 | } | |
9753 | if (obj4) { | |
9754 | { | |
9755 | arg5 = &temp5; | |
9756 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9757 | } | |
9758 | } | |
9759 | if (obj5) { | |
9760 | arg6 = (long) SWIG_AsLong(obj5); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
9763 | if (obj6) { | |
9764 | { | |
9765 | arg7 = wxString_in_helper(obj6); | |
9766 | if (arg7 == NULL) SWIG_fail; | |
9767 | temp7 = True; | |
9768 | } | |
9769 | } | |
9770 | { | |
9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9772 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9773 | ||
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | { | |
9778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9779 | } | |
9780 | { | |
9781 | if (temp7) | |
9782 | delete arg7; | |
9783 | } | |
9784 | return resultobj; | |
9785 | fail: | |
9786 | { | |
9787 | if (temp7) | |
9788 | delete arg7; | |
9789 | } | |
9790 | return NULL; | |
9791 | } | |
9792 | ||
9793 | ||
9794 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9795 | PyObject *resultobj; | |
9796 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9797 | size_t result; | |
9798 | PyObject * obj0 = 0 ; | |
9799 | char *kwnames[] = { | |
9800 | (char *) "self", NULL | |
9801 | }; | |
9802 | ||
9803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9806 | { | |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9809 | ||
9810 | wxPyEndAllowThreads(__tstate); | |
9811 | if (PyErr_Occurred()) SWIG_fail; | |
9812 | } | |
9813 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9814 | return resultobj; | |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject *resultobj; | |
9822 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9823 | bool result; | |
9824 | PyObject * obj0 = 0 ; | |
9825 | char *kwnames[] = { | |
9826 | (char *) "self", NULL | |
9827 | }; | |
9828 | ||
9829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
9839 | { | |
9840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9841 | } | |
9842 | return resultobj; | |
9843 | fail: | |
9844 | return NULL; | |
9845 | } | |
9846 | ||
9847 | ||
9848 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9849 | PyObject *resultobj; | |
9850 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9851 | int result; | |
9852 | PyObject * obj0 = 0 ; | |
9853 | char *kwnames[] = { | |
9854 | (char *) "self", NULL | |
9855 | }; | |
9856 | ||
9857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9860 | { | |
9861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9862 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9863 | ||
9864 | wxPyEndAllowThreads(__tstate); | |
9865 | if (PyErr_Occurred()) SWIG_fail; | |
9866 | } | |
9867 | resultobj = SWIG_FromInt((int)result); | |
9868 | return resultobj; | |
9869 | fail: | |
9870 | return NULL; | |
9871 | } | |
9872 | ||
9873 | ||
9874 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9875 | PyObject *resultobj; | |
9876 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9877 | size_t arg2 ; | |
9878 | bool result; | |
9879 | PyObject * obj0 = 0 ; | |
9880 | PyObject * obj1 = 0 ; | |
9881 | char *kwnames[] = { | |
9882 | (char *) "self",(char *) "item", NULL | |
9883 | }; | |
9884 | ||
9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9888 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9889 | if (PyErr_Occurred()) SWIG_fail; | |
9890 | { | |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9892 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9893 | ||
9894 | wxPyEndAllowThreads(__tstate); | |
9895 | if (PyErr_Occurred()) SWIG_fail; | |
9896 | } | |
9897 | { | |
9898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9899 | } | |
9900 | return resultobj; | |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
9906 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9907 | PyObject *resultobj; | |
9908 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9909 | size_t arg2 ; | |
9910 | bool result; | |
9911 | PyObject * obj0 = 0 ; | |
9912 | PyObject * obj1 = 0 ; | |
9913 | char *kwnames[] = { | |
9914 | (char *) "self",(char *) "item", NULL | |
9915 | }; | |
9916 | ||
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9920 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9921 | if (PyErr_Occurred()) SWIG_fail; | |
9922 | { | |
9923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9924 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
9925 | ||
9926 | wxPyEndAllowThreads(__tstate); | |
9927 | if (PyErr_Occurred()) SWIG_fail; | |
9928 | } | |
9929 | { | |
9930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9931 | } | |
9932 | return resultobj; | |
9933 | fail: | |
9934 | return NULL; | |
9935 | } | |
9936 | ||
9937 | ||
9938 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9939 | PyObject *resultobj; | |
9940 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9941 | size_t result; | |
9942 | PyObject * obj0 = 0 ; | |
9943 | char *kwnames[] = { | |
9944 | (char *) "self", NULL | |
9945 | }; | |
9946 | ||
9947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
9948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
9953 | ||
9954 | wxPyEndAllowThreads(__tstate); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9958 | return resultobj; | |
9959 | fail: | |
9960 | return NULL; | |
9961 | } | |
9962 | ||
9963 | ||
9964 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9965 | PyObject *resultobj; | |
9966 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9967 | unsigned long *arg2 = 0 ; | |
9968 | int result; | |
9969 | PyObject * obj0 = 0 ; | |
9970 | PyObject * obj1 = 0 ; | |
9971 | char *kwnames[] = { | |
9972 | (char *) "self",(char *) "cookie", NULL | |
9973 | }; | |
9974 | ||
9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
9976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9978 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9979 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9980 | SWIG_fail; | |
9981 | if (arg2 == NULL) { | |
9982 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9983 | SWIG_fail; | |
9984 | } | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
9988 | ||
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
9992 | resultobj = SWIG_FromInt((int)result); | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject *resultobj; | |
10001 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10002 | unsigned long *arg2 = 0 ; | |
10003 | int result; | |
10004 | PyObject * obj0 = 0 ; | |
10005 | PyObject * obj1 = 0 ; | |
10006 | char *kwnames[] = { | |
10007 | (char *) "self",(char *) "cookie", NULL | |
10008 | }; | |
10009 | ||
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
10011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
10014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10015 | SWIG_fail; | |
10016 | if (arg2 == NULL) { | |
10017 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10018 | SWIG_fail; | |
10019 | } | |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
10023 | ||
10024 | wxPyEndAllowThreads(__tstate); | |
10025 | if (PyErr_Occurred()) SWIG_fail; | |
10026 | } | |
10027 | resultobj = SWIG_FromInt((int)result); | |
10028 | return resultobj; | |
10029 | fail: | |
10030 | return NULL; | |
10031 | } | |
10032 | ||
10033 | ||
10034 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10035 | PyObject *resultobj; | |
10036 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10037 | wxPoint result; | |
10038 | PyObject * obj0 = 0 ; | |
10039 | char *kwnames[] = { | |
10040 | (char *) "self", NULL | |
10041 | }; | |
10042 | ||
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
10044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10046 | { | |
10047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10048 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
10049 | ||
10050 | wxPyEndAllowThreads(__tstate); | |
10051 | if (PyErr_Occurred()) SWIG_fail; | |
10052 | } | |
10053 | { | |
10054 | wxPoint * resultptr; | |
10055 | resultptr = new wxPoint((wxPoint &) result); | |
10056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10057 | } | |
10058 | return resultobj; | |
10059 | fail: | |
10060 | return NULL; | |
10061 | } | |
10062 | ||
10063 | ||
10064 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10065 | PyObject *resultobj; | |
10066 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10067 | wxColour *result; | |
10068 | PyObject * obj0 = 0 ; | |
10069 | char *kwnames[] = { | |
10070 | (char *) "self", NULL | |
10071 | }; | |
10072 | ||
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10076 | { | |
10077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10078 | { | |
10079 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10080 | result = (wxColour *) &_result_ref; | |
10081 | } | |
10082 | ||
10083 | wxPyEndAllowThreads(__tstate); | |
10084 | if (PyErr_Occurred()) SWIG_fail; | |
10085 | } | |
10086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10087 | return resultobj; | |
10088 | fail: | |
10089 | return NULL; | |
10090 | } | |
10091 | ||
10092 | ||
10093 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10094 | PyObject *resultobj; | |
10095 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10096 | size_t arg2 ; | |
10097 | PyObject * obj0 = 0 ; | |
10098 | PyObject * obj1 = 0 ; | |
10099 | char *kwnames[] = { | |
10100 | (char *) "self",(char *) "count", NULL | |
10101 | }; | |
10102 | ||
10103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10106 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | { | |
10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10110 | (arg1)->SetItemCount(arg2); | |
10111 | ||
10112 | wxPyEndAllowThreads(__tstate); | |
10113 | if (PyErr_Occurred()) SWIG_fail; | |
10114 | } | |
10115 | Py_INCREF(Py_None); resultobj = Py_None; | |
10116 | return resultobj; | |
10117 | fail: | |
10118 | return NULL; | |
10119 | } | |
10120 | ||
10121 | ||
10122 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject *resultobj; | |
10124 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10125 | PyObject * obj0 = 0 ; | |
10126 | char *kwnames[] = { | |
10127 | (char *) "self", NULL | |
10128 | }; | |
10129 | ||
10130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10135 | (arg1)->Clear(); | |
10136 | ||
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) SWIG_fail; | |
10139 | } | |
10140 | Py_INCREF(Py_None); resultobj = Py_None; | |
10141 | return resultobj; | |
10142 | fail: | |
10143 | return NULL; | |
10144 | } | |
10145 | ||
10146 | ||
10147 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10148 | PyObject *resultobj; | |
10149 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10150 | int arg2 ; | |
10151 | PyObject * obj0 = 0 ; | |
10152 | PyObject * obj1 = 0 ; | |
10153 | char *kwnames[] = { | |
10154 | (char *) "self",(char *) "selection", NULL | |
10155 | }; | |
10156 | ||
10157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10160 | arg2 = (int) SWIG_AsInt(obj1); | |
10161 | if (PyErr_Occurred()) SWIG_fail; | |
10162 | { | |
10163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10164 | (arg1)->SetSelection(arg2); | |
10165 | ||
10166 | wxPyEndAllowThreads(__tstate); | |
10167 | if (PyErr_Occurred()) SWIG_fail; | |
10168 | } | |
10169 | Py_INCREF(Py_None); resultobj = Py_None; | |
10170 | return resultobj; | |
10171 | fail: | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10179 | size_t arg2 ; | |
10180 | bool arg3 = (bool) True ; | |
10181 | bool result; | |
10182 | PyObject * obj0 = 0 ; | |
10183 | PyObject * obj1 = 0 ; | |
10184 | PyObject * obj2 = 0 ; | |
10185 | char *kwnames[] = { | |
10186 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10187 | }; | |
10188 | ||
10189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10192 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | if (obj2) { | |
10195 | arg3 = (bool) SWIG_AsBool(obj2); | |
10196 | if (PyErr_Occurred()) SWIG_fail; | |
10197 | } | |
10198 | { | |
10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10200 | result = (bool)(arg1)->Select(arg2,arg3); | |
10201 | ||
10202 | wxPyEndAllowThreads(__tstate); | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
10204 | } | |
10205 | { | |
10206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10207 | } | |
10208 | return resultobj; | |
10209 | fail: | |
10210 | return NULL; | |
10211 | } | |
10212 | ||
10213 | ||
10214 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10215 | PyObject *resultobj; | |
10216 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10217 | size_t arg2 ; | |
10218 | size_t arg3 ; | |
10219 | bool result; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | PyObject * obj1 = 0 ; | |
10222 | PyObject * obj2 = 0 ; | |
10223 | char *kwnames[] = { | |
10224 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10225 | }; | |
10226 | ||
10227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10230 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10231 | if (PyErr_Occurred()) SWIG_fail; | |
10232 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | { | |
10235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10236 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10237 | ||
10238 | wxPyEndAllowThreads(__tstate); | |
10239 | if (PyErr_Occurred()) SWIG_fail; | |
10240 | } | |
10241 | { | |
10242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10243 | } | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10253 | size_t arg2 ; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | PyObject * obj1 = 0 ; | |
10256 | char *kwnames[] = { | |
10257 | (char *) "self",(char *) "item", NULL | |
10258 | }; | |
10259 | ||
10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10263 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | { | |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | (arg1)->Toggle(arg2); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
10272 | Py_INCREF(Py_None); resultobj = Py_None; | |
10273 | return resultobj; | |
10274 | fail: | |
10275 | return NULL; | |
10276 | } | |
10277 | ||
10278 | ||
10279 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10280 | PyObject *resultobj; | |
10281 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10282 | bool result; | |
10283 | PyObject * obj0 = 0 ; | |
10284 | char *kwnames[] = { | |
10285 | (char *) "self", NULL | |
10286 | }; | |
10287 | ||
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10291 | { | |
10292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10293 | result = (bool)(arg1)->SelectAll(); | |
10294 | ||
10295 | wxPyEndAllowThreads(__tstate); | |
10296 | if (PyErr_Occurred()) SWIG_fail; | |
10297 | } | |
10298 | { | |
10299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10300 | } | |
10301 | return resultobj; | |
10302 | fail: | |
10303 | return NULL; | |
10304 | } | |
10305 | ||
10306 | ||
10307 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10308 | PyObject *resultobj; | |
10309 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10310 | bool result; | |
10311 | PyObject * obj0 = 0 ; | |
10312 | char *kwnames[] = { | |
10313 | (char *) "self", NULL | |
10314 | }; | |
10315 | ||
10316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10319 | { | |
10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10321 | result = (bool)(arg1)->DeselectAll(); | |
10322 | ||
10323 | wxPyEndAllowThreads(__tstate); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | } | |
10326 | { | |
10327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10328 | } | |
10329 | return resultobj; | |
10330 | fail: | |
10331 | return NULL; | |
10332 | } | |
10333 | ||
10334 | ||
10335 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj; | |
10337 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10338 | wxPoint *arg2 = 0 ; | |
10339 | wxPoint temp2 ; | |
10340 | PyObject * obj0 = 0 ; | |
10341 | PyObject * obj1 = 0 ; | |
10342 | char *kwnames[] = { | |
10343 | (char *) "self",(char *) "pt", NULL | |
10344 | }; | |
10345 | ||
10346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10349 | { | |
10350 | arg2 = &temp2; | |
10351 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10352 | } | |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10355 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10356 | ||
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) SWIG_fail; | |
10359 | } | |
10360 | Py_INCREF(Py_None); resultobj = Py_None; | |
10361 | return resultobj; | |
10362 | fail: | |
10363 | return NULL; | |
10364 | } | |
10365 | ||
10366 | ||
10367 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10368 | PyObject *resultobj; | |
10369 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10370 | int arg2 ; | |
10371 | int arg3 ; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | PyObject * obj1 = 0 ; | |
10374 | PyObject * obj2 = 0 ; | |
10375 | char *kwnames[] = { | |
10376 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10377 | }; | |
10378 | ||
10379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10382 | arg2 = (int) SWIG_AsInt(obj1); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
10384 | arg3 = (int) SWIG_AsInt(obj2); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | { | |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | (arg1)->SetMargins(arg2,arg3); | |
10389 | ||
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | Py_INCREF(Py_None); resultobj = Py_None; | |
10394 | return resultobj; | |
10395 | fail: | |
10396 | return NULL; | |
10397 | } | |
10398 | ||
10399 | ||
10400 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10401 | PyObject *resultobj; | |
10402 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10403 | wxColour *arg2 = 0 ; | |
10404 | wxColour temp2 ; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | PyObject * obj1 = 0 ; | |
10407 | char *kwnames[] = { | |
10408 | (char *) "self",(char *) "col", NULL | |
10409 | }; | |
10410 | ||
10411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10414 | { | |
10415 | arg2 = &temp2; | |
10416 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10417 | } | |
10418 | { | |
10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10420 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10421 | ||
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
10425 | Py_INCREF(Py_None); resultobj = Py_None; | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10433 | PyObject *obj; | |
10434 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10435 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10436 | Py_INCREF(obj); | |
10437 | return Py_BuildValue((char *)""); | |
10438 | } | |
10439 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj; | |
10441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10442 | int arg2 = (int) wxID_ANY ; | |
10443 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10444 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10445 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10446 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10447 | long arg5 = (long) 0 ; | |
10448 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10449 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10450 | wxPyHtmlListBox *result; | |
10451 | wxPoint temp3 ; | |
10452 | wxSize temp4 ; | |
10453 | bool temp6 = False ; | |
10454 | PyObject * obj0 = 0 ; | |
10455 | PyObject * obj1 = 0 ; | |
10456 | PyObject * obj2 = 0 ; | |
10457 | PyObject * obj3 = 0 ; | |
10458 | PyObject * obj4 = 0 ; | |
10459 | PyObject * obj5 = 0 ; | |
10460 | char *kwnames[] = { | |
10461 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10462 | }; | |
10463 | ||
10464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10467 | if (obj1) { | |
10468 | arg2 = (int) SWIG_AsInt(obj1); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | } | |
10471 | if (obj2) { | |
10472 | { | |
10473 | arg3 = &temp3; | |
10474 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10475 | } | |
10476 | } | |
10477 | if (obj3) { | |
10478 | { | |
10479 | arg4 = &temp4; | |
10480 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10481 | } | |
10482 | } | |
10483 | if (obj4) { | |
10484 | arg5 = (long) SWIG_AsLong(obj4); | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | if (obj5) { | |
10488 | { | |
10489 | arg6 = wxString_in_helper(obj5); | |
10490 | if (arg6 == NULL) SWIG_fail; | |
10491 | temp6 = True; | |
10492 | } | |
10493 | } | |
10494 | { | |
0439c23b | 10495 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10497 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10500 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10501 | } |
10502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10503 | { | |
10504 | if (temp6) | |
10505 | delete arg6; | |
10506 | } | |
10507 | return resultobj; | |
10508 | fail: | |
10509 | { | |
10510 | if (temp6) | |
10511 | delete arg6; | |
10512 | } | |
10513 | return NULL; | |
10514 | } | |
10515 | ||
10516 | ||
10517 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10518 | PyObject *resultobj; | |
10519 | wxPyHtmlListBox *result; | |
10520 | char *kwnames[] = { | |
10521 | NULL | |
10522 | }; | |
10523 | ||
10524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10525 | { | |
0439c23b | 10526 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10528 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10529 | ||
10530 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10531 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10532 | } |
10533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10534 | return resultobj; | |
10535 | fail: | |
10536 | return NULL; | |
10537 | } | |
10538 | ||
10539 | ||
10540 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10541 | PyObject *resultobj; | |
10542 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10543 | PyObject *arg2 = (PyObject *) 0 ; | |
10544 | PyObject *arg3 = (PyObject *) 0 ; | |
10545 | PyObject * obj0 = 0 ; | |
10546 | PyObject * obj1 = 0 ; | |
10547 | PyObject * obj2 = 0 ; | |
10548 | char *kwnames[] = { | |
10549 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10550 | }; | |
10551 | ||
10552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10555 | arg2 = obj1; | |
10556 | arg3 = obj2; | |
10557 | { | |
10558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10559 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10560 | ||
10561 | wxPyEndAllowThreads(__tstate); | |
10562 | if (PyErr_Occurred()) SWIG_fail; | |
10563 | } | |
10564 | Py_INCREF(Py_None); resultobj = Py_None; | |
10565 | return resultobj; | |
10566 | fail: | |
10567 | return NULL; | |
10568 | } | |
10569 | ||
10570 | ||
10571 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10572 | PyObject *resultobj; | |
10573 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10574 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10575 | int arg3 = (int) wxID_ANY ; | |
10576 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10577 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10578 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10579 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10580 | long arg6 = (long) 0 ; | |
10581 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10582 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10583 | bool result; | |
10584 | wxPoint temp4 ; | |
10585 | wxSize temp5 ; | |
10586 | bool temp7 = False ; | |
10587 | PyObject * obj0 = 0 ; | |
10588 | PyObject * obj1 = 0 ; | |
10589 | PyObject * obj2 = 0 ; | |
10590 | PyObject * obj3 = 0 ; | |
10591 | PyObject * obj4 = 0 ; | |
10592 | PyObject * obj5 = 0 ; | |
10593 | PyObject * obj6 = 0 ; | |
10594 | char *kwnames[] = { | |
10595 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10596 | }; | |
10597 | ||
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10603 | if (obj2) { | |
10604 | arg3 = (int) SWIG_AsInt(obj2); | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
10606 | } | |
10607 | if (obj3) { | |
10608 | { | |
10609 | arg4 = &temp4; | |
10610 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10611 | } | |
10612 | } | |
10613 | if (obj4) { | |
10614 | { | |
10615 | arg5 = &temp5; | |
10616 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10617 | } | |
10618 | } | |
10619 | if (obj5) { | |
10620 | arg6 = (long) SWIG_AsLong(obj5); | |
10621 | if (PyErr_Occurred()) SWIG_fail; | |
10622 | } | |
10623 | if (obj6) { | |
10624 | { | |
10625 | arg7 = wxString_in_helper(obj6); | |
10626 | if (arg7 == NULL) SWIG_fail; | |
10627 | temp7 = True; | |
10628 | } | |
10629 | } | |
10630 | { | |
10631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10632 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10633 | ||
10634 | wxPyEndAllowThreads(__tstate); | |
10635 | if (PyErr_Occurred()) SWIG_fail; | |
10636 | } | |
10637 | { | |
10638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10639 | } | |
10640 | { | |
10641 | if (temp7) | |
10642 | delete arg7; | |
10643 | } | |
10644 | return resultobj; | |
10645 | fail: | |
10646 | { | |
10647 | if (temp7) | |
10648 | delete arg7; | |
10649 | } | |
10650 | return NULL; | |
10651 | } | |
10652 | ||
10653 | ||
10654 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10655 | PyObject *resultobj; | |
10656 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10657 | PyObject * obj0 = 0 ; | |
10658 | char *kwnames[] = { | |
10659 | (char *) "self", NULL | |
10660 | }; | |
10661 | ||
10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10665 | { | |
10666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10667 | (arg1)->RefreshAll(); | |
10668 | ||
10669 | wxPyEndAllowThreads(__tstate); | |
10670 | if (PyErr_Occurred()) SWIG_fail; | |
10671 | } | |
10672 | Py_INCREF(Py_None); resultobj = Py_None; | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | return NULL; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10680 | PyObject *resultobj; | |
10681 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10682 | size_t arg2 ; | |
10683 | PyObject * obj0 = 0 ; | |
10684 | PyObject * obj1 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "self",(char *) "count", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10692 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10693 | if (PyErr_Occurred()) SWIG_fail; | |
10694 | { | |
10695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10696 | (arg1)->SetItemCount(arg2); | |
10697 | ||
10698 | wxPyEndAllowThreads(__tstate); | |
10699 | if (PyErr_Occurred()) SWIG_fail; | |
10700 | } | |
10701 | Py_INCREF(Py_None); resultobj = Py_None; | |
10702 | return resultobj; | |
10703 | fail: | |
10704 | return NULL; | |
10705 | } | |
10706 | ||
10707 | ||
d6c14a4c RD |
10708 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { |
10709 | PyObject *resultobj; | |
10710 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10711 | wxFileSystem *result; | |
10712 | PyObject * obj0 = 0 ; | |
10713 | char *kwnames[] = { | |
10714 | (char *) "self", NULL | |
10715 | }; | |
10716 | ||
10717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10720 | { | |
10721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10722 | { | |
10723 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10724 | result = (wxFileSystem *) &_result_ref; | |
10725 | } | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
d55e5bfc RD |
10737 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { |
10738 | PyObject *obj; | |
10739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10740 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10741 | Py_INCREF(obj); | |
10742 | return Py_BuildValue((char *)""); | |
10743 | } | |
10744 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10745 | PyObject *resultobj; | |
10746 | wxTaskBarIcon *result; | |
10747 | char *kwnames[] = { | |
10748 | NULL | |
10749 | }; | |
10750 | ||
10751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10752 | { | |
0439c23b | 10753 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10755 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10756 | ||
10757 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10758 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10759 | } |
10760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10761 | return resultobj; | |
10762 | fail: | |
10763 | return NULL; | |
10764 | } | |
10765 | ||
10766 | ||
10767 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10768 | PyObject *resultobj; | |
10769 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10770 | PyObject * obj0 = 0 ; | |
10771 | char *kwnames[] = { | |
10772 | (char *) "self", NULL | |
10773 | }; | |
10774 | ||
10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10778 | { | |
10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10780 | delete arg1; | |
10781 | ||
10782 | wxPyEndAllowThreads(__tstate); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | } | |
10785 | Py_INCREF(Py_None); resultobj = Py_None; | |
10786 | return resultobj; | |
10787 | fail: | |
10788 | return NULL; | |
10789 | } | |
10790 | ||
10791 | ||
10792 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10793 | PyObject *resultobj; | |
10794 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "self", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
10801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10803 | { | |
10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10805 | wxTaskBarIcon_Destroy(arg1); | |
10806 | ||
10807 | wxPyEndAllowThreads(__tstate); | |
10808 | if (PyErr_Occurred()) SWIG_fail; | |
10809 | } | |
10810 | Py_INCREF(Py_None); resultobj = Py_None; | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
10818 | PyObject *obj; | |
10819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10820 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
10821 | Py_INCREF(obj); | |
10822 | return Py_BuildValue((char *)""); | |
10823 | } | |
10824 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10825 | PyObject *resultobj; | |
10826 | wxEventType arg1 ; | |
10827 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
10828 | wxTaskBarIconEvent *result; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | PyObject * obj1 = 0 ; | |
10831 | char *kwnames[] = { | |
10832 | (char *) "evtType",(char *) "tbIcon", NULL | |
10833 | }; | |
10834 | ||
10835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
10836 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10837 | if (PyErr_Occurred()) SWIG_fail; | |
10838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
10839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10840 | { | |
10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10842 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
10843 | ||
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
10855 | PyObject *obj; | |
10856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10857 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
10858 | Py_INCREF(obj); | |
10859 | return Py_BuildValue((char *)""); | |
10860 | } | |
10861 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
10862 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
10863 | return 1; | |
10864 | } | |
10865 | ||
10866 | ||
10867 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
10868 | PyObject *pyobj; | |
10869 | ||
10870 | { | |
10871 | #if wxUSE_UNICODE | |
10872 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10873 | #else | |
10874 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10875 | #endif | |
10876 | } | |
10877 | return pyobj; | |
10878 | } | |
10879 | ||
10880 | ||
10881 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
10882 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
10883 | return 1; | |
10884 | } | |
10885 | ||
10886 | ||
10887 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
10888 | PyObject *pyobj; | |
10889 | ||
10890 | { | |
10891 | #if wxUSE_UNICODE | |
10892 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10893 | #else | |
10894 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10895 | #endif | |
10896 | } | |
10897 | return pyobj; | |
10898 | } | |
10899 | ||
10900 | ||
10901 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
10902 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
10903 | return 1; | |
10904 | } | |
10905 | ||
10906 | ||
10907 | static PyObject *_wrap_DirDialogNameStr_get() { | |
10908 | PyObject *pyobj; | |
10909 | ||
10910 | { | |
10911 | #if wxUSE_UNICODE | |
10912 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10913 | #else | |
10914 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10915 | #endif | |
10916 | } | |
10917 | return pyobj; | |
10918 | } | |
10919 | ||
10920 | ||
10921 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
10922 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
10923 | return 1; | |
10924 | } | |
10925 | ||
10926 | ||
10927 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
10928 | PyObject *pyobj; | |
10929 | ||
10930 | { | |
10931 | #if wxUSE_UNICODE | |
10932 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10933 | #else | |
10934 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10935 | #endif | |
10936 | } | |
10937 | return pyobj; | |
10938 | } | |
10939 | ||
10940 | ||
10941 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
10942 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
10943 | return 1; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
10948 | PyObject *pyobj; | |
10949 | ||
10950 | { | |
10951 | #if wxUSE_UNICODE | |
10952 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10953 | #else | |
10954 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10955 | #endif | |
10956 | } | |
10957 | return pyobj; | |
10958 | } | |
10959 | ||
10960 | ||
10961 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
10962 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
10963 | return 1; | |
10964 | } | |
10965 | ||
10966 | ||
10967 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
10968 | PyObject *pyobj; | |
10969 | ||
10970 | { | |
10971 | #if wxUSE_UNICODE | |
10972 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10973 | #else | |
10974 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10975 | #endif | |
10976 | } | |
10977 | return pyobj; | |
10978 | } | |
10979 | ||
10980 | ||
10981 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10982 | PyObject *resultobj; | |
10983 | wxColourData *result; | |
10984 | char *kwnames[] = { | |
10985 | NULL | |
10986 | }; | |
10987 | ||
10988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
10989 | { | |
10990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10991 | result = (wxColourData *)new wxColourData(); | |
10992 | ||
10993 | wxPyEndAllowThreads(__tstate); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
10997 | return resultobj; | |
10998 | fail: | |
10999 | return NULL; | |
11000 | } | |
11001 | ||
11002 | ||
11003 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11004 | PyObject *resultobj; | |
11005 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11006 | PyObject * obj0 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
11012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11014 | { | |
11015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11016 | delete arg1; | |
11017 | ||
11018 | wxPyEndAllowThreads(__tstate); | |
11019 | if (PyErr_Occurred()) SWIG_fail; | |
11020 | } | |
11021 | Py_INCREF(Py_None); resultobj = Py_None; | |
11022 | return resultobj; | |
11023 | fail: | |
11024 | return NULL; | |
11025 | } | |
11026 | ||
11027 | ||
11028 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11029 | PyObject *resultobj; | |
11030 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11031 | bool result; | |
11032 | PyObject * obj0 = 0 ; | |
11033 | char *kwnames[] = { | |
11034 | (char *) "self", NULL | |
11035 | }; | |
11036 | ||
11037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
11038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11040 | { | |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = (bool)(arg1)->GetChooseFull(); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | { | |
11048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11049 | } | |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
11056 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11057 | PyObject *resultobj; | |
11058 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11059 | wxColour result; | |
11060 | PyObject * obj0 = 0 ; | |
11061 | char *kwnames[] = { | |
11062 | (char *) "self", NULL | |
11063 | }; | |
11064 | ||
11065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11068 | { | |
11069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11070 | result = (arg1)->GetColour(); | |
11071 | ||
11072 | wxPyEndAllowThreads(__tstate); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
11075 | { | |
11076 | wxColour * resultptr; | |
11077 | resultptr = new wxColour((wxColour &) result); | |
11078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11079 | } | |
11080 | return resultobj; | |
11081 | fail: | |
11082 | return NULL; | |
11083 | } | |
11084 | ||
11085 | ||
11086 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11087 | PyObject *resultobj; | |
11088 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11089 | int arg2 ; | |
11090 | wxColour result; | |
11091 | PyObject * obj0 = 0 ; | |
11092 | PyObject * obj1 = 0 ; | |
11093 | char *kwnames[] = { | |
11094 | (char *) "self",(char *) "i", NULL | |
11095 | }; | |
11096 | ||
11097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11100 | arg2 = (int) SWIG_AsInt(obj1); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | { | |
11103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11104 | result = (arg1)->GetCustomColour(arg2); | |
11105 | ||
11106 | wxPyEndAllowThreads(__tstate); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | } | |
11109 | { | |
11110 | wxColour * resultptr; | |
11111 | resultptr = new wxColour((wxColour &) result); | |
11112 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11113 | } | |
11114 | return resultobj; | |
11115 | fail: | |
11116 | return NULL; | |
11117 | } | |
11118 | ||
11119 | ||
11120 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11121 | PyObject *resultobj; | |
11122 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11123 | int arg2 ; | |
11124 | PyObject * obj0 = 0 ; | |
11125 | PyObject * obj1 = 0 ; | |
11126 | char *kwnames[] = { | |
11127 | (char *) "self",(char *) "flag", NULL | |
11128 | }; | |
11129 | ||
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11133 | arg2 = (int) SWIG_AsInt(obj1); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | { | |
11136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11137 | (arg1)->SetChooseFull(arg2); | |
11138 | ||
11139 | wxPyEndAllowThreads(__tstate); | |
11140 | if (PyErr_Occurred()) SWIG_fail; | |
11141 | } | |
11142 | Py_INCREF(Py_None); resultobj = Py_None; | |
11143 | return resultobj; | |
11144 | fail: | |
11145 | return NULL; | |
11146 | } | |
11147 | ||
11148 | ||
11149 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11150 | PyObject *resultobj; | |
11151 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11152 | wxColour *arg2 = 0 ; | |
11153 | wxColour temp2 ; | |
11154 | PyObject * obj0 = 0 ; | |
11155 | PyObject * obj1 = 0 ; | |
11156 | char *kwnames[] = { | |
11157 | (char *) "self",(char *) "colour", NULL | |
11158 | }; | |
11159 | ||
11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11163 | { | |
11164 | arg2 = &temp2; | |
11165 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11166 | } | |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | (arg1)->SetColour((wxColour const &)*arg2); | |
11170 | ||
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | Py_INCREF(Py_None); resultobj = Py_None; | |
11175 | return resultobj; | |
11176 | fail: | |
11177 | return NULL; | |
11178 | } | |
11179 | ||
11180 | ||
11181 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11182 | PyObject *resultobj; | |
11183 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11184 | int arg2 ; | |
11185 | wxColour *arg3 = 0 ; | |
11186 | wxColour temp3 ; | |
11187 | PyObject * obj0 = 0 ; | |
11188 | PyObject * obj1 = 0 ; | |
11189 | PyObject * obj2 = 0 ; | |
11190 | char *kwnames[] = { | |
11191 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11192 | }; | |
11193 | ||
11194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11197 | arg2 = (int) SWIG_AsInt(obj1); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | { | |
11200 | arg3 = &temp3; | |
11201 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11202 | } | |
11203 | { | |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11205 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11206 | ||
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | Py_INCREF(Py_None); resultobj = Py_None; | |
11211 | return resultobj; | |
11212 | fail: | |
11213 | return NULL; | |
11214 | } | |
11215 | ||
11216 | ||
11217 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11218 | PyObject *obj; | |
11219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11220 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11221 | Py_INCREF(obj); | |
11222 | return Py_BuildValue((char *)""); | |
11223 | } | |
11224 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11225 | PyObject *resultobj; | |
11226 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11227 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11228 | wxColourDialog *result; | |
11229 | PyObject * obj0 = 0 ; | |
11230 | PyObject * obj1 = 0 ; | |
11231 | char *kwnames[] = { | |
11232 | (char *) "parent",(char *) "data", NULL | |
11233 | }; | |
11234 | ||
11235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11238 | if (obj1) { | |
11239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11241 | } | |
11242 | { | |
0439c23b | 11243 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11245 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11246 | ||
11247 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11248 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11249 | } |
11250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11251 | return resultobj; | |
11252 | fail: | |
11253 | return NULL; | |
11254 | } | |
11255 | ||
11256 | ||
11257 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11258 | PyObject *resultobj; | |
11259 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11260 | wxColourData *result; | |
11261 | PyObject * obj0 = 0 ; | |
11262 | char *kwnames[] = { | |
11263 | (char *) "self", NULL | |
11264 | }; | |
11265 | ||
11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11269 | { | |
11270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11271 | { | |
11272 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11273 | result = (wxColourData *) &_result_ref; | |
11274 | } | |
11275 | ||
11276 | wxPyEndAllowThreads(__tstate); | |
11277 | if (PyErr_Occurred()) SWIG_fail; | |
11278 | } | |
11279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11280 | return resultobj; | |
11281 | fail: | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11287 | PyObject *obj; | |
11288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11289 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11290 | Py_INCREF(obj); | |
11291 | return Py_BuildValue((char *)""); | |
11292 | } | |
11293 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11294 | PyObject *resultobj; | |
11295 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11296 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11297 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11298 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11299 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11300 | long arg4 = (long) 0 ; | |
11301 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11302 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11303 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11304 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11305 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11306 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11307 | wxDirDialog *result; | |
11308 | bool temp2 = False ; | |
11309 | bool temp3 = False ; | |
11310 | wxPoint temp5 ; | |
11311 | wxSize temp6 ; | |
11312 | bool temp7 = False ; | |
11313 | PyObject * obj0 = 0 ; | |
11314 | PyObject * obj1 = 0 ; | |
11315 | PyObject * obj2 = 0 ; | |
11316 | PyObject * obj3 = 0 ; | |
11317 | PyObject * obj4 = 0 ; | |
11318 | PyObject * obj5 = 0 ; | |
11319 | PyObject * obj6 = 0 ; | |
11320 | char *kwnames[] = { | |
11321 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11322 | }; | |
11323 | ||
11324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11327 | if (obj1) { | |
11328 | { | |
11329 | arg2 = wxString_in_helper(obj1); | |
11330 | if (arg2 == NULL) SWIG_fail; | |
11331 | temp2 = True; | |
11332 | } | |
11333 | } | |
11334 | if (obj2) { | |
11335 | { | |
11336 | arg3 = wxString_in_helper(obj2); | |
11337 | if (arg3 == NULL) SWIG_fail; | |
11338 | temp3 = True; | |
11339 | } | |
11340 | } | |
11341 | if (obj3) { | |
11342 | arg4 = (long) SWIG_AsLong(obj3); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | if (obj4) { | |
11346 | { | |
11347 | arg5 = &temp5; | |
11348 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11349 | } | |
11350 | } | |
11351 | if (obj5) { | |
11352 | { | |
11353 | arg6 = &temp6; | |
11354 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11355 | } | |
11356 | } | |
11357 | if (obj6) { | |
11358 | { | |
11359 | arg7 = wxString_in_helper(obj6); | |
11360 | if (arg7 == NULL) SWIG_fail; | |
11361 | temp7 = True; | |
11362 | } | |
11363 | } | |
11364 | { | |
0439c23b | 11365 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11367 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11368 | ||
11369 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11370 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11371 | } |
11372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11373 | { | |
11374 | if (temp2) | |
11375 | delete arg2; | |
11376 | } | |
11377 | { | |
11378 | if (temp3) | |
11379 | delete arg3; | |
11380 | } | |
11381 | { | |
11382 | if (temp7) | |
11383 | delete arg7; | |
11384 | } | |
11385 | return resultobj; | |
11386 | fail: | |
11387 | { | |
11388 | if (temp2) | |
11389 | delete arg2; | |
11390 | } | |
11391 | { | |
11392 | if (temp3) | |
11393 | delete arg3; | |
11394 | } | |
11395 | { | |
11396 | if (temp7) | |
11397 | delete arg7; | |
11398 | } | |
11399 | return NULL; | |
11400 | } | |
11401 | ||
11402 | ||
11403 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11404 | PyObject *resultobj; | |
11405 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11406 | wxString result; | |
11407 | PyObject * obj0 = 0 ; | |
11408 | char *kwnames[] = { | |
11409 | (char *) "self", NULL | |
11410 | }; | |
11411 | ||
11412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11415 | { | |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | result = (arg1)->GetPath(); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | { | |
11423 | #if wxUSE_UNICODE | |
11424 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11425 | #else | |
11426 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11427 | #endif | |
11428 | } | |
11429 | return resultobj; | |
11430 | fail: | |
11431 | return NULL; | |
11432 | } | |
11433 | ||
11434 | ||
11435 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11436 | PyObject *resultobj; | |
11437 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11438 | wxString result; | |
11439 | PyObject * obj0 = 0 ; | |
11440 | char *kwnames[] = { | |
11441 | (char *) "self", NULL | |
11442 | }; | |
11443 | ||
11444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11447 | { | |
11448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11449 | result = (arg1)->GetMessage(); | |
11450 | ||
11451 | wxPyEndAllowThreads(__tstate); | |
11452 | if (PyErr_Occurred()) SWIG_fail; | |
11453 | } | |
11454 | { | |
11455 | #if wxUSE_UNICODE | |
11456 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11457 | #else | |
11458 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11459 | #endif | |
11460 | } | |
11461 | return resultobj; | |
11462 | fail: | |
11463 | return NULL; | |
11464 | } | |
11465 | ||
11466 | ||
11467 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11468 | PyObject *resultobj; | |
11469 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11470 | long result; | |
11471 | PyObject * obj0 = 0 ; | |
11472 | char *kwnames[] = { | |
11473 | (char *) "self", NULL | |
11474 | }; | |
11475 | ||
11476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11479 | { | |
11480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11481 | result = (long)(arg1)->GetStyle(); | |
11482 | ||
11483 | wxPyEndAllowThreads(__tstate); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | } | |
11486 | resultobj = SWIG_FromLong((long)result); | |
11487 | return resultobj; | |
11488 | fail: | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
11493 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11494 | PyObject *resultobj; | |
11495 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11496 | wxString *arg2 = 0 ; | |
11497 | bool temp2 = False ; | |
11498 | PyObject * obj0 = 0 ; | |
11499 | PyObject * obj1 = 0 ; | |
11500 | char *kwnames[] = { | |
11501 | (char *) "self",(char *) "message", NULL | |
11502 | }; | |
11503 | ||
11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11507 | { | |
11508 | arg2 = wxString_in_helper(obj1); | |
11509 | if (arg2 == NULL) SWIG_fail; | |
11510 | temp2 = True; | |
11511 | } | |
11512 | { | |
11513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11514 | (arg1)->SetMessage((wxString const &)*arg2); | |
11515 | ||
11516 | wxPyEndAllowThreads(__tstate); | |
11517 | if (PyErr_Occurred()) SWIG_fail; | |
11518 | } | |
11519 | Py_INCREF(Py_None); resultobj = Py_None; | |
11520 | { | |
11521 | if (temp2) | |
11522 | delete arg2; | |
11523 | } | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | { | |
11527 | if (temp2) | |
11528 | delete arg2; | |
11529 | } | |
11530 | return NULL; | |
11531 | } | |
11532 | ||
11533 | ||
11534 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11535 | PyObject *resultobj; | |
11536 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11537 | wxString *arg2 = 0 ; | |
11538 | bool temp2 = False ; | |
11539 | PyObject * obj0 = 0 ; | |
11540 | PyObject * obj1 = 0 ; | |
11541 | char *kwnames[] = { | |
11542 | (char *) "self",(char *) "path", NULL | |
11543 | }; | |
11544 | ||
11545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11548 | { | |
11549 | arg2 = wxString_in_helper(obj1); | |
11550 | if (arg2 == NULL) SWIG_fail; | |
11551 | temp2 = True; | |
11552 | } | |
11553 | { | |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | (arg1)->SetPath((wxString const &)*arg2); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | Py_INCREF(Py_None); resultobj = Py_None; | |
11561 | { | |
11562 | if (temp2) | |
11563 | delete arg2; | |
11564 | } | |
11565 | return resultobj; | |
11566 | fail: | |
11567 | { | |
11568 | if (temp2) | |
11569 | delete arg2; | |
11570 | } | |
11571 | return NULL; | |
11572 | } | |
11573 | ||
11574 | ||
11575 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11576 | PyObject *obj; | |
11577 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11578 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11579 | Py_INCREF(obj); | |
11580 | return Py_BuildValue((char *)""); | |
11581 | } | |
11582 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11583 | PyObject *resultobj; | |
11584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11585 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11586 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11587 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11588 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11589 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11590 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11591 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11592 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11593 | long arg6 = (long) 0 ; | |
11594 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11595 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11596 | wxFileDialog *result; | |
11597 | bool temp2 = False ; | |
11598 | bool temp3 = False ; | |
11599 | bool temp4 = False ; | |
11600 | bool temp5 = False ; | |
11601 | wxPoint temp7 ; | |
11602 | PyObject * obj0 = 0 ; | |
11603 | PyObject * obj1 = 0 ; | |
11604 | PyObject * obj2 = 0 ; | |
11605 | PyObject * obj3 = 0 ; | |
11606 | PyObject * obj4 = 0 ; | |
11607 | PyObject * obj5 = 0 ; | |
11608 | PyObject * obj6 = 0 ; | |
11609 | char *kwnames[] = { | |
11610 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11611 | }; | |
11612 | ||
11613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11616 | if (obj1) { | |
11617 | { | |
11618 | arg2 = wxString_in_helper(obj1); | |
11619 | if (arg2 == NULL) SWIG_fail; | |
11620 | temp2 = True; | |
11621 | } | |
11622 | } | |
11623 | if (obj2) { | |
11624 | { | |
11625 | arg3 = wxString_in_helper(obj2); | |
11626 | if (arg3 == NULL) SWIG_fail; | |
11627 | temp3 = True; | |
11628 | } | |
11629 | } | |
11630 | if (obj3) { | |
11631 | { | |
11632 | arg4 = wxString_in_helper(obj3); | |
11633 | if (arg4 == NULL) SWIG_fail; | |
11634 | temp4 = True; | |
11635 | } | |
11636 | } | |
11637 | if (obj4) { | |
11638 | { | |
11639 | arg5 = wxString_in_helper(obj4); | |
11640 | if (arg5 == NULL) SWIG_fail; | |
11641 | temp5 = True; | |
11642 | } | |
11643 | } | |
11644 | if (obj5) { | |
11645 | arg6 = (long) SWIG_AsLong(obj5); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | if (obj6) { | |
11649 | { | |
11650 | arg7 = &temp7; | |
11651 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11652 | } | |
11653 | } | |
11654 | { | |
0439c23b | 11655 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11657 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11658 | ||
11659 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11660 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11661 | } |
11662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
11663 | { | |
11664 | if (temp2) | |
11665 | delete arg2; | |
11666 | } | |
11667 | { | |
11668 | if (temp3) | |
11669 | delete arg3; | |
11670 | } | |
11671 | { | |
11672 | if (temp4) | |
11673 | delete arg4; | |
11674 | } | |
11675 | { | |
11676 | if (temp5) | |
11677 | delete arg5; | |
11678 | } | |
11679 | return resultobj; | |
11680 | fail: | |
11681 | { | |
11682 | if (temp2) | |
11683 | delete arg2; | |
11684 | } | |
11685 | { | |
11686 | if (temp3) | |
11687 | delete arg3; | |
11688 | } | |
11689 | { | |
11690 | if (temp4) | |
11691 | delete arg4; | |
11692 | } | |
11693 | { | |
11694 | if (temp5) | |
11695 | delete arg5; | |
11696 | } | |
11697 | return NULL; | |
11698 | } | |
11699 | ||
11700 | ||
11701 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11702 | PyObject *resultobj; | |
11703 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11704 | wxString *arg2 = 0 ; | |
11705 | bool temp2 = False ; | |
11706 | PyObject * obj0 = 0 ; | |
11707 | PyObject * obj1 = 0 ; | |
11708 | char *kwnames[] = { | |
11709 | (char *) "self",(char *) "message", NULL | |
11710 | }; | |
11711 | ||
11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11715 | { | |
11716 | arg2 = wxString_in_helper(obj1); | |
11717 | if (arg2 == NULL) SWIG_fail; | |
11718 | temp2 = True; | |
11719 | } | |
11720 | { | |
11721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11722 | (arg1)->SetMessage((wxString const &)*arg2); | |
11723 | ||
11724 | wxPyEndAllowThreads(__tstate); | |
11725 | if (PyErr_Occurred()) SWIG_fail; | |
11726 | } | |
11727 | Py_INCREF(Py_None); resultobj = Py_None; | |
11728 | { | |
11729 | if (temp2) | |
11730 | delete arg2; | |
11731 | } | |
11732 | return resultobj; | |
11733 | fail: | |
11734 | { | |
11735 | if (temp2) | |
11736 | delete arg2; | |
11737 | } | |
11738 | return NULL; | |
11739 | } | |
11740 | ||
11741 | ||
11742 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11743 | PyObject *resultobj; | |
11744 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11745 | wxString *arg2 = 0 ; | |
11746 | bool temp2 = False ; | |
11747 | PyObject * obj0 = 0 ; | |
11748 | PyObject * obj1 = 0 ; | |
11749 | char *kwnames[] = { | |
11750 | (char *) "self",(char *) "path", NULL | |
11751 | }; | |
11752 | ||
11753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11756 | { | |
11757 | arg2 = wxString_in_helper(obj1); | |
11758 | if (arg2 == NULL) SWIG_fail; | |
11759 | temp2 = True; | |
11760 | } | |
11761 | { | |
11762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11763 | (arg1)->SetPath((wxString const &)*arg2); | |
11764 | ||
11765 | wxPyEndAllowThreads(__tstate); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
11768 | Py_INCREF(Py_None); resultobj = Py_None; | |
11769 | { | |
11770 | if (temp2) | |
11771 | delete arg2; | |
11772 | } | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | { | |
11776 | if (temp2) | |
11777 | delete arg2; | |
11778 | } | |
11779 | return NULL; | |
11780 | } | |
11781 | ||
11782 | ||
11783 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11784 | PyObject *resultobj; | |
11785 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11786 | wxString *arg2 = 0 ; | |
11787 | bool temp2 = False ; | |
11788 | PyObject * obj0 = 0 ; | |
11789 | PyObject * obj1 = 0 ; | |
11790 | char *kwnames[] = { | |
11791 | (char *) "self",(char *) "dir", NULL | |
11792 | }; | |
11793 | ||
11794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
11795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11797 | { | |
11798 | arg2 = wxString_in_helper(obj1); | |
11799 | if (arg2 == NULL) SWIG_fail; | |
11800 | temp2 = True; | |
11801 | } | |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | (arg1)->SetDirectory((wxString const &)*arg2); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | Py_INCREF(Py_None); resultobj = Py_None; | |
11810 | { | |
11811 | if (temp2) | |
11812 | delete arg2; | |
11813 | } | |
11814 | return resultobj; | |
11815 | fail: | |
11816 | { | |
11817 | if (temp2) | |
11818 | delete arg2; | |
11819 | } | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
11824 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11825 | PyObject *resultobj; | |
11826 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11827 | wxString *arg2 = 0 ; | |
11828 | bool temp2 = False ; | |
11829 | PyObject * obj0 = 0 ; | |
11830 | PyObject * obj1 = 0 ; | |
11831 | char *kwnames[] = { | |
11832 | (char *) "self",(char *) "name", NULL | |
11833 | }; | |
11834 | ||
11835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11838 | { | |
11839 | arg2 = wxString_in_helper(obj1); | |
11840 | if (arg2 == NULL) SWIG_fail; | |
11841 | temp2 = True; | |
11842 | } | |
11843 | { | |
11844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11845 | (arg1)->SetFilename((wxString const &)*arg2); | |
11846 | ||
11847 | wxPyEndAllowThreads(__tstate); | |
11848 | if (PyErr_Occurred()) SWIG_fail; | |
11849 | } | |
11850 | Py_INCREF(Py_None); resultobj = Py_None; | |
11851 | { | |
11852 | if (temp2) | |
11853 | delete arg2; | |
11854 | } | |
11855 | return resultobj; | |
11856 | fail: | |
11857 | { | |
11858 | if (temp2) | |
11859 | delete arg2; | |
11860 | } | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11868 | wxString *arg2 = 0 ; | |
11869 | bool temp2 = False ; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | PyObject * obj1 = 0 ; | |
11872 | char *kwnames[] = { | |
11873 | (char *) "self",(char *) "wildCard", NULL | |
11874 | }; | |
11875 | ||
11876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
11877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11879 | { | |
11880 | arg2 = wxString_in_helper(obj1); | |
11881 | if (arg2 == NULL) SWIG_fail; | |
11882 | temp2 = True; | |
11883 | } | |
11884 | { | |
11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11886 | (arg1)->SetWildcard((wxString const &)*arg2); | |
11887 | ||
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
11891 | Py_INCREF(Py_None); resultobj = Py_None; | |
11892 | { | |
11893 | if (temp2) | |
11894 | delete arg2; | |
11895 | } | |
11896 | return resultobj; | |
11897 | fail: | |
11898 | { | |
11899 | if (temp2) | |
11900 | delete arg2; | |
11901 | } | |
11902 | return NULL; | |
11903 | } | |
11904 | ||
11905 | ||
11906 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11907 | PyObject *resultobj; | |
11908 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11909 | long arg2 ; | |
11910 | PyObject * obj0 = 0 ; | |
11911 | PyObject * obj1 = 0 ; | |
11912 | char *kwnames[] = { | |
11913 | (char *) "self",(char *) "style", NULL | |
11914 | }; | |
11915 | ||
11916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
11917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11919 | arg2 = (long) SWIG_AsLong(obj1); | |
11920 | if (PyErr_Occurred()) SWIG_fail; | |
11921 | { | |
11922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11923 | (arg1)->SetStyle(arg2); | |
11924 | ||
11925 | wxPyEndAllowThreads(__tstate); | |
11926 | if (PyErr_Occurred()) SWIG_fail; | |
11927 | } | |
11928 | Py_INCREF(Py_None); resultobj = Py_None; | |
11929 | return resultobj; | |
11930 | fail: | |
11931 | return NULL; | |
11932 | } | |
11933 | ||
11934 | ||
11935 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11936 | PyObject *resultobj; | |
11937 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11938 | int arg2 ; | |
11939 | PyObject * obj0 = 0 ; | |
11940 | PyObject * obj1 = 0 ; | |
11941 | char *kwnames[] = { | |
11942 | (char *) "self",(char *) "filterIndex", NULL | |
11943 | }; | |
11944 | ||
11945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
11946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11948 | arg2 = (int) SWIG_AsInt(obj1); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | (arg1)->SetFilterIndex(arg2); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | Py_INCREF(Py_None); resultobj = Py_None; | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
11964 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11965 | PyObject *resultobj; | |
11966 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11967 | wxString result; | |
11968 | PyObject * obj0 = 0 ; | |
11969 | char *kwnames[] = { | |
11970 | (char *) "self", NULL | |
11971 | }; | |
11972 | ||
11973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11976 | { | |
11977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11978 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
11979 | ||
11980 | wxPyEndAllowThreads(__tstate); | |
11981 | if (PyErr_Occurred()) SWIG_fail; | |
11982 | } | |
11983 | { | |
11984 | #if wxUSE_UNICODE | |
11985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11986 | #else | |
11987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11988 | #endif | |
11989 | } | |
11990 | return resultobj; | |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
11996 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11997 | PyObject *resultobj; | |
11998 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11999 | wxString result; | |
12000 | PyObject * obj0 = 0 ; | |
12001 | char *kwnames[] = { | |
12002 | (char *) "self", NULL | |
12003 | }; | |
12004 | ||
12005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
12006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12008 | { | |
12009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12010 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
12011 | ||
12012 | wxPyEndAllowThreads(__tstate); | |
12013 | if (PyErr_Occurred()) SWIG_fail; | |
12014 | } | |
12015 | { | |
12016 | #if wxUSE_UNICODE | |
12017 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12018 | #else | |
12019 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12020 | #endif | |
12021 | } | |
12022 | return resultobj; | |
12023 | fail: | |
12024 | return NULL; | |
12025 | } | |
12026 | ||
12027 | ||
12028 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12029 | PyObject *resultobj; | |
12030 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12031 | wxString result; | |
12032 | PyObject * obj0 = 0 ; | |
12033 | char *kwnames[] = { | |
12034 | (char *) "self", NULL | |
12035 | }; | |
12036 | ||
12037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
12038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | { | |
12048 | #if wxUSE_UNICODE | |
12049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12050 | #else | |
12051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12052 | #endif | |
12053 | } | |
12054 | return resultobj; | |
12055 | fail: | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
12060 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12061 | PyObject *resultobj; | |
12062 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12063 | wxString result; | |
12064 | PyObject * obj0 = 0 ; | |
12065 | char *kwnames[] = { | |
12066 | (char *) "self", NULL | |
12067 | }; | |
12068 | ||
12069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12072 | { | |
12073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12074 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12075 | ||
12076 | wxPyEndAllowThreads(__tstate); | |
12077 | if (PyErr_Occurred()) SWIG_fail; | |
12078 | } | |
12079 | { | |
12080 | #if wxUSE_UNICODE | |
12081 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12082 | #else | |
12083 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12084 | #endif | |
12085 | } | |
12086 | return resultobj; | |
12087 | fail: | |
12088 | return NULL; | |
12089 | } | |
12090 | ||
12091 | ||
12092 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12093 | PyObject *resultobj; | |
12094 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12095 | wxString result; | |
12096 | PyObject * obj0 = 0 ; | |
12097 | char *kwnames[] = { | |
12098 | (char *) "self", NULL | |
12099 | }; | |
12100 | ||
12101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12104 | { | |
12105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12106 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12107 | ||
12108 | wxPyEndAllowThreads(__tstate); | |
12109 | if (PyErr_Occurred()) SWIG_fail; | |
12110 | } | |
12111 | { | |
12112 | #if wxUSE_UNICODE | |
12113 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12114 | #else | |
12115 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12116 | #endif | |
12117 | } | |
12118 | return resultobj; | |
12119 | fail: | |
12120 | return NULL; | |
12121 | } | |
12122 | ||
12123 | ||
12124 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12125 | PyObject *resultobj; | |
12126 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12127 | long result; | |
12128 | PyObject * obj0 = 0 ; | |
12129 | char *kwnames[] = { | |
12130 | (char *) "self", NULL | |
12131 | }; | |
12132 | ||
12133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12136 | { | |
12137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12138 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12139 | ||
12140 | wxPyEndAllowThreads(__tstate); | |
12141 | if (PyErr_Occurred()) SWIG_fail; | |
12142 | } | |
12143 | resultobj = SWIG_FromLong((long)result); | |
12144 | return resultobj; | |
12145 | fail: | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
12150 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12151 | PyObject *resultobj; | |
12152 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12153 | int result; | |
12154 | PyObject * obj0 = 0 ; | |
12155 | char *kwnames[] = { | |
12156 | (char *) "self", NULL | |
12157 | }; | |
12158 | ||
12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12162 | { | |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12164 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
12167 | if (PyErr_Occurred()) SWIG_fail; | |
12168 | } | |
12169 | resultobj = SWIG_FromInt((int)result); | |
12170 | return resultobj; | |
12171 | fail: | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
12176 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12179 | PyObject *result; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | char *kwnames[] = { | |
12182 | (char *) "self", NULL | |
12183 | }; | |
12184 | ||
12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12188 | { | |
12189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12190 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12191 | ||
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
12195 | resultobj = result; | |
12196 | return resultobj; | |
12197 | fail: | |
12198 | return NULL; | |
12199 | } | |
12200 | ||
12201 | ||
12202 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12203 | PyObject *resultobj; | |
12204 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12205 | PyObject *result; | |
12206 | PyObject * obj0 = 0 ; | |
12207 | char *kwnames[] = { | |
12208 | (char *) "self", NULL | |
12209 | }; | |
12210 | ||
12211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | resultobj = result; | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | return NULL; | |
12225 | } | |
12226 | ||
12227 | ||
12228 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12229 | PyObject *obj; | |
12230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12231 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12232 | Py_INCREF(obj); | |
12233 | return Py_BuildValue((char *)""); | |
12234 | } | |
12235 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12236 | PyObject *resultobj; | |
12237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12238 | wxString *arg2 = 0 ; | |
12239 | wxString *arg3 = 0 ; | |
12240 | int arg4 = (int) 0 ; | |
12241 | wxString *arg5 = (wxString *) 0 ; | |
12242 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12243 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12244 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12245 | wxMultiChoiceDialog *result; | |
12246 | bool temp2 = False ; | |
12247 | bool temp3 = False ; | |
12248 | wxPoint temp6 ; | |
12249 | PyObject * obj0 = 0 ; | |
12250 | PyObject * obj1 = 0 ; | |
12251 | PyObject * obj2 = 0 ; | |
12252 | PyObject * obj3 = 0 ; | |
12253 | PyObject * obj4 = 0 ; | |
12254 | PyObject * obj5 = 0 ; | |
12255 | char *kwnames[] = { | |
12256 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12257 | }; | |
12258 | ||
12259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12262 | { | |
12263 | arg2 = wxString_in_helper(obj1); | |
12264 | if (arg2 == NULL) SWIG_fail; | |
12265 | temp2 = True; | |
12266 | } | |
12267 | { | |
12268 | arg3 = wxString_in_helper(obj2); | |
12269 | if (arg3 == NULL) SWIG_fail; | |
12270 | temp3 = True; | |
12271 | } | |
12272 | if (obj3) { | |
12273 | { | |
12274 | arg4 = PyList_Size(obj3); | |
12275 | arg5 = wxString_LIST_helper(obj3); | |
12276 | if (arg5 == NULL) SWIG_fail; | |
12277 | } | |
12278 | } | |
12279 | if (obj4) { | |
12280 | arg6 = (long) SWIG_AsLong(obj4); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
12283 | if (obj5) { | |
12284 | { | |
12285 | arg7 = &temp6; | |
12286 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12287 | } | |
12288 | } | |
12289 | { | |
0439c23b | 12290 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12292 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12293 | ||
12294 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12295 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12296 | } |
12297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12298 | { | |
12299 | if (temp2) | |
12300 | delete arg2; | |
12301 | } | |
12302 | { | |
12303 | if (temp3) | |
12304 | delete arg3; | |
12305 | } | |
12306 | { | |
12307 | if (arg5) delete [] arg5; | |
12308 | } | |
12309 | return resultobj; | |
12310 | fail: | |
12311 | { | |
12312 | if (temp2) | |
12313 | delete arg2; | |
12314 | } | |
12315 | { | |
12316 | if (temp3) | |
12317 | delete arg3; | |
12318 | } | |
12319 | { | |
12320 | if (arg5) delete [] arg5; | |
12321 | } | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject *resultobj; | |
12328 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12329 | wxArrayInt *arg2 = 0 ; | |
12330 | bool temp2 = False ; | |
12331 | PyObject * obj0 = 0 ; | |
12332 | PyObject * obj1 = 0 ; | |
12333 | char *kwnames[] = { | |
12334 | (char *) "self",(char *) "selections", NULL | |
12335 | }; | |
12336 | ||
12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12340 | { | |
12341 | if (! PySequence_Check(obj1)) { | |
12342 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12343 | SWIG_fail; | |
12344 | } | |
12345 | arg2 = new wxArrayInt; | |
12346 | temp2 = True; | |
12347 | int i, len=PySequence_Length(obj1); | |
12348 | for (i=0; i<len; i++) { | |
12349 | PyObject* item = PySequence_GetItem(obj1, i); | |
12350 | PyObject* number = PyNumber_Int(item); | |
12351 | arg2->Add(PyInt_AS_LONG(number)); | |
12352 | Py_DECREF(item); | |
12353 | Py_DECREF(number); | |
12354 | } | |
12355 | } | |
12356 | { | |
12357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12358 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12359 | ||
12360 | wxPyEndAllowThreads(__tstate); | |
12361 | if (PyErr_Occurred()) SWIG_fail; | |
12362 | } | |
12363 | Py_INCREF(Py_None); resultobj = Py_None; | |
12364 | { | |
12365 | if (temp2) delete arg2; | |
12366 | } | |
12367 | return resultobj; | |
12368 | fail: | |
12369 | { | |
12370 | if (temp2) delete arg2; | |
12371 | } | |
12372 | return NULL; | |
12373 | } | |
12374 | ||
12375 | ||
12376 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12377 | PyObject *resultobj; | |
12378 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12379 | PyObject *result; | |
12380 | PyObject * obj0 = 0 ; | |
12381 | char *kwnames[] = { | |
12382 | (char *) "self", NULL | |
12383 | }; | |
12384 | ||
12385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12388 | { | |
12389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12390 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12391 | ||
12392 | wxPyEndAllowThreads(__tstate); | |
12393 | if (PyErr_Occurred()) SWIG_fail; | |
12394 | } | |
12395 | resultobj = result; | |
12396 | return resultobj; | |
12397 | fail: | |
12398 | return NULL; | |
12399 | } | |
12400 | ||
12401 | ||
12402 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12403 | PyObject *obj; | |
12404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12405 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12406 | Py_INCREF(obj); | |
12407 | return Py_BuildValue((char *)""); | |
12408 | } | |
12409 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12410 | PyObject *resultobj; | |
12411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12412 | wxString *arg2 = 0 ; | |
12413 | wxString *arg3 = 0 ; | |
12414 | int arg4 ; | |
12415 | wxString *arg5 = (wxString *) 0 ; | |
12416 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12417 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12418 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12419 | wxSingleChoiceDialog *result; | |
12420 | bool temp2 = False ; | |
12421 | bool temp3 = False ; | |
12422 | wxPoint temp6 ; | |
12423 | PyObject * obj0 = 0 ; | |
12424 | PyObject * obj1 = 0 ; | |
12425 | PyObject * obj2 = 0 ; | |
12426 | PyObject * obj3 = 0 ; | |
12427 | PyObject * obj4 = 0 ; | |
12428 | PyObject * obj5 = 0 ; | |
12429 | char *kwnames[] = { | |
12430 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12431 | }; | |
12432 | ||
12433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12436 | { | |
12437 | arg2 = wxString_in_helper(obj1); | |
12438 | if (arg2 == NULL) SWIG_fail; | |
12439 | temp2 = True; | |
12440 | } | |
12441 | { | |
12442 | arg3 = wxString_in_helper(obj2); | |
12443 | if (arg3 == NULL) SWIG_fail; | |
12444 | temp3 = True; | |
12445 | } | |
12446 | { | |
12447 | arg4 = PyList_Size(obj3); | |
12448 | arg5 = wxString_LIST_helper(obj3); | |
12449 | if (arg5 == NULL) SWIG_fail; | |
12450 | } | |
12451 | if (obj4) { | |
12452 | arg6 = (long) SWIG_AsLong(obj4); | |
12453 | if (PyErr_Occurred()) SWIG_fail; | |
12454 | } | |
12455 | if (obj5) { | |
12456 | { | |
12457 | arg7 = &temp6; | |
12458 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12459 | } | |
12460 | } | |
12461 | { | |
0439c23b | 12462 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12464 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12465 | ||
12466 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12467 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12468 | } |
12469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12470 | { | |
12471 | if (temp2) | |
12472 | delete arg2; | |
12473 | } | |
12474 | { | |
12475 | if (temp3) | |
12476 | delete arg3; | |
12477 | } | |
12478 | { | |
12479 | if (arg5) delete [] arg5; | |
12480 | } | |
12481 | return resultobj; | |
12482 | fail: | |
12483 | { | |
12484 | if (temp2) | |
12485 | delete arg2; | |
12486 | } | |
12487 | { | |
12488 | if (temp3) | |
12489 | delete arg3; | |
12490 | } | |
12491 | { | |
12492 | if (arg5) delete [] arg5; | |
12493 | } | |
12494 | return NULL; | |
12495 | } | |
12496 | ||
12497 | ||
12498 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12499 | PyObject *resultobj; | |
12500 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12501 | int result; | |
12502 | PyObject * obj0 = 0 ; | |
12503 | char *kwnames[] = { | |
12504 | (char *) "self", NULL | |
12505 | }; | |
12506 | ||
12507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12510 | { | |
12511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12512 | result = (int)(arg1)->GetSelection(); | |
12513 | ||
12514 | wxPyEndAllowThreads(__tstate); | |
12515 | if (PyErr_Occurred()) SWIG_fail; | |
12516 | } | |
12517 | resultobj = SWIG_FromInt((int)result); | |
12518 | return resultobj; | |
12519 | fail: | |
12520 | return NULL; | |
12521 | } | |
12522 | ||
12523 | ||
12524 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12525 | PyObject *resultobj; | |
12526 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12527 | wxString result; | |
12528 | PyObject * obj0 = 0 ; | |
12529 | char *kwnames[] = { | |
12530 | (char *) "self", NULL | |
12531 | }; | |
12532 | ||
12533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12536 | { | |
12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12538 | result = (arg1)->GetStringSelection(); | |
12539 | ||
12540 | wxPyEndAllowThreads(__tstate); | |
12541 | if (PyErr_Occurred()) SWIG_fail; | |
12542 | } | |
12543 | { | |
12544 | #if wxUSE_UNICODE | |
12545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12546 | #else | |
12547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12548 | #endif | |
12549 | } | |
12550 | return resultobj; | |
12551 | fail: | |
12552 | return NULL; | |
12553 | } | |
12554 | ||
12555 | ||
12556 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12557 | PyObject *resultobj; | |
12558 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12559 | int arg2 ; | |
12560 | PyObject * obj0 = 0 ; | |
12561 | PyObject * obj1 = 0 ; | |
12562 | char *kwnames[] = { | |
12563 | (char *) "self",(char *) "sel", NULL | |
12564 | }; | |
12565 | ||
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12569 | arg2 = (int) SWIG_AsInt(obj1); | |
12570 | if (PyErr_Occurred()) SWIG_fail; | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | (arg1)->SetSelection(arg2); | |
12574 | ||
12575 | wxPyEndAllowThreads(__tstate); | |
12576 | if (PyErr_Occurred()) SWIG_fail; | |
12577 | } | |
12578 | Py_INCREF(Py_None); resultobj = Py_None; | |
12579 | return resultobj; | |
12580 | fail: | |
12581 | return NULL; | |
12582 | } | |
12583 | ||
12584 | ||
12585 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12586 | PyObject *obj; | |
12587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12588 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12589 | Py_INCREF(obj); | |
12590 | return Py_BuildValue((char *)""); | |
12591 | } | |
12592 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12593 | PyObject *resultobj; | |
12594 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12595 | wxString *arg2 = 0 ; | |
12596 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12597 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12598 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12599 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12600 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12601 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12602 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12603 | wxTextEntryDialog *result; | |
12604 | bool temp2 = False ; | |
12605 | bool temp3 = False ; | |
12606 | bool temp4 = False ; | |
12607 | wxPoint temp6 ; | |
12608 | PyObject * obj0 = 0 ; | |
12609 | PyObject * obj1 = 0 ; | |
12610 | PyObject * obj2 = 0 ; | |
12611 | PyObject * obj3 = 0 ; | |
12612 | PyObject * obj4 = 0 ; | |
12613 | PyObject * obj5 = 0 ; | |
12614 | char *kwnames[] = { | |
12615 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12616 | }; | |
12617 | ||
12618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12621 | { | |
12622 | arg2 = wxString_in_helper(obj1); | |
12623 | if (arg2 == NULL) SWIG_fail; | |
12624 | temp2 = True; | |
12625 | } | |
12626 | if (obj2) { | |
12627 | { | |
12628 | arg3 = wxString_in_helper(obj2); | |
12629 | if (arg3 == NULL) SWIG_fail; | |
12630 | temp3 = True; | |
12631 | } | |
12632 | } | |
12633 | if (obj3) { | |
12634 | { | |
12635 | arg4 = wxString_in_helper(obj3); | |
12636 | if (arg4 == NULL) SWIG_fail; | |
12637 | temp4 = True; | |
12638 | } | |
12639 | } | |
12640 | if (obj4) { | |
12641 | arg5 = (long) SWIG_AsLong(obj4); | |
12642 | if (PyErr_Occurred()) SWIG_fail; | |
12643 | } | |
12644 | if (obj5) { | |
12645 | { | |
12646 | arg6 = &temp6; | |
12647 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12648 | } | |
12649 | } | |
12650 | { | |
0439c23b | 12651 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12653 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12654 | ||
12655 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12656 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12657 | } |
12658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
12659 | { | |
12660 | if (temp2) | |
12661 | delete arg2; | |
12662 | } | |
12663 | { | |
12664 | if (temp3) | |
12665 | delete arg3; | |
12666 | } | |
12667 | { | |
12668 | if (temp4) | |
12669 | delete arg4; | |
12670 | } | |
12671 | return resultobj; | |
12672 | fail: | |
12673 | { | |
12674 | if (temp2) | |
12675 | delete arg2; | |
12676 | } | |
12677 | { | |
12678 | if (temp3) | |
12679 | delete arg3; | |
12680 | } | |
12681 | { | |
12682 | if (temp4) | |
12683 | delete arg4; | |
12684 | } | |
12685 | return NULL; | |
12686 | } | |
12687 | ||
12688 | ||
12689 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12690 | PyObject *resultobj; | |
12691 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12692 | wxString result; | |
12693 | PyObject * obj0 = 0 ; | |
12694 | char *kwnames[] = { | |
12695 | (char *) "self", NULL | |
12696 | }; | |
12697 | ||
12698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12701 | { | |
12702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12703 | result = (arg1)->GetValue(); | |
12704 | ||
12705 | wxPyEndAllowThreads(__tstate); | |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
12707 | } | |
12708 | { | |
12709 | #if wxUSE_UNICODE | |
12710 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12711 | #else | |
12712 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12713 | #endif | |
12714 | } | |
12715 | return resultobj; | |
12716 | fail: | |
12717 | return NULL; | |
12718 | } | |
12719 | ||
12720 | ||
12721 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12722 | PyObject *resultobj; | |
12723 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12724 | wxString *arg2 = 0 ; | |
12725 | bool temp2 = False ; | |
12726 | PyObject * obj0 = 0 ; | |
12727 | PyObject * obj1 = 0 ; | |
12728 | char *kwnames[] = { | |
12729 | (char *) "self",(char *) "value", NULL | |
12730 | }; | |
12731 | ||
12732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12735 | { | |
12736 | arg2 = wxString_in_helper(obj1); | |
12737 | if (arg2 == NULL) SWIG_fail; | |
12738 | temp2 = True; | |
12739 | } | |
12740 | { | |
12741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12742 | (arg1)->SetValue((wxString const &)*arg2); | |
12743 | ||
12744 | wxPyEndAllowThreads(__tstate); | |
12745 | if (PyErr_Occurred()) SWIG_fail; | |
12746 | } | |
12747 | Py_INCREF(Py_None); resultobj = Py_None; | |
12748 | { | |
12749 | if (temp2) | |
12750 | delete arg2; | |
12751 | } | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | { | |
12755 | if (temp2) | |
12756 | delete arg2; | |
12757 | } | |
12758 | return NULL; | |
12759 | } | |
12760 | ||
12761 | ||
12762 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
12763 | PyObject *obj; | |
12764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12765 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12766 | Py_INCREF(obj); | |
12767 | return Py_BuildValue((char *)""); | |
12768 | } | |
12769 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12770 | PyObject *resultobj; | |
12771 | wxFontData *result; | |
12772 | char *kwnames[] = { | |
12773 | NULL | |
12774 | }; | |
12775 | ||
12776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
12777 | { | |
12778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12779 | result = (wxFontData *)new wxFontData(); | |
12780 | ||
12781 | wxPyEndAllowThreads(__tstate); | |
12782 | if (PyErr_Occurred()) SWIG_fail; | |
12783 | } | |
12784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
12785 | return resultobj; | |
12786 | fail: | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
12791 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12792 | PyObject *resultobj; | |
12793 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12794 | PyObject * obj0 = 0 ; | |
12795 | char *kwnames[] = { | |
12796 | (char *) "self", NULL | |
12797 | }; | |
12798 | ||
12799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
12800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12802 | { | |
12803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12804 | delete arg1; | |
12805 | ||
12806 | wxPyEndAllowThreads(__tstate); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
12809 | Py_INCREF(Py_None); resultobj = Py_None; | |
12810 | return resultobj; | |
12811 | fail: | |
12812 | return NULL; | |
12813 | } | |
12814 | ||
12815 | ||
12816 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12817 | PyObject *resultobj; | |
12818 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12819 | bool arg2 ; | |
12820 | PyObject * obj0 = 0 ; | |
12821 | PyObject * obj1 = 0 ; | |
12822 | char *kwnames[] = { | |
12823 | (char *) "self",(char *) "enable", NULL | |
12824 | }; | |
12825 | ||
12826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
12827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12829 | arg2 = (bool) SWIG_AsBool(obj1); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | { | |
12832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12833 | (arg1)->EnableEffects(arg2); | |
12834 | ||
12835 | wxPyEndAllowThreads(__tstate); | |
12836 | if (PyErr_Occurred()) SWIG_fail; | |
12837 | } | |
12838 | Py_INCREF(Py_None); resultobj = Py_None; | |
12839 | return resultobj; | |
12840 | fail: | |
12841 | return NULL; | |
12842 | } | |
12843 | ||
12844 | ||
12845 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12846 | PyObject *resultobj; | |
12847 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12848 | bool result; | |
12849 | PyObject * obj0 = 0 ; | |
12850 | char *kwnames[] = { | |
12851 | (char *) "self", NULL | |
12852 | }; | |
12853 | ||
12854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
12855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12857 | { | |
12858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12859 | result = (bool)(arg1)->GetAllowSymbols(); | |
12860 | ||
12861 | wxPyEndAllowThreads(__tstate); | |
12862 | if (PyErr_Occurred()) SWIG_fail; | |
12863 | } | |
12864 | { | |
12865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12866 | } | |
12867 | return resultobj; | |
12868 | fail: | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
12873 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12874 | PyObject *resultobj; | |
12875 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12876 | wxColour result; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | char *kwnames[] = { | |
12879 | (char *) "self", NULL | |
12880 | }; | |
12881 | ||
12882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
12883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12885 | { | |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12887 | result = (arg1)->GetColour(); | |
12888 | ||
12889 | wxPyEndAllowThreads(__tstate); | |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
12891 | } | |
12892 | { | |
12893 | wxColour * resultptr; | |
12894 | resultptr = new wxColour((wxColour &) result); | |
12895 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
12896 | } | |
12897 | return resultobj; | |
12898 | fail: | |
12899 | return NULL; | |
12900 | } | |
12901 | ||
12902 | ||
12903 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12904 | PyObject *resultobj; | |
12905 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12906 | wxFont result; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | char *kwnames[] = { | |
12909 | (char *) "self", NULL | |
12910 | }; | |
12911 | ||
12912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
12913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12915 | { | |
12916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12917 | result = (arg1)->GetChosenFont(); | |
12918 | ||
12919 | wxPyEndAllowThreads(__tstate); | |
12920 | if (PyErr_Occurred()) SWIG_fail; | |
12921 | } | |
12922 | { | |
12923 | wxFont * resultptr; | |
12924 | resultptr = new wxFont((wxFont &) result); | |
12925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12926 | } | |
12927 | return resultobj; | |
12928 | fail: | |
12929 | return NULL; | |
12930 | } | |
12931 | ||
12932 | ||
12933 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12934 | PyObject *resultobj; | |
12935 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12936 | bool result; | |
12937 | PyObject * obj0 = 0 ; | |
12938 | char *kwnames[] = { | |
12939 | (char *) "self", NULL | |
12940 | }; | |
12941 | ||
12942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
12943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12945 | { | |
12946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12947 | result = (bool)(arg1)->GetEnableEffects(); | |
12948 | ||
12949 | wxPyEndAllowThreads(__tstate); | |
12950 | if (PyErr_Occurred()) SWIG_fail; | |
12951 | } | |
12952 | { | |
12953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12954 | } | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | return NULL; | |
12958 | } | |
12959 | ||
12960 | ||
12961 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12962 | PyObject *resultobj; | |
12963 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12964 | wxFont result; | |
12965 | PyObject * obj0 = 0 ; | |
12966 | char *kwnames[] = { | |
12967 | (char *) "self", NULL | |
12968 | }; | |
12969 | ||
12970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
12971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12973 | { | |
12974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12975 | result = (arg1)->GetInitialFont(); | |
12976 | ||
12977 | wxPyEndAllowThreads(__tstate); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
12979 | } | |
12980 | { | |
12981 | wxFont * resultptr; | |
12982 | resultptr = new wxFont((wxFont &) result); | |
12983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12984 | } | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj; | |
12993 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12994 | bool result; | |
12995 | PyObject * obj0 = 0 ; | |
12996 | char *kwnames[] = { | |
12997 | (char *) "self", NULL | |
12998 | }; | |
12999 | ||
13000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
13001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13003 | { | |
13004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13005 | result = (bool)(arg1)->GetShowHelp(); | |
13006 | ||
13007 | wxPyEndAllowThreads(__tstate); | |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | } | |
13010 | { | |
13011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13012 | } | |
13013 | return resultobj; | |
13014 | fail: | |
13015 | return NULL; | |
13016 | } | |
13017 | ||
13018 | ||
13019 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13020 | PyObject *resultobj; | |
13021 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13022 | bool arg2 ; | |
13023 | PyObject * obj0 = 0 ; | |
13024 | PyObject * obj1 = 0 ; | |
13025 | char *kwnames[] = { | |
13026 | (char *) "self",(char *) "allowSymbols", NULL | |
13027 | }; | |
13028 | ||
13029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
13030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13032 | arg2 = (bool) SWIG_AsBool(obj1); | |
13033 | if (PyErr_Occurred()) SWIG_fail; | |
13034 | { | |
13035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13036 | (arg1)->SetAllowSymbols(arg2); | |
13037 | ||
13038 | wxPyEndAllowThreads(__tstate); | |
13039 | if (PyErr_Occurred()) SWIG_fail; | |
13040 | } | |
13041 | Py_INCREF(Py_None); resultobj = Py_None; | |
13042 | return resultobj; | |
13043 | fail: | |
13044 | return NULL; | |
13045 | } | |
13046 | ||
13047 | ||
13048 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13049 | PyObject *resultobj; | |
13050 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13051 | wxFont *arg2 = 0 ; | |
13052 | PyObject * obj0 = 0 ; | |
13053 | PyObject * obj1 = 0 ; | |
13054 | char *kwnames[] = { | |
13055 | (char *) "self",(char *) "font", NULL | |
13056 | }; | |
13057 | ||
13058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
13059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13063 | SWIG_fail; | |
13064 | if (arg2 == NULL) { | |
13065 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13066 | SWIG_fail; | |
13067 | } | |
13068 | { | |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13070 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13071 | ||
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | Py_INCREF(Py_None); resultobj = Py_None; | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
13082 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13083 | PyObject *resultobj; | |
13084 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13085 | wxColour *arg2 = 0 ; | |
13086 | wxColour temp2 ; | |
13087 | PyObject * obj0 = 0 ; | |
13088 | PyObject * obj1 = 0 ; | |
13089 | char *kwnames[] = { | |
13090 | (char *) "self",(char *) "colour", NULL | |
13091 | }; | |
13092 | ||
13093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13096 | { | |
13097 | arg2 = &temp2; | |
13098 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13099 | } | |
13100 | { | |
13101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13102 | (arg1)->SetColour((wxColour const &)*arg2); | |
13103 | ||
13104 | wxPyEndAllowThreads(__tstate); | |
13105 | if (PyErr_Occurred()) SWIG_fail; | |
13106 | } | |
13107 | Py_INCREF(Py_None); resultobj = Py_None; | |
13108 | return resultobj; | |
13109 | fail: | |
13110 | return NULL; | |
13111 | } | |
13112 | ||
13113 | ||
13114 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13115 | PyObject *resultobj; | |
13116 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13117 | wxFont *arg2 = 0 ; | |
13118 | PyObject * obj0 = 0 ; | |
13119 | PyObject * obj1 = 0 ; | |
13120 | char *kwnames[] = { | |
13121 | (char *) "self",(char *) "font", NULL | |
13122 | }; | |
13123 | ||
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13129 | SWIG_fail; | |
13130 | if (arg2 == NULL) { | |
13131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13132 | SWIG_fail; | |
13133 | } | |
13134 | { | |
13135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13136 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13137 | ||
13138 | wxPyEndAllowThreads(__tstate); | |
13139 | if (PyErr_Occurred()) SWIG_fail; | |
13140 | } | |
13141 | Py_INCREF(Py_None); resultobj = Py_None; | |
13142 | return resultobj; | |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
13148 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13149 | PyObject *resultobj; | |
13150 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13151 | int arg2 ; | |
13152 | int arg3 ; | |
13153 | PyObject * obj0 = 0 ; | |
13154 | PyObject * obj1 = 0 ; | |
13155 | PyObject * obj2 = 0 ; | |
13156 | char *kwnames[] = { | |
13157 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13158 | }; | |
13159 | ||
13160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13163 | arg2 = (int) SWIG_AsInt(obj1); | |
13164 | if (PyErr_Occurred()) SWIG_fail; | |
13165 | arg3 = (int) SWIG_AsInt(obj2); | |
13166 | if (PyErr_Occurred()) SWIG_fail; | |
13167 | { | |
13168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13169 | (arg1)->SetRange(arg2,arg3); | |
13170 | ||
13171 | wxPyEndAllowThreads(__tstate); | |
13172 | if (PyErr_Occurred()) SWIG_fail; | |
13173 | } | |
13174 | Py_INCREF(Py_None); resultobj = Py_None; | |
13175 | return resultobj; | |
13176 | fail: | |
13177 | return NULL; | |
13178 | } | |
13179 | ||
13180 | ||
13181 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13182 | PyObject *resultobj; | |
13183 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13184 | bool arg2 ; | |
13185 | PyObject * obj0 = 0 ; | |
13186 | PyObject * obj1 = 0 ; | |
13187 | char *kwnames[] = { | |
13188 | (char *) "self",(char *) "showHelp", NULL | |
13189 | }; | |
13190 | ||
13191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13194 | arg2 = (bool) SWIG_AsBool(obj1); | |
13195 | if (PyErr_Occurred()) SWIG_fail; | |
13196 | { | |
13197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13198 | (arg1)->SetShowHelp(arg2); | |
13199 | ||
13200 | wxPyEndAllowThreads(__tstate); | |
13201 | if (PyErr_Occurred()) SWIG_fail; | |
13202 | } | |
13203 | Py_INCREF(Py_None); resultobj = Py_None; | |
13204 | return resultobj; | |
13205 | fail: | |
13206 | return NULL; | |
13207 | } | |
13208 | ||
13209 | ||
13210 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13211 | PyObject *obj; | |
13212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13213 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13214 | Py_INCREF(obj); | |
13215 | return Py_BuildValue((char *)""); | |
13216 | } | |
13217 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13218 | PyObject *resultobj; | |
13219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13220 | wxFontData *arg2 = 0 ; | |
13221 | wxFontDialog *result; | |
13222 | PyObject * obj0 = 0 ; | |
13223 | PyObject * obj1 = 0 ; | |
13224 | char *kwnames[] = { | |
13225 | (char *) "parent",(char *) "data", NULL | |
13226 | }; | |
13227 | ||
13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13233 | SWIG_fail; | |
13234 | if (arg2 == NULL) { | |
13235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13236 | SWIG_fail; | |
13237 | } | |
13238 | { | |
0439c23b | 13239 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13241 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13242 | ||
13243 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 13244 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13245 | } |
13246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
13253 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13254 | PyObject *resultobj; | |
13255 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13256 | wxFontData *result; | |
13257 | PyObject * obj0 = 0 ; | |
13258 | char *kwnames[] = { | |
13259 | (char *) "self", NULL | |
13260 | }; | |
13261 | ||
13262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13265 | { | |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | { | |
13268 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13269 | result = (wxFontData *) &_result_ref; | |
13270 | } | |
13271 | ||
13272 | wxPyEndAllowThreads(__tstate); | |
13273 | if (PyErr_Occurred()) SWIG_fail; | |
13274 | } | |
13275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13276 | return resultobj; | |
13277 | fail: | |
13278 | return NULL; | |
13279 | } | |
13280 | ||
13281 | ||
13282 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13283 | PyObject *obj; | |
13284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13285 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13286 | Py_INCREF(obj); | |
13287 | return Py_BuildValue((char *)""); | |
13288 | } | |
13289 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13290 | PyObject *resultobj; | |
13291 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13292 | wxString *arg2 = 0 ; | |
13293 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13294 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13295 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13296 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13297 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13298 | wxMessageDialog *result; | |
13299 | bool temp2 = False ; | |
13300 | bool temp3 = False ; | |
13301 | wxPoint temp5 ; | |
13302 | PyObject * obj0 = 0 ; | |
13303 | PyObject * obj1 = 0 ; | |
13304 | PyObject * obj2 = 0 ; | |
13305 | PyObject * obj3 = 0 ; | |
13306 | PyObject * obj4 = 0 ; | |
13307 | char *kwnames[] = { | |
13308 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13309 | }; | |
13310 | ||
13311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13314 | { | |
13315 | arg2 = wxString_in_helper(obj1); | |
13316 | if (arg2 == NULL) SWIG_fail; | |
13317 | temp2 = True; | |
13318 | } | |
13319 | if (obj2) { | |
13320 | { | |
13321 | arg3 = wxString_in_helper(obj2); | |
13322 | if (arg3 == NULL) SWIG_fail; | |
13323 | temp3 = True; | |
13324 | } | |
13325 | } | |
13326 | if (obj3) { | |
13327 | arg4 = (long) SWIG_AsLong(obj3); | |
13328 | if (PyErr_Occurred()) SWIG_fail; | |
13329 | } | |
13330 | if (obj4) { | |
13331 | { | |
13332 | arg5 = &temp5; | |
13333 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13334 | } | |
13335 | } | |
13336 | { | |
0439c23b | 13337 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13339 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13340 | ||
13341 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 13342 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13343 | } |
13344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13345 | { | |
13346 | if (temp2) | |
13347 | delete arg2; | |
13348 | } | |
13349 | { | |
13350 | if (temp3) | |
13351 | delete arg3; | |
13352 | } | |
13353 | return resultobj; | |
13354 | fail: | |
13355 | { | |
13356 | if (temp2) | |
13357 | delete arg2; | |
13358 | } | |
13359 | { | |
13360 | if (temp3) | |
13361 | delete arg3; | |
13362 | } | |
13363 | return NULL; | |
13364 | } | |
13365 | ||
13366 | ||
13367 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13368 | PyObject *obj; | |
13369 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13370 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13371 | Py_INCREF(obj); | |
13372 | return Py_BuildValue((char *)""); | |
13373 | } | |
13374 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13375 | PyObject *resultobj; | |
13376 | wxString *arg1 = 0 ; | |
13377 | wxString *arg2 = 0 ; | |
13378 | int arg3 = (int) 100 ; | |
13379 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13380 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13381 | wxProgressDialog *result; | |
13382 | bool temp1 = False ; | |
13383 | bool temp2 = False ; | |
13384 | PyObject * obj0 = 0 ; | |
13385 | PyObject * obj1 = 0 ; | |
13386 | PyObject * obj2 = 0 ; | |
13387 | PyObject * obj3 = 0 ; | |
13388 | PyObject * obj4 = 0 ; | |
13389 | char *kwnames[] = { | |
13390 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13391 | }; | |
13392 | ||
13393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13394 | { | |
13395 | arg1 = wxString_in_helper(obj0); | |
13396 | if (arg1 == NULL) SWIG_fail; | |
13397 | temp1 = True; | |
13398 | } | |
13399 | { | |
13400 | arg2 = wxString_in_helper(obj1); | |
13401 | if (arg2 == NULL) SWIG_fail; | |
13402 | temp2 = True; | |
13403 | } | |
13404 | if (obj2) { | |
13405 | arg3 = (int) SWIG_AsInt(obj2); | |
13406 | if (PyErr_Occurred()) SWIG_fail; | |
13407 | } | |
13408 | if (obj3) { | |
13409 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13411 | } | |
13412 | if (obj4) { | |
13413 | arg5 = (int) SWIG_AsInt(obj4); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
13416 | { | |
0439c23b | 13417 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13419 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13420 | ||
13421 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 13422 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13423 | } |
13424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13425 | { | |
13426 | if (temp1) | |
13427 | delete arg1; | |
13428 | } | |
13429 | { | |
13430 | if (temp2) | |
13431 | delete arg2; | |
13432 | } | |
13433 | return resultobj; | |
13434 | fail: | |
13435 | { | |
13436 | if (temp1) | |
13437 | delete arg1; | |
13438 | } | |
13439 | { | |
13440 | if (temp2) | |
13441 | delete arg2; | |
13442 | } | |
13443 | return NULL; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13448 | PyObject *resultobj; | |
13449 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13450 | int arg2 ; | |
13451 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13452 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13453 | bool result; | |
13454 | bool temp3 = False ; | |
13455 | PyObject * obj0 = 0 ; | |
13456 | PyObject * obj1 = 0 ; | |
13457 | PyObject * obj2 = 0 ; | |
13458 | char *kwnames[] = { | |
13459 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13460 | }; | |
13461 | ||
13462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13465 | arg2 = (int) SWIG_AsInt(obj1); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | if (obj2) { | |
13468 | { | |
13469 | arg3 = wxString_in_helper(obj2); | |
13470 | if (arg3 == NULL) SWIG_fail; | |
13471 | temp3 = True; | |
13472 | } | |
13473 | } | |
13474 | { | |
13475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13476 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13477 | ||
13478 | wxPyEndAllowThreads(__tstate); | |
13479 | if (PyErr_Occurred()) SWIG_fail; | |
13480 | } | |
13481 | { | |
13482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13483 | } | |
13484 | { | |
13485 | if (temp3) | |
13486 | delete arg3; | |
13487 | } | |
13488 | return resultobj; | |
13489 | fail: | |
13490 | { | |
13491 | if (temp3) | |
13492 | delete arg3; | |
13493 | } | |
13494 | return NULL; | |
13495 | } | |
13496 | ||
13497 | ||
13498 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13501 | PyObject * obj0 = 0 ; | |
13502 | char *kwnames[] = { | |
13503 | (char *) "self", NULL | |
13504 | }; | |
13505 | ||
13506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13509 | { | |
13510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13511 | (arg1)->Resume(); | |
13512 | ||
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | Py_INCREF(Py_None); resultobj = Py_None; | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | return NULL; | |
13520 | } | |
13521 | ||
13522 | ||
13523 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13524 | PyObject *obj; | |
13525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13526 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13527 | Py_INCREF(obj); | |
13528 | return Py_BuildValue((char *)""); | |
13529 | } | |
13530 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13531 | PyObject *resultobj; | |
13532 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13533 | int arg2 = (int) 0 ; | |
13534 | wxFindDialogEvent *result; | |
13535 | PyObject * obj0 = 0 ; | |
13536 | PyObject * obj1 = 0 ; | |
13537 | char *kwnames[] = { | |
13538 | (char *) "commandType",(char *) "id", NULL | |
13539 | }; | |
13540 | ||
13541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13542 | if (obj0) { | |
13543 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13544 | if (PyErr_Occurred()) SWIG_fail; | |
13545 | } | |
13546 | if (obj1) { | |
13547 | arg2 = (int) SWIG_AsInt(obj1); | |
13548 | if (PyErr_Occurred()) SWIG_fail; | |
13549 | } | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13565 | PyObject *resultobj; | |
13566 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13567 | int result; | |
13568 | PyObject * obj0 = 0 ; | |
13569 | char *kwnames[] = { | |
13570 | (char *) "self", NULL | |
13571 | }; | |
13572 | ||
13573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | result = (int)(arg1)->GetFlags(); | |
13579 | ||
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | resultobj = SWIG_FromInt((int)result); | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13591 | PyObject *resultobj; | |
13592 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13593 | wxString *result; | |
13594 | PyObject * obj0 = 0 ; | |
13595 | char *kwnames[] = { | |
13596 | (char *) "self", NULL | |
13597 | }; | |
13598 | ||
13599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13602 | { | |
13603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13604 | { | |
13605 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13606 | result = (wxString *) &_result_ref; | |
13607 | } | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
13612 | { | |
13613 | #if wxUSE_UNICODE | |
13614 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13615 | #else | |
13616 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13617 | #endif | |
13618 | } | |
13619 | return resultobj; | |
13620 | fail: | |
13621 | return NULL; | |
13622 | } | |
13623 | ||
13624 | ||
13625 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13626 | PyObject *resultobj; | |
13627 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13628 | wxString *result; | |
13629 | PyObject * obj0 = 0 ; | |
13630 | char *kwnames[] = { | |
13631 | (char *) "self", NULL | |
13632 | }; | |
13633 | ||
13634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13637 | { | |
13638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13639 | { | |
13640 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13641 | result = (wxString *) &_result_ref; | |
13642 | } | |
13643 | ||
13644 | wxPyEndAllowThreads(__tstate); | |
13645 | if (PyErr_Occurred()) SWIG_fail; | |
13646 | } | |
13647 | { | |
13648 | #if wxUSE_UNICODE | |
13649 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13650 | #else | |
13651 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13652 | #endif | |
13653 | } | |
13654 | return resultobj; | |
13655 | fail: | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
13660 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13661 | PyObject *resultobj; | |
13662 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13663 | wxFindReplaceDialog *result; | |
13664 | PyObject * obj0 = 0 ; | |
13665 | char *kwnames[] = { | |
13666 | (char *) "self", NULL | |
13667 | }; | |
13668 | ||
13669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13672 | { | |
13673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13674 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13675 | ||
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13680 | return resultobj; | |
13681 | fail: | |
13682 | return NULL; | |
13683 | } | |
13684 | ||
13685 | ||
13686 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13687 | PyObject *resultobj; | |
13688 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13689 | int arg2 ; | |
13690 | PyObject * obj0 = 0 ; | |
13691 | PyObject * obj1 = 0 ; | |
13692 | char *kwnames[] = { | |
13693 | (char *) "self",(char *) "flags", NULL | |
13694 | }; | |
13695 | ||
13696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13699 | arg2 = (int) SWIG_AsInt(obj1); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | { | |
13702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13703 | (arg1)->SetFlags(arg2); | |
13704 | ||
13705 | wxPyEndAllowThreads(__tstate); | |
13706 | if (PyErr_Occurred()) SWIG_fail; | |
13707 | } | |
13708 | Py_INCREF(Py_None); resultobj = Py_None; | |
13709 | return resultobj; | |
13710 | fail: | |
13711 | return NULL; | |
13712 | } | |
13713 | ||
13714 | ||
13715 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13716 | PyObject *resultobj; | |
13717 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13718 | wxString *arg2 = 0 ; | |
13719 | bool temp2 = False ; | |
13720 | PyObject * obj0 = 0 ; | |
13721 | PyObject * obj1 = 0 ; | |
13722 | char *kwnames[] = { | |
13723 | (char *) "self",(char *) "str", NULL | |
13724 | }; | |
13725 | ||
13726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13729 | { | |
13730 | arg2 = wxString_in_helper(obj1); | |
13731 | if (arg2 == NULL) SWIG_fail; | |
13732 | temp2 = True; | |
13733 | } | |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | (arg1)->SetFindString((wxString const &)*arg2); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | Py_INCREF(Py_None); resultobj = Py_None; | |
13742 | { | |
13743 | if (temp2) | |
13744 | delete arg2; | |
13745 | } | |
13746 | return resultobj; | |
13747 | fail: | |
13748 | { | |
13749 | if (temp2) | |
13750 | delete arg2; | |
13751 | } | |
13752 | return NULL; | |
13753 | } | |
13754 | ||
13755 | ||
13756 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13757 | PyObject *resultobj; | |
13758 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13759 | wxString *arg2 = 0 ; | |
13760 | bool temp2 = False ; | |
13761 | PyObject * obj0 = 0 ; | |
13762 | PyObject * obj1 = 0 ; | |
13763 | char *kwnames[] = { | |
13764 | (char *) "self",(char *) "str", NULL | |
13765 | }; | |
13766 | ||
13767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13770 | { | |
13771 | arg2 = wxString_in_helper(obj1); | |
13772 | if (arg2 == NULL) SWIG_fail; | |
13773 | temp2 = True; | |
13774 | } | |
13775 | { | |
13776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13777 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13778 | ||
13779 | wxPyEndAllowThreads(__tstate); | |
13780 | if (PyErr_Occurred()) SWIG_fail; | |
13781 | } | |
13782 | Py_INCREF(Py_None); resultobj = Py_None; | |
13783 | { | |
13784 | if (temp2) | |
13785 | delete arg2; | |
13786 | } | |
13787 | return resultobj; | |
13788 | fail: | |
13789 | { | |
13790 | if (temp2) | |
13791 | delete arg2; | |
13792 | } | |
13793 | return NULL; | |
13794 | } | |
13795 | ||
13796 | ||
13797 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
13798 | PyObject *obj; | |
13799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13800 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
13801 | Py_INCREF(obj); | |
13802 | return Py_BuildValue((char *)""); | |
13803 | } | |
13804 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | int arg1 = (int) 0 ; | |
13807 | wxFindReplaceData *result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "flags", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
13814 | if (obj0) { | |
13815 | arg1 = (int) SWIG_AsInt(obj0); | |
13816 | if (PyErr_Occurred()) SWIG_fail; | |
13817 | } | |
13818 | { | |
13819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13820 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
13821 | ||
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
13825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
13826 | return resultobj; | |
13827 | fail: | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
13832 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13833 | PyObject *resultobj; | |
13834 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13835 | PyObject * obj0 = 0 ; | |
13836 | char *kwnames[] = { | |
13837 | (char *) "self", NULL | |
13838 | }; | |
13839 | ||
13840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
13841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13843 | { | |
13844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13845 | delete arg1; | |
13846 | ||
13847 | wxPyEndAllowThreads(__tstate); | |
13848 | if (PyErr_Occurred()) SWIG_fail; | |
13849 | } | |
13850 | Py_INCREF(Py_None); resultobj = Py_None; | |
13851 | return resultobj; | |
13852 | fail: | |
13853 | return NULL; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13858 | PyObject *resultobj; | |
13859 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13860 | wxString *result; | |
13861 | PyObject * obj0 = 0 ; | |
13862 | char *kwnames[] = { | |
13863 | (char *) "self", NULL | |
13864 | }; | |
13865 | ||
13866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
13867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13869 | { | |
13870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13871 | { | |
13872 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13873 | result = (wxString *) &_result_ref; | |
13874 | } | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | { | |
13880 | #if wxUSE_UNICODE | |
13881 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13882 | #else | |
13883 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13884 | #endif | |
13885 | } | |
13886 | return resultobj; | |
13887 | fail: | |
13888 | return NULL; | |
13889 | } | |
13890 | ||
13891 | ||
13892 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13893 | PyObject *resultobj; | |
13894 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13895 | wxString *result; | |
13896 | PyObject * obj0 = 0 ; | |
13897 | char *kwnames[] = { | |
13898 | (char *) "self", NULL | |
13899 | }; | |
13900 | ||
13901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
13902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13904 | { | |
13905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13906 | { | |
13907 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13908 | result = (wxString *) &_result_ref; | |
13909 | } | |
13910 | ||
13911 | wxPyEndAllowThreads(__tstate); | |
13912 | if (PyErr_Occurred()) SWIG_fail; | |
13913 | } | |
13914 | { | |
13915 | #if wxUSE_UNICODE | |
13916 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13917 | #else | |
13918 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13919 | #endif | |
13920 | } | |
13921 | return resultobj; | |
13922 | fail: | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13928 | PyObject *resultobj; | |
13929 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13930 | int result; | |
13931 | PyObject * obj0 = 0 ; | |
13932 | char *kwnames[] = { | |
13933 | (char *) "self", NULL | |
13934 | }; | |
13935 | ||
13936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
13937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13939 | { | |
13940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13941 | result = (int)(arg1)->GetFlags(); | |
13942 | ||
13943 | wxPyEndAllowThreads(__tstate); | |
13944 | if (PyErr_Occurred()) SWIG_fail; | |
13945 | } | |
13946 | resultobj = SWIG_FromInt((int)result); | |
13947 | return resultobj; | |
13948 | fail: | |
13949 | return NULL; | |
13950 | } | |
13951 | ||
13952 | ||
13953 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13954 | PyObject *resultobj; | |
13955 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13956 | int arg2 ; | |
13957 | PyObject * obj0 = 0 ; | |
13958 | PyObject * obj1 = 0 ; | |
13959 | char *kwnames[] = { | |
13960 | (char *) "self",(char *) "flags", NULL | |
13961 | }; | |
13962 | ||
13963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13966 | arg2 = (int) SWIG_AsInt(obj1); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | { | |
13969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13970 | (arg1)->SetFlags(arg2); | |
13971 | ||
13972 | wxPyEndAllowThreads(__tstate); | |
13973 | if (PyErr_Occurred()) SWIG_fail; | |
13974 | } | |
13975 | Py_INCREF(Py_None); resultobj = Py_None; | |
13976 | return resultobj; | |
13977 | fail: | |
13978 | return NULL; | |
13979 | } | |
13980 | ||
13981 | ||
13982 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13983 | PyObject *resultobj; | |
13984 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13985 | wxString *arg2 = 0 ; | |
13986 | bool temp2 = False ; | |
13987 | PyObject * obj0 = 0 ; | |
13988 | PyObject * obj1 = 0 ; | |
13989 | char *kwnames[] = { | |
13990 | (char *) "self",(char *) "str", NULL | |
13991 | }; | |
13992 | ||
13993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13996 | { | |
13997 | arg2 = wxString_in_helper(obj1); | |
13998 | if (arg2 == NULL) SWIG_fail; | |
13999 | temp2 = True; | |
14000 | } | |
14001 | { | |
14002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14003 | (arg1)->SetFindString((wxString const &)*arg2); | |
14004 | ||
14005 | wxPyEndAllowThreads(__tstate); | |
14006 | if (PyErr_Occurred()) SWIG_fail; | |
14007 | } | |
14008 | Py_INCREF(Py_None); resultobj = Py_None; | |
14009 | { | |
14010 | if (temp2) | |
14011 | delete arg2; | |
14012 | } | |
14013 | return resultobj; | |
14014 | fail: | |
14015 | { | |
14016 | if (temp2) | |
14017 | delete arg2; | |
14018 | } | |
14019 | return NULL; | |
14020 | } | |
14021 | ||
14022 | ||
14023 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14024 | PyObject *resultobj; | |
14025 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14026 | wxString *arg2 = 0 ; | |
14027 | bool temp2 = False ; | |
14028 | PyObject * obj0 = 0 ; | |
14029 | PyObject * obj1 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "self",(char *) "str", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14037 | { | |
14038 | arg2 = wxString_in_helper(obj1); | |
14039 | if (arg2 == NULL) SWIG_fail; | |
14040 | temp2 = True; | |
14041 | } | |
14042 | { | |
14043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14044 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14045 | ||
14046 | wxPyEndAllowThreads(__tstate); | |
14047 | if (PyErr_Occurred()) SWIG_fail; | |
14048 | } | |
14049 | Py_INCREF(Py_None); resultobj = Py_None; | |
14050 | { | |
14051 | if (temp2) | |
14052 | delete arg2; | |
14053 | } | |
14054 | return resultobj; | |
14055 | fail: | |
14056 | { | |
14057 | if (temp2) | |
14058 | delete arg2; | |
14059 | } | |
14060 | return NULL; | |
14061 | } | |
14062 | ||
14063 | ||
14064 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14065 | PyObject *obj; | |
14066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14067 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14068 | Py_INCREF(obj); | |
14069 | return Py_BuildValue((char *)""); | |
14070 | } | |
14071 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14072 | PyObject *resultobj; | |
14073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14074 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14075 | wxString *arg3 = 0 ; | |
14076 | int arg4 = (int) 0 ; | |
14077 | wxFindReplaceDialog *result; | |
14078 | bool temp3 = False ; | |
14079 | PyObject * obj0 = 0 ; | |
14080 | PyObject * obj1 = 0 ; | |
14081 | PyObject * obj2 = 0 ; | |
14082 | PyObject * obj3 = 0 ; | |
14083 | char *kwnames[] = { | |
14084 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14085 | }; | |
14086 | ||
14087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14092 | { | |
14093 | arg3 = wxString_in_helper(obj2); | |
14094 | if (arg3 == NULL) SWIG_fail; | |
14095 | temp3 = True; | |
14096 | } | |
14097 | if (obj3) { | |
14098 | arg4 = (int) SWIG_AsInt(obj3); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
14101 | { | |
0439c23b | 14102 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14104 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14105 | ||
14106 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14107 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14108 | } |
14109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14110 | { | |
14111 | if (temp3) | |
14112 | delete arg3; | |
14113 | } | |
14114 | return resultobj; | |
14115 | fail: | |
14116 | { | |
14117 | if (temp3) | |
14118 | delete arg3; | |
14119 | } | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
14124 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14125 | PyObject *resultobj; | |
14126 | wxFindReplaceDialog *result; | |
14127 | char *kwnames[] = { | |
14128 | NULL | |
14129 | }; | |
14130 | ||
14131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14132 | { | |
0439c23b | 14133 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14135 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14136 | ||
14137 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14138 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14139 | } |
14140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14141 | return resultobj; | |
14142 | fail: | |
14143 | return NULL; | |
14144 | } | |
14145 | ||
14146 | ||
14147 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14148 | PyObject *resultobj; | |
14149 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14150 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14151 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14152 | wxString *arg4 = 0 ; | |
14153 | int arg5 = (int) 0 ; | |
14154 | bool result; | |
14155 | bool temp4 = False ; | |
14156 | PyObject * obj0 = 0 ; | |
14157 | PyObject * obj1 = 0 ; | |
14158 | PyObject * obj2 = 0 ; | |
14159 | PyObject * obj3 = 0 ; | |
14160 | PyObject * obj4 = 0 ; | |
14161 | char *kwnames[] = { | |
14162 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14163 | }; | |
14164 | ||
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14170 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14172 | { | |
14173 | arg4 = wxString_in_helper(obj3); | |
14174 | if (arg4 == NULL) SWIG_fail; | |
14175 | temp4 = True; | |
14176 | } | |
14177 | if (obj4) { | |
14178 | arg5 = (int) SWIG_AsInt(obj4); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14183 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14184 | ||
14185 | wxPyEndAllowThreads(__tstate); | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | } | |
14188 | { | |
14189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14190 | } | |
14191 | { | |
14192 | if (temp4) | |
14193 | delete arg4; | |
14194 | } | |
14195 | return resultobj; | |
14196 | fail: | |
14197 | { | |
14198 | if (temp4) | |
14199 | delete arg4; | |
14200 | } | |
14201 | return NULL; | |
14202 | } | |
14203 | ||
14204 | ||
14205 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14206 | PyObject *resultobj; | |
14207 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14208 | wxFindReplaceData *result; | |
14209 | PyObject * obj0 = 0 ; | |
14210 | char *kwnames[] = { | |
14211 | (char *) "self", NULL | |
14212 | }; | |
14213 | ||
14214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14217 | { | |
14218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14219 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14220 | ||
14221 | wxPyEndAllowThreads(__tstate); | |
14222 | if (PyErr_Occurred()) SWIG_fail; | |
14223 | } | |
14224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14225 | return resultobj; | |
14226 | fail: | |
14227 | return NULL; | |
14228 | } | |
14229 | ||
14230 | ||
14231 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14232 | PyObject *resultobj; | |
14233 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14234 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | PyObject * obj1 = 0 ; | |
14237 | char *kwnames[] = { | |
14238 | (char *) "self",(char *) "data", NULL | |
14239 | }; | |
14240 | ||
14241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | (arg1)->SetData(arg2); | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | Py_INCREF(Py_None); resultobj = Py_None; | |
14254 | return resultobj; | |
14255 | fail: | |
14256 | return NULL; | |
14257 | } | |
14258 | ||
14259 | ||
14260 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14261 | PyObject *obj; | |
14262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14263 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14264 | Py_INCREF(obj); | |
14265 | return Py_BuildValue((char *)""); | |
14266 | } | |
14267 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14268 | PyObject *resultobj; | |
14269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14270 | int arg2 ; | |
14271 | wxString *arg3 = 0 ; | |
14272 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14273 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14274 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14275 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14276 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14277 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14278 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14279 | wxMDIParentFrame *result; | |
14280 | bool temp3 = False ; | |
14281 | wxPoint temp4 ; | |
14282 | wxSize temp5 ; | |
14283 | bool temp7 = False ; | |
14284 | PyObject * obj0 = 0 ; | |
14285 | PyObject * obj1 = 0 ; | |
14286 | PyObject * obj2 = 0 ; | |
14287 | PyObject * obj3 = 0 ; | |
14288 | PyObject * obj4 = 0 ; | |
14289 | PyObject * obj5 = 0 ; | |
14290 | PyObject * obj6 = 0 ; | |
14291 | char *kwnames[] = { | |
14292 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14293 | }; | |
14294 | ||
14295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14298 | arg2 = (int const) SWIG_AsInt(obj1); | |
14299 | if (PyErr_Occurred()) SWIG_fail; | |
14300 | { | |
14301 | arg3 = wxString_in_helper(obj2); | |
14302 | if (arg3 == NULL) SWIG_fail; | |
14303 | temp3 = True; | |
14304 | } | |
14305 | if (obj3) { | |
14306 | { | |
14307 | arg4 = &temp4; | |
14308 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14309 | } | |
14310 | } | |
14311 | if (obj4) { | |
14312 | { | |
14313 | arg5 = &temp5; | |
14314 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14315 | } | |
14316 | } | |
14317 | if (obj5) { | |
14318 | arg6 = (long) SWIG_AsLong(obj5); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
14321 | if (obj6) { | |
14322 | { | |
14323 | arg7 = wxString_in_helper(obj6); | |
14324 | if (arg7 == NULL) SWIG_fail; | |
14325 | temp7 = True; | |
14326 | } | |
14327 | } | |
14328 | { | |
0439c23b | 14329 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14331 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14332 | ||
14333 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14334 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14335 | } |
14336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14337 | { | |
14338 | if (temp3) | |
14339 | delete arg3; | |
14340 | } | |
14341 | { | |
14342 | if (temp7) | |
14343 | delete arg7; | |
14344 | } | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | { | |
14348 | if (temp3) | |
14349 | delete arg3; | |
14350 | } | |
14351 | { | |
14352 | if (temp7) | |
14353 | delete arg7; | |
14354 | } | |
14355 | return NULL; | |
14356 | } | |
14357 | ||
14358 | ||
14359 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14360 | PyObject *resultobj; | |
14361 | wxMDIParentFrame *result; | |
14362 | char *kwnames[] = { | |
14363 | NULL | |
14364 | }; | |
14365 | ||
14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14367 | { | |
0439c23b | 14368 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14370 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14373 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14374 | } |
14375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14376 | return resultobj; | |
14377 | fail: | |
14378 | return NULL; | |
14379 | } | |
14380 | ||
14381 | ||
14382 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14383 | PyObject *resultobj; | |
14384 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14385 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14386 | int arg3 ; | |
14387 | wxString *arg4 = 0 ; | |
14388 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14389 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14390 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14391 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14392 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14393 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14394 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14395 | bool result; | |
14396 | bool temp4 = False ; | |
14397 | wxPoint temp5 ; | |
14398 | wxSize temp6 ; | |
14399 | bool temp8 = False ; | |
14400 | PyObject * obj0 = 0 ; | |
14401 | PyObject * obj1 = 0 ; | |
14402 | PyObject * obj2 = 0 ; | |
14403 | PyObject * obj3 = 0 ; | |
14404 | PyObject * obj4 = 0 ; | |
14405 | PyObject * obj5 = 0 ; | |
14406 | PyObject * obj6 = 0 ; | |
14407 | PyObject * obj7 = 0 ; | |
14408 | char *kwnames[] = { | |
14409 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14410 | }; | |
14411 | ||
14412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14417 | arg3 = (int const) SWIG_AsInt(obj2); | |
14418 | if (PyErr_Occurred()) SWIG_fail; | |
14419 | { | |
14420 | arg4 = wxString_in_helper(obj3); | |
14421 | if (arg4 == NULL) SWIG_fail; | |
14422 | temp4 = True; | |
14423 | } | |
14424 | if (obj4) { | |
14425 | { | |
14426 | arg5 = &temp5; | |
14427 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14428 | } | |
14429 | } | |
14430 | if (obj5) { | |
14431 | { | |
14432 | arg6 = &temp6; | |
14433 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14434 | } | |
14435 | } | |
14436 | if (obj6) { | |
14437 | arg7 = (long) SWIG_AsLong(obj6); | |
14438 | if (PyErr_Occurred()) SWIG_fail; | |
14439 | } | |
14440 | if (obj7) { | |
14441 | { | |
14442 | arg8 = wxString_in_helper(obj7); | |
14443 | if (arg8 == NULL) SWIG_fail; | |
14444 | temp8 = True; | |
14445 | } | |
14446 | } | |
14447 | { | |
14448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14449 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14450 | ||
14451 | wxPyEndAllowThreads(__tstate); | |
14452 | if (PyErr_Occurred()) SWIG_fail; | |
14453 | } | |
14454 | { | |
14455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14456 | } | |
14457 | { | |
14458 | if (temp4) | |
14459 | delete arg4; | |
14460 | } | |
14461 | { | |
14462 | if (temp8) | |
14463 | delete arg8; | |
14464 | } | |
14465 | return resultobj; | |
14466 | fail: | |
14467 | { | |
14468 | if (temp4) | |
14469 | delete arg4; | |
14470 | } | |
14471 | { | |
14472 | if (temp8) | |
14473 | delete arg8; | |
14474 | } | |
14475 | return NULL; | |
14476 | } | |
14477 | ||
14478 | ||
14479 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14480 | PyObject *resultobj; | |
14481 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14482 | PyObject * obj0 = 0 ; | |
14483 | char *kwnames[] = { | |
14484 | (char *) "self", NULL | |
14485 | }; | |
14486 | ||
14487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14490 | { | |
14491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14492 | (arg1)->ActivateNext(); | |
14493 | ||
14494 | wxPyEndAllowThreads(__tstate); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | Py_INCREF(Py_None); resultobj = Py_None; | |
14498 | return resultobj; | |
14499 | fail: | |
14500 | return NULL; | |
14501 | } | |
14502 | ||
14503 | ||
14504 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14505 | PyObject *resultobj; | |
14506 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14507 | PyObject * obj0 = 0 ; | |
14508 | char *kwnames[] = { | |
14509 | (char *) "self", NULL | |
14510 | }; | |
14511 | ||
14512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14515 | { | |
14516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14517 | (arg1)->ActivatePrevious(); | |
14518 | ||
14519 | wxPyEndAllowThreads(__tstate); | |
14520 | if (PyErr_Occurred()) SWIG_fail; | |
14521 | } | |
14522 | Py_INCREF(Py_None); resultobj = Py_None; | |
14523 | return resultobj; | |
14524 | fail: | |
14525 | return NULL; | |
14526 | } | |
14527 | ||
14528 | ||
14529 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14530 | PyObject *resultobj; | |
14531 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14532 | PyObject * obj0 = 0 ; | |
14533 | char *kwnames[] = { | |
14534 | (char *) "self", NULL | |
14535 | }; | |
14536 | ||
14537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14540 | { | |
14541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14542 | (arg1)->ArrangeIcons(); | |
14543 | ||
14544 | wxPyEndAllowThreads(__tstate); | |
14545 | if (PyErr_Occurred()) SWIG_fail; | |
14546 | } | |
14547 | Py_INCREF(Py_None); resultobj = Py_None; | |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
14554 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14555 | PyObject *resultobj; | |
14556 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14557 | PyObject * obj0 = 0 ; | |
14558 | char *kwnames[] = { | |
14559 | (char *) "self", NULL | |
14560 | }; | |
14561 | ||
14562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14565 | { | |
14566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14567 | (arg1)->Cascade(); | |
14568 | ||
14569 | wxPyEndAllowThreads(__tstate); | |
14570 | if (PyErr_Occurred()) SWIG_fail; | |
14571 | } | |
14572 | Py_INCREF(Py_None); resultobj = Py_None; | |
14573 | return resultobj; | |
14574 | fail: | |
14575 | return NULL; | |
14576 | } | |
14577 | ||
14578 | ||
14579 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14580 | PyObject *resultobj; | |
14581 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14582 | wxMDIChildFrame *result; | |
14583 | PyObject * obj0 = 0 ; | |
14584 | char *kwnames[] = { | |
14585 | (char *) "self", NULL | |
14586 | }; | |
14587 | ||
14588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14591 | { | |
14592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14593 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14594 | ||
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | { | |
14599 | resultobj = wxPyMake_wxObject(result); | |
14600 | } | |
14601 | return resultobj; | |
14602 | fail: | |
14603 | return NULL; | |
14604 | } | |
14605 | ||
14606 | ||
14607 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14608 | PyObject *resultobj; | |
14609 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14610 | wxMDIClientWindow *result; | |
14611 | PyObject * obj0 = 0 ; | |
14612 | char *kwnames[] = { | |
14613 | (char *) "self", NULL | |
14614 | }; | |
14615 | ||
14616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14619 | { | |
14620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14621 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14622 | ||
14623 | wxPyEndAllowThreads(__tstate); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | { | |
14627 | resultobj = wxPyMake_wxObject(result); | |
14628 | } | |
14629 | return resultobj; | |
14630 | fail: | |
14631 | return NULL; | |
14632 | } | |
14633 | ||
14634 | ||
14635 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14636 | PyObject *resultobj; | |
14637 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14638 | wxWindow *result; | |
14639 | PyObject * obj0 = 0 ; | |
14640 | char *kwnames[] = { | |
14641 | (char *) "self", NULL | |
14642 | }; | |
14643 | ||
14644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14647 | { | |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14649 | result = (wxWindow *)(arg1)->GetToolBar(); | |
14650 | ||
14651 | wxPyEndAllowThreads(__tstate); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | } | |
14654 | { | |
14655 | resultobj = wxPyMake_wxObject(result); | |
14656 | } | |
14657 | return resultobj; | |
14658 | fail: | |
14659 | return NULL; | |
14660 | } | |
14661 | ||
14662 | ||
14663 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14664 | PyObject *resultobj; | |
14665 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14666 | PyObject * obj0 = 0 ; | |
14667 | char *kwnames[] = { | |
14668 | (char *) "self", NULL | |
14669 | }; | |
14670 | ||
14671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14674 | { | |
14675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14676 | (arg1)->Tile(); | |
14677 | ||
14678 | wxPyEndAllowThreads(__tstate); | |
14679 | if (PyErr_Occurred()) SWIG_fail; | |
14680 | } | |
14681 | Py_INCREF(Py_None); resultobj = Py_None; | |
14682 | return resultobj; | |
14683 | fail: | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
14688 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
14689 | PyObject *obj; | |
14690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14691 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14692 | Py_INCREF(obj); | |
14693 | return Py_BuildValue((char *)""); | |
14694 | } | |
14695 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14696 | PyObject *resultobj; | |
14697 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14698 | int arg2 ; | |
14699 | wxString *arg3 = 0 ; | |
14700 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14701 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14702 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14703 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14704 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
14705 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14706 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14707 | wxMDIChildFrame *result; | |
14708 | bool temp3 = False ; | |
14709 | wxPoint temp4 ; | |
14710 | wxSize temp5 ; | |
14711 | bool temp7 = False ; | |
14712 | PyObject * obj0 = 0 ; | |
14713 | PyObject * obj1 = 0 ; | |
14714 | PyObject * obj2 = 0 ; | |
14715 | PyObject * obj3 = 0 ; | |
14716 | PyObject * obj4 = 0 ; | |
14717 | PyObject * obj5 = 0 ; | |
14718 | PyObject * obj6 = 0 ; | |
14719 | char *kwnames[] = { | |
14720 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14721 | }; | |
14722 | ||
14723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14726 | arg2 = (int const) SWIG_AsInt(obj1); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | { | |
14729 | arg3 = wxString_in_helper(obj2); | |
14730 | if (arg3 == NULL) SWIG_fail; | |
14731 | temp3 = True; | |
14732 | } | |
14733 | if (obj3) { | |
14734 | { | |
14735 | arg4 = &temp4; | |
14736 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14737 | } | |
14738 | } | |
14739 | if (obj4) { | |
14740 | { | |
14741 | arg5 = &temp5; | |
14742 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14743 | } | |
14744 | } | |
14745 | if (obj5) { | |
14746 | arg6 = (long) SWIG_AsLong(obj5); | |
14747 | if (PyErr_Occurred()) SWIG_fail; | |
14748 | } | |
14749 | if (obj6) { | |
14750 | { | |
14751 | arg7 = wxString_in_helper(obj6); | |
14752 | if (arg7 == NULL) SWIG_fail; | |
14753 | temp7 = True; | |
14754 | } | |
14755 | } | |
14756 | { | |
0439c23b | 14757 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14759 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14762 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14763 | } |
14764 | { | |
14765 | resultobj = wxPyMake_wxObject(result); | |
14766 | } | |
14767 | { | |
14768 | if (temp3) | |
14769 | delete arg3; | |
14770 | } | |
14771 | { | |
14772 | if (temp7) | |
14773 | delete arg7; | |
14774 | } | |
14775 | return resultobj; | |
14776 | fail: | |
14777 | { | |
14778 | if (temp3) | |
14779 | delete arg3; | |
14780 | } | |
14781 | { | |
14782 | if (temp7) | |
14783 | delete arg7; | |
14784 | } | |
14785 | return NULL; | |
14786 | } | |
14787 | ||
14788 | ||
14789 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14790 | PyObject *resultobj; | |
14791 | wxMDIChildFrame *result; | |
14792 | char *kwnames[] = { | |
14793 | NULL | |
14794 | }; | |
14795 | ||
14796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
14797 | { | |
0439c23b | 14798 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14800 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
14801 | ||
14802 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14803 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14804 | } |
14805 | { | |
14806 | resultobj = wxPyMake_wxObject(result); | |
14807 | } | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
14814 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14815 | PyObject *resultobj; | |
14816 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14817 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14818 | int arg3 ; | |
14819 | wxString *arg4 = 0 ; | |
14820 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14821 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14822 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14823 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14824 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
14825 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14826 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14827 | bool result; | |
14828 | bool temp4 = False ; | |
14829 | wxPoint temp5 ; | |
14830 | wxSize temp6 ; | |
14831 | bool temp8 = False ; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | PyObject * obj1 = 0 ; | |
14834 | PyObject * obj2 = 0 ; | |
14835 | PyObject * obj3 = 0 ; | |
14836 | PyObject * obj4 = 0 ; | |
14837 | PyObject * obj5 = 0 ; | |
14838 | PyObject * obj6 = 0 ; | |
14839 | PyObject * obj7 = 0 ; | |
14840 | char *kwnames[] = { | |
14841 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14842 | }; | |
14843 | ||
14844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
14848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14849 | arg3 = (int const) SWIG_AsInt(obj2); | |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | { | |
14852 | arg4 = wxString_in_helper(obj3); | |
14853 | if (arg4 == NULL) SWIG_fail; | |
14854 | temp4 = True; | |
14855 | } | |
14856 | if (obj4) { | |
14857 | { | |
14858 | arg5 = &temp5; | |
14859 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14860 | } | |
14861 | } | |
14862 | if (obj5) { | |
14863 | { | |
14864 | arg6 = &temp6; | |
14865 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14866 | } | |
14867 | } | |
14868 | if (obj6) { | |
14869 | arg7 = (long) SWIG_AsLong(obj6); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | } | |
14872 | if (obj7) { | |
14873 | { | |
14874 | arg8 = wxString_in_helper(obj7); | |
14875 | if (arg8 == NULL) SWIG_fail; | |
14876 | temp8 = True; | |
14877 | } | |
14878 | } | |
14879 | { | |
14880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14881 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14882 | ||
14883 | wxPyEndAllowThreads(__tstate); | |
14884 | if (PyErr_Occurred()) SWIG_fail; | |
14885 | } | |
14886 | { | |
14887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14888 | } | |
14889 | { | |
14890 | if (temp4) | |
14891 | delete arg4; | |
14892 | } | |
14893 | { | |
14894 | if (temp8) | |
14895 | delete arg8; | |
14896 | } | |
14897 | return resultobj; | |
14898 | fail: | |
14899 | { | |
14900 | if (temp4) | |
14901 | delete arg4; | |
14902 | } | |
14903 | { | |
14904 | if (temp8) | |
14905 | delete arg8; | |
14906 | } | |
14907 | return NULL; | |
14908 | } | |
14909 | ||
14910 | ||
14911 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14912 | PyObject *resultobj; | |
14913 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14914 | PyObject * obj0 = 0 ; | |
14915 | char *kwnames[] = { | |
14916 | (char *) "self", NULL | |
14917 | }; | |
14918 | ||
14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
14920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14922 | { | |
14923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14924 | (arg1)->Activate(); | |
14925 | ||
14926 | wxPyEndAllowThreads(__tstate); | |
14927 | if (PyErr_Occurred()) SWIG_fail; | |
14928 | } | |
14929 | Py_INCREF(Py_None); resultobj = Py_None; | |
14930 | return resultobj; | |
14931 | fail: | |
14932 | return NULL; | |
14933 | } | |
14934 | ||
14935 | ||
14936 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14937 | PyObject *resultobj; | |
14938 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14939 | bool arg2 ; | |
14940 | PyObject * obj0 = 0 ; | |
14941 | PyObject * obj1 = 0 ; | |
14942 | char *kwnames[] = { | |
14943 | (char *) "self",(char *) "maximize", NULL | |
14944 | }; | |
14945 | ||
14946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
14947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14949 | arg2 = (bool) SWIG_AsBool(obj1); | |
14950 | if (PyErr_Occurred()) SWIG_fail; | |
14951 | { | |
14952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14953 | (arg1)->Maximize(arg2); | |
14954 | ||
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | Py_INCREF(Py_None); resultobj = Py_None; | |
14959 | return resultobj; | |
14960 | fail: | |
14961 | return NULL; | |
14962 | } | |
14963 | ||
14964 | ||
14965 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14966 | PyObject *resultobj; | |
14967 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14968 | PyObject * obj0 = 0 ; | |
14969 | char *kwnames[] = { | |
14970 | (char *) "self", NULL | |
14971 | }; | |
14972 | ||
14973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
14974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14976 | { | |
14977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14978 | (arg1)->Restore(); | |
14979 | ||
14980 | wxPyEndAllowThreads(__tstate); | |
14981 | if (PyErr_Occurred()) SWIG_fail; | |
14982 | } | |
14983 | Py_INCREF(Py_None); resultobj = Py_None; | |
14984 | return resultobj; | |
14985 | fail: | |
14986 | return NULL; | |
14987 | } | |
14988 | ||
14989 | ||
14990 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
14991 | PyObject *obj; | |
14992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14993 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
14994 | Py_INCREF(obj); | |
14995 | return Py_BuildValue((char *)""); | |
14996 | } | |
14997 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14998 | PyObject *resultobj; | |
14999 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15000 | long arg2 = (long) 0 ; | |
15001 | wxMDIClientWindow *result; | |
15002 | PyObject * obj0 = 0 ; | |
15003 | PyObject * obj1 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "parent",(char *) "style", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
15009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15011 | if (obj1) { | |
15012 | arg2 = (long) SWIG_AsLong(obj1); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
15015 | { | |
0439c23b | 15016 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15018 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
15019 | ||
15020 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15021 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15022 | } |
15023 | { | |
15024 | resultobj = wxPyMake_wxObject(result); | |
15025 | } | |
15026 | return resultobj; | |
15027 | fail: | |
15028 | return NULL; | |
15029 | } | |
15030 | ||
15031 | ||
15032 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15033 | PyObject *resultobj; | |
15034 | wxMDIClientWindow *result; | |
15035 | char *kwnames[] = { | |
15036 | NULL | |
15037 | }; | |
15038 | ||
15039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
15040 | { | |
0439c23b | 15041 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15043 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
15044 | ||
15045 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15046 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15047 | } |
15048 | { | |
15049 | resultobj = wxPyMake_wxObject(result); | |
15050 | } | |
15051 | return resultobj; | |
15052 | fail: | |
15053 | return NULL; | |
15054 | } | |
15055 | ||
15056 | ||
15057 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15058 | PyObject *resultobj; | |
15059 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
15060 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15061 | long arg3 = (long) 0 ; | |
15062 | bool result; | |
15063 | PyObject * obj0 = 0 ; | |
15064 | PyObject * obj1 = 0 ; | |
15065 | PyObject * obj2 = 0 ; | |
15066 | char *kwnames[] = { | |
15067 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15075 | if (obj2) { | |
15076 | arg3 = (long) SWIG_AsLong(obj2); | |
15077 | if (PyErr_Occurred()) SWIG_fail; | |
15078 | } | |
15079 | { | |
15080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15081 | result = (bool)(arg1)->Create(arg2,arg3); | |
15082 | ||
15083 | wxPyEndAllowThreads(__tstate); | |
15084 | if (PyErr_Occurred()) SWIG_fail; | |
15085 | } | |
15086 | { | |
15087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15088 | } | |
15089 | return resultobj; | |
15090 | fail: | |
15091 | return NULL; | |
15092 | } | |
15093 | ||
15094 | ||
15095 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15096 | PyObject *obj; | |
15097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15098 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15099 | Py_INCREF(obj); | |
15100 | return Py_BuildValue((char *)""); | |
15101 | } | |
15102 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15103 | PyObject *resultobj; | |
15104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15105 | int arg2 ; | |
15106 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15107 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15108 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15109 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15110 | long arg5 = (long) 0 ; | |
15111 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15112 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15113 | wxPyWindow *result; | |
15114 | wxPoint temp3 ; | |
15115 | wxSize temp4 ; | |
15116 | bool temp6 = False ; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | PyObject * obj1 = 0 ; | |
15119 | PyObject * obj2 = 0 ; | |
15120 | PyObject * obj3 = 0 ; | |
15121 | PyObject * obj4 = 0 ; | |
15122 | PyObject * obj5 = 0 ; | |
15123 | char *kwnames[] = { | |
15124 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15125 | }; | |
15126 | ||
15127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15130 | arg2 = (int const) SWIG_AsInt(obj1); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | if (obj2) { | |
15133 | { | |
15134 | arg3 = &temp3; | |
15135 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15136 | } | |
15137 | } | |
15138 | if (obj3) { | |
15139 | { | |
15140 | arg4 = &temp4; | |
15141 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15142 | } | |
15143 | } | |
15144 | if (obj4) { | |
15145 | arg5 = (long) SWIG_AsLong(obj4); | |
15146 | if (PyErr_Occurred()) SWIG_fail; | |
15147 | } | |
15148 | if (obj5) { | |
15149 | { | |
15150 | arg6 = wxString_in_helper(obj5); | |
15151 | if (arg6 == NULL) SWIG_fail; | |
15152 | temp6 = True; | |
15153 | } | |
15154 | } | |
15155 | { | |
0439c23b | 15156 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15158 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15159 | ||
15160 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15161 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15162 | } |
15163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15164 | { | |
15165 | if (temp6) | |
15166 | delete arg6; | |
15167 | } | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | { | |
15171 | if (temp6) | |
15172 | delete arg6; | |
15173 | } | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
15178 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15179 | PyObject *resultobj; | |
15180 | wxPyWindow *result; | |
15181 | char *kwnames[] = { | |
15182 | NULL | |
15183 | }; | |
15184 | ||
15185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15186 | { | |
0439c23b | 15187 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15189 | result = (wxPyWindow *)new wxPyWindow(); | |
15190 | ||
15191 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15193 | } |
15194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15195 | return resultobj; | |
15196 | fail: | |
15197 | return NULL; | |
15198 | } | |
15199 | ||
15200 | ||
15201 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15202 | PyObject *resultobj; | |
15203 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15204 | PyObject *arg2 = (PyObject *) 0 ; | |
15205 | PyObject *arg3 = (PyObject *) 0 ; | |
15206 | PyObject * obj0 = 0 ; | |
15207 | PyObject * obj1 = 0 ; | |
15208 | PyObject * obj2 = 0 ; | |
15209 | char *kwnames[] = { | |
15210 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15211 | }; | |
15212 | ||
15213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15216 | arg2 = obj1; | |
15217 | arg3 = obj2; | |
15218 | { | |
15219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15220 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15221 | ||
15222 | wxPyEndAllowThreads(__tstate); | |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
15224 | } | |
15225 | Py_INCREF(Py_None); resultobj = Py_None; | |
15226 | return resultobj; | |
15227 | fail: | |
15228 | return NULL; | |
15229 | } | |
15230 | ||
15231 | ||
a5ee0656 RD |
15232 | static PyObject *_wrap_PyWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
15233 | PyObject *resultobj; | |
15234 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15235 | wxSize *arg2 = 0 ; | |
15236 | wxSize temp2 ; | |
15237 | PyObject * obj0 = 0 ; | |
15238 | PyObject * obj1 = 0 ; | |
15239 | char *kwnames[] = { | |
15240 | (char *) "self",(char *) "size", NULL | |
15241 | }; | |
15242 | ||
15243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
15244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15246 | { | |
15247 | arg2 = &temp2; | |
15248 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15249 | } | |
15250 | { | |
15251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15252 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
15253 | ||
15254 | wxPyEndAllowThreads(__tstate); | |
15255 | if (PyErr_Occurred()) SWIG_fail; | |
15256 | } | |
15257 | Py_INCREF(Py_None); resultobj = Py_None; | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
d55e5bfc RD |
15264 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
15265 | PyObject *resultobj; | |
15266 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15267 | int arg2 ; | |
15268 | int arg3 ; | |
15269 | int arg4 ; | |
15270 | int arg5 ; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | PyObject * obj1 = 0 ; | |
15273 | PyObject * obj2 = 0 ; | |
15274 | PyObject * obj3 = 0 ; | |
15275 | PyObject * obj4 = 0 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15283 | arg2 = (int) SWIG_AsInt(obj1); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | arg3 = (int) SWIG_AsInt(obj2); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | arg4 = (int) SWIG_AsInt(obj3); | |
15288 | if (PyErr_Occurred()) SWIG_fail; | |
15289 | arg5 = (int) SWIG_AsInt(obj4); | |
15290 | if (PyErr_Occurred()) SWIG_fail; | |
15291 | { | |
15292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15293 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15294 | ||
15295 | wxPyEndAllowThreads(__tstate); | |
15296 | if (PyErr_Occurred()) SWIG_fail; | |
15297 | } | |
15298 | Py_INCREF(Py_None); resultobj = Py_None; | |
15299 | return resultobj; | |
15300 | fail: | |
15301 | return NULL; | |
15302 | } | |
15303 | ||
15304 | ||
15305 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15306 | PyObject *resultobj; | |
15307 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15308 | int arg2 ; | |
15309 | int arg3 ; | |
15310 | int arg4 ; | |
15311 | int arg5 ; | |
15312 | int arg6 = (int) wxSIZE_AUTO ; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | PyObject * obj1 = 0 ; | |
15315 | PyObject * obj2 = 0 ; | |
15316 | PyObject * obj3 = 0 ; | |
15317 | PyObject * obj4 = 0 ; | |
15318 | PyObject * obj5 = 0 ; | |
15319 | char *kwnames[] = { | |
15320 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15321 | }; | |
15322 | ||
15323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15326 | arg2 = (int) SWIG_AsInt(obj1); | |
15327 | if (PyErr_Occurred()) SWIG_fail; | |
15328 | arg3 = (int) SWIG_AsInt(obj2); | |
15329 | if (PyErr_Occurred()) SWIG_fail; | |
15330 | arg4 = (int) SWIG_AsInt(obj3); | |
15331 | if (PyErr_Occurred()) SWIG_fail; | |
15332 | arg5 = (int) SWIG_AsInt(obj4); | |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
15334 | if (obj5) { | |
15335 | arg6 = (int) SWIG_AsInt(obj5); | |
15336 | if (PyErr_Occurred()) SWIG_fail; | |
15337 | } | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | Py_INCREF(Py_None); resultobj = Py_None; | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15353 | PyObject *resultobj; | |
15354 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15355 | int arg2 ; | |
15356 | int arg3 ; | |
15357 | PyObject * obj0 = 0 ; | |
15358 | PyObject * obj1 = 0 ; | |
15359 | PyObject * obj2 = 0 ; | |
15360 | char *kwnames[] = { | |
15361 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15362 | }; | |
15363 | ||
15364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15367 | arg2 = (int) SWIG_AsInt(obj1); | |
15368 | if (PyErr_Occurred()) SWIG_fail; | |
15369 | arg3 = (int) SWIG_AsInt(obj2); | |
15370 | if (PyErr_Occurred()) SWIG_fail; | |
15371 | { | |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15374 | ||
15375 | wxPyEndAllowThreads(__tstate); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
15378 | Py_INCREF(Py_None); resultobj = Py_None; | |
15379 | return resultobj; | |
15380 | fail: | |
15381 | return NULL; | |
15382 | } | |
15383 | ||
15384 | ||
15385 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15386 | PyObject *resultobj; | |
15387 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15388 | int arg2 ; | |
15389 | int arg3 ; | |
15390 | PyObject * obj0 = 0 ; | |
15391 | PyObject * obj1 = 0 ; | |
15392 | PyObject * obj2 = 0 ; | |
15393 | char *kwnames[] = { | |
15394 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15395 | }; | |
15396 | ||
15397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15400 | arg2 = (int) SWIG_AsInt(obj1); | |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
15402 | arg3 = (int) SWIG_AsInt(obj2); | |
15403 | if (PyErr_Occurred()) SWIG_fail; | |
15404 | { | |
15405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15406 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15407 | ||
15408 | wxPyEndAllowThreads(__tstate); | |
15409 | if (PyErr_Occurred()) SWIG_fail; | |
15410 | } | |
15411 | Py_INCREF(Py_None); resultobj = Py_None; | |
15412 | return resultobj; | |
15413 | fail: | |
15414 | return NULL; | |
15415 | } | |
15416 | ||
15417 | ||
15418 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15419 | PyObject *resultobj; | |
15420 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15421 | int *arg2 = (int *) 0 ; | |
15422 | int *arg3 = (int *) 0 ; | |
15423 | int temp2 ; | |
15424 | int temp3 ; | |
15425 | PyObject * obj0 = 0 ; | |
15426 | char *kwnames[] = { | |
15427 | (char *) "self", NULL | |
15428 | }; | |
15429 | ||
15430 | arg2 = &temp2; | |
15431 | arg3 = &temp3; | |
15432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15435 | { | |
15436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15437 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15438 | ||
15439 | wxPyEndAllowThreads(__tstate); | |
15440 | if (PyErr_Occurred()) SWIG_fail; | |
15441 | } | |
15442 | Py_INCREF(Py_None); resultobj = Py_None; | |
15443 | { | |
15444 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15445 | resultobj = t_output_helper(resultobj,o); | |
15446 | } | |
15447 | { | |
15448 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15449 | resultobj = t_output_helper(resultobj,o); | |
15450 | } | |
15451 | return resultobj; | |
15452 | fail: | |
15453 | return NULL; | |
15454 | } | |
15455 | ||
15456 | ||
15457 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15458 | PyObject *resultobj; | |
15459 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15460 | int *arg2 = (int *) 0 ; | |
15461 | int *arg3 = (int *) 0 ; | |
15462 | int temp2 ; | |
15463 | int temp3 ; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self", NULL | |
15467 | }; | |
15468 | ||
15469 | arg2 = &temp2; | |
15470 | arg3 = &temp3; | |
15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15474 | { | |
15475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15476 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15477 | ||
15478 | wxPyEndAllowThreads(__tstate); | |
15479 | if (PyErr_Occurred()) SWIG_fail; | |
15480 | } | |
15481 | Py_INCREF(Py_None); resultobj = Py_None; | |
15482 | { | |
15483 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15484 | resultobj = t_output_helper(resultobj,o); | |
15485 | } | |
15486 | { | |
15487 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15488 | resultobj = t_output_helper(resultobj,o); | |
15489 | } | |
15490 | return resultobj; | |
15491 | fail: | |
15492 | return NULL; | |
15493 | } | |
15494 | ||
15495 | ||
15496 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15497 | PyObject *resultobj; | |
15498 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15499 | int *arg2 = (int *) 0 ; | |
15500 | int *arg3 = (int *) 0 ; | |
15501 | int temp2 ; | |
15502 | int temp3 ; | |
15503 | PyObject * obj0 = 0 ; | |
15504 | char *kwnames[] = { | |
15505 | (char *) "self", NULL | |
15506 | }; | |
15507 | ||
15508 | arg2 = &temp2; | |
15509 | arg3 = &temp3; | |
15510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15513 | { | |
15514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15515 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15516 | ||
15517 | wxPyEndAllowThreads(__tstate); | |
15518 | if (PyErr_Occurred()) SWIG_fail; | |
15519 | } | |
15520 | Py_INCREF(Py_None); resultobj = Py_None; | |
15521 | { | |
15522 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15523 | resultobj = t_output_helper(resultobj,o); | |
15524 | } | |
15525 | { | |
15526 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15527 | resultobj = t_output_helper(resultobj,o); | |
15528 | } | |
15529 | return resultobj; | |
15530 | fail: | |
15531 | return NULL; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15536 | PyObject *resultobj; | |
15537 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15538 | wxSize result; | |
15539 | PyObject * obj0 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15547 | { | |
15548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15549 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15550 | ||
15551 | wxPyEndAllowThreads(__tstate); | |
15552 | if (PyErr_Occurred()) SWIG_fail; | |
15553 | } | |
15554 | { | |
15555 | wxSize * resultptr; | |
15556 | resultptr = new wxSize((wxSize &) result); | |
15557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15558 | } | |
15559 | return resultobj; | |
15560 | fail: | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
15565 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15566 | PyObject *resultobj; | |
15567 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15568 | wxSize result; | |
15569 | PyObject * obj0 = 0 ; | |
15570 | char *kwnames[] = { | |
15571 | (char *) "self", NULL | |
15572 | }; | |
15573 | ||
15574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15577 | { | |
15578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15579 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15580 | ||
15581 | wxPyEndAllowThreads(__tstate); | |
15582 | if (PyErr_Occurred()) SWIG_fail; | |
15583 | } | |
15584 | { | |
15585 | wxSize * resultptr; | |
15586 | resultptr = new wxSize((wxSize &) result); | |
15587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15588 | } | |
15589 | return resultobj; | |
15590 | fail: | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
15595 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15596 | PyObject *resultobj; | |
15597 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15598 | PyObject * obj0 = 0 ; | |
15599 | char *kwnames[] = { | |
15600 | (char *) "self", NULL | |
15601 | }; | |
15602 | ||
15603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15606 | { | |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15608 | (arg1)->base_InitDialog(); | |
15609 | ||
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
15613 | Py_INCREF(Py_None); resultobj = Py_None; | |
15614 | return resultobj; | |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15621 | PyObject *resultobj; | |
15622 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15623 | bool result; | |
15624 | PyObject * obj0 = 0 ; | |
15625 | char *kwnames[] = { | |
15626 | (char *) "self", NULL | |
15627 | }; | |
15628 | ||
15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15632 | { | |
15633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15634 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15635 | ||
15636 | wxPyEndAllowThreads(__tstate); | |
15637 | if (PyErr_Occurred()) SWIG_fail; | |
15638 | } | |
15639 | { | |
15640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15641 | } | |
15642 | return resultobj; | |
15643 | fail: | |
15644 | return NULL; | |
15645 | } | |
15646 | ||
15647 | ||
15648 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15649 | PyObject *resultobj; | |
15650 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15651 | bool result; | |
15652 | PyObject * obj0 = 0 ; | |
15653 | char *kwnames[] = { | |
15654 | (char *) "self", NULL | |
15655 | }; | |
15656 | ||
15657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15660 | { | |
15661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15662 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15663 | ||
15664 | wxPyEndAllowThreads(__tstate); | |
15665 | if (PyErr_Occurred()) SWIG_fail; | |
15666 | } | |
15667 | { | |
15668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15669 | } | |
15670 | return resultobj; | |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj; | |
15678 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15679 | bool result; | |
15680 | PyObject * obj0 = 0 ; | |
15681 | char *kwnames[] = { | |
15682 | (char *) "self", NULL | |
15683 | }; | |
15684 | ||
15685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15688 | { | |
15689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15690 | result = (bool)(arg1)->base_Validate(); | |
15691 | ||
15692 | wxPyEndAllowThreads(__tstate); | |
15693 | if (PyErr_Occurred()) SWIG_fail; | |
15694 | } | |
15695 | { | |
15696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15697 | } | |
15698 | return resultobj; | |
15699 | fail: | |
15700 | return NULL; | |
15701 | } | |
15702 | ||
15703 | ||
15704 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15705 | PyObject *resultobj; | |
15706 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15707 | bool result; | |
15708 | PyObject * obj0 = 0 ; | |
15709 | char *kwnames[] = { | |
15710 | (char *) "self", NULL | |
15711 | }; | |
15712 | ||
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15716 | { | |
15717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15718 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15719 | ||
15720 | wxPyEndAllowThreads(__tstate); | |
15721 | if (PyErr_Occurred()) SWIG_fail; | |
15722 | } | |
15723 | { | |
15724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15725 | } | |
15726 | return resultobj; | |
15727 | fail: | |
15728 | return NULL; | |
15729 | } | |
15730 | ||
15731 | ||
15732 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15733 | PyObject *resultobj; | |
15734 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15735 | bool result; | |
15736 | PyObject * obj0 = 0 ; | |
15737 | char *kwnames[] = { | |
15738 | (char *) "self", NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15744 | { | |
15745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15746 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15747 | ||
15748 | wxPyEndAllowThreads(__tstate); | |
15749 | if (PyErr_Occurred()) SWIG_fail; | |
15750 | } | |
15751 | { | |
15752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15753 | } | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
15757 | } | |
15758 | ||
15759 | ||
15760 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15761 | PyObject *resultobj; | |
15762 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15763 | wxSize result; | |
15764 | PyObject * obj0 = 0 ; | |
15765 | char *kwnames[] = { | |
15766 | (char *) "self", NULL | |
15767 | }; | |
15768 | ||
15769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15772 | { | |
15773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15774 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
15775 | ||
15776 | wxPyEndAllowThreads(__tstate); | |
15777 | if (PyErr_Occurred()) SWIG_fail; | |
15778 | } | |
15779 | { | |
15780 | wxSize * resultptr; | |
15781 | resultptr = new wxSize((wxSize &) result); | |
15782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15783 | } | |
15784 | return resultobj; | |
15785 | fail: | |
15786 | return NULL; | |
15787 | } | |
15788 | ||
15789 | ||
15790 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15791 | PyObject *resultobj; | |
15792 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15793 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15794 | PyObject * obj0 = 0 ; | |
15795 | PyObject * obj1 = 0 ; | |
15796 | char *kwnames[] = { | |
15797 | (char *) "self",(char *) "child", NULL | |
15798 | }; | |
15799 | ||
15800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15805 | { | |
15806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15807 | (arg1)->base_AddChild(arg2); | |
15808 | ||
15809 | wxPyEndAllowThreads(__tstate); | |
15810 | if (PyErr_Occurred()) SWIG_fail; | |
15811 | } | |
15812 | Py_INCREF(Py_None); resultobj = Py_None; | |
15813 | return resultobj; | |
15814 | fail: | |
15815 | return NULL; | |
15816 | } | |
15817 | ||
15818 | ||
15819 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15820 | PyObject *resultobj; | |
15821 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15822 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15823 | PyObject * obj0 = 0 ; | |
15824 | PyObject * obj1 = 0 ; | |
15825 | char *kwnames[] = { | |
15826 | (char *) "self",(char *) "child", NULL | |
15827 | }; | |
15828 | ||
15829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15834 | { | |
15835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15836 | (arg1)->base_RemoveChild(arg2); | |
15837 | ||
15838 | wxPyEndAllowThreads(__tstate); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | } | |
15841 | Py_INCREF(Py_None); resultobj = Py_None; | |
15842 | return resultobj; | |
15843 | fail: | |
15844 | return NULL; | |
15845 | } | |
15846 | ||
15847 | ||
15848 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15849 | PyObject *resultobj; | |
15850 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15851 | bool result; | |
15852 | PyObject * obj0 = 0 ; | |
15853 | char *kwnames[] = { | |
15854 | (char *) "self", NULL | |
15855 | }; | |
15856 | ||
15857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
15858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15860 | { | |
15861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 15862 | result = (bool)((wxPyWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
15863 | |
15864 | wxPyEndAllowThreads(__tstate); | |
15865 | if (PyErr_Occurred()) SWIG_fail; | |
15866 | } | |
15867 | { | |
15868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15869 | } | |
15870 | return resultobj; | |
15871 | fail: | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15877 | PyObject *resultobj; | |
15878 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15879 | wxColour *arg2 = 0 ; | |
15880 | wxColour temp2 ; | |
15881 | PyObject * obj0 = 0 ; | |
15882 | PyObject * obj1 = 0 ; | |
15883 | char *kwnames[] = { | |
15884 | (char *) "self",(char *) "c", NULL | |
15885 | }; | |
15886 | ||
15887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
15888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15890 | { | |
15891 | arg2 = &temp2; | |
15892 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15893 | } | |
15894 | { | |
15895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15896 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
15897 | ||
15898 | wxPyEndAllowThreads(__tstate); | |
15899 | if (PyErr_Occurred()) SWIG_fail; | |
15900 | } | |
15901 | Py_INCREF(Py_None); resultobj = Py_None; | |
15902 | return resultobj; | |
15903 | fail: | |
15904 | return NULL; | |
15905 | } | |
15906 | ||
15907 | ||
a5ee0656 RD |
15908 | static PyObject *_wrap_PyWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15909 | PyObject *resultobj; | |
15910 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15911 | wxVisualAttributes result; | |
15912 | PyObject * obj0 = 0 ; | |
15913 | char *kwnames[] = { | |
15914 | (char *) "self", NULL | |
15915 | }; | |
15916 | ||
15917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
15918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15920 | { | |
15921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15922 | result = (arg1)->base_GetDefaultAttributes(); | |
15923 | ||
15924 | wxPyEndAllowThreads(__tstate); | |
15925 | if (PyErr_Occurred()) SWIG_fail; | |
15926 | } | |
15927 | { | |
15928 | wxVisualAttributes * resultptr; | |
15929 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15931 | } | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
d55e5bfc RD |
15938 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { |
15939 | PyObject *obj; | |
15940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15941 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
15942 | Py_INCREF(obj); | |
15943 | return Py_BuildValue((char *)""); | |
15944 | } | |
15945 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15948 | int arg2 ; | |
15949 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15950 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15951 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15952 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15953 | long arg5 = (long) 0 ; | |
15954 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15955 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15956 | wxPyPanel *result; | |
15957 | wxPoint temp3 ; | |
15958 | wxSize temp4 ; | |
15959 | bool temp6 = False ; | |
15960 | PyObject * obj0 = 0 ; | |
15961 | PyObject * obj1 = 0 ; | |
15962 | PyObject * obj2 = 0 ; | |
15963 | PyObject * obj3 = 0 ; | |
15964 | PyObject * obj4 = 0 ; | |
15965 | PyObject * obj5 = 0 ; | |
15966 | char *kwnames[] = { | |
15967 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15968 | }; | |
15969 | ||
15970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15973 | arg2 = (int const) SWIG_AsInt(obj1); | |
15974 | if (PyErr_Occurred()) SWIG_fail; | |
15975 | if (obj2) { | |
15976 | { | |
15977 | arg3 = &temp3; | |
15978 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15979 | } | |
15980 | } | |
15981 | if (obj3) { | |
15982 | { | |
15983 | arg4 = &temp4; | |
15984 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15985 | } | |
15986 | } | |
15987 | if (obj4) { | |
15988 | arg5 = (long) SWIG_AsLong(obj4); | |
15989 | if (PyErr_Occurred()) SWIG_fail; | |
15990 | } | |
15991 | if (obj5) { | |
15992 | { | |
15993 | arg6 = wxString_in_helper(obj5); | |
15994 | if (arg6 == NULL) SWIG_fail; | |
15995 | temp6 = True; | |
15996 | } | |
15997 | } | |
15998 | { | |
0439c23b | 15999 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16001 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16002 | ||
16003 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16004 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16005 | } |
16006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16007 | { | |
16008 | if (temp6) | |
16009 | delete arg6; | |
16010 | } | |
16011 | return resultobj; | |
16012 | fail: | |
16013 | { | |
16014 | if (temp6) | |
16015 | delete arg6; | |
16016 | } | |
16017 | return NULL; | |
16018 | } | |
16019 | ||
16020 | ||
16021 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16022 | PyObject *resultobj; | |
16023 | wxPyPanel *result; | |
16024 | char *kwnames[] = { | |
16025 | NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
16029 | { | |
0439c23b | 16030 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16032 | result = (wxPyPanel *)new wxPyPanel(); | |
16033 | ||
16034 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16035 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16036 | } |
16037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16038 | return resultobj; | |
16039 | fail: | |
16040 | return NULL; | |
16041 | } | |
16042 | ||
16043 | ||
16044 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16045 | PyObject *resultobj; | |
16046 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16047 | PyObject *arg2 = (PyObject *) 0 ; | |
16048 | PyObject *arg3 = (PyObject *) 0 ; | |
16049 | PyObject * obj0 = 0 ; | |
16050 | PyObject * obj1 = 0 ; | |
16051 | PyObject * obj2 = 0 ; | |
16052 | char *kwnames[] = { | |
16053 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16054 | }; | |
16055 | ||
16056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16059 | arg2 = obj1; | |
16060 | arg3 = obj2; | |
16061 | { | |
16062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16063 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16064 | ||
16065 | wxPyEndAllowThreads(__tstate); | |
16066 | if (PyErr_Occurred()) SWIG_fail; | |
16067 | } | |
16068 | Py_INCREF(Py_None); resultobj = Py_None; | |
16069 | return resultobj; | |
16070 | fail: | |
16071 | return NULL; | |
16072 | } | |
16073 | ||
16074 | ||
a5ee0656 RD |
16075 | static PyObject *_wrap_PyPanel_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16076 | PyObject *resultobj; | |
16077 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16078 | wxSize *arg2 = 0 ; | |
16079 | wxSize temp2 ; | |
16080 | PyObject * obj0 = 0 ; | |
16081 | PyObject * obj1 = 0 ; | |
16082 | char *kwnames[] = { | |
16083 | (char *) "self",(char *) "size", NULL | |
16084 | }; | |
16085 | ||
16086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16089 | { | |
16090 | arg2 = &temp2; | |
16091 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16092 | } | |
16093 | { | |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16096 | ||
16097 | wxPyEndAllowThreads(__tstate); | |
16098 | if (PyErr_Occurred()) SWIG_fail; | |
16099 | } | |
16100 | Py_INCREF(Py_None); resultobj = Py_None; | |
16101 | return resultobj; | |
16102 | fail: | |
16103 | return NULL; | |
16104 | } | |
16105 | ||
16106 | ||
d55e5bfc RD |
16107 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16108 | PyObject *resultobj; | |
16109 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16110 | int arg2 ; | |
16111 | int arg3 ; | |
16112 | int arg4 ; | |
16113 | int arg5 ; | |
16114 | PyObject * obj0 = 0 ; | |
16115 | PyObject * obj1 = 0 ; | |
16116 | PyObject * obj2 = 0 ; | |
16117 | PyObject * obj3 = 0 ; | |
16118 | PyObject * obj4 = 0 ; | |
16119 | char *kwnames[] = { | |
16120 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16121 | }; | |
16122 | ||
16123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16126 | arg2 = (int) SWIG_AsInt(obj1); | |
16127 | if (PyErr_Occurred()) SWIG_fail; | |
16128 | arg3 = (int) SWIG_AsInt(obj2); | |
16129 | if (PyErr_Occurred()) SWIG_fail; | |
16130 | arg4 = (int) SWIG_AsInt(obj3); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | arg5 = (int) SWIG_AsInt(obj4); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | { | |
16135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16136 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16137 | ||
16138 | wxPyEndAllowThreads(__tstate); | |
16139 | if (PyErr_Occurred()) SWIG_fail; | |
16140 | } | |
16141 | Py_INCREF(Py_None); resultobj = Py_None; | |
16142 | return resultobj; | |
16143 | fail: | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16151 | int arg2 ; | |
16152 | int arg3 ; | |
16153 | int arg4 ; | |
16154 | int arg5 ; | |
16155 | int arg6 = (int) wxSIZE_AUTO ; | |
16156 | PyObject * obj0 = 0 ; | |
16157 | PyObject * obj1 = 0 ; | |
16158 | PyObject * obj2 = 0 ; | |
16159 | PyObject * obj3 = 0 ; | |
16160 | PyObject * obj4 = 0 ; | |
16161 | PyObject * obj5 = 0 ; | |
16162 | char *kwnames[] = { | |
16163 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16164 | }; | |
16165 | ||
16166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16169 | arg2 = (int) SWIG_AsInt(obj1); | |
16170 | if (PyErr_Occurred()) SWIG_fail; | |
16171 | arg3 = (int) SWIG_AsInt(obj2); | |
16172 | if (PyErr_Occurred()) SWIG_fail; | |
16173 | arg4 = (int) SWIG_AsInt(obj3); | |
16174 | if (PyErr_Occurred()) SWIG_fail; | |
16175 | arg5 = (int) SWIG_AsInt(obj4); | |
16176 | if (PyErr_Occurred()) SWIG_fail; | |
16177 | if (obj5) { | |
16178 | arg6 = (int) SWIG_AsInt(obj5); | |
16179 | if (PyErr_Occurred()) SWIG_fail; | |
16180 | } | |
16181 | { | |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16183 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16184 | ||
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
16188 | Py_INCREF(Py_None); resultobj = Py_None; | |
16189 | return resultobj; | |
16190 | fail: | |
16191 | return NULL; | |
16192 | } | |
16193 | ||
16194 | ||
16195 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16196 | PyObject *resultobj; | |
16197 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16198 | int arg2 ; | |
16199 | int arg3 ; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | PyObject * obj1 = 0 ; | |
16202 | PyObject * obj2 = 0 ; | |
16203 | char *kwnames[] = { | |
16204 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16205 | }; | |
16206 | ||
16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16210 | arg2 = (int) SWIG_AsInt(obj1); | |
16211 | if (PyErr_Occurred()) SWIG_fail; | |
16212 | arg3 = (int) SWIG_AsInt(obj2); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | { | |
16215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16216 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16217 | ||
16218 | wxPyEndAllowThreads(__tstate); | |
16219 | if (PyErr_Occurred()) SWIG_fail; | |
16220 | } | |
16221 | Py_INCREF(Py_None); resultobj = Py_None; | |
16222 | return resultobj; | |
16223 | fail: | |
16224 | return NULL; | |
16225 | } | |
16226 | ||
16227 | ||
16228 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16229 | PyObject *resultobj; | |
16230 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16231 | int arg2 ; | |
16232 | int arg3 ; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | PyObject * obj1 = 0 ; | |
16235 | PyObject * obj2 = 0 ; | |
16236 | char *kwnames[] = { | |
16237 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16238 | }; | |
16239 | ||
16240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16243 | arg2 = (int) SWIG_AsInt(obj1); | |
16244 | if (PyErr_Occurred()) SWIG_fail; | |
16245 | arg3 = (int) SWIG_AsInt(obj2); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | { | |
16248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16249 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16250 | ||
16251 | wxPyEndAllowThreads(__tstate); | |
16252 | if (PyErr_Occurred()) SWIG_fail; | |
16253 | } | |
16254 | Py_INCREF(Py_None); resultobj = Py_None; | |
16255 | return resultobj; | |
16256 | fail: | |
16257 | return NULL; | |
16258 | } | |
16259 | ||
16260 | ||
16261 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16262 | PyObject *resultobj; | |
16263 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16264 | int *arg2 = (int *) 0 ; | |
16265 | int *arg3 = (int *) 0 ; | |
16266 | int temp2 ; | |
16267 | int temp3 ; | |
16268 | PyObject * obj0 = 0 ; | |
16269 | char *kwnames[] = { | |
16270 | (char *) "self", NULL | |
16271 | }; | |
16272 | ||
16273 | arg2 = &temp2; | |
16274 | arg3 = &temp3; | |
16275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16278 | { | |
16279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16280 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16281 | ||
16282 | wxPyEndAllowThreads(__tstate); | |
16283 | if (PyErr_Occurred()) SWIG_fail; | |
16284 | } | |
16285 | Py_INCREF(Py_None); resultobj = Py_None; | |
16286 | { | |
16287 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16288 | resultobj = t_output_helper(resultobj,o); | |
16289 | } | |
16290 | { | |
16291 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16292 | resultobj = t_output_helper(resultobj,o); | |
16293 | } | |
16294 | return resultobj; | |
16295 | fail: | |
16296 | return NULL; | |
16297 | } | |
16298 | ||
16299 | ||
16300 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16301 | PyObject *resultobj; | |
16302 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16303 | int *arg2 = (int *) 0 ; | |
16304 | int *arg3 = (int *) 0 ; | |
16305 | int temp2 ; | |
16306 | int temp3 ; | |
16307 | PyObject * obj0 = 0 ; | |
16308 | char *kwnames[] = { | |
16309 | (char *) "self", NULL | |
16310 | }; | |
16311 | ||
16312 | arg2 = &temp2; | |
16313 | arg3 = &temp3; | |
16314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16317 | { | |
16318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16319 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16320 | ||
16321 | wxPyEndAllowThreads(__tstate); | |
16322 | if (PyErr_Occurred()) SWIG_fail; | |
16323 | } | |
16324 | Py_INCREF(Py_None); resultobj = Py_None; | |
16325 | { | |
16326 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16327 | resultobj = t_output_helper(resultobj,o); | |
16328 | } | |
16329 | { | |
16330 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16331 | resultobj = t_output_helper(resultobj,o); | |
16332 | } | |
16333 | return resultobj; | |
16334 | fail: | |
16335 | return NULL; | |
16336 | } | |
16337 | ||
16338 | ||
16339 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16340 | PyObject *resultobj; | |
16341 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16342 | int *arg2 = (int *) 0 ; | |
16343 | int *arg3 = (int *) 0 ; | |
16344 | int temp2 ; | |
16345 | int temp3 ; | |
16346 | PyObject * obj0 = 0 ; | |
16347 | char *kwnames[] = { | |
16348 | (char *) "self", NULL | |
16349 | }; | |
16350 | ||
16351 | arg2 = &temp2; | |
16352 | arg3 = &temp3; | |
16353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16356 | { | |
16357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16358 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16359 | ||
16360 | wxPyEndAllowThreads(__tstate); | |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | Py_INCREF(Py_None); resultobj = Py_None; | |
16364 | { | |
16365 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16366 | resultobj = t_output_helper(resultobj,o); | |
16367 | } | |
16368 | { | |
16369 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16370 | resultobj = t_output_helper(resultobj,o); | |
16371 | } | |
16372 | return resultobj; | |
16373 | fail: | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16379 | PyObject *resultobj; | |
16380 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16381 | wxSize result; | |
16382 | PyObject * obj0 = 0 ; | |
16383 | char *kwnames[] = { | |
16384 | (char *) "self", NULL | |
16385 | }; | |
16386 | ||
16387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16390 | { | |
16391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16392 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16393 | ||
16394 | wxPyEndAllowThreads(__tstate); | |
16395 | if (PyErr_Occurred()) SWIG_fail; | |
16396 | } | |
16397 | { | |
16398 | wxSize * resultptr; | |
16399 | resultptr = new wxSize((wxSize &) result); | |
16400 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16401 | } | |
16402 | return resultobj; | |
16403 | fail: | |
16404 | return NULL; | |
16405 | } | |
16406 | ||
16407 | ||
16408 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16409 | PyObject *resultobj; | |
16410 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16411 | wxSize result; | |
16412 | PyObject * obj0 = 0 ; | |
16413 | char *kwnames[] = { | |
16414 | (char *) "self", NULL | |
16415 | }; | |
16416 | ||
16417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16420 | { | |
16421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16422 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16423 | ||
16424 | wxPyEndAllowThreads(__tstate); | |
16425 | if (PyErr_Occurred()) SWIG_fail; | |
16426 | } | |
16427 | { | |
16428 | wxSize * resultptr; | |
16429 | resultptr = new wxSize((wxSize &) result); | |
16430 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16431 | } | |
16432 | return resultobj; | |
16433 | fail: | |
16434 | return NULL; | |
16435 | } | |
16436 | ||
16437 | ||
16438 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16439 | PyObject *resultobj; | |
16440 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16441 | PyObject * obj0 = 0 ; | |
16442 | char *kwnames[] = { | |
16443 | (char *) "self", NULL | |
16444 | }; | |
16445 | ||
16446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16449 | { | |
16450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16451 | (arg1)->base_InitDialog(); | |
16452 | ||
16453 | wxPyEndAllowThreads(__tstate); | |
16454 | if (PyErr_Occurred()) SWIG_fail; | |
16455 | } | |
16456 | Py_INCREF(Py_None); resultobj = Py_None; | |
16457 | return resultobj; | |
16458 | fail: | |
16459 | return NULL; | |
16460 | } | |
16461 | ||
16462 | ||
16463 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16464 | PyObject *resultobj; | |
16465 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16466 | bool result; | |
16467 | PyObject * obj0 = 0 ; | |
16468 | char *kwnames[] = { | |
16469 | (char *) "self", NULL | |
16470 | }; | |
16471 | ||
16472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16475 | { | |
16476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16477 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16478 | ||
16479 | wxPyEndAllowThreads(__tstate); | |
16480 | if (PyErr_Occurred()) SWIG_fail; | |
16481 | } | |
16482 | { | |
16483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16484 | } | |
16485 | return resultobj; | |
16486 | fail: | |
16487 | return NULL; | |
16488 | } | |
16489 | ||
16490 | ||
16491 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16492 | PyObject *resultobj; | |
16493 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16494 | bool result; | |
16495 | PyObject * obj0 = 0 ; | |
16496 | char *kwnames[] = { | |
16497 | (char *) "self", NULL | |
16498 | }; | |
16499 | ||
16500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16503 | { | |
16504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16505 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16506 | ||
16507 | wxPyEndAllowThreads(__tstate); | |
16508 | if (PyErr_Occurred()) SWIG_fail; | |
16509 | } | |
16510 | { | |
16511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16512 | } | |
16513 | return resultobj; | |
16514 | fail: | |
16515 | return NULL; | |
16516 | } | |
16517 | ||
16518 | ||
16519 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16520 | PyObject *resultobj; | |
16521 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16522 | bool result; | |
16523 | PyObject * obj0 = 0 ; | |
16524 | char *kwnames[] = { | |
16525 | (char *) "self", NULL | |
16526 | }; | |
16527 | ||
16528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16531 | { | |
16532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16533 | result = (bool)(arg1)->base_Validate(); | |
16534 | ||
16535 | wxPyEndAllowThreads(__tstate); | |
16536 | if (PyErr_Occurred()) SWIG_fail; | |
16537 | } | |
16538 | { | |
16539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16540 | } | |
16541 | return resultobj; | |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
16547 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16548 | PyObject *resultobj; | |
16549 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16550 | bool result; | |
16551 | PyObject * obj0 = 0 ; | |
16552 | char *kwnames[] = { | |
16553 | (char *) "self", NULL | |
16554 | }; | |
16555 | ||
16556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16559 | { | |
16560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16561 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
16562 | ||
16563 | wxPyEndAllowThreads(__tstate); | |
16564 | if (PyErr_Occurred()) SWIG_fail; | |
16565 | } | |
16566 | { | |
16567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16568 | } | |
16569 | return resultobj; | |
16570 | fail: | |
16571 | return NULL; | |
16572 | } | |
16573 | ||
16574 | ||
16575 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16576 | PyObject *resultobj; | |
16577 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16578 | bool result; | |
16579 | PyObject * obj0 = 0 ; | |
16580 | char *kwnames[] = { | |
16581 | (char *) "self", NULL | |
16582 | }; | |
16583 | ||
16584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16587 | { | |
16588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16589 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16590 | ||
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | { | |
16595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16596 | } | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
16603 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16604 | PyObject *resultobj; | |
16605 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16606 | wxSize result; | |
16607 | PyObject * obj0 = 0 ; | |
16608 | char *kwnames[] = { | |
16609 | (char *) "self", NULL | |
16610 | }; | |
16611 | ||
16612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16615 | { | |
16616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16617 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
16618 | ||
16619 | wxPyEndAllowThreads(__tstate); | |
16620 | if (PyErr_Occurred()) SWIG_fail; | |
16621 | } | |
16622 | { | |
16623 | wxSize * resultptr; | |
16624 | resultptr = new wxSize((wxSize &) result); | |
16625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16626 | } | |
16627 | return resultobj; | |
16628 | fail: | |
16629 | return NULL; | |
16630 | } | |
16631 | ||
16632 | ||
16633 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16634 | PyObject *resultobj; | |
16635 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16637 | PyObject * obj0 = 0 ; | |
16638 | PyObject * obj1 = 0 ; | |
16639 | char *kwnames[] = { | |
16640 | (char *) "self",(char *) "child", NULL | |
16641 | }; | |
16642 | ||
16643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16648 | { | |
16649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16650 | (arg1)->base_AddChild(arg2); | |
16651 | ||
16652 | wxPyEndAllowThreads(__tstate); | |
16653 | if (PyErr_Occurred()) SWIG_fail; | |
16654 | } | |
16655 | Py_INCREF(Py_None); resultobj = Py_None; | |
16656 | return resultobj; | |
16657 | fail: | |
16658 | return NULL; | |
16659 | } | |
16660 | ||
16661 | ||
16662 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16663 | PyObject *resultobj; | |
16664 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16666 | PyObject * obj0 = 0 ; | |
16667 | PyObject * obj1 = 0 ; | |
16668 | char *kwnames[] = { | |
16669 | (char *) "self",(char *) "child", NULL | |
16670 | }; | |
16671 | ||
16672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16675 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16677 | { | |
16678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16679 | (arg1)->base_RemoveChild(arg2); | |
16680 | ||
16681 | wxPyEndAllowThreads(__tstate); | |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
16683 | } | |
16684 | Py_INCREF(Py_None); resultobj = Py_None; | |
16685 | return resultobj; | |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
16691 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16692 | PyObject *resultobj; | |
16693 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16694 | bool result; | |
16695 | PyObject * obj0 = 0 ; | |
16696 | char *kwnames[] = { | |
16697 | (char *) "self", NULL | |
16698 | }; | |
16699 | ||
16700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16703 | { | |
16704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 16705 | result = (bool)((wxPyPanel const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
16706 | |
16707 | wxPyEndAllowThreads(__tstate); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | { | |
16711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16712 | } | |
16713 | return resultobj; | |
16714 | fail: | |
16715 | return NULL; | |
16716 | } | |
16717 | ||
16718 | ||
16719 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16720 | PyObject *resultobj; | |
16721 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16722 | wxColour *arg2 = 0 ; | |
16723 | wxColour temp2 ; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | PyObject * obj1 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "self",(char *) "c", NULL | |
16728 | }; | |
16729 | ||
16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16733 | { | |
16734 | arg2 = &temp2; | |
16735 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16736 | } | |
16737 | { | |
16738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16739 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16740 | ||
16741 | wxPyEndAllowThreads(__tstate); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | } | |
16744 | Py_INCREF(Py_None); resultobj = Py_None; | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
a5ee0656 RD |
16751 | static PyObject *_wrap_PyPanel_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
16752 | PyObject *resultobj; | |
16753 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16754 | wxVisualAttributes result; | |
16755 | PyObject * obj0 = 0 ; | |
16756 | char *kwnames[] = { | |
16757 | (char *) "self", NULL | |
16758 | }; | |
16759 | ||
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
16761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16763 | { | |
16764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16765 | result = (arg1)->base_GetDefaultAttributes(); | |
16766 | ||
16767 | wxPyEndAllowThreads(__tstate); | |
16768 | if (PyErr_Occurred()) SWIG_fail; | |
16769 | } | |
16770 | { | |
16771 | wxVisualAttributes * resultptr; | |
16772 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
16773 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16774 | } | |
16775 | return resultobj; | |
16776 | fail: | |
16777 | return NULL; | |
16778 | } | |
16779 | ||
16780 | ||
d55e5bfc RD |
16781 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { |
16782 | PyObject *obj; | |
16783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16784 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16785 | Py_INCREF(obj); | |
16786 | return Py_BuildValue((char *)""); | |
16787 | } | |
16788 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16789 | PyObject *resultobj; | |
16790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16791 | int arg2 ; | |
16792 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16793 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16794 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16795 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16796 | long arg5 = (long) 0 ; | |
16797 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16798 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16799 | wxPyScrolledWindow *result; | |
16800 | wxPoint temp3 ; | |
16801 | wxSize temp4 ; | |
16802 | bool temp6 = False ; | |
16803 | PyObject * obj0 = 0 ; | |
16804 | PyObject * obj1 = 0 ; | |
16805 | PyObject * obj2 = 0 ; | |
16806 | PyObject * obj3 = 0 ; | |
16807 | PyObject * obj4 = 0 ; | |
16808 | PyObject * obj5 = 0 ; | |
16809 | char *kwnames[] = { | |
16810 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16811 | }; | |
16812 | ||
16813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16816 | arg2 = (int const) SWIG_AsInt(obj1); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | if (obj2) { | |
16819 | { | |
16820 | arg3 = &temp3; | |
16821 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16822 | } | |
16823 | } | |
16824 | if (obj3) { | |
16825 | { | |
16826 | arg4 = &temp4; | |
16827 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16828 | } | |
16829 | } | |
16830 | if (obj4) { | |
16831 | arg5 = (long) SWIG_AsLong(obj4); | |
16832 | if (PyErr_Occurred()) SWIG_fail; | |
16833 | } | |
16834 | if (obj5) { | |
16835 | { | |
16836 | arg6 = wxString_in_helper(obj5); | |
16837 | if (arg6 == NULL) SWIG_fail; | |
16838 | temp6 = True; | |
16839 | } | |
16840 | } | |
16841 | { | |
0439c23b | 16842 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16844 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16845 | ||
16846 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16847 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16848 | } |
16849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
16850 | { | |
16851 | if (temp6) | |
16852 | delete arg6; | |
16853 | } | |
16854 | return resultobj; | |
16855 | fail: | |
16856 | { | |
16857 | if (temp6) | |
16858 | delete arg6; | |
16859 | } | |
16860 | return NULL; | |
16861 | } | |
16862 | ||
16863 | ||
16864 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16865 | PyObject *resultobj; | |
16866 | wxPyScrolledWindow *result; | |
16867 | char *kwnames[] = { | |
16868 | NULL | |
16869 | }; | |
16870 | ||
16871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
16872 | { | |
0439c23b | 16873 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16875 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16878 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16879 | } |
16880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
16881 | return resultobj; | |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
16887 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16888 | PyObject *resultobj; | |
16889 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16890 | PyObject *arg2 = (PyObject *) 0 ; | |
16891 | PyObject *arg3 = (PyObject *) 0 ; | |
16892 | PyObject * obj0 = 0 ; | |
16893 | PyObject * obj1 = 0 ; | |
16894 | PyObject * obj2 = 0 ; | |
16895 | char *kwnames[] = { | |
16896 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16897 | }; | |
16898 | ||
16899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16902 | arg2 = obj1; | |
16903 | arg3 = obj2; | |
16904 | { | |
16905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16906 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16907 | ||
16908 | wxPyEndAllowThreads(__tstate); | |
16909 | if (PyErr_Occurred()) SWIG_fail; | |
16910 | } | |
16911 | Py_INCREF(Py_None); resultobj = Py_None; | |
16912 | return resultobj; | |
16913 | fail: | |
16914 | return NULL; | |
16915 | } | |
16916 | ||
16917 | ||
a5ee0656 RD |
16918 | static PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16919 | PyObject *resultobj; | |
16920 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16921 | wxSize *arg2 = 0 ; | |
16922 | wxSize temp2 ; | |
16923 | PyObject * obj0 = 0 ; | |
16924 | PyObject * obj1 = 0 ; | |
16925 | char *kwnames[] = { | |
16926 | (char *) "self",(char *) "size", NULL | |
16927 | }; | |
16928 | ||
16929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16932 | { | |
16933 | arg2 = &temp2; | |
16934 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16935 | } | |
16936 | { | |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16939 | ||
16940 | wxPyEndAllowThreads(__tstate); | |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
16942 | } | |
16943 | Py_INCREF(Py_None); resultobj = Py_None; | |
16944 | return resultobj; | |
16945 | fail: | |
16946 | return NULL; | |
16947 | } | |
16948 | ||
16949 | ||
d55e5bfc RD |
16950 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16951 | PyObject *resultobj; | |
16952 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16953 | int arg2 ; | |
16954 | int arg3 ; | |
16955 | int arg4 ; | |
16956 | int arg5 ; | |
16957 | PyObject * obj0 = 0 ; | |
16958 | PyObject * obj1 = 0 ; | |
16959 | PyObject * obj2 = 0 ; | |
16960 | PyObject * obj3 = 0 ; | |
16961 | PyObject * obj4 = 0 ; | |
16962 | char *kwnames[] = { | |
16963 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16964 | }; | |
16965 | ||
16966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16969 | arg2 = (int) SWIG_AsInt(obj1); | |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
16971 | arg3 = (int) SWIG_AsInt(obj2); | |
16972 | if (PyErr_Occurred()) SWIG_fail; | |
16973 | arg4 = (int) SWIG_AsInt(obj3); | |
16974 | if (PyErr_Occurred()) SWIG_fail; | |
16975 | arg5 = (int) SWIG_AsInt(obj4); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | { | |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | Py_INCREF(Py_None); resultobj = Py_None; | |
16985 | return resultobj; | |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
16991 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16992 | PyObject *resultobj; | |
16993 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16994 | int arg2 ; | |
16995 | int arg3 ; | |
16996 | int arg4 ; | |
16997 | int arg5 ; | |
16998 | int arg6 = (int) wxSIZE_AUTO ; | |
16999 | PyObject * obj0 = 0 ; | |
17000 | PyObject * obj1 = 0 ; | |
17001 | PyObject * obj2 = 0 ; | |
17002 | PyObject * obj3 = 0 ; | |
17003 | PyObject * obj4 = 0 ; | |
17004 | PyObject * obj5 = 0 ; | |
17005 | char *kwnames[] = { | |
17006 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
17007 | }; | |
17008 | ||
17009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17012 | arg2 = (int) SWIG_AsInt(obj1); | |
17013 | if (PyErr_Occurred()) SWIG_fail; | |
17014 | arg3 = (int) SWIG_AsInt(obj2); | |
17015 | if (PyErr_Occurred()) SWIG_fail; | |
17016 | arg4 = (int) SWIG_AsInt(obj3); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | arg5 = (int) SWIG_AsInt(obj4); | |
17019 | if (PyErr_Occurred()) SWIG_fail; | |
17020 | if (obj5) { | |
17021 | arg6 = (int) SWIG_AsInt(obj5); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | Py_INCREF(Py_None); resultobj = Py_None; | |
17032 | return resultobj; | |
17033 | fail: | |
17034 | return NULL; | |
17035 | } | |
17036 | ||
17037 | ||
17038 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17039 | PyObject *resultobj; | |
17040 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17041 | int arg2 ; | |
17042 | int arg3 ; | |
17043 | PyObject * obj0 = 0 ; | |
17044 | PyObject * obj1 = 0 ; | |
17045 | PyObject * obj2 = 0 ; | |
17046 | char *kwnames[] = { | |
17047 | (char *) "self",(char *) "width",(char *) "height", NULL | |
17048 | }; | |
17049 | ||
17050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17053 | arg2 = (int) SWIG_AsInt(obj1); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
17055 | arg3 = (int) SWIG_AsInt(obj2); | |
17056 | if (PyErr_Occurred()) SWIG_fail; | |
17057 | { | |
17058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17059 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
17060 | ||
17061 | wxPyEndAllowThreads(__tstate); | |
17062 | if (PyErr_Occurred()) SWIG_fail; | |
17063 | } | |
17064 | Py_INCREF(Py_None); resultobj = Py_None; | |
17065 | return resultobj; | |
17066 | fail: | |
17067 | return NULL; | |
17068 | } | |
17069 | ||
17070 | ||
17071 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17072 | PyObject *resultobj; | |
17073 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17074 | int arg2 ; | |
17075 | int arg3 ; | |
17076 | PyObject * obj0 = 0 ; | |
17077 | PyObject * obj1 = 0 ; | |
17078 | PyObject * obj2 = 0 ; | |
17079 | char *kwnames[] = { | |
17080 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17081 | }; | |
17082 | ||
17083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17086 | arg2 = (int) SWIG_AsInt(obj1); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | arg3 = (int) SWIG_AsInt(obj2); | |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
17090 | { | |
17091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17092 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
17093 | ||
17094 | wxPyEndAllowThreads(__tstate); | |
17095 | if (PyErr_Occurred()) SWIG_fail; | |
17096 | } | |
17097 | Py_INCREF(Py_None); resultobj = Py_None; | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
17104 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17105 | PyObject *resultobj; | |
17106 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17107 | int *arg2 = (int *) 0 ; | |
17108 | int *arg3 = (int *) 0 ; | |
17109 | int temp2 ; | |
17110 | int temp3 ; | |
17111 | PyObject * obj0 = 0 ; | |
17112 | char *kwnames[] = { | |
17113 | (char *) "self", NULL | |
17114 | }; | |
17115 | ||
17116 | arg2 = &temp2; | |
17117 | arg3 = &temp3; | |
17118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
17119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17121 | { | |
17122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17123 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
17124 | ||
17125 | wxPyEndAllowThreads(__tstate); | |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
17127 | } | |
17128 | Py_INCREF(Py_None); resultobj = Py_None; | |
17129 | { | |
17130 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17131 | resultobj = t_output_helper(resultobj,o); | |
17132 | } | |
17133 | { | |
17134 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17135 | resultobj = t_output_helper(resultobj,o); | |
17136 | } | |
17137 | return resultobj; | |
17138 | fail: | |
17139 | return NULL; | |
17140 | } | |
17141 | ||
17142 | ||
17143 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17144 | PyObject *resultobj; | |
17145 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17146 | int *arg2 = (int *) 0 ; | |
17147 | int *arg3 = (int *) 0 ; | |
17148 | int temp2 ; | |
17149 | int temp3 ; | |
17150 | PyObject * obj0 = 0 ; | |
17151 | char *kwnames[] = { | |
17152 | (char *) "self", NULL | |
17153 | }; | |
17154 | ||
17155 | arg2 = &temp2; | |
17156 | arg3 = &temp3; | |
17157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
17158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17160 | { | |
17161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17162 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
17163 | ||
17164 | wxPyEndAllowThreads(__tstate); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | } | |
17167 | Py_INCREF(Py_None); resultobj = Py_None; | |
17168 | { | |
17169 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17170 | resultobj = t_output_helper(resultobj,o); | |
17171 | } | |
17172 | { | |
17173 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17174 | resultobj = t_output_helper(resultobj,o); | |
17175 | } | |
17176 | return resultobj; | |
17177 | fail: | |
17178 | return NULL; | |
17179 | } | |
17180 | ||
17181 | ||
17182 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17183 | PyObject *resultobj; | |
17184 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17185 | int *arg2 = (int *) 0 ; | |
17186 | int *arg3 = (int *) 0 ; | |
17187 | int temp2 ; | |
17188 | int temp3 ; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "self", NULL | |
17192 | }; | |
17193 | ||
17194 | arg2 = &temp2; | |
17195 | arg3 = &temp3; | |
17196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
17197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17199 | { | |
17200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17201 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
17202 | ||
17203 | wxPyEndAllowThreads(__tstate); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | } | |
17206 | Py_INCREF(Py_None); resultobj = Py_None; | |
17207 | { | |
17208 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17209 | resultobj = t_output_helper(resultobj,o); | |
17210 | } | |
17211 | { | |
17212 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17213 | resultobj = t_output_helper(resultobj,o); | |
17214 | } | |
17215 | return resultobj; | |
17216 | fail: | |
17217 | return NULL; | |
17218 | } | |
17219 | ||
17220 | ||
17221 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17222 | PyObject *resultobj; | |
17223 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17224 | wxSize result; | |
17225 | PyObject * obj0 = 0 ; | |
17226 | char *kwnames[] = { | |
17227 | (char *) "self", NULL | |
17228 | }; | |
17229 | ||
17230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
17231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17233 | { | |
17234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17235 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17236 | ||
17237 | wxPyEndAllowThreads(__tstate); | |
17238 | if (PyErr_Occurred()) SWIG_fail; | |
17239 | } | |
17240 | { | |
17241 | wxSize * resultptr; | |
17242 | resultptr = new wxSize((wxSize &) result); | |
17243 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17244 | } | |
17245 | return resultobj; | |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
17251 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17252 | PyObject *resultobj; | |
17253 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17254 | wxSize result; | |
17255 | PyObject * obj0 = 0 ; | |
17256 | char *kwnames[] = { | |
17257 | (char *) "self", NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17263 | { | |
17264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17265 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17266 | ||
17267 | wxPyEndAllowThreads(__tstate); | |
17268 | if (PyErr_Occurred()) SWIG_fail; | |
17269 | } | |
17270 | { | |
17271 | wxSize * resultptr; | |
17272 | resultptr = new wxSize((wxSize &) result); | |
17273 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17274 | } | |
17275 | return resultobj; | |
17276 | fail: | |
17277 | return NULL; | |
17278 | } | |
17279 | ||
17280 | ||
17281 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17282 | PyObject *resultobj; | |
17283 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | (arg1)->base_InitDialog(); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | Py_INCREF(Py_None); resultobj = Py_None; | |
17300 | return resultobj; | |
17301 | fail: | |
17302 | return NULL; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17307 | PyObject *resultobj; | |
17308 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17309 | bool result; | |
17310 | PyObject * obj0 = 0 ; | |
17311 | char *kwnames[] = { | |
17312 | (char *) "self", NULL | |
17313 | }; | |
17314 | ||
17315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17318 | { | |
17319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17320 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17321 | ||
17322 | wxPyEndAllowThreads(__tstate); | |
17323 | if (PyErr_Occurred()) SWIG_fail; | |
17324 | } | |
17325 | { | |
17326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17327 | } | |
17328 | return resultobj; | |
17329 | fail: | |
17330 | return NULL; | |
17331 | } | |
17332 | ||
17333 | ||
17334 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17335 | PyObject *resultobj; | |
17336 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17337 | bool result; | |
17338 | PyObject * obj0 = 0 ; | |
17339 | char *kwnames[] = { | |
17340 | (char *) "self", NULL | |
17341 | }; | |
17342 | ||
17343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17346 | { | |
17347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17348 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17349 | ||
17350 | wxPyEndAllowThreads(__tstate); | |
17351 | if (PyErr_Occurred()) SWIG_fail; | |
17352 | } | |
17353 | { | |
17354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17355 | } | |
17356 | return resultobj; | |
17357 | fail: | |
17358 | return NULL; | |
17359 | } | |
17360 | ||
17361 | ||
17362 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17363 | PyObject *resultobj; | |
17364 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17365 | bool result; | |
17366 | PyObject * obj0 = 0 ; | |
17367 | char *kwnames[] = { | |
17368 | (char *) "self", NULL | |
17369 | }; | |
17370 | ||
17371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17374 | { | |
17375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17376 | result = (bool)(arg1)->base_Validate(); | |
17377 | ||
17378 | wxPyEndAllowThreads(__tstate); | |
17379 | if (PyErr_Occurred()) SWIG_fail; | |
17380 | } | |
17381 | { | |
17382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17383 | } | |
17384 | return resultobj; | |
17385 | fail: | |
17386 | return NULL; | |
17387 | } | |
17388 | ||
17389 | ||
17390 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17391 | PyObject *resultobj; | |
17392 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17393 | bool result; | |
17394 | PyObject * obj0 = 0 ; | |
17395 | char *kwnames[] = { | |
17396 | (char *) "self", NULL | |
17397 | }; | |
17398 | ||
17399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17402 | { | |
17403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17404 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17405 | ||
17406 | wxPyEndAllowThreads(__tstate); | |
17407 | if (PyErr_Occurred()) SWIG_fail; | |
17408 | } | |
17409 | { | |
17410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17411 | } | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj; | |
17420 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17421 | bool result; | |
17422 | PyObject * obj0 = 0 ; | |
17423 | char *kwnames[] = { | |
17424 | (char *) "self", NULL | |
17425 | }; | |
17426 | ||
17427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17430 | { | |
17431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17432 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17433 | ||
17434 | wxPyEndAllowThreads(__tstate); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | { | |
17438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17439 | } | |
17440 | return resultobj; | |
17441 | fail: | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17447 | PyObject *resultobj; | |
17448 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17449 | wxSize result; | |
17450 | PyObject * obj0 = 0 ; | |
17451 | char *kwnames[] = { | |
17452 | (char *) "self", NULL | |
17453 | }; | |
17454 | ||
17455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17458 | { | |
17459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17460 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17461 | ||
17462 | wxPyEndAllowThreads(__tstate); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
17465 | { | |
17466 | wxSize * resultptr; | |
17467 | resultptr = new wxSize((wxSize &) result); | |
17468 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17469 | } | |
17470 | return resultobj; | |
17471 | fail: | |
17472 | return NULL; | |
17473 | } | |
17474 | ||
17475 | ||
17476 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17477 | PyObject *resultobj; | |
17478 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17479 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17480 | PyObject * obj0 = 0 ; | |
17481 | PyObject * obj1 = 0 ; | |
17482 | char *kwnames[] = { | |
17483 | (char *) "self",(char *) "child", NULL | |
17484 | }; | |
17485 | ||
17486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17491 | { | |
17492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17493 | (arg1)->base_AddChild(arg2); | |
17494 | ||
17495 | wxPyEndAllowThreads(__tstate); | |
17496 | if (PyErr_Occurred()) SWIG_fail; | |
17497 | } | |
17498 | Py_INCREF(Py_None); resultobj = Py_None; | |
17499 | return resultobj; | |
17500 | fail: | |
17501 | return NULL; | |
17502 | } | |
17503 | ||
17504 | ||
17505 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17506 | PyObject *resultobj; | |
17507 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17508 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17509 | PyObject * obj0 = 0 ; | |
17510 | PyObject * obj1 = 0 ; | |
17511 | char *kwnames[] = { | |
17512 | (char *) "self",(char *) "child", NULL | |
17513 | }; | |
17514 | ||
17515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17520 | { | |
17521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17522 | (arg1)->base_RemoveChild(arg2); | |
17523 | ||
17524 | wxPyEndAllowThreads(__tstate); | |
17525 | if (PyErr_Occurred()) SWIG_fail; | |
17526 | } | |
17527 | Py_INCREF(Py_None); resultobj = Py_None; | |
17528 | return resultobj; | |
17529 | fail: | |
17530 | return NULL; | |
17531 | } | |
17532 | ||
17533 | ||
17534 | static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17535 | PyObject *resultobj; | |
17536 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17537 | bool result; | |
17538 | PyObject * obj0 = 0 ; | |
17539 | char *kwnames[] = { | |
17540 | (char *) "self", NULL | |
17541 | }; | |
17542 | ||
17543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17546 | { | |
17547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 17548 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
17549 | |
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
17553 | { | |
17554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17555 | } | |
17556 | return resultobj; | |
17557 | fail: | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
17562 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17563 | PyObject *resultobj; | |
17564 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17565 | wxColour *arg2 = 0 ; | |
17566 | wxColour temp2 ; | |
17567 | PyObject * obj0 = 0 ; | |
17568 | PyObject * obj1 = 0 ; | |
17569 | char *kwnames[] = { | |
17570 | (char *) "self",(char *) "c", NULL | |
17571 | }; | |
17572 | ||
17573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17576 | { | |
17577 | arg2 = &temp2; | |
17578 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17579 | } | |
17580 | { | |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17582 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17583 | ||
17584 | wxPyEndAllowThreads(__tstate); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | } | |
17587 | Py_INCREF(Py_None); resultobj = Py_None; | |
17588 | return resultobj; | |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
a5ee0656 RD |
17594 | static PyObject *_wrap_PyScrolledWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
17595 | PyObject *resultobj; | |
17596 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17597 | wxVisualAttributes result; | |
17598 | PyObject * obj0 = 0 ; | |
17599 | char *kwnames[] = { | |
17600 | (char *) "self", NULL | |
17601 | }; | |
17602 | ||
17603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
17604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17606 | { | |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | result = (arg1)->base_GetDefaultAttributes(); | |
17609 | ||
17610 | wxPyEndAllowThreads(__tstate); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | } | |
17613 | { | |
17614 | wxVisualAttributes * resultptr; | |
17615 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
17616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
17617 | } | |
17618 | return resultobj; | |
17619 | fail: | |
17620 | return NULL; | |
17621 | } | |
17622 | ||
17623 | ||
d55e5bfc RD |
17624 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
17625 | PyObject *obj; | |
17626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17627 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
17628 | Py_INCREF(obj); | |
17629 | return Py_BuildValue((char *)""); | |
17630 | } | |
17631 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
17632 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
17633 | return 1; | |
17634 | } | |
17635 | ||
17636 | ||
17637 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
17638 | PyObject *pyobj; | |
17639 | ||
17640 | { | |
17641 | #if wxUSE_UNICODE | |
17642 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17643 | #else | |
17644 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17645 | #endif | |
17646 | } | |
17647 | return pyobj; | |
17648 | } | |
17649 | ||
17650 | ||
17651 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
17652 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
17653 | return 1; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
17658 | PyObject *pyobj; | |
17659 | ||
17660 | { | |
17661 | #if wxUSE_UNICODE | |
17662 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17663 | #else | |
17664 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17665 | #endif | |
17666 | } | |
17667 | return pyobj; | |
17668 | } | |
17669 | ||
17670 | ||
17671 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17672 | PyObject *resultobj; | |
17673 | wxPrintData *result; | |
17674 | char *kwnames[] = { | |
17675 | NULL | |
17676 | }; | |
17677 | ||
17678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
17679 | { | |
17680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17681 | result = (wxPrintData *)new wxPrintData(); | |
17682 | ||
17683 | wxPyEndAllowThreads(__tstate); | |
17684 | if (PyErr_Occurred()) SWIG_fail; | |
17685 | } | |
17686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
17687 | return resultobj; | |
17688 | fail: | |
17689 | return NULL; | |
17690 | } | |
17691 | ||
17692 | ||
17693 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17694 | PyObject *resultobj; | |
17695 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17696 | PyObject * obj0 = 0 ; | |
17697 | char *kwnames[] = { | |
17698 | (char *) "self", NULL | |
17699 | }; | |
17700 | ||
17701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
17702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17704 | { | |
17705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17706 | delete arg1; | |
17707 | ||
17708 | wxPyEndAllowThreads(__tstate); | |
17709 | if (PyErr_Occurred()) SWIG_fail; | |
17710 | } | |
17711 | Py_INCREF(Py_None); resultobj = Py_None; | |
17712 | return resultobj; | |
17713 | fail: | |
17714 | return NULL; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17719 | PyObject *resultobj; | |
17720 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17721 | int result; | |
17722 | PyObject * obj0 = 0 ; | |
17723 | char *kwnames[] = { | |
17724 | (char *) "self", NULL | |
17725 | }; | |
17726 | ||
17727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
17728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17730 | { | |
17731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17732 | result = (int)(arg1)->GetNoCopies(); | |
17733 | ||
17734 | wxPyEndAllowThreads(__tstate); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
17736 | } | |
17737 | resultobj = SWIG_FromInt((int)result); | |
17738 | return resultobj; | |
17739 | fail: | |
17740 | return NULL; | |
17741 | } | |
17742 | ||
17743 | ||
17744 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17745 | PyObject *resultobj; | |
17746 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17747 | bool result; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | char *kwnames[] = { | |
17750 | (char *) "self", NULL | |
17751 | }; | |
17752 | ||
17753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
17754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17756 | { | |
17757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17758 | result = (bool)(arg1)->GetCollate(); | |
17759 | ||
17760 | wxPyEndAllowThreads(__tstate); | |
17761 | if (PyErr_Occurred()) SWIG_fail; | |
17762 | } | |
17763 | { | |
17764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17765 | } | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | return NULL; | |
17769 | } | |
17770 | ||
17771 | ||
17772 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17773 | PyObject *resultobj; | |
17774 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17775 | int result; | |
17776 | PyObject * obj0 = 0 ; | |
17777 | char *kwnames[] = { | |
17778 | (char *) "self", NULL | |
17779 | }; | |
17780 | ||
17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
17782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | result = (int)(arg1)->GetOrientation(); | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | resultobj = SWIG_FromInt((int)result); | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17799 | PyObject *resultobj; | |
17800 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17801 | bool result; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | char *kwnames[] = { | |
17804 | (char *) "self", NULL | |
17805 | }; | |
17806 | ||
17807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
17808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17810 | { | |
17811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17812 | result = (bool)(arg1)->Ok(); | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | { | |
17818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17819 | } | |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17827 | PyObject *resultobj; | |
17828 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17829 | wxString *result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17838 | { | |
17839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17840 | { | |
17841 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
17842 | result = (wxString *) &_result_ref; | |
17843 | } | |
17844 | ||
17845 | wxPyEndAllowThreads(__tstate); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | } | |
17848 | { | |
17849 | #if wxUSE_UNICODE | |
17850 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17851 | #else | |
17852 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17853 | #endif | |
17854 | } | |
17855 | return resultobj; | |
17856 | fail: | |
17857 | return NULL; | |
17858 | } | |
17859 | ||
17860 | ||
17861 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17862 | PyObject *resultobj; | |
17863 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17864 | bool result; | |
17865 | PyObject * obj0 = 0 ; | |
17866 | char *kwnames[] = { | |
17867 | (char *) "self", NULL | |
17868 | }; | |
17869 | ||
17870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
17871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17873 | { | |
17874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17875 | result = (bool)(arg1)->GetColour(); | |
17876 | ||
17877 | wxPyEndAllowThreads(__tstate); | |
17878 | if (PyErr_Occurred()) SWIG_fail; | |
17879 | } | |
17880 | { | |
17881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17882 | } | |
17883 | return resultobj; | |
17884 | fail: | |
17885 | return NULL; | |
17886 | } | |
17887 | ||
17888 | ||
17889 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17890 | PyObject *resultobj; | |
17891 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17892 | int result; | |
17893 | PyObject * obj0 = 0 ; | |
17894 | char *kwnames[] = { | |
17895 | (char *) "self", NULL | |
17896 | }; | |
17897 | ||
17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
17899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17901 | { | |
17902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17903 | result = (int)(arg1)->GetDuplex(); | |
17904 | ||
17905 | wxPyEndAllowThreads(__tstate); | |
17906 | if (PyErr_Occurred()) SWIG_fail; | |
17907 | } | |
17908 | resultobj = SWIG_FromInt((int)result); | |
17909 | return resultobj; | |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
17915 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17916 | PyObject *resultobj; | |
17917 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17918 | int result; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "self", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
17925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17927 | { | |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | result = (int)(arg1)->GetPaperId(); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
17934 | resultobj = SWIG_FromInt((int)result); | |
17935 | return resultobj; | |
17936 | fail: | |
17937 | return NULL; | |
17938 | } | |
17939 | ||
17940 | ||
17941 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17942 | PyObject *resultobj; | |
17943 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17944 | wxSize *result; | |
17945 | PyObject * obj0 = 0 ; | |
17946 | char *kwnames[] = { | |
17947 | (char *) "self", NULL | |
17948 | }; | |
17949 | ||
17950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
17951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17953 | { | |
17954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17955 | { | |
17956 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
17957 | result = (wxSize *) &_result_ref; | |
17958 | } | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
17963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17973 | int result; | |
17974 | PyObject * obj0 = 0 ; | |
17975 | char *kwnames[] = { | |
17976 | (char *) "self", NULL | |
17977 | }; | |
17978 | ||
17979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
17980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17982 | { | |
17983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17984 | result = (int)(arg1)->GetQuality(); | |
17985 | ||
17986 | wxPyEndAllowThreads(__tstate); | |
17987 | if (PyErr_Occurred()) SWIG_fail; | |
17988 | } | |
17989 | resultobj = SWIG_FromInt((int)result); | |
17990 | return resultobj; | |
17991 | fail: | |
17992 | return NULL; | |
17993 | } | |
17994 | ||
17995 | ||
17996 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17997 | PyObject *resultobj; | |
17998 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17999 | int arg2 ; | |
18000 | PyObject * obj0 = 0 ; | |
18001 | PyObject * obj1 = 0 ; | |
18002 | char *kwnames[] = { | |
18003 | (char *) "self",(char *) "v", NULL | |
18004 | }; | |
18005 | ||
18006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
18007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18009 | arg2 = (int) SWIG_AsInt(obj1); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | { | |
18012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18013 | (arg1)->SetNoCopies(arg2); | |
18014 | ||
18015 | wxPyEndAllowThreads(__tstate); | |
18016 | if (PyErr_Occurred()) SWIG_fail; | |
18017 | } | |
18018 | Py_INCREF(Py_None); resultobj = Py_None; | |
18019 | return resultobj; | |
18020 | fail: | |
18021 | return NULL; | |
18022 | } | |
18023 | ||
18024 | ||
18025 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18026 | PyObject *resultobj; | |
18027 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18028 | bool arg2 ; | |
18029 | PyObject * obj0 = 0 ; | |
18030 | PyObject * obj1 = 0 ; | |
18031 | char *kwnames[] = { | |
18032 | (char *) "self",(char *) "flag", NULL | |
18033 | }; | |
18034 | ||
18035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
18036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18038 | arg2 = (bool) SWIG_AsBool(obj1); | |
18039 | if (PyErr_Occurred()) SWIG_fail; | |
18040 | { | |
18041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18042 | (arg1)->SetCollate(arg2); | |
18043 | ||
18044 | wxPyEndAllowThreads(__tstate); | |
18045 | if (PyErr_Occurred()) SWIG_fail; | |
18046 | } | |
18047 | Py_INCREF(Py_None); resultobj = Py_None; | |
18048 | return resultobj; | |
18049 | fail: | |
18050 | return NULL; | |
18051 | } | |
18052 | ||
18053 | ||
18054 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18055 | PyObject *resultobj; | |
18056 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18057 | int arg2 ; | |
18058 | PyObject * obj0 = 0 ; | |
18059 | PyObject * obj1 = 0 ; | |
18060 | char *kwnames[] = { | |
18061 | (char *) "self",(char *) "orient", NULL | |
18062 | }; | |
18063 | ||
18064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18067 | arg2 = (int) SWIG_AsInt(obj1); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | { | |
18070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18071 | (arg1)->SetOrientation(arg2); | |
18072 | ||
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | Py_INCREF(Py_None); resultobj = Py_None; | |
18077 | return resultobj; | |
18078 | fail: | |
18079 | return NULL; | |
18080 | } | |
18081 | ||
18082 | ||
18083 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18084 | PyObject *resultobj; | |
18085 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18086 | wxString *arg2 = 0 ; | |
18087 | bool temp2 = False ; | |
18088 | PyObject * obj0 = 0 ; | |
18089 | PyObject * obj1 = 0 ; | |
18090 | char *kwnames[] = { | |
18091 | (char *) "self",(char *) "name", NULL | |
18092 | }; | |
18093 | ||
18094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
18095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18097 | { | |
18098 | arg2 = wxString_in_helper(obj1); | |
18099 | if (arg2 == NULL) SWIG_fail; | |
18100 | temp2 = True; | |
18101 | } | |
18102 | { | |
18103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18104 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
18105 | ||
18106 | wxPyEndAllowThreads(__tstate); | |
18107 | if (PyErr_Occurred()) SWIG_fail; | |
18108 | } | |
18109 | Py_INCREF(Py_None); resultobj = Py_None; | |
18110 | { | |
18111 | if (temp2) | |
18112 | delete arg2; | |
18113 | } | |
18114 | return resultobj; | |
18115 | fail: | |
18116 | { | |
18117 | if (temp2) | |
18118 | delete arg2; | |
18119 | } | |
18120 | return NULL; | |
18121 | } | |
18122 | ||
18123 | ||
18124 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18125 | PyObject *resultobj; | |
18126 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18127 | bool arg2 ; | |
18128 | PyObject * obj0 = 0 ; | |
18129 | PyObject * obj1 = 0 ; | |
18130 | char *kwnames[] = { | |
18131 | (char *) "self",(char *) "colour", NULL | |
18132 | }; | |
18133 | ||
18134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
18135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18137 | arg2 = (bool) SWIG_AsBool(obj1); | |
18138 | if (PyErr_Occurred()) SWIG_fail; | |
18139 | { | |
18140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18141 | (arg1)->SetColour(arg2); | |
18142 | ||
18143 | wxPyEndAllowThreads(__tstate); | |
18144 | if (PyErr_Occurred()) SWIG_fail; | |
18145 | } | |
18146 | Py_INCREF(Py_None); resultobj = Py_None; | |
18147 | return resultobj; | |
18148 | fail: | |
18149 | return NULL; | |
18150 | } | |
18151 | ||
18152 | ||
18153 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18154 | PyObject *resultobj; | |
18155 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18156 | int arg2 ; | |
18157 | PyObject * obj0 = 0 ; | |
18158 | PyObject * obj1 = 0 ; | |
18159 | char *kwnames[] = { | |
18160 | (char *) "self",(char *) "duplex", NULL | |
18161 | }; | |
18162 | ||
18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
18164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18166 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | Py_INCREF(Py_None); resultobj = Py_None; | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18183 | PyObject *resultobj; | |
18184 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18185 | int arg2 ; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | PyObject * obj1 = 0 ; | |
18188 | char *kwnames[] = { | |
18189 | (char *) "self",(char *) "sizeId", NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18195 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | { | |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | Py_INCREF(Py_None); resultobj = Py_None; | |
18205 | return resultobj; | |
18206 | fail: | |
18207 | return NULL; | |
18208 | } | |
18209 | ||
18210 | ||
18211 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18212 | PyObject *resultobj; | |
18213 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18214 | wxSize *arg2 = 0 ; | |
18215 | wxSize temp2 ; | |
18216 | PyObject * obj0 = 0 ; | |
18217 | PyObject * obj1 = 0 ; | |
18218 | char *kwnames[] = { | |
18219 | (char *) "self",(char *) "sz", NULL | |
18220 | }; | |
18221 | ||
18222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18225 | { | |
18226 | arg2 = &temp2; | |
18227 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18228 | } | |
18229 | { | |
18230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18231 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18232 | ||
18233 | wxPyEndAllowThreads(__tstate); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
18236 | Py_INCREF(Py_None); resultobj = Py_None; | |
18237 | return resultobj; | |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
18243 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18244 | PyObject *resultobj; | |
18245 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18246 | int arg2 ; | |
18247 | PyObject * obj0 = 0 ; | |
18248 | PyObject * obj1 = 0 ; | |
18249 | char *kwnames[] = { | |
18250 | (char *) "self",(char *) "quality", NULL | |
18251 | }; | |
18252 | ||
18253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
18254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18256 | arg2 = (int) SWIG_AsInt(obj1); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | { | |
18259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18260 | (arg1)->SetQuality(arg2); | |
18261 | ||
18262 | wxPyEndAllowThreads(__tstate); | |
18263 | if (PyErr_Occurred()) SWIG_fail; | |
18264 | } | |
18265 | Py_INCREF(Py_None); resultobj = Py_None; | |
18266 | return resultobj; | |
18267 | fail: | |
18268 | return NULL; | |
18269 | } | |
18270 | ||
18271 | ||
18272 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18273 | PyObject *resultobj; | |
18274 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18275 | wxString *result; | |
18276 | PyObject * obj0 = 0 ; | |
18277 | char *kwnames[] = { | |
18278 | (char *) "self", NULL | |
18279 | }; | |
18280 | ||
18281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18284 | { | |
18285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18286 | { | |
18287 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18288 | result = (wxString *) &_result_ref; | |
18289 | } | |
18290 | ||
18291 | wxPyEndAllowThreads(__tstate); | |
18292 | if (PyErr_Occurred()) SWIG_fail; | |
18293 | } | |
18294 | { | |
18295 | #if wxUSE_UNICODE | |
18296 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18297 | #else | |
18298 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18299 | #endif | |
18300 | } | |
18301 | return resultobj; | |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
18307 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18308 | PyObject *resultobj; | |
18309 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18310 | wxString *result; | |
18311 | PyObject * obj0 = 0 ; | |
18312 | char *kwnames[] = { | |
18313 | (char *) "self", NULL | |
18314 | }; | |
18315 | ||
18316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18319 | { | |
18320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18321 | { | |
18322 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18323 | result = (wxString *) &_result_ref; | |
18324 | } | |
18325 | ||
18326 | wxPyEndAllowThreads(__tstate); | |
18327 | if (PyErr_Occurred()) SWIG_fail; | |
18328 | } | |
18329 | { | |
18330 | #if wxUSE_UNICODE | |
18331 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18332 | #else | |
18333 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18334 | #endif | |
18335 | } | |
18336 | return resultobj; | |
18337 | fail: | |
18338 | return NULL; | |
18339 | } | |
18340 | ||
18341 | ||
18342 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18343 | PyObject *resultobj; | |
18344 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18345 | wxString *result; | |
18346 | PyObject * obj0 = 0 ; | |
18347 | char *kwnames[] = { | |
18348 | (char *) "self", NULL | |
18349 | }; | |
18350 | ||
18351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18354 | { | |
18355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18356 | { | |
18357 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18358 | result = (wxString *) &_result_ref; | |
18359 | } | |
18360 | ||
18361 | wxPyEndAllowThreads(__tstate); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
18364 | { | |
18365 | #if wxUSE_UNICODE | |
18366 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18367 | #else | |
18368 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18369 | #endif | |
18370 | } | |
18371 | return resultobj; | |
18372 | fail: | |
18373 | return NULL; | |
18374 | } | |
18375 | ||
18376 | ||
18377 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18378 | PyObject *resultobj; | |
18379 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18380 | wxString *result; | |
18381 | PyObject * obj0 = 0 ; | |
18382 | char *kwnames[] = { | |
18383 | (char *) "self", NULL | |
18384 | }; | |
18385 | ||
18386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18389 | { | |
18390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18391 | { | |
18392 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18393 | result = (wxString *) &_result_ref; | |
18394 | } | |
18395 | ||
18396 | wxPyEndAllowThreads(__tstate); | |
18397 | if (PyErr_Occurred()) SWIG_fail; | |
18398 | } | |
18399 | { | |
18400 | #if wxUSE_UNICODE | |
18401 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18402 | #else | |
18403 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18404 | #endif | |
18405 | } | |
18406 | return resultobj; | |
18407 | fail: | |
18408 | return NULL; | |
18409 | } | |
18410 | ||
18411 | ||
18412 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18413 | PyObject *resultobj; | |
18414 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18415 | wxString *result; | |
18416 | PyObject * obj0 = 0 ; | |
18417 | char *kwnames[] = { | |
18418 | (char *) "self", NULL | |
18419 | }; | |
18420 | ||
18421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
18422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18424 | { | |
18425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18426 | { | |
18427 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
18428 | result = (wxString *) &_result_ref; | |
18429 | } | |
18430 | ||
18431 | wxPyEndAllowThreads(__tstate); | |
18432 | if (PyErr_Occurred()) SWIG_fail; | |
18433 | } | |
18434 | { | |
18435 | #if wxUSE_UNICODE | |
18436 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18437 | #else | |
18438 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18439 | #endif | |
18440 | } | |
18441 | return resultobj; | |
18442 | fail: | |
18443 | return NULL; | |
18444 | } | |
18445 | ||
18446 | ||
18447 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18448 | PyObject *resultobj; | |
18449 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18450 | double result; | |
18451 | PyObject * obj0 = 0 ; | |
18452 | char *kwnames[] = { | |
18453 | (char *) "self", NULL | |
18454 | }; | |
18455 | ||
18456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
18457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18459 | { | |
18460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18461 | result = (double)(arg1)->GetPrinterScaleX(); | |
18462 | ||
18463 | wxPyEndAllowThreads(__tstate); | |
18464 | if (PyErr_Occurred()) SWIG_fail; | |
18465 | } | |
18466 | resultobj = SWIG_FromDouble((double)result); | |
18467 | return resultobj; | |
18468 | fail: | |
18469 | return NULL; | |
18470 | } | |
18471 | ||
18472 | ||
18473 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18474 | PyObject *resultobj; | |
18475 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18476 | double result; | |
18477 | PyObject * obj0 = 0 ; | |
18478 | char *kwnames[] = { | |
18479 | (char *) "self", NULL | |
18480 | }; | |
18481 | ||
18482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
18483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18485 | { | |
18486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18487 | result = (double)(arg1)->GetPrinterScaleY(); | |
18488 | ||
18489 | wxPyEndAllowThreads(__tstate); | |
18490 | if (PyErr_Occurred()) SWIG_fail; | |
18491 | } | |
18492 | resultobj = SWIG_FromDouble((double)result); | |
18493 | return resultobj; | |
18494 | fail: | |
18495 | return NULL; | |
18496 | } | |
18497 | ||
18498 | ||
18499 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18500 | PyObject *resultobj; | |
18501 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18502 | long result; | |
18503 | PyObject * obj0 = 0 ; | |
18504 | char *kwnames[] = { | |
18505 | (char *) "self", NULL | |
18506 | }; | |
18507 | ||
18508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
18509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18511 | { | |
18512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18513 | result = (long)(arg1)->GetPrinterTranslateX(); | |
18514 | ||
18515 | wxPyEndAllowThreads(__tstate); | |
18516 | if (PyErr_Occurred()) SWIG_fail; | |
18517 | } | |
18518 | resultobj = SWIG_FromLong((long)result); | |
18519 | return resultobj; | |
18520 | fail: | |
18521 | return NULL; | |
18522 | } | |
18523 | ||
18524 | ||
18525 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18526 | PyObject *resultobj; | |
18527 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18528 | long result; | |
18529 | PyObject * obj0 = 0 ; | |
18530 | char *kwnames[] = { | |
18531 | (char *) "self", NULL | |
18532 | }; | |
18533 | ||
18534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
18535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18537 | { | |
18538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18539 | result = (long)(arg1)->GetPrinterTranslateY(); | |
18540 | ||
18541 | wxPyEndAllowThreads(__tstate); | |
18542 | if (PyErr_Occurred()) SWIG_fail; | |
18543 | } | |
18544 | resultobj = SWIG_FromLong((long)result); | |
18545 | return resultobj; | |
18546 | fail: | |
18547 | return NULL; | |
18548 | } | |
18549 | ||
18550 | ||
18551 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18552 | PyObject *resultobj; | |
18553 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18554 | int result; | |
18555 | PyObject * obj0 = 0 ; | |
18556 | char *kwnames[] = { | |
18557 | (char *) "self", NULL | |
18558 | }; | |
18559 | ||
18560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
18561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18563 | { | |
18564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18565 | result = (int)(arg1)->GetPrintMode(); | |
18566 | ||
18567 | wxPyEndAllowThreads(__tstate); | |
18568 | if (PyErr_Occurred()) SWIG_fail; | |
18569 | } | |
18570 | resultobj = SWIG_FromInt((int)result); | |
18571 | return resultobj; | |
18572 | fail: | |
18573 | return NULL; | |
18574 | } | |
18575 | ||
18576 | ||
18577 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18578 | PyObject *resultobj; | |
18579 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18580 | wxString *arg2 = 0 ; | |
18581 | bool temp2 = False ; | |
18582 | PyObject * obj0 = 0 ; | |
18583 | PyObject * obj1 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "self",(char *) "command", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
18589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18591 | { | |
18592 | arg2 = wxString_in_helper(obj1); | |
18593 | if (arg2 == NULL) SWIG_fail; | |
18594 | temp2 = True; | |
18595 | } | |
18596 | { | |
18597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18598 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
18599 | ||
18600 | wxPyEndAllowThreads(__tstate); | |
18601 | if (PyErr_Occurred()) SWIG_fail; | |
18602 | } | |
18603 | Py_INCREF(Py_None); resultobj = Py_None; | |
18604 | { | |
18605 | if (temp2) | |
18606 | delete arg2; | |
18607 | } | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | { | |
18611 | if (temp2) | |
18612 | delete arg2; | |
18613 | } | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
18618 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18619 | PyObject *resultobj; | |
18620 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18621 | wxString *arg2 = 0 ; | |
18622 | bool temp2 = False ; | |
18623 | PyObject * obj0 = 0 ; | |
18624 | PyObject * obj1 = 0 ; | |
18625 | char *kwnames[] = { | |
18626 | (char *) "self",(char *) "options", NULL | |
18627 | }; | |
18628 | ||
18629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
18630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18632 | { | |
18633 | arg2 = wxString_in_helper(obj1); | |
18634 | if (arg2 == NULL) SWIG_fail; | |
18635 | temp2 = True; | |
18636 | } | |
18637 | { | |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
18640 | ||
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
18644 | Py_INCREF(Py_None); resultobj = Py_None; | |
18645 | { | |
18646 | if (temp2) | |
18647 | delete arg2; | |
18648 | } | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | { | |
18652 | if (temp2) | |
18653 | delete arg2; | |
18654 | } | |
18655 | return NULL; | |
18656 | } | |
18657 | ||
18658 | ||
18659 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18660 | PyObject *resultobj; | |
18661 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18662 | wxString *arg2 = 0 ; | |
18663 | bool temp2 = False ; | |
18664 | PyObject * obj0 = 0 ; | |
18665 | PyObject * obj1 = 0 ; | |
18666 | char *kwnames[] = { | |
18667 | (char *) "self",(char *) "command", NULL | |
18668 | }; | |
18669 | ||
18670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
18671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18673 | { | |
18674 | arg2 = wxString_in_helper(obj1); | |
18675 | if (arg2 == NULL) SWIG_fail; | |
18676 | temp2 = True; | |
18677 | } | |
18678 | { | |
18679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18680 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
18681 | ||
18682 | wxPyEndAllowThreads(__tstate); | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | } | |
18685 | Py_INCREF(Py_None); resultobj = Py_None; | |
18686 | { | |
18687 | if (temp2) | |
18688 | delete arg2; | |
18689 | } | |
18690 | return resultobj; | |
18691 | fail: | |
18692 | { | |
18693 | if (temp2) | |
18694 | delete arg2; | |
18695 | } | |
18696 | return NULL; | |
18697 | } | |
18698 | ||
18699 | ||
18700 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18701 | PyObject *resultobj; | |
18702 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18703 | wxString *arg2 = 0 ; | |
18704 | bool temp2 = False ; | |
18705 | PyObject * obj0 = 0 ; | |
18706 | PyObject * obj1 = 0 ; | |
18707 | char *kwnames[] = { | |
18708 | (char *) "self",(char *) "filename", NULL | |
18709 | }; | |
18710 | ||
18711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
18712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18714 | { | |
18715 | arg2 = wxString_in_helper(obj1); | |
18716 | if (arg2 == NULL) SWIG_fail; | |
18717 | temp2 = True; | |
18718 | } | |
18719 | { | |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | (arg1)->SetFilename((wxString const &)*arg2); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | Py_INCREF(Py_None); resultobj = Py_None; | |
18727 | { | |
18728 | if (temp2) | |
18729 | delete arg2; | |
18730 | } | |
18731 | return resultobj; | |
18732 | fail: | |
18733 | { | |
18734 | if (temp2) | |
18735 | delete arg2; | |
18736 | } | |
18737 | return NULL; | |
18738 | } | |
18739 | ||
18740 | ||
18741 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18742 | PyObject *resultobj; | |
18743 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18744 | wxString *arg2 = 0 ; | |
18745 | bool temp2 = False ; | |
18746 | PyObject * obj0 = 0 ; | |
18747 | PyObject * obj1 = 0 ; | |
18748 | char *kwnames[] = { | |
18749 | (char *) "self",(char *) "path", NULL | |
18750 | }; | |
18751 | ||
18752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
18753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18755 | { | |
18756 | arg2 = wxString_in_helper(obj1); | |
18757 | if (arg2 == NULL) SWIG_fail; | |
18758 | temp2 = True; | |
18759 | } | |
18760 | { | |
18761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18762 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
18763 | ||
18764 | wxPyEndAllowThreads(__tstate); | |
18765 | if (PyErr_Occurred()) SWIG_fail; | |
18766 | } | |
18767 | Py_INCREF(Py_None); resultobj = Py_None; | |
18768 | { | |
18769 | if (temp2) | |
18770 | delete arg2; | |
18771 | } | |
18772 | return resultobj; | |
18773 | fail: | |
18774 | { | |
18775 | if (temp2) | |
18776 | delete arg2; | |
18777 | } | |
18778 | return NULL; | |
18779 | } | |
18780 | ||
18781 | ||
18782 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18783 | PyObject *resultobj; | |
18784 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18785 | double arg2 ; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | PyObject * obj1 = 0 ; | |
18788 | char *kwnames[] = { | |
18789 | (char *) "self",(char *) "x", NULL | |
18790 | }; | |
18791 | ||
18792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
18793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18795 | arg2 = (double) SWIG_AsDouble(obj1); | |
18796 | if (PyErr_Occurred()) SWIG_fail; | |
18797 | { | |
18798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18799 | (arg1)->SetPrinterScaleX(arg2); | |
18800 | ||
18801 | wxPyEndAllowThreads(__tstate); | |
18802 | if (PyErr_Occurred()) SWIG_fail; | |
18803 | } | |
18804 | Py_INCREF(Py_None); resultobj = Py_None; | |
18805 | return resultobj; | |
18806 | fail: | |
18807 | return NULL; | |
18808 | } | |
18809 | ||
18810 | ||
18811 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18812 | PyObject *resultobj; | |
18813 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18814 | double arg2 ; | |
18815 | PyObject * obj0 = 0 ; | |
18816 | PyObject * obj1 = 0 ; | |
18817 | char *kwnames[] = { | |
18818 | (char *) "self",(char *) "y", NULL | |
18819 | }; | |
18820 | ||
18821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
18822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18824 | arg2 = (double) SWIG_AsDouble(obj1); | |
18825 | if (PyErr_Occurred()) SWIG_fail; | |
18826 | { | |
18827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18828 | (arg1)->SetPrinterScaleY(arg2); | |
18829 | ||
18830 | wxPyEndAllowThreads(__tstate); | |
18831 | if (PyErr_Occurred()) SWIG_fail; | |
18832 | } | |
18833 | Py_INCREF(Py_None); resultobj = Py_None; | |
18834 | return resultobj; | |
18835 | fail: | |
18836 | return NULL; | |
18837 | } | |
18838 | ||
18839 | ||
18840 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18841 | PyObject *resultobj; | |
18842 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18843 | double arg2 ; | |
18844 | double arg3 ; | |
18845 | PyObject * obj0 = 0 ; | |
18846 | PyObject * obj1 = 0 ; | |
18847 | PyObject * obj2 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18855 | arg2 = (double) SWIG_AsDouble(obj1); | |
18856 | if (PyErr_Occurred()) SWIG_fail; | |
18857 | arg3 = (double) SWIG_AsDouble(obj2); | |
18858 | if (PyErr_Occurred()) SWIG_fail; | |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | (arg1)->SetPrinterScaling(arg2,arg3); | |
18862 | ||
18863 | wxPyEndAllowThreads(__tstate); | |
18864 | if (PyErr_Occurred()) SWIG_fail; | |
18865 | } | |
18866 | Py_INCREF(Py_None); resultobj = Py_None; | |
18867 | return resultobj; | |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
18873 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18874 | PyObject *resultobj; | |
18875 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18876 | long arg2 ; | |
18877 | PyObject * obj0 = 0 ; | |
18878 | PyObject * obj1 = 0 ; | |
18879 | char *kwnames[] = { | |
18880 | (char *) "self",(char *) "x", NULL | |
18881 | }; | |
18882 | ||
18883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
18884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18886 | arg2 = (long) SWIG_AsLong(obj1); | |
18887 | if (PyErr_Occurred()) SWIG_fail; | |
18888 | { | |
18889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18890 | (arg1)->SetPrinterTranslateX(arg2); | |
18891 | ||
18892 | wxPyEndAllowThreads(__tstate); | |
18893 | if (PyErr_Occurred()) SWIG_fail; | |
18894 | } | |
18895 | Py_INCREF(Py_None); resultobj = Py_None; | |
18896 | return resultobj; | |
18897 | fail: | |
18898 | return NULL; | |
18899 | } | |
18900 | ||
18901 | ||
18902 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18903 | PyObject *resultobj; | |
18904 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18905 | long arg2 ; | |
18906 | PyObject * obj0 = 0 ; | |
18907 | PyObject * obj1 = 0 ; | |
18908 | char *kwnames[] = { | |
18909 | (char *) "self",(char *) "y", NULL | |
18910 | }; | |
18911 | ||
18912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
18913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18915 | arg2 = (long) SWIG_AsLong(obj1); | |
18916 | if (PyErr_Occurred()) SWIG_fail; | |
18917 | { | |
18918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18919 | (arg1)->SetPrinterTranslateY(arg2); | |
18920 | ||
18921 | wxPyEndAllowThreads(__tstate); | |
18922 | if (PyErr_Occurred()) SWIG_fail; | |
18923 | } | |
18924 | Py_INCREF(Py_None); resultobj = Py_None; | |
18925 | return resultobj; | |
18926 | fail: | |
18927 | return NULL; | |
18928 | } | |
18929 | ||
18930 | ||
18931 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18932 | PyObject *resultobj; | |
18933 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18934 | long arg2 ; | |
18935 | long arg3 ; | |
18936 | PyObject * obj0 = 0 ; | |
18937 | PyObject * obj1 = 0 ; | |
18938 | PyObject * obj2 = 0 ; | |
18939 | char *kwnames[] = { | |
18940 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18941 | }; | |
18942 | ||
18943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18946 | arg2 = (long) SWIG_AsLong(obj1); | |
18947 | if (PyErr_Occurred()) SWIG_fail; | |
18948 | arg3 = (long) SWIG_AsLong(obj2); | |
18949 | if (PyErr_Occurred()) SWIG_fail; | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18952 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
18953 | ||
18954 | wxPyEndAllowThreads(__tstate); | |
18955 | if (PyErr_Occurred()) SWIG_fail; | |
18956 | } | |
18957 | Py_INCREF(Py_None); resultobj = Py_None; | |
18958 | return resultobj; | |
18959 | fail: | |
18960 | return NULL; | |
18961 | } | |
18962 | ||
18963 | ||
18964 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18965 | PyObject *resultobj; | |
18966 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18967 | int arg2 ; | |
18968 | PyObject * obj0 = 0 ; | |
18969 | PyObject * obj1 = 0 ; | |
18970 | char *kwnames[] = { | |
18971 | (char *) "self",(char *) "printMode", NULL | |
18972 | }; | |
18973 | ||
18974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
18975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18977 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
18978 | if (PyErr_Occurred()) SWIG_fail; | |
18979 | { | |
18980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18981 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
18982 | ||
18983 | wxPyEndAllowThreads(__tstate); | |
18984 | if (PyErr_Occurred()) SWIG_fail; | |
18985 | } | |
18986 | Py_INCREF(Py_None); resultobj = Py_None; | |
18987 | return resultobj; | |
18988 | fail: | |
18989 | return NULL; | |
18990 | } | |
18991 | ||
18992 | ||
18993 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18994 | PyObject *resultobj; | |
18995 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18996 | wxOutputStream *result; | |
18997 | PyObject * obj0 = 0 ; | |
18998 | char *kwnames[] = { | |
18999 | (char *) "self", NULL | |
19000 | }; | |
19001 | ||
19002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
19003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19005 | { | |
19006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19007 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
19008 | ||
19009 | wxPyEndAllowThreads(__tstate); | |
19010 | if (PyErr_Occurred()) SWIG_fail; | |
19011 | } | |
19012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
19013 | return resultobj; | |
19014 | fail: | |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
19019 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19020 | PyObject *resultobj; | |
19021 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19022 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
19023 | PyObject * obj0 = 0 ; | |
19024 | PyObject * obj1 = 0 ; | |
19025 | char *kwnames[] = { | |
19026 | (char *) "self",(char *) "outputstream", NULL | |
19027 | }; | |
19028 | ||
19029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
19030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
19033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19034 | { | |
19035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19036 | (arg1)->SetOutputStream(arg2); | |
19037 | ||
19038 | wxPyEndAllowThreads(__tstate); | |
19039 | if (PyErr_Occurred()) SWIG_fail; | |
19040 | } | |
19041 | Py_INCREF(Py_None); resultobj = Py_None; | |
19042 | return resultobj; | |
19043 | fail: | |
19044 | return NULL; | |
19045 | } | |
19046 | ||
19047 | ||
19048 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
19049 | PyObject *obj; | |
19050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19051 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
19052 | Py_INCREF(obj); | |
19053 | return Py_BuildValue((char *)""); | |
19054 | } | |
19055 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19056 | PyObject *resultobj; | |
19057 | wxPageSetupDialogData *result; | |
19058 | char *kwnames[] = { | |
19059 | NULL | |
19060 | }; | |
19061 | ||
19062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
19063 | { | |
19064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19065 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
19066 | ||
19067 | wxPyEndAllowThreads(__tstate); | |
19068 | if (PyErr_Occurred()) SWIG_fail; | |
19069 | } | |
19070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19071 | return resultobj; | |
19072 | fail: | |
19073 | return NULL; | |
19074 | } | |
19075 | ||
19076 | ||
19077 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19078 | PyObject *resultobj; | |
19079 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19080 | PyObject * obj0 = 0 ; | |
19081 | char *kwnames[] = { | |
19082 | (char *) "self", NULL | |
19083 | }; | |
19084 | ||
19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
19086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19088 | { | |
19089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19090 | delete arg1; | |
19091 | ||
19092 | wxPyEndAllowThreads(__tstate); | |
19093 | if (PyErr_Occurred()) SWIG_fail; | |
19094 | } | |
19095 | Py_INCREF(Py_None); resultobj = Py_None; | |
19096 | return resultobj; | |
19097 | fail: | |
19098 | return NULL; | |
19099 | } | |
19100 | ||
19101 | ||
19102 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19103 | PyObject *resultobj; | |
19104 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19105 | bool arg2 ; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | PyObject * obj1 = 0 ; | |
19108 | char *kwnames[] = { | |
19109 | (char *) "self",(char *) "flag", NULL | |
19110 | }; | |
19111 | ||
19112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19115 | arg2 = (bool) SWIG_AsBool(obj1); | |
19116 | if (PyErr_Occurred()) SWIG_fail; | |
19117 | { | |
19118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19119 | (arg1)->EnableHelp(arg2); | |
19120 | ||
19121 | wxPyEndAllowThreads(__tstate); | |
19122 | if (PyErr_Occurred()) SWIG_fail; | |
19123 | } | |
19124 | Py_INCREF(Py_None); resultobj = Py_None; | |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
19131 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19132 | PyObject *resultobj; | |
19133 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19134 | bool arg2 ; | |
19135 | PyObject * obj0 = 0 ; | |
19136 | PyObject * obj1 = 0 ; | |
19137 | char *kwnames[] = { | |
19138 | (char *) "self",(char *) "flag", NULL | |
19139 | }; | |
19140 | ||
19141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
19142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19144 | arg2 = (bool) SWIG_AsBool(obj1); | |
19145 | if (PyErr_Occurred()) SWIG_fail; | |
19146 | { | |
19147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19148 | (arg1)->EnableMargins(arg2); | |
19149 | ||
19150 | wxPyEndAllowThreads(__tstate); | |
19151 | if (PyErr_Occurred()) SWIG_fail; | |
19152 | } | |
19153 | Py_INCREF(Py_None); resultobj = Py_None; | |
19154 | return resultobj; | |
19155 | fail: | |
19156 | return NULL; | |
19157 | } | |
19158 | ||
19159 | ||
19160 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19161 | PyObject *resultobj; | |
19162 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19163 | bool arg2 ; | |
19164 | PyObject * obj0 = 0 ; | |
19165 | PyObject * obj1 = 0 ; | |
19166 | char *kwnames[] = { | |
19167 | (char *) "self",(char *) "flag", NULL | |
19168 | }; | |
19169 | ||
19170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
19171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19173 | arg2 = (bool) SWIG_AsBool(obj1); | |
19174 | if (PyErr_Occurred()) SWIG_fail; | |
19175 | { | |
19176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19177 | (arg1)->EnableOrientation(arg2); | |
19178 | ||
19179 | wxPyEndAllowThreads(__tstate); | |
19180 | if (PyErr_Occurred()) SWIG_fail; | |
19181 | } | |
19182 | Py_INCREF(Py_None); resultobj = Py_None; | |
19183 | return resultobj; | |
19184 | fail: | |
19185 | return NULL; | |
19186 | } | |
19187 | ||
19188 | ||
19189 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19190 | PyObject *resultobj; | |
19191 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19192 | bool arg2 ; | |
19193 | PyObject * obj0 = 0 ; | |
19194 | PyObject * obj1 = 0 ; | |
19195 | char *kwnames[] = { | |
19196 | (char *) "self",(char *) "flag", NULL | |
19197 | }; | |
19198 | ||
19199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
19200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19202 | arg2 = (bool) SWIG_AsBool(obj1); | |
19203 | if (PyErr_Occurred()) SWIG_fail; | |
19204 | { | |
19205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19206 | (arg1)->EnablePaper(arg2); | |
19207 | ||
19208 | wxPyEndAllowThreads(__tstate); | |
19209 | if (PyErr_Occurred()) SWIG_fail; | |
19210 | } | |
19211 | Py_INCREF(Py_None); resultobj = Py_None; | |
19212 | return resultobj; | |
19213 | fail: | |
19214 | return NULL; | |
19215 | } | |
19216 | ||
19217 | ||
19218 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19219 | PyObject *resultobj; | |
19220 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19221 | bool arg2 ; | |
19222 | PyObject * obj0 = 0 ; | |
19223 | PyObject * obj1 = 0 ; | |
19224 | char *kwnames[] = { | |
19225 | (char *) "self",(char *) "flag", NULL | |
19226 | }; | |
19227 | ||
19228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
19229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19231 | arg2 = (bool) SWIG_AsBool(obj1); | |
19232 | if (PyErr_Occurred()) SWIG_fail; | |
19233 | { | |
19234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19235 | (arg1)->EnablePrinter(arg2); | |
19236 | ||
19237 | wxPyEndAllowThreads(__tstate); | |
19238 | if (PyErr_Occurred()) SWIG_fail; | |
19239 | } | |
19240 | Py_INCREF(Py_None); resultobj = Py_None; | |
19241 | return resultobj; | |
19242 | fail: | |
19243 | return NULL; | |
19244 | } | |
19245 | ||
19246 | ||
19247 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19248 | PyObject *resultobj; | |
19249 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19250 | bool result; | |
19251 | PyObject * obj0 = 0 ; | |
19252 | char *kwnames[] = { | |
19253 | (char *) "self", NULL | |
19254 | }; | |
19255 | ||
19256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
19257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19259 | { | |
19260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19261 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
19262 | ||
19263 | wxPyEndAllowThreads(__tstate); | |
19264 | if (PyErr_Occurred()) SWIG_fail; | |
19265 | } | |
19266 | { | |
19267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19268 | } | |
19269 | return resultobj; | |
19270 | fail: | |
19271 | return NULL; | |
19272 | } | |
19273 | ||
19274 | ||
19275 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19276 | PyObject *resultobj; | |
19277 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19278 | bool result; | |
19279 | PyObject * obj0 = 0 ; | |
19280 | char *kwnames[] = { | |
19281 | (char *) "self", NULL | |
19282 | }; | |
19283 | ||
19284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19287 | { | |
19288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19289 | result = (bool)(arg1)->GetEnableMargins(); | |
19290 | ||
19291 | wxPyEndAllowThreads(__tstate); | |
19292 | if (PyErr_Occurred()) SWIG_fail; | |
19293 | } | |
19294 | { | |
19295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19296 | } | |
19297 | return resultobj; | |
19298 | fail: | |
19299 | return NULL; | |
19300 | } | |
19301 | ||
19302 | ||
19303 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19304 | PyObject *resultobj; | |
19305 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19306 | bool result; | |
19307 | PyObject * obj0 = 0 ; | |
19308 | char *kwnames[] = { | |
19309 | (char *) "self", NULL | |
19310 | }; | |
19311 | ||
19312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19315 | { | |
19316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19317 | result = (bool)(arg1)->GetEnableOrientation(); | |
19318 | ||
19319 | wxPyEndAllowThreads(__tstate); | |
19320 | if (PyErr_Occurred()) SWIG_fail; | |
19321 | } | |
19322 | { | |
19323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19324 | } | |
19325 | return resultobj; | |
19326 | fail: | |
19327 | return NULL; | |
19328 | } | |
19329 | ||
19330 | ||
19331 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19332 | PyObject *resultobj; | |
19333 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19334 | bool result; | |
19335 | PyObject * obj0 = 0 ; | |
19336 | char *kwnames[] = { | |
19337 | (char *) "self", NULL | |
19338 | }; | |
19339 | ||
19340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19343 | { | |
19344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19345 | result = (bool)(arg1)->GetEnablePaper(); | |
19346 | ||
19347 | wxPyEndAllowThreads(__tstate); | |
19348 | if (PyErr_Occurred()) SWIG_fail; | |
19349 | } | |
19350 | { | |
19351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19352 | } | |
19353 | return resultobj; | |
19354 | fail: | |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19362 | bool result; | |
19363 | PyObject * obj0 = 0 ; | |
19364 | char *kwnames[] = { | |
19365 | (char *) "self", NULL | |
19366 | }; | |
19367 | ||
19368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
19369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19371 | { | |
19372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19373 | result = (bool)(arg1)->GetEnablePrinter(); | |
19374 | ||
19375 | wxPyEndAllowThreads(__tstate); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | { | |
19379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19380 | } | |
19381 | return resultobj; | |
19382 | fail: | |
19383 | return NULL; | |
19384 | } | |
19385 | ||
19386 | ||
19387 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19388 | PyObject *resultobj; | |
19389 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19390 | bool result; | |
19391 | PyObject * obj0 = 0 ; | |
19392 | char *kwnames[] = { | |
19393 | (char *) "self", NULL | |
19394 | }; | |
19395 | ||
19396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19399 | { | |
19400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19401 | result = (bool)(arg1)->GetEnableHelp(); | |
19402 | ||
19403 | wxPyEndAllowThreads(__tstate); | |
19404 | if (PyErr_Occurred()) SWIG_fail; | |
19405 | } | |
19406 | { | |
19407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19408 | } | |
19409 | return resultobj; | |
19410 | fail: | |
19411 | return NULL; | |
19412 | } | |
19413 | ||
19414 | ||
19415 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19416 | PyObject *resultobj; | |
19417 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19418 | bool result; | |
19419 | PyObject * obj0 = 0 ; | |
19420 | char *kwnames[] = { | |
19421 | (char *) "self", NULL | |
19422 | }; | |
19423 | ||
19424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
19425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19427 | { | |
19428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19429 | result = (bool)(arg1)->GetDefaultInfo(); | |
19430 | ||
19431 | wxPyEndAllowThreads(__tstate); | |
19432 | if (PyErr_Occurred()) SWIG_fail; | |
19433 | } | |
19434 | { | |
19435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19436 | } | |
19437 | return resultobj; | |
19438 | fail: | |
19439 | return NULL; | |
19440 | } | |
19441 | ||
19442 | ||
19443 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19444 | PyObject *resultobj; | |
19445 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19446 | wxPoint result; | |
19447 | PyObject * obj0 = 0 ; | |
19448 | char *kwnames[] = { | |
19449 | (char *) "self", NULL | |
19450 | }; | |
19451 | ||
19452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
19453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19455 | { | |
19456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19457 | result = (arg1)->GetMarginTopLeft(); | |
19458 | ||
19459 | wxPyEndAllowThreads(__tstate); | |
19460 | if (PyErr_Occurred()) SWIG_fail; | |
19461 | } | |
19462 | { | |
19463 | wxPoint * resultptr; | |
19464 | resultptr = new wxPoint((wxPoint &) result); | |
19465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19466 | } | |
19467 | return resultobj; | |
19468 | fail: | |
19469 | return NULL; | |
19470 | } | |
19471 | ||
19472 | ||
19473 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19474 | PyObject *resultobj; | |
19475 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19476 | wxPoint result; | |
19477 | PyObject * obj0 = 0 ; | |
19478 | char *kwnames[] = { | |
19479 | (char *) "self", NULL | |
19480 | }; | |
19481 | ||
19482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
19483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19485 | { | |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | result = (arg1)->GetMarginBottomRight(); | |
19488 | ||
19489 | wxPyEndAllowThreads(__tstate); | |
19490 | if (PyErr_Occurred()) SWIG_fail; | |
19491 | } | |
19492 | { | |
19493 | wxPoint * resultptr; | |
19494 | resultptr = new wxPoint((wxPoint &) result); | |
19495 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19496 | } | |
19497 | return resultobj; | |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19504 | PyObject *resultobj; | |
19505 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19506 | wxPoint result; | |
19507 | PyObject * obj0 = 0 ; | |
19508 | char *kwnames[] = { | |
19509 | (char *) "self", NULL | |
19510 | }; | |
19511 | ||
19512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
19513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19515 | { | |
19516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19517 | result = (arg1)->GetMinMarginTopLeft(); | |
19518 | ||
19519 | wxPyEndAllowThreads(__tstate); | |
19520 | if (PyErr_Occurred()) SWIG_fail; | |
19521 | } | |
19522 | { | |
19523 | wxPoint * resultptr; | |
19524 | resultptr = new wxPoint((wxPoint &) result); | |
19525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19526 | } | |
19527 | return resultobj; | |
19528 | fail: | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
19533 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19534 | PyObject *resultobj; | |
19535 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19536 | wxPoint result; | |
19537 | PyObject * obj0 = 0 ; | |
19538 | char *kwnames[] = { | |
19539 | (char *) "self", NULL | |
19540 | }; | |
19541 | ||
19542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
19543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19545 | { | |
19546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19547 | result = (arg1)->GetMinMarginBottomRight(); | |
19548 | ||
19549 | wxPyEndAllowThreads(__tstate); | |
19550 | if (PyErr_Occurred()) SWIG_fail; | |
19551 | } | |
19552 | { | |
19553 | wxPoint * resultptr; | |
19554 | resultptr = new wxPoint((wxPoint &) result); | |
19555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19556 | } | |
19557 | return resultobj; | |
19558 | fail: | |
19559 | return NULL; | |
19560 | } | |
19561 | ||
19562 | ||
19563 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19564 | PyObject *resultobj; | |
19565 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19566 | int result; | |
19567 | PyObject * obj0 = 0 ; | |
19568 | char *kwnames[] = { | |
19569 | (char *) "self", NULL | |
19570 | }; | |
19571 | ||
19572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
19573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19575 | { | |
19576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19577 | result = (int)(arg1)->GetPaperId(); | |
19578 | ||
19579 | wxPyEndAllowThreads(__tstate); | |
19580 | if (PyErr_Occurred()) SWIG_fail; | |
19581 | } | |
19582 | resultobj = SWIG_FromInt((int)result); | |
19583 | return resultobj; | |
19584 | fail: | |
19585 | return NULL; | |
19586 | } | |
19587 | ||
19588 | ||
19589 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19590 | PyObject *resultobj; | |
19591 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19592 | wxSize result; | |
19593 | PyObject * obj0 = 0 ; | |
19594 | char *kwnames[] = { | |
19595 | (char *) "self", NULL | |
19596 | }; | |
19597 | ||
19598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
19599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19601 | { | |
19602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19603 | result = (arg1)->GetPaperSize(); | |
19604 | ||
19605 | wxPyEndAllowThreads(__tstate); | |
19606 | if (PyErr_Occurred()) SWIG_fail; | |
19607 | } | |
19608 | { | |
19609 | wxSize * resultptr; | |
19610 | resultptr = new wxSize((wxSize &) result); | |
19611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
19612 | } | |
19613 | return resultobj; | |
19614 | fail: | |
19615 | return NULL; | |
19616 | } | |
19617 | ||
19618 | ||
19619 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19620 | PyObject *resultobj; | |
19621 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19622 | wxPrintData *result; | |
19623 | PyObject * obj0 = 0 ; | |
19624 | char *kwnames[] = { | |
19625 | (char *) "self", NULL | |
19626 | }; | |
19627 | ||
19628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19631 | { | |
19632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19633 | { | |
19634 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19635 | result = (wxPrintData *) &_result_ref; | |
19636 | } | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19649 | PyObject *resultobj; | |
19650 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19651 | bool result; | |
19652 | PyObject * obj0 = 0 ; | |
19653 | char *kwnames[] = { | |
19654 | (char *) "self", NULL | |
19655 | }; | |
19656 | ||
19657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
19658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19660 | { | |
19661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19662 | result = (bool)(arg1)->Ok(); | |
19663 | ||
19664 | wxPyEndAllowThreads(__tstate); | |
19665 | if (PyErr_Occurred()) SWIG_fail; | |
19666 | } | |
19667 | { | |
19668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19669 | } | |
19670 | return resultobj; | |
19671 | fail: | |
19672 | return NULL; | |
19673 | } | |
19674 | ||
19675 | ||
19676 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19677 | PyObject *resultobj; | |
19678 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19679 | bool arg2 ; | |
19680 | PyObject * obj0 = 0 ; | |
19681 | PyObject * obj1 = 0 ; | |
19682 | char *kwnames[] = { | |
19683 | (char *) "self",(char *) "flag", NULL | |
19684 | }; | |
19685 | ||
19686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
19687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19689 | arg2 = (bool) SWIG_AsBool(obj1); | |
19690 | if (PyErr_Occurred()) SWIG_fail; | |
19691 | { | |
19692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19693 | (arg1)->SetDefaultInfo(arg2); | |
19694 | ||
19695 | wxPyEndAllowThreads(__tstate); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
19697 | } | |
19698 | Py_INCREF(Py_None); resultobj = Py_None; | |
19699 | return resultobj; | |
19700 | fail: | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
19705 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19706 | PyObject *resultobj; | |
19707 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19708 | bool arg2 ; | |
19709 | PyObject * obj0 = 0 ; | |
19710 | PyObject * obj1 = 0 ; | |
19711 | char *kwnames[] = { | |
19712 | (char *) "self",(char *) "flag", NULL | |
19713 | }; | |
19714 | ||
19715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
19716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19718 | arg2 = (bool) SWIG_AsBool(obj1); | |
19719 | if (PyErr_Occurred()) SWIG_fail; | |
19720 | { | |
19721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19722 | (arg1)->SetDefaultMinMargins(arg2); | |
19723 | ||
19724 | wxPyEndAllowThreads(__tstate); | |
19725 | if (PyErr_Occurred()) SWIG_fail; | |
19726 | } | |
19727 | Py_INCREF(Py_None); resultobj = Py_None; | |
19728 | return resultobj; | |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19737 | wxPoint *arg2 = 0 ; | |
19738 | wxPoint temp2 ; | |
19739 | PyObject * obj0 = 0 ; | |
19740 | PyObject * obj1 = 0 ; | |
19741 | char *kwnames[] = { | |
19742 | (char *) "self",(char *) "pt", NULL | |
19743 | }; | |
19744 | ||
19745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19748 | { | |
19749 | arg2 = &temp2; | |
19750 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19751 | } | |
19752 | { | |
19753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19754 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
19755 | ||
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | Py_INCREF(Py_None); resultobj = Py_None; | |
19760 | return resultobj; | |
19761 | fail: | |
19762 | return NULL; | |
19763 | } | |
19764 | ||
19765 | ||
19766 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19767 | PyObject *resultobj; | |
19768 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19769 | wxPoint *arg2 = 0 ; | |
19770 | wxPoint temp2 ; | |
19771 | PyObject * obj0 = 0 ; | |
19772 | PyObject * obj1 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self",(char *) "pt", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19780 | { | |
19781 | arg2 = &temp2; | |
19782 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19783 | } | |
19784 | { | |
19785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19786 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
19787 | ||
19788 | wxPyEndAllowThreads(__tstate); | |
19789 | if (PyErr_Occurred()) SWIG_fail; | |
19790 | } | |
19791 | Py_INCREF(Py_None); resultobj = Py_None; | |
19792 | return resultobj; | |
19793 | fail: | |
19794 | return NULL; | |
19795 | } | |
19796 | ||
19797 | ||
19798 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19799 | PyObject *resultobj; | |
19800 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19801 | wxPoint *arg2 = 0 ; | |
19802 | wxPoint temp2 ; | |
19803 | PyObject * obj0 = 0 ; | |
19804 | PyObject * obj1 = 0 ; | |
19805 | char *kwnames[] = { | |
19806 | (char *) "self",(char *) "pt", NULL | |
19807 | }; | |
19808 | ||
19809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19812 | { | |
19813 | arg2 = &temp2; | |
19814 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19815 | } | |
19816 | { | |
19817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19818 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
19819 | ||
19820 | wxPyEndAllowThreads(__tstate); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | } | |
19823 | Py_INCREF(Py_None); resultobj = Py_None; | |
19824 | return resultobj; | |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
19830 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19831 | PyObject *resultobj; | |
19832 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19833 | wxPoint *arg2 = 0 ; | |
19834 | wxPoint temp2 ; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | PyObject * obj1 = 0 ; | |
19837 | char *kwnames[] = { | |
19838 | (char *) "self",(char *) "pt", NULL | |
19839 | }; | |
19840 | ||
19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19844 | { | |
19845 | arg2 = &temp2; | |
19846 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19847 | } | |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | Py_INCREF(Py_None); resultobj = Py_None; | |
19856 | return resultobj; | |
19857 | fail: | |
19858 | return NULL; | |
19859 | } | |
19860 | ||
19861 | ||
19862 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19863 | PyObject *resultobj; | |
19864 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19865 | int arg2 ; | |
19866 | PyObject * obj0 = 0 ; | |
19867 | PyObject * obj1 = 0 ; | |
19868 | char *kwnames[] = { | |
19869 | (char *) "self",(char *) "id", NULL | |
19870 | }; | |
19871 | ||
19872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
19873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19875 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
19876 | if (PyErr_Occurred()) SWIG_fail; | |
19877 | { | |
19878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19879 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
19880 | ||
19881 | wxPyEndAllowThreads(__tstate); | |
19882 | if (PyErr_Occurred()) SWIG_fail; | |
19883 | } | |
19884 | Py_INCREF(Py_None); resultobj = Py_None; | |
19885 | return resultobj; | |
19886 | fail: | |
19887 | return NULL; | |
19888 | } | |
19889 | ||
19890 | ||
19891 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19892 | PyObject *resultobj; | |
19893 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19894 | wxSize *arg2 = 0 ; | |
19895 | wxSize temp2 ; | |
19896 | PyObject * obj0 = 0 ; | |
19897 | PyObject * obj1 = 0 ; | |
19898 | char *kwnames[] = { | |
19899 | (char *) "self",(char *) "size", NULL | |
19900 | }; | |
19901 | ||
19902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
19903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19905 | { | |
19906 | arg2 = &temp2; | |
19907 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19908 | } | |
19909 | { | |
19910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19911 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
19912 | ||
19913 | wxPyEndAllowThreads(__tstate); | |
19914 | if (PyErr_Occurred()) SWIG_fail; | |
19915 | } | |
19916 | Py_INCREF(Py_None); resultobj = Py_None; | |
19917 | return resultobj; | |
19918 | fail: | |
19919 | return NULL; | |
19920 | } | |
19921 | ||
19922 | ||
19923 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19924 | PyObject *resultobj; | |
19925 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19926 | wxPrintData *arg2 = 0 ; | |
19927 | PyObject * obj0 = 0 ; | |
19928 | PyObject * obj1 = 0 ; | |
19929 | char *kwnames[] = { | |
19930 | (char *) "self",(char *) "printData", NULL | |
19931 | }; | |
19932 | ||
19933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
19934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19936 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
19937 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19938 | SWIG_fail; | |
19939 | if (arg2 == NULL) { | |
19940 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19941 | SWIG_fail; | |
19942 | } | |
19943 | { | |
19944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19945 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
19946 | ||
19947 | wxPyEndAllowThreads(__tstate); | |
19948 | if (PyErr_Occurred()) SWIG_fail; | |
19949 | } | |
19950 | Py_INCREF(Py_None); resultobj = Py_None; | |
19951 | return resultobj; | |
19952 | fail: | |
19953 | return NULL; | |
19954 | } | |
19955 | ||
19956 | ||
19957 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
19958 | PyObject *obj; | |
19959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19960 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
19961 | Py_INCREF(obj); | |
19962 | return Py_BuildValue((char *)""); | |
19963 | } | |
19964 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19965 | PyObject *resultobj; | |
19966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19967 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
19968 | wxPageSetupDialog *result; | |
19969 | PyObject * obj0 = 0 ; | |
19970 | PyObject * obj1 = 0 ; | |
19971 | char *kwnames[] = { | |
19972 | (char *) "parent",(char *) "data", NULL | |
19973 | }; | |
19974 | ||
19975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
19976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19978 | if (obj1) { | |
19979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
19980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19981 | } | |
19982 | { | |
0439c23b | 19983 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
19984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
19985 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
19986 | ||
19987 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 19988 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
19989 | } |
19990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
19991 | return resultobj; | |
19992 | fail: | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
19997 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19998 | PyObject *resultobj; | |
19999 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20000 | wxPageSetupDialogData *result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | char *kwnames[] = { | |
20003 | (char *) "self", NULL | |
20004 | }; | |
20005 | ||
20006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
20007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20009 | { | |
20010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20011 | { | |
20012 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
20013 | result = (wxPageSetupDialogData *) &_result_ref; | |
20014 | } | |
20015 | ||
20016 | wxPyEndAllowThreads(__tstate); | |
20017 | if (PyErr_Occurred()) SWIG_fail; | |
20018 | } | |
20019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
20020 | return resultobj; | |
20021 | fail: | |
20022 | return NULL; | |
20023 | } | |
20024 | ||
20025 | ||
20026 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20027 | PyObject *resultobj; | |
20028 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20029 | int result; | |
20030 | PyObject * obj0 = 0 ; | |
20031 | char *kwnames[] = { | |
20032 | (char *) "self", NULL | |
20033 | }; | |
20034 | ||
20035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
20036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20038 | { | |
20039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20040 | result = (int)(arg1)->ShowModal(); | |
20041 | ||
20042 | wxPyEndAllowThreads(__tstate); | |
20043 | if (PyErr_Occurred()) SWIG_fail; | |
20044 | } | |
20045 | resultobj = SWIG_FromInt((int)result); | |
20046 | return resultobj; | |
20047 | fail: | |
20048 | return NULL; | |
20049 | } | |
20050 | ||
20051 | ||
20052 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
20053 | PyObject *obj; | |
20054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20055 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
20056 | Py_INCREF(obj); | |
20057 | return Py_BuildValue((char *)""); | |
20058 | } | |
20059 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
20060 | PyObject *resultobj; | |
20061 | wxPrintDialogData *result; | |
20062 | ||
20063 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
20064 | { | |
20065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20066 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
20067 | ||
20068 | wxPyEndAllowThreads(__tstate); | |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
20071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20072 | return resultobj; | |
20073 | fail: | |
20074 | return NULL; | |
20075 | } | |
20076 | ||
20077 | ||
20078 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
20079 | PyObject *resultobj; | |
20080 | wxPrintData *arg1 = 0 ; | |
20081 | wxPrintDialogData *result; | |
20082 | PyObject * obj0 = 0 ; | |
20083 | ||
20084 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
20085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
20086 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20087 | SWIG_fail; | |
20088 | if (arg1 == NULL) { | |
20089 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20090 | SWIG_fail; | |
20091 | } | |
20092 | { | |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
20095 | ||
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
20099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20100 | return resultobj; | |
20101 | fail: | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
20106 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
20107 | int argc; | |
20108 | PyObject *argv[2]; | |
20109 | int ii; | |
20110 | ||
20111 | argc = PyObject_Length(args); | |
20112 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
20113 | argv[ii] = PyTuple_GetItem(args,ii); | |
20114 | } | |
20115 | if (argc == 0) { | |
20116 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
20117 | } | |
20118 | if (argc == 1) { | |
20119 | int _v; | |
20120 | { | |
20121 | void *ptr; | |
20122 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
20123 | _v = 0; | |
20124 | PyErr_Clear(); | |
20125 | } else { | |
20126 | _v = 1; | |
20127 | } | |
20128 | } | |
20129 | if (_v) { | |
20130 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
20131 | } | |
20132 | } | |
20133 | ||
20134 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
20135 | return NULL; | |
20136 | } | |
20137 | ||
20138 | ||
20139 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20140 | PyObject *resultobj; | |
20141 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20142 | PyObject * obj0 = 0 ; | |
20143 | char *kwnames[] = { | |
20144 | (char *) "self", NULL | |
20145 | }; | |
20146 | ||
20147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
20148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20150 | { | |
20151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20152 | delete arg1; | |
20153 | ||
20154 | wxPyEndAllowThreads(__tstate); | |
20155 | if (PyErr_Occurred()) SWIG_fail; | |
20156 | } | |
20157 | Py_INCREF(Py_None); resultobj = Py_None; | |
20158 | return resultobj; | |
20159 | fail: | |
20160 | return NULL; | |
20161 | } | |
20162 | ||
20163 | ||
20164 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20165 | PyObject *resultobj; | |
20166 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20167 | int result; | |
20168 | PyObject * obj0 = 0 ; | |
20169 | char *kwnames[] = { | |
20170 | (char *) "self", NULL | |
20171 | }; | |
20172 | ||
20173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
20174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20176 | { | |
20177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20178 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
20179 | ||
20180 | wxPyEndAllowThreads(__tstate); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
20182 | } | |
20183 | resultobj = SWIG_FromInt((int)result); | |
20184 | return resultobj; | |
20185 | fail: | |
20186 | return NULL; | |
20187 | } | |
20188 | ||
20189 | ||
20190 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20191 | PyObject *resultobj; | |
20192 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20193 | int result; | |
20194 | PyObject * obj0 = 0 ; | |
20195 | char *kwnames[] = { | |
20196 | (char *) "self", NULL | |
20197 | }; | |
20198 | ||
20199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
20200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20202 | { | |
20203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20204 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
20205 | ||
20206 | wxPyEndAllowThreads(__tstate); | |
20207 | if (PyErr_Occurred()) SWIG_fail; | |
20208 | } | |
20209 | resultobj = SWIG_FromInt((int)result); | |
20210 | return resultobj; | |
20211 | fail: | |
20212 | return NULL; | |
20213 | } | |
20214 | ||
20215 | ||
20216 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20217 | PyObject *resultobj; | |
20218 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20219 | int result; | |
20220 | PyObject * obj0 = 0 ; | |
20221 | char *kwnames[] = { | |
20222 | (char *) "self", NULL | |
20223 | }; | |
20224 | ||
20225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
20226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20228 | { | |
20229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20230 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
20231 | ||
20232 | wxPyEndAllowThreads(__tstate); | |
20233 | if (PyErr_Occurred()) SWIG_fail; | |
20234 | } | |
20235 | resultobj = SWIG_FromInt((int)result); | |
20236 | return resultobj; | |
20237 | fail: | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
20242 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20243 | PyObject *resultobj; | |
20244 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20245 | int result; | |
20246 | PyObject * obj0 = 0 ; | |
20247 | char *kwnames[] = { | |
20248 | (char *) "self", NULL | |
20249 | }; | |
20250 | ||
20251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
20252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20254 | { | |
20255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20256 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
20257 | ||
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
20261 | resultobj = SWIG_FromInt((int)result); | |
20262 | return resultobj; | |
20263 | fail: | |
20264 | return NULL; | |
20265 | } | |
20266 | ||
20267 | ||
20268 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20269 | PyObject *resultobj; | |
20270 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20271 | int result; | |
20272 | PyObject * obj0 = 0 ; | |
20273 | char *kwnames[] = { | |
20274 | (char *) "self", NULL | |
20275 | }; | |
20276 | ||
20277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20280 | { | |
20281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20282 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20283 | ||
20284 | wxPyEndAllowThreads(__tstate); | |
20285 | if (PyErr_Occurred()) SWIG_fail; | |
20286 | } | |
20287 | resultobj = SWIG_FromInt((int)result); | |
20288 | return resultobj; | |
20289 | fail: | |
20290 | return NULL; | |
20291 | } | |
20292 | ||
20293 | ||
20294 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20295 | PyObject *resultobj; | |
20296 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20297 | bool result; | |
20298 | PyObject * obj0 = 0 ; | |
20299 | char *kwnames[] = { | |
20300 | (char *) "self", NULL | |
20301 | }; | |
20302 | ||
20303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20306 | { | |
20307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20308 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20309 | ||
20310 | wxPyEndAllowThreads(__tstate); | |
20311 | if (PyErr_Occurred()) SWIG_fail; | |
20312 | } | |
20313 | { | |
20314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20315 | } | |
20316 | return resultobj; | |
20317 | fail: | |
20318 | return NULL; | |
20319 | } | |
20320 | ||
20321 | ||
20322 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20323 | PyObject *resultobj; | |
20324 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20325 | bool result; | |
20326 | PyObject * obj0 = 0 ; | |
20327 | char *kwnames[] = { | |
20328 | (char *) "self", NULL | |
20329 | }; | |
20330 | ||
20331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20334 | { | |
20335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20336 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20337 | ||
20338 | wxPyEndAllowThreads(__tstate); | |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
20340 | } | |
20341 | { | |
20342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20343 | } | |
20344 | return resultobj; | |
20345 | fail: | |
20346 | return NULL; | |
20347 | } | |
20348 | ||
20349 | ||
20350 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20351 | PyObject *resultobj; | |
20352 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20353 | bool result; | |
20354 | PyObject * obj0 = 0 ; | |
20355 | char *kwnames[] = { | |
20356 | (char *) "self", NULL | |
20357 | }; | |
20358 | ||
20359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
20360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20362 | { | |
20363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20364 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
20365 | ||
20366 | wxPyEndAllowThreads(__tstate); | |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
20368 | } | |
20369 | { | |
20370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20371 | } | |
20372 | return resultobj; | |
20373 | fail: | |
20374 | return NULL; | |
20375 | } | |
20376 | ||
20377 | ||
20378 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20379 | PyObject *resultobj; | |
20380 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20381 | bool result; | |
20382 | PyObject * obj0 = 0 ; | |
20383 | char *kwnames[] = { | |
20384 | (char *) "self", NULL | |
20385 | }; | |
20386 | ||
20387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
20388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20390 | { | |
20391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20392 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
20393 | ||
20394 | wxPyEndAllowThreads(__tstate); | |
20395 | if (PyErr_Occurred()) SWIG_fail; | |
20396 | } | |
20397 | { | |
20398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20399 | } | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | return NULL; | |
20403 | } | |
20404 | ||
20405 | ||
20406 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20407 | PyObject *resultobj; | |
20408 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20409 | bool result; | |
20410 | PyObject * obj0 = 0 ; | |
20411 | char *kwnames[] = { | |
20412 | (char *) "self", NULL | |
20413 | }; | |
20414 | ||
20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
20416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20418 | { | |
20419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20420 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
20421 | ||
20422 | wxPyEndAllowThreads(__tstate); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
20425 | { | |
20426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20427 | } | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20435 | PyObject *resultobj; | |
20436 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20437 | int arg2 ; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | PyObject * obj1 = 0 ; | |
20440 | char *kwnames[] = { | |
20441 | (char *) "self",(char *) "v", NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
20445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20447 | arg2 = (int) SWIG_AsInt(obj1); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | { | |
20450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20451 | (arg1)->SetFromPage(arg2); | |
20452 | ||
20453 | wxPyEndAllowThreads(__tstate); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | } | |
20456 | Py_INCREF(Py_None); resultobj = Py_None; | |
20457 | return resultobj; | |
20458 | fail: | |
20459 | return NULL; | |
20460 | } | |
20461 | ||
20462 | ||
20463 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20464 | PyObject *resultobj; | |
20465 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20466 | int arg2 ; | |
20467 | PyObject * obj0 = 0 ; | |
20468 | PyObject * obj1 = 0 ; | |
20469 | char *kwnames[] = { | |
20470 | (char *) "self",(char *) "v", NULL | |
20471 | }; | |
20472 | ||
20473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
20474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20476 | arg2 = (int) SWIG_AsInt(obj1); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | { | |
20479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20480 | (arg1)->SetToPage(arg2); | |
20481 | ||
20482 | wxPyEndAllowThreads(__tstate); | |
20483 | if (PyErr_Occurred()) SWIG_fail; | |
20484 | } | |
20485 | Py_INCREF(Py_None); resultobj = Py_None; | |
20486 | return resultobj; | |
20487 | fail: | |
20488 | return NULL; | |
20489 | } | |
20490 | ||
20491 | ||
20492 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20493 | PyObject *resultobj; | |
20494 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20495 | int arg2 ; | |
20496 | PyObject * obj0 = 0 ; | |
20497 | PyObject * obj1 = 0 ; | |
20498 | char *kwnames[] = { | |
20499 | (char *) "self",(char *) "v", NULL | |
20500 | }; | |
20501 | ||
20502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
20503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20505 | arg2 = (int) SWIG_AsInt(obj1); | |
20506 | if (PyErr_Occurred()) SWIG_fail; | |
20507 | { | |
20508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20509 | (arg1)->SetMinPage(arg2); | |
20510 | ||
20511 | wxPyEndAllowThreads(__tstate); | |
20512 | if (PyErr_Occurred()) SWIG_fail; | |
20513 | } | |
20514 | Py_INCREF(Py_None); resultobj = Py_None; | |
20515 | return resultobj; | |
20516 | fail: | |
20517 | return NULL; | |
20518 | } | |
20519 | ||
20520 | ||
20521 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20522 | PyObject *resultobj; | |
20523 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20524 | int arg2 ; | |
20525 | PyObject * obj0 = 0 ; | |
20526 | PyObject * obj1 = 0 ; | |
20527 | char *kwnames[] = { | |
20528 | (char *) "self",(char *) "v", NULL | |
20529 | }; | |
20530 | ||
20531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
20532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20534 | arg2 = (int) SWIG_AsInt(obj1); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | { | |
20537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20538 | (arg1)->SetMaxPage(arg2); | |
20539 | ||
20540 | wxPyEndAllowThreads(__tstate); | |
20541 | if (PyErr_Occurred()) SWIG_fail; | |
20542 | } | |
20543 | Py_INCREF(Py_None); resultobj = Py_None; | |
20544 | return resultobj; | |
20545 | fail: | |
20546 | return NULL; | |
20547 | } | |
20548 | ||
20549 | ||
20550 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20551 | PyObject *resultobj; | |
20552 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20553 | int arg2 ; | |
20554 | PyObject * obj0 = 0 ; | |
20555 | PyObject * obj1 = 0 ; | |
20556 | char *kwnames[] = { | |
20557 | (char *) "self",(char *) "v", NULL | |
20558 | }; | |
20559 | ||
20560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
20561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20563 | arg2 = (int) SWIG_AsInt(obj1); | |
20564 | if (PyErr_Occurred()) SWIG_fail; | |
20565 | { | |
20566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20567 | (arg1)->SetNoCopies(arg2); | |
20568 | ||
20569 | wxPyEndAllowThreads(__tstate); | |
20570 | if (PyErr_Occurred()) SWIG_fail; | |
20571 | } | |
20572 | Py_INCREF(Py_None); resultobj = Py_None; | |
20573 | return resultobj; | |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
20579 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20580 | PyObject *resultobj; | |
20581 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20582 | bool arg2 ; | |
20583 | PyObject * obj0 = 0 ; | |
20584 | PyObject * obj1 = 0 ; | |
20585 | char *kwnames[] = { | |
20586 | (char *) "self",(char *) "flag", NULL | |
20587 | }; | |
20588 | ||
20589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
20590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20592 | arg2 = (bool) SWIG_AsBool(obj1); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | { | |
20595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20596 | (arg1)->SetAllPages(arg2); | |
20597 | ||
20598 | wxPyEndAllowThreads(__tstate); | |
20599 | if (PyErr_Occurred()) SWIG_fail; | |
20600 | } | |
20601 | Py_INCREF(Py_None); resultobj = Py_None; | |
20602 | return resultobj; | |
20603 | fail: | |
20604 | return NULL; | |
20605 | } | |
20606 | ||
20607 | ||
20608 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20609 | PyObject *resultobj; | |
20610 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20611 | bool arg2 ; | |
20612 | PyObject * obj0 = 0 ; | |
20613 | PyObject * obj1 = 0 ; | |
20614 | char *kwnames[] = { | |
20615 | (char *) "self",(char *) "flag", NULL | |
20616 | }; | |
20617 | ||
20618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
20619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20621 | arg2 = (bool) SWIG_AsBool(obj1); | |
20622 | if (PyErr_Occurred()) SWIG_fail; | |
20623 | { | |
20624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20625 | (arg1)->SetSelection(arg2); | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | Py_INCREF(Py_None); resultobj = Py_None; | |
20631 | return resultobj; | |
20632 | fail: | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20638 | PyObject *resultobj; | |
20639 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20640 | bool arg2 ; | |
20641 | PyObject * obj0 = 0 ; | |
20642 | PyObject * obj1 = 0 ; | |
20643 | char *kwnames[] = { | |
20644 | (char *) "self",(char *) "flag", NULL | |
20645 | }; | |
20646 | ||
20647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
20648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20650 | arg2 = (bool) SWIG_AsBool(obj1); | |
20651 | if (PyErr_Occurred()) SWIG_fail; | |
20652 | { | |
20653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20654 | (arg1)->SetCollate(arg2); | |
20655 | ||
20656 | wxPyEndAllowThreads(__tstate); | |
20657 | if (PyErr_Occurred()) SWIG_fail; | |
20658 | } | |
20659 | Py_INCREF(Py_None); resultobj = Py_None; | |
20660 | return resultobj; | |
20661 | fail: | |
20662 | return NULL; | |
20663 | } | |
20664 | ||
20665 | ||
20666 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20667 | PyObject *resultobj; | |
20668 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20669 | bool arg2 ; | |
20670 | PyObject * obj0 = 0 ; | |
20671 | PyObject * obj1 = 0 ; | |
20672 | char *kwnames[] = { | |
20673 | (char *) "self",(char *) "flag", NULL | |
20674 | }; | |
20675 | ||
20676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20679 | arg2 = (bool) SWIG_AsBool(obj1); | |
20680 | if (PyErr_Occurred()) SWIG_fail; | |
20681 | { | |
20682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20683 | (arg1)->SetPrintToFile(arg2); | |
20684 | ||
20685 | wxPyEndAllowThreads(__tstate); | |
20686 | if (PyErr_Occurred()) SWIG_fail; | |
20687 | } | |
20688 | Py_INCREF(Py_None); resultobj = Py_None; | |
20689 | return resultobj; | |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20698 | bool arg2 ; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | PyObject * obj1 = 0 ; | |
20701 | char *kwnames[] = { | |
20702 | (char *) "self",(char *) "flag", NULL | |
20703 | }; | |
20704 | ||
20705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20708 | arg2 = (bool) SWIG_AsBool(obj1); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | { | |
20711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20712 | (arg1)->SetSetupDialog(arg2); | |
20713 | ||
20714 | wxPyEndAllowThreads(__tstate); | |
20715 | if (PyErr_Occurred()) SWIG_fail; | |
20716 | } | |
20717 | Py_INCREF(Py_None); resultobj = Py_None; | |
20718 | return resultobj; | |
20719 | fail: | |
20720 | return NULL; | |
20721 | } | |
20722 | ||
20723 | ||
20724 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20725 | PyObject *resultobj; | |
20726 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20727 | bool arg2 ; | |
20728 | PyObject * obj0 = 0 ; | |
20729 | PyObject * obj1 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "self",(char *) "flag", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20737 | arg2 = (bool) SWIG_AsBool(obj1); | |
20738 | if (PyErr_Occurred()) SWIG_fail; | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | (arg1)->EnablePrintToFile(arg2); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | Py_INCREF(Py_None); resultobj = Py_None; | |
20747 | return resultobj; | |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20754 | PyObject *resultobj; | |
20755 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20756 | bool arg2 ; | |
20757 | PyObject * obj0 = 0 ; | |
20758 | PyObject * obj1 = 0 ; | |
20759 | char *kwnames[] = { | |
20760 | (char *) "self",(char *) "flag", NULL | |
20761 | }; | |
20762 | ||
20763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
20764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20766 | arg2 = (bool) SWIG_AsBool(obj1); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | { | |
20769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20770 | (arg1)->EnableSelection(arg2); | |
20771 | ||
20772 | wxPyEndAllowThreads(__tstate); | |
20773 | if (PyErr_Occurred()) SWIG_fail; | |
20774 | } | |
20775 | Py_INCREF(Py_None); resultobj = Py_None; | |
20776 | return resultobj; | |
20777 | fail: | |
20778 | return NULL; | |
20779 | } | |
20780 | ||
20781 | ||
20782 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20783 | PyObject *resultobj; | |
20784 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20785 | bool arg2 ; | |
20786 | PyObject * obj0 = 0 ; | |
20787 | PyObject * obj1 = 0 ; | |
20788 | char *kwnames[] = { | |
20789 | (char *) "self",(char *) "flag", NULL | |
20790 | }; | |
20791 | ||
20792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
20793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20795 | arg2 = (bool) SWIG_AsBool(obj1); | |
20796 | if (PyErr_Occurred()) SWIG_fail; | |
20797 | { | |
20798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20799 | (arg1)->EnablePageNumbers(arg2); | |
20800 | ||
20801 | wxPyEndAllowThreads(__tstate); | |
20802 | if (PyErr_Occurred()) SWIG_fail; | |
20803 | } | |
20804 | Py_INCREF(Py_None); resultobj = Py_None; | |
20805 | return resultobj; | |
20806 | fail: | |
20807 | return NULL; | |
20808 | } | |
20809 | ||
20810 | ||
20811 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20812 | PyObject *resultobj; | |
20813 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20814 | bool arg2 ; | |
20815 | PyObject * obj0 = 0 ; | |
20816 | PyObject * obj1 = 0 ; | |
20817 | char *kwnames[] = { | |
20818 | (char *) "self",(char *) "flag", NULL | |
20819 | }; | |
20820 | ||
20821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
20822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20824 | arg2 = (bool) SWIG_AsBool(obj1); | |
20825 | if (PyErr_Occurred()) SWIG_fail; | |
20826 | { | |
20827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20828 | (arg1)->EnableHelp(arg2); | |
20829 | ||
20830 | wxPyEndAllowThreads(__tstate); | |
20831 | if (PyErr_Occurred()) SWIG_fail; | |
20832 | } | |
20833 | Py_INCREF(Py_None); resultobj = Py_None; | |
20834 | return resultobj; | |
20835 | fail: | |
20836 | return NULL; | |
20837 | } | |
20838 | ||
20839 | ||
20840 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20841 | PyObject *resultobj; | |
20842 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20843 | bool result; | |
20844 | PyObject * obj0 = 0 ; | |
20845 | char *kwnames[] = { | |
20846 | (char *) "self", NULL | |
20847 | }; | |
20848 | ||
20849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
20850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20852 | { | |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | { | |
20860 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20861 | } | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20869 | PyObject *resultobj; | |
20870 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20871 | bool result; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | char *kwnames[] = { | |
20874 | (char *) "self", NULL | |
20875 | }; | |
20876 | ||
20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
20878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20880 | { | |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20882 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
20883 | ||
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
20887 | { | |
20888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20889 | } | |
20890 | return resultobj; | |
20891 | fail: | |
20892 | return NULL; | |
20893 | } | |
20894 | ||
20895 | ||
20896 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20897 | PyObject *resultobj; | |
20898 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20899 | bool result; | |
20900 | PyObject * obj0 = 0 ; | |
20901 | char *kwnames[] = { | |
20902 | (char *) "self", NULL | |
20903 | }; | |
20904 | ||
20905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
20906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20908 | { | |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | { | |
20916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20917 | } | |
20918 | return resultobj; | |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20925 | PyObject *resultobj; | |
20926 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20927 | bool result; | |
20928 | PyObject * obj0 = 0 ; | |
20929 | char *kwnames[] = { | |
20930 | (char *) "self", NULL | |
20931 | }; | |
20932 | ||
20933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
20934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20936 | { | |
20937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20938 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
20939 | ||
20940 | wxPyEndAllowThreads(__tstate); | |
20941 | if (PyErr_Occurred()) SWIG_fail; | |
20942 | } | |
20943 | { | |
20944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20945 | } | |
20946 | return resultobj; | |
20947 | fail: | |
20948 | return NULL; | |
20949 | } | |
20950 | ||
20951 | ||
20952 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20953 | PyObject *resultobj; | |
20954 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20955 | bool result; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | char *kwnames[] = { | |
20958 | (char *) "self", NULL | |
20959 | }; | |
20960 | ||
20961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
20962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20964 | { | |
20965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20966 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
20967 | ||
20968 | wxPyEndAllowThreads(__tstate); | |
20969 | if (PyErr_Occurred()) SWIG_fail; | |
20970 | } | |
20971 | { | |
20972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20973 | } | |
20974 | return resultobj; | |
20975 | fail: | |
20976 | return NULL; | |
20977 | } | |
20978 | ||
20979 | ||
20980 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20981 | PyObject *resultobj; | |
20982 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20983 | wxPrintData *result; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
20990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | { | |
20995 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
20996 | result = (wxPrintData *) &_result_ref; | |
20997 | } | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
21002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
21003 | return resultobj; | |
21004 | fail: | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj; | |
21011 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21012 | wxPrintData *arg2 = 0 ; | |
21013 | PyObject * obj0 = 0 ; | |
21014 | PyObject * obj1 = 0 ; | |
21015 | char *kwnames[] = { | |
21016 | (char *) "self",(char *) "printData", NULL | |
21017 | }; | |
21018 | ||
21019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
21020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
21023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21024 | SWIG_fail; | |
21025 | if (arg2 == NULL) { | |
21026 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21027 | SWIG_fail; | |
21028 | } | |
21029 | { | |
21030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21031 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21032 | ||
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
21036 | Py_INCREF(Py_None); resultobj = Py_None; | |
21037 | return resultobj; | |
21038 | fail: | |
21039 | return NULL; | |
21040 | } | |
21041 | ||
21042 | ||
21043 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
21044 | PyObject *obj; | |
21045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21046 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
21047 | Py_INCREF(obj); | |
21048 | return Py_BuildValue((char *)""); | |
21049 | } | |
21050 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21051 | PyObject *resultobj; | |
21052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21053 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
21054 | wxPrintDialog *result; | |
21055 | PyObject * obj0 = 0 ; | |
21056 | PyObject * obj1 = 0 ; | |
21057 | char *kwnames[] = { | |
21058 | (char *) "parent",(char *) "data", NULL | |
21059 | }; | |
21060 | ||
21061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21064 | if (obj1) { | |
21065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
21066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21067 | } | |
21068 | { | |
0439c23b | 21069 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21071 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
21072 | ||
21073 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21074 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21075 | } |
21076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
21077 | return resultobj; | |
21078 | fail: | |
21079 | return NULL; | |
21080 | } | |
21081 | ||
21082 | ||
21083 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21084 | PyObject *resultobj; | |
21085 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21086 | wxPrintDialogData *result; | |
21087 | PyObject * obj0 = 0 ; | |
21088 | char *kwnames[] = { | |
21089 | (char *) "self", NULL | |
21090 | }; | |
21091 | ||
21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21095 | { | |
21096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21097 | { | |
21098 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21099 | result = (wxPrintDialogData *) &_result_ref; | |
21100 | } | |
21101 | ||
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21115 | wxDC *result; | |
21116 | PyObject * obj0 = 0 ; | |
21117 | char *kwnames[] = { | |
21118 | (char *) "self", NULL | |
21119 | }; | |
21120 | ||
21121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
21122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21124 | { | |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | result = (wxDC *)(arg1)->GetPrintDC(); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | { | |
21132 | resultobj = wxPyMake_wxObject(result); | |
21133 | } | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | return NULL; | |
21137 | } | |
21138 | ||
21139 | ||
21140 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21141 | PyObject *resultobj; | |
21142 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21143 | int result; | |
21144 | PyObject * obj0 = 0 ; | |
21145 | char *kwnames[] = { | |
21146 | (char *) "self", NULL | |
21147 | }; | |
21148 | ||
21149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
21150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21152 | { | |
21153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21154 | result = (int)(arg1)->ShowModal(); | |
21155 | ||
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
21159 | resultobj = SWIG_FromInt((int)result); | |
21160 | return resultobj; | |
21161 | fail: | |
21162 | return NULL; | |
21163 | } | |
21164 | ||
21165 | ||
21166 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
21167 | PyObject *obj; | |
21168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21169 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
21170 | Py_INCREF(obj); | |
21171 | return Py_BuildValue((char *)""); | |
21172 | } | |
21173 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21174 | PyObject *resultobj; | |
21175 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
21176 | wxPrinter *result; | |
21177 | PyObject * obj0 = 0 ; | |
21178 | char *kwnames[] = { | |
21179 | (char *) "data", NULL | |
21180 | }; | |
21181 | ||
21182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
21183 | if (obj0) { | |
21184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21186 | } | |
21187 | { | |
0439c23b | 21188 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21190 | result = (wxPrinter *)new wxPrinter(arg1); | |
21191 | ||
21192 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21193 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21194 | } |
21195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
21196 | return resultobj; | |
21197 | fail: | |
21198 | return NULL; | |
21199 | } | |
21200 | ||
21201 | ||
21202 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21203 | PyObject *resultobj; | |
21204 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21205 | PyObject * obj0 = 0 ; | |
21206 | char *kwnames[] = { | |
21207 | (char *) "self", NULL | |
21208 | }; | |
21209 | ||
21210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
21211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21213 | { | |
21214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21215 | delete arg1; | |
21216 | ||
21217 | wxPyEndAllowThreads(__tstate); | |
21218 | if (PyErr_Occurred()) SWIG_fail; | |
21219 | } | |
21220 | Py_INCREF(Py_None); resultobj = Py_None; | |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
21227 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21228 | PyObject *resultobj; | |
21229 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21230 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21231 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21232 | PyObject * obj0 = 0 ; | |
21233 | PyObject * obj1 = 0 ; | |
21234 | PyObject * obj2 = 0 ; | |
21235 | char *kwnames[] = { | |
21236 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
21237 | }; | |
21238 | ||
21239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21242 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21244 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21246 | { | |
21247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21248 | (arg1)->CreateAbortWindow(arg2,arg3); | |
21249 | ||
21250 | wxPyEndAllowThreads(__tstate); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | } | |
21253 | Py_INCREF(Py_None); resultobj = Py_None; | |
21254 | return resultobj; | |
21255 | fail: | |
21256 | return NULL; | |
21257 | } | |
21258 | ||
21259 | ||
21260 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21261 | PyObject *resultobj; | |
21262 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21263 | wxPrintDialogData *result; | |
21264 | PyObject * obj0 = 0 ; | |
21265 | char *kwnames[] = { | |
21266 | (char *) "self", NULL | |
21267 | }; | |
21268 | ||
21269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21272 | { | |
21273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21274 | { | |
21275 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21276 | result = (wxPrintDialogData *) &_result_ref; | |
21277 | } | |
21278 | ||
21279 | wxPyEndAllowThreads(__tstate); | |
21280 | if (PyErr_Occurred()) SWIG_fail; | |
21281 | } | |
21282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21283 | return resultobj; | |
21284 | fail: | |
21285 | return NULL; | |
21286 | } | |
21287 | ||
21288 | ||
21289 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21290 | PyObject *resultobj; | |
21291 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21292 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21293 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21294 | int arg4 = (int) True ; | |
21295 | bool result; | |
21296 | PyObject * obj0 = 0 ; | |
21297 | PyObject * obj1 = 0 ; | |
21298 | PyObject * obj2 = 0 ; | |
21299 | PyObject * obj3 = 0 ; | |
21300 | char *kwnames[] = { | |
21301 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21302 | }; | |
21303 | ||
21304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21309 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21311 | if (obj3) { | |
21312 | arg4 = (int) SWIG_AsInt(obj3); | |
21313 | if (PyErr_Occurred()) SWIG_fail; | |
21314 | } | |
21315 | { | |
21316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21317 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21318 | ||
21319 | wxPyEndAllowThreads(__tstate); | |
21320 | if (PyErr_Occurred()) SWIG_fail; | |
21321 | } | |
21322 | { | |
21323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21324 | } | |
21325 | return resultobj; | |
21326 | fail: | |
21327 | return NULL; | |
21328 | } | |
21329 | ||
21330 | ||
21331 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21332 | PyObject *resultobj; | |
21333 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21334 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21335 | wxDC *result; | |
21336 | PyObject * obj0 = 0 ; | |
21337 | PyObject * obj1 = 0 ; | |
21338 | char *kwnames[] = { | |
21339 | (char *) "self",(char *) "parent", NULL | |
21340 | }; | |
21341 | ||
21342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21347 | { | |
21348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21349 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | { | |
21355 | resultobj = wxPyMake_wxObject(result); | |
21356 | } | |
21357 | return resultobj; | |
21358 | fail: | |
21359 | return NULL; | |
21360 | } | |
21361 | ||
21362 | ||
21363 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21364 | PyObject *resultobj; | |
21365 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21367 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21368 | wxString *arg4 = 0 ; | |
21369 | bool temp4 = False ; | |
21370 | PyObject * obj0 = 0 ; | |
21371 | PyObject * obj1 = 0 ; | |
21372 | PyObject * obj2 = 0 ; | |
21373 | PyObject * obj3 = 0 ; | |
21374 | char *kwnames[] = { | |
21375 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
21376 | }; | |
21377 | ||
21378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21381 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21383 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21385 | { | |
21386 | arg4 = wxString_in_helper(obj3); | |
21387 | if (arg4 == NULL) SWIG_fail; | |
21388 | temp4 = True; | |
21389 | } | |
21390 | { | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | Py_INCREF(Py_None); resultobj = Py_None; | |
21398 | { | |
21399 | if (temp4) | |
21400 | delete arg4; | |
21401 | } | |
21402 | return resultobj; | |
21403 | fail: | |
21404 | { | |
21405 | if (temp4) | |
21406 | delete arg4; | |
21407 | } | |
21408 | return NULL; | |
21409 | } | |
21410 | ||
21411 | ||
21412 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21413 | PyObject *resultobj; | |
21414 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21415 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21416 | bool result; | |
21417 | PyObject * obj0 = 0 ; | |
21418 | PyObject * obj1 = 0 ; | |
21419 | char *kwnames[] = { | |
21420 | (char *) "self",(char *) "parent", NULL | |
21421 | }; | |
21422 | ||
21423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
21424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21428 | { | |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | result = (bool)(arg1)->Setup(arg2); | |
21431 | ||
21432 | wxPyEndAllowThreads(__tstate); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
21435 | { | |
21436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21437 | } | |
21438 | return resultobj; | |
21439 | fail: | |
21440 | return NULL; | |
21441 | } | |
21442 | ||
21443 | ||
21444 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21445 | PyObject *resultobj; | |
21446 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21447 | bool result; | |
21448 | PyObject * obj0 = 0 ; | |
21449 | char *kwnames[] = { | |
21450 | (char *) "self", NULL | |
21451 | }; | |
21452 | ||
21453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
21454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21456 | { | |
21457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21458 | result = (bool)(arg1)->GetAbort(); | |
21459 | ||
21460 | wxPyEndAllowThreads(__tstate); | |
21461 | if (PyErr_Occurred()) SWIG_fail; | |
21462 | } | |
21463 | { | |
21464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21465 | } | |
21466 | return resultobj; | |
21467 | fail: | |
21468 | return NULL; | |
21469 | } | |
21470 | ||
21471 | ||
21472 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21473 | PyObject *resultobj; | |
21474 | int result; | |
21475 | char *kwnames[] = { | |
21476 | NULL | |
21477 | }; | |
21478 | ||
21479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
21480 | { | |
21481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21482 | result = (int)wxPrinter::GetLastError(); | |
21483 | ||
21484 | wxPyEndAllowThreads(__tstate); | |
21485 | if (PyErr_Occurred()) SWIG_fail; | |
21486 | } | |
21487 | resultobj = SWIG_FromInt((int)result); | |
21488 | return resultobj; | |
21489 | fail: | |
21490 | return NULL; | |
21491 | } | |
21492 | ||
21493 | ||
21494 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
21495 | PyObject *obj; | |
21496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21497 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
21498 | Py_INCREF(obj); | |
21499 | return Py_BuildValue((char *)""); | |
21500 | } | |
21501 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21502 | PyObject *resultobj; | |
21503 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
21504 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21505 | wxPyPrintout *result; | |
21506 | bool temp1 = False ; | |
21507 | PyObject * obj0 = 0 ; | |
21508 | char *kwnames[] = { | |
21509 | (char *) "title", NULL | |
21510 | }; | |
21511 | ||
21512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
21513 | if (obj0) { | |
21514 | { | |
21515 | arg1 = wxString_in_helper(obj0); | |
21516 | if (arg1 == NULL) SWIG_fail; | |
21517 | temp1 = True; | |
21518 | } | |
21519 | } | |
21520 | { | |
0439c23b | 21521 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21523 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
21524 | ||
21525 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21526 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21527 | } |
21528 | { | |
21529 | resultobj = wxPyMake_wxObject(result); | |
21530 | } | |
21531 | { | |
21532 | if (temp1) | |
21533 | delete arg1; | |
21534 | } | |
21535 | return resultobj; | |
21536 | fail: | |
21537 | { | |
21538 | if (temp1) | |
21539 | delete arg1; | |
21540 | } | |
21541 | return NULL; | |
21542 | } | |
21543 | ||
21544 | ||
21545 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21546 | PyObject *resultobj; | |
21547 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21548 | PyObject *arg2 = (PyObject *) 0 ; | |
21549 | PyObject *arg3 = (PyObject *) 0 ; | |
21550 | PyObject * obj0 = 0 ; | |
21551 | PyObject * obj1 = 0 ; | |
21552 | PyObject * obj2 = 0 ; | |
21553 | char *kwnames[] = { | |
21554 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21555 | }; | |
21556 | ||
21557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21560 | arg2 = obj1; | |
21561 | arg3 = obj2; | |
21562 | { | |
21563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21564 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21565 | ||
21566 | wxPyEndAllowThreads(__tstate); | |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
21568 | } | |
21569 | Py_INCREF(Py_None); resultobj = Py_None; | |
21570 | return resultobj; | |
21571 | fail: | |
21572 | return NULL; | |
21573 | } | |
21574 | ||
21575 | ||
21576 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21577 | PyObject *resultobj; | |
21578 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21579 | wxString result; | |
21580 | PyObject * obj0 = 0 ; | |
21581 | char *kwnames[] = { | |
21582 | (char *) "self", NULL | |
21583 | }; | |
21584 | ||
21585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
21586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21588 | { | |
21589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21590 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
21591 | ||
21592 | wxPyEndAllowThreads(__tstate); | |
21593 | if (PyErr_Occurred()) SWIG_fail; | |
21594 | } | |
21595 | { | |
21596 | #if wxUSE_UNICODE | |
21597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21598 | #else | |
21599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21600 | #endif | |
21601 | } | |
21602 | return resultobj; | |
21603 | fail: | |
21604 | return NULL; | |
21605 | } | |
21606 | ||
21607 | ||
21608 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21609 | PyObject *resultobj; | |
21610 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21611 | wxDC *result; | |
21612 | PyObject * obj0 = 0 ; | |
21613 | char *kwnames[] = { | |
21614 | (char *) "self", NULL | |
21615 | }; | |
21616 | ||
21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
21618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21620 | { | |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21622 | result = (wxDC *)(arg1)->GetDC(); | |
21623 | ||
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
21627 | { | |
21628 | resultobj = wxPyMake_wxObject(result); | |
21629 | } | |
21630 | return resultobj; | |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
21636 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21637 | PyObject *resultobj; | |
21638 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21639 | wxDC *arg2 = (wxDC *) 0 ; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | PyObject * obj1 = 0 ; | |
21642 | char *kwnames[] = { | |
21643 | (char *) "self",(char *) "dc", NULL | |
21644 | }; | |
21645 | ||
21646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
21647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21651 | { | |
21652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21653 | (arg1)->SetDC(arg2); | |
21654 | ||
21655 | wxPyEndAllowThreads(__tstate); | |
21656 | if (PyErr_Occurred()) SWIG_fail; | |
21657 | } | |
21658 | Py_INCREF(Py_None); resultobj = Py_None; | |
21659 | return resultobj; | |
21660 | fail: | |
21661 | return NULL; | |
21662 | } | |
21663 | ||
21664 | ||
21665 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21666 | PyObject *resultobj; | |
21667 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21668 | int arg2 ; | |
21669 | int arg3 ; | |
21670 | PyObject * obj0 = 0 ; | |
21671 | PyObject * obj1 = 0 ; | |
21672 | PyObject * obj2 = 0 ; | |
21673 | char *kwnames[] = { | |
21674 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21675 | }; | |
21676 | ||
21677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21680 | arg2 = (int) SWIG_AsInt(obj1); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | arg3 = (int) SWIG_AsInt(obj2); | |
21683 | if (PyErr_Occurred()) SWIG_fail; | |
21684 | { | |
21685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21686 | (arg1)->SetPageSizePixels(arg2,arg3); | |
21687 | ||
21688 | wxPyEndAllowThreads(__tstate); | |
21689 | if (PyErr_Occurred()) SWIG_fail; | |
21690 | } | |
21691 | Py_INCREF(Py_None); resultobj = Py_None; | |
21692 | return resultobj; | |
21693 | fail: | |
21694 | return NULL; | |
21695 | } | |
21696 | ||
21697 | ||
21698 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21699 | PyObject *resultobj; | |
21700 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21701 | int *arg2 = (int *) 0 ; | |
21702 | int *arg3 = (int *) 0 ; | |
21703 | int temp2 ; | |
21704 | int temp3 ; | |
21705 | PyObject * obj0 = 0 ; | |
21706 | char *kwnames[] = { | |
21707 | (char *) "self", NULL | |
21708 | }; | |
21709 | ||
21710 | arg2 = &temp2; | |
21711 | arg3 = &temp3; | |
21712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
21713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21715 | { | |
21716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21717 | (arg1)->GetPageSizePixels(arg2,arg3); | |
21718 | ||
21719 | wxPyEndAllowThreads(__tstate); | |
21720 | if (PyErr_Occurred()) SWIG_fail; | |
21721 | } | |
21722 | Py_INCREF(Py_None); resultobj = Py_None; | |
21723 | { | |
21724 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21725 | resultobj = t_output_helper(resultobj,o); | |
21726 | } | |
21727 | { | |
21728 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21729 | resultobj = t_output_helper(resultobj,o); | |
21730 | } | |
21731 | return resultobj; | |
21732 | fail: | |
21733 | return NULL; | |
21734 | } | |
21735 | ||
21736 | ||
21737 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21738 | PyObject *resultobj; | |
21739 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21740 | int arg2 ; | |
21741 | int arg3 ; | |
21742 | PyObject * obj0 = 0 ; | |
21743 | PyObject * obj1 = 0 ; | |
21744 | PyObject * obj2 = 0 ; | |
21745 | char *kwnames[] = { | |
21746 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21747 | }; | |
21748 | ||
21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21752 | arg2 = (int) SWIG_AsInt(obj1); | |
21753 | if (PyErr_Occurred()) SWIG_fail; | |
21754 | arg3 = (int) SWIG_AsInt(obj2); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | { | |
21757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21758 | (arg1)->SetPageSizeMM(arg2,arg3); | |
21759 | ||
21760 | wxPyEndAllowThreads(__tstate); | |
21761 | if (PyErr_Occurred()) SWIG_fail; | |
21762 | } | |
21763 | Py_INCREF(Py_None); resultobj = Py_None; | |
21764 | return resultobj; | |
21765 | fail: | |
21766 | return NULL; | |
21767 | } | |
21768 | ||
21769 | ||
21770 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21771 | PyObject *resultobj; | |
21772 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21773 | int *arg2 = (int *) 0 ; | |
21774 | int *arg3 = (int *) 0 ; | |
21775 | int temp2 ; | |
21776 | int temp3 ; | |
21777 | PyObject * obj0 = 0 ; | |
21778 | char *kwnames[] = { | |
21779 | (char *) "self", NULL | |
21780 | }; | |
21781 | ||
21782 | arg2 = &temp2; | |
21783 | arg3 = &temp3; | |
21784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
21785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21787 | { | |
21788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21789 | (arg1)->GetPageSizeMM(arg2,arg3); | |
21790 | ||
21791 | wxPyEndAllowThreads(__tstate); | |
21792 | if (PyErr_Occurred()) SWIG_fail; | |
21793 | } | |
21794 | Py_INCREF(Py_None); resultobj = Py_None; | |
21795 | { | |
21796 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21797 | resultobj = t_output_helper(resultobj,o); | |
21798 | } | |
21799 | { | |
21800 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21801 | resultobj = t_output_helper(resultobj,o); | |
21802 | } | |
21803 | return resultobj; | |
21804 | fail: | |
21805 | return NULL; | |
21806 | } | |
21807 | ||
21808 | ||
21809 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21810 | PyObject *resultobj; | |
21811 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21812 | int arg2 ; | |
21813 | int arg3 ; | |
21814 | PyObject * obj0 = 0 ; | |
21815 | PyObject * obj1 = 0 ; | |
21816 | PyObject * obj2 = 0 ; | |
21817 | char *kwnames[] = { | |
21818 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21819 | }; | |
21820 | ||
21821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21824 | arg2 = (int) SWIG_AsInt(obj1); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
21826 | arg3 = (int) SWIG_AsInt(obj2); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | { | |
21829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21830 | (arg1)->SetPPIScreen(arg2,arg3); | |
21831 | ||
21832 | wxPyEndAllowThreads(__tstate); | |
21833 | if (PyErr_Occurred()) SWIG_fail; | |
21834 | } | |
21835 | Py_INCREF(Py_None); resultobj = Py_None; | |
21836 | return resultobj; | |
21837 | fail: | |
21838 | return NULL; | |
21839 | } | |
21840 | ||
21841 | ||
21842 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21843 | PyObject *resultobj; | |
21844 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21845 | int *arg2 = (int *) 0 ; | |
21846 | int *arg3 = (int *) 0 ; | |
21847 | int temp2 ; | |
21848 | int temp3 ; | |
21849 | PyObject * obj0 = 0 ; | |
21850 | char *kwnames[] = { | |
21851 | (char *) "self", NULL | |
21852 | }; | |
21853 | ||
21854 | arg2 = &temp2; | |
21855 | arg3 = &temp3; | |
21856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
21857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21859 | { | |
21860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21861 | (arg1)->GetPPIScreen(arg2,arg3); | |
21862 | ||
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
21866 | Py_INCREF(Py_None); resultobj = Py_None; | |
21867 | { | |
21868 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21869 | resultobj = t_output_helper(resultobj,o); | |
21870 | } | |
21871 | { | |
21872 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21873 | resultobj = t_output_helper(resultobj,o); | |
21874 | } | |
21875 | return resultobj; | |
21876 | fail: | |
21877 | return NULL; | |
21878 | } | |
21879 | ||
21880 | ||
21881 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21882 | PyObject *resultobj; | |
21883 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21884 | int arg2 ; | |
21885 | int arg3 ; | |
21886 | PyObject * obj0 = 0 ; | |
21887 | PyObject * obj1 = 0 ; | |
21888 | PyObject * obj2 = 0 ; | |
21889 | char *kwnames[] = { | |
21890 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21891 | }; | |
21892 | ||
21893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21896 | arg2 = (int) SWIG_AsInt(obj1); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | arg3 = (int) SWIG_AsInt(obj2); | |
21899 | if (PyErr_Occurred()) SWIG_fail; | |
21900 | { | |
21901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21902 | (arg1)->SetPPIPrinter(arg2,arg3); | |
21903 | ||
21904 | wxPyEndAllowThreads(__tstate); | |
21905 | if (PyErr_Occurred()) SWIG_fail; | |
21906 | } | |
21907 | Py_INCREF(Py_None); resultobj = Py_None; | |
21908 | return resultobj; | |
21909 | fail: | |
21910 | return NULL; | |
21911 | } | |
21912 | ||
21913 | ||
21914 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21915 | PyObject *resultobj; | |
21916 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21917 | int *arg2 = (int *) 0 ; | |
21918 | int *arg3 = (int *) 0 ; | |
21919 | int temp2 ; | |
21920 | int temp3 ; | |
21921 | PyObject * obj0 = 0 ; | |
21922 | char *kwnames[] = { | |
21923 | (char *) "self", NULL | |
21924 | }; | |
21925 | ||
21926 | arg2 = &temp2; | |
21927 | arg3 = &temp3; | |
21928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
21929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21931 | { | |
21932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21933 | (arg1)->GetPPIPrinter(arg2,arg3); | |
21934 | ||
21935 | wxPyEndAllowThreads(__tstate); | |
21936 | if (PyErr_Occurred()) SWIG_fail; | |
21937 | } | |
21938 | Py_INCREF(Py_None); resultobj = Py_None; | |
21939 | { | |
21940 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21941 | resultobj = t_output_helper(resultobj,o); | |
21942 | } | |
21943 | { | |
21944 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21945 | resultobj = t_output_helper(resultobj,o); | |
21946 | } | |
21947 | return resultobj; | |
21948 | fail: | |
21949 | return NULL; | |
21950 | } | |
21951 | ||
21952 | ||
21953 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21954 | PyObject *resultobj; | |
21955 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21956 | bool result; | |
21957 | PyObject * obj0 = 0 ; | |
21958 | char *kwnames[] = { | |
21959 | (char *) "self", NULL | |
21960 | }; | |
21961 | ||
21962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
21963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21965 | { | |
21966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21967 | result = (bool)(arg1)->IsPreview(); | |
21968 | ||
21969 | wxPyEndAllowThreads(__tstate); | |
21970 | if (PyErr_Occurred()) SWIG_fail; | |
21971 | } | |
21972 | { | |
21973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21974 | } | |
21975 | return resultobj; | |
21976 | fail: | |
21977 | return NULL; | |
21978 | } | |
21979 | ||
21980 | ||
21981 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21982 | PyObject *resultobj; | |
21983 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21984 | bool arg2 ; | |
21985 | PyObject * obj0 = 0 ; | |
21986 | PyObject * obj1 = 0 ; | |
21987 | char *kwnames[] = { | |
21988 | (char *) "self",(char *) "p", NULL | |
21989 | }; | |
21990 | ||
21991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
21992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21994 | arg2 = (bool) SWIG_AsBool(obj1); | |
21995 | if (PyErr_Occurred()) SWIG_fail; | |
21996 | { | |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | (arg1)->SetIsPreview(arg2); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | Py_INCREF(Py_None); resultobj = Py_None; | |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
22010 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22011 | PyObject *resultobj; | |
22012 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22013 | int arg2 ; | |
22014 | int arg3 ; | |
22015 | bool result; | |
22016 | PyObject * obj0 = 0 ; | |
22017 | PyObject * obj1 = 0 ; | |
22018 | PyObject * obj2 = 0 ; | |
22019 | char *kwnames[] = { | |
22020 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
22021 | }; | |
22022 | ||
22023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22026 | arg2 = (int) SWIG_AsInt(obj1); | |
22027 | if (PyErr_Occurred()) SWIG_fail; | |
22028 | arg3 = (int) SWIG_AsInt(obj2); | |
22029 | if (PyErr_Occurred()) SWIG_fail; | |
22030 | { | |
22031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22032 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
22033 | ||
22034 | wxPyEndAllowThreads(__tstate); | |
22035 | if (PyErr_Occurred()) SWIG_fail; | |
22036 | } | |
22037 | { | |
22038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22039 | } | |
22040 | return resultobj; | |
22041 | fail: | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
22046 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22047 | PyObject *resultobj; | |
22048 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22049 | PyObject * obj0 = 0 ; | |
22050 | char *kwnames[] = { | |
22051 | (char *) "self", NULL | |
22052 | }; | |
22053 | ||
22054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
22055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22057 | { | |
22058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22059 | (arg1)->base_OnEndDocument(); | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
22064 | Py_INCREF(Py_None); resultobj = Py_None; | |
22065 | return resultobj; | |
22066 | fail: | |
22067 | return NULL; | |
22068 | } | |
22069 | ||
22070 | ||
22071 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22072 | PyObject *resultobj; | |
22073 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22074 | PyObject * obj0 = 0 ; | |
22075 | char *kwnames[] = { | |
22076 | (char *) "self", NULL | |
22077 | }; | |
22078 | ||
22079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
22080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22082 | { | |
22083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22084 | (arg1)->base_OnBeginPrinting(); | |
22085 | ||
22086 | wxPyEndAllowThreads(__tstate); | |
22087 | if (PyErr_Occurred()) SWIG_fail; | |
22088 | } | |
22089 | Py_INCREF(Py_None); resultobj = Py_None; | |
22090 | return resultobj; | |
22091 | fail: | |
22092 | return NULL; | |
22093 | } | |
22094 | ||
22095 | ||
22096 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22097 | PyObject *resultobj; | |
22098 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22099 | PyObject * obj0 = 0 ; | |
22100 | char *kwnames[] = { | |
22101 | (char *) "self", NULL | |
22102 | }; | |
22103 | ||
22104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
22105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22107 | { | |
22108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22109 | (arg1)->base_OnEndPrinting(); | |
22110 | ||
22111 | wxPyEndAllowThreads(__tstate); | |
22112 | if (PyErr_Occurred()) SWIG_fail; | |
22113 | } | |
22114 | Py_INCREF(Py_None); resultobj = Py_None; | |
22115 | return resultobj; | |
22116 | fail: | |
22117 | return NULL; | |
22118 | } | |
22119 | ||
22120 | ||
22121 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22122 | PyObject *resultobj; | |
22123 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22124 | PyObject * obj0 = 0 ; | |
22125 | char *kwnames[] = { | |
22126 | (char *) "self", NULL | |
22127 | }; | |
22128 | ||
22129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
22130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22132 | { | |
22133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22134 | (arg1)->base_OnPreparePrinting(); | |
22135 | ||
22136 | wxPyEndAllowThreads(__tstate); | |
22137 | if (PyErr_Occurred()) SWIG_fail; | |
22138 | } | |
22139 | Py_INCREF(Py_None); resultobj = Py_None; | |
22140 | return resultobj; | |
22141 | fail: | |
22142 | return NULL; | |
22143 | } | |
22144 | ||
22145 | ||
22146 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22147 | PyObject *resultobj; | |
22148 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22149 | int arg2 ; | |
22150 | bool result; | |
22151 | PyObject * obj0 = 0 ; | |
22152 | PyObject * obj1 = 0 ; | |
22153 | char *kwnames[] = { | |
22154 | (char *) "self",(char *) "page", NULL | |
22155 | }; | |
22156 | ||
22157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
22158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22160 | arg2 = (int) SWIG_AsInt(obj1); | |
22161 | if (PyErr_Occurred()) SWIG_fail; | |
22162 | { | |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22164 | result = (bool)(arg1)->base_HasPage(arg2); | |
22165 | ||
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | { | |
22170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22171 | } | |
22172 | return resultobj; | |
22173 | fail: | |
22174 | return NULL; | |
22175 | } | |
22176 | ||
22177 | ||
22178 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22179 | PyObject *resultobj; | |
22180 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22181 | int *arg2 = (int *) 0 ; | |
22182 | int *arg3 = (int *) 0 ; | |
22183 | int *arg4 = (int *) 0 ; | |
22184 | int *arg5 = (int *) 0 ; | |
22185 | int temp2 ; | |
22186 | int temp3 ; | |
22187 | int temp4 ; | |
22188 | int temp5 ; | |
22189 | PyObject * obj0 = 0 ; | |
22190 | char *kwnames[] = { | |
22191 | (char *) "self", NULL | |
22192 | }; | |
22193 | ||
22194 | arg2 = &temp2; | |
22195 | arg3 = &temp3; | |
22196 | arg4 = &temp4; | |
22197 | arg5 = &temp5; | |
22198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
22199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22201 | { | |
22202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22203 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
22204 | ||
22205 | wxPyEndAllowThreads(__tstate); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
22208 | Py_INCREF(Py_None); resultobj = Py_None; | |
22209 | { | |
22210 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22211 | resultobj = t_output_helper(resultobj,o); | |
22212 | } | |
22213 | { | |
22214 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22215 | resultobj = t_output_helper(resultobj,o); | |
22216 | } | |
22217 | { | |
22218 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22219 | resultobj = t_output_helper(resultobj,o); | |
22220 | } | |
22221 | { | |
22222 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22223 | resultobj = t_output_helper(resultobj,o); | |
22224 | } | |
22225 | return resultobj; | |
22226 | fail: | |
22227 | return NULL; | |
22228 | } | |
22229 | ||
22230 | ||
22231 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
22232 | PyObject *obj; | |
22233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22234 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
22235 | Py_INCREF(obj); | |
22236 | return Py_BuildValue((char *)""); | |
22237 | } | |
22238 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22239 | PyObject *resultobj; | |
22240 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22241 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22242 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22243 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22244 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22245 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22246 | long arg5 = (long) 0 ; | |
22247 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
22248 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22249 | wxPreviewCanvas *result; | |
22250 | wxPoint temp3 ; | |
22251 | wxSize temp4 ; | |
22252 | bool temp6 = False ; | |
22253 | PyObject * obj0 = 0 ; | |
22254 | PyObject * obj1 = 0 ; | |
22255 | PyObject * obj2 = 0 ; | |
22256 | PyObject * obj3 = 0 ; | |
22257 | PyObject * obj4 = 0 ; | |
22258 | PyObject * obj5 = 0 ; | |
22259 | char *kwnames[] = { | |
22260 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22261 | }; | |
22262 | ||
22263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22266 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22268 | if (obj2) { | |
22269 | { | |
22270 | arg3 = &temp3; | |
22271 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22272 | } | |
22273 | } | |
22274 | if (obj3) { | |
22275 | { | |
22276 | arg4 = &temp4; | |
22277 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22278 | } | |
22279 | } | |
22280 | if (obj4) { | |
22281 | arg5 = (long) SWIG_AsLong(obj4); | |
22282 | if (PyErr_Occurred()) SWIG_fail; | |
22283 | } | |
22284 | if (obj5) { | |
22285 | { | |
22286 | arg6 = wxString_in_helper(obj5); | |
22287 | if (arg6 == NULL) SWIG_fail; | |
22288 | temp6 = True; | |
22289 | } | |
22290 | } | |
22291 | { | |
0439c23b | 22292 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22294 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22295 | ||
22296 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 22297 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22298 | } |
22299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22300 | { | |
22301 | if (temp6) | |
22302 | delete arg6; | |
22303 | } | |
22304 | return resultobj; | |
22305 | fail: | |
22306 | { | |
22307 | if (temp6) | |
22308 | delete arg6; | |
22309 | } | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
22314 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22315 | PyObject *obj; | |
22316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22317 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22318 | Py_INCREF(obj); | |
22319 | return Py_BuildValue((char *)""); | |
22320 | } | |
22321 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22322 | PyObject *resultobj; | |
22323 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22324 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22325 | wxString *arg3 = 0 ; | |
22326 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22327 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22328 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22329 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22330 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22331 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22332 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22333 | wxPreviewFrame *result; | |
22334 | bool temp3 = False ; | |
22335 | wxPoint temp4 ; | |
22336 | wxSize temp5 ; | |
22337 | bool temp7 = False ; | |
22338 | PyObject * obj0 = 0 ; | |
22339 | PyObject * obj1 = 0 ; | |
22340 | PyObject * obj2 = 0 ; | |
22341 | PyObject * obj3 = 0 ; | |
22342 | PyObject * obj4 = 0 ; | |
22343 | PyObject * obj5 = 0 ; | |
22344 | PyObject * obj6 = 0 ; | |
22345 | char *kwnames[] = { | |
22346 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22347 | }; | |
22348 | ||
22349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22354 | { | |
22355 | arg3 = wxString_in_helper(obj2); | |
22356 | if (arg3 == NULL) SWIG_fail; | |
22357 | temp3 = True; | |
22358 | } | |
22359 | if (obj3) { | |
22360 | { | |
22361 | arg4 = &temp4; | |
22362 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22363 | } | |
22364 | } | |
22365 | if (obj4) { | |
22366 | { | |
22367 | arg5 = &temp5; | |
22368 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22369 | } | |
22370 | } | |
22371 | if (obj5) { | |
22372 | arg6 = (long) SWIG_AsLong(obj5); | |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
22374 | } | |
22375 | if (obj6) { | |
22376 | { | |
22377 | arg7 = wxString_in_helper(obj6); | |
22378 | if (arg7 == NULL) SWIG_fail; | |
22379 | temp7 = True; | |
22380 | } | |
22381 | } | |
22382 | { | |
0439c23b | 22383 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22385 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 22388 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22389 | } |
22390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
22391 | { | |
22392 | if (temp3) | |
22393 | delete arg3; | |
22394 | } | |
22395 | { | |
22396 | if (temp7) | |
22397 | delete arg7; | |
22398 | } | |
22399 | return resultobj; | |
22400 | fail: | |
22401 | { | |
22402 | if (temp3) | |
22403 | delete arg3; | |
22404 | } | |
22405 | { | |
22406 | if (temp7) | |
22407 | delete arg7; | |
22408 | } | |
22409 | return NULL; | |
22410 | } | |
22411 | ||
22412 | ||
22413 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22414 | PyObject *resultobj; | |
22415 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22416 | PyObject * obj0 = 0 ; | |
22417 | char *kwnames[] = { | |
22418 | (char *) "self", NULL | |
22419 | }; | |
22420 | ||
22421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
22422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22424 | { | |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | (arg1)->Initialize(); | |
22427 | ||
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | Py_INCREF(Py_None); resultobj = Py_None; | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | return NULL; | |
22435 | } | |
22436 | ||
22437 | ||
22438 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22439 | PyObject *resultobj; | |
22440 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self", NULL | |
22444 | }; | |
22445 | ||
22446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
22447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22449 | { | |
22450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22451 | (arg1)->CreateControlBar(); | |
22452 | ||
22453 | wxPyEndAllowThreads(__tstate); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | } | |
22456 | Py_INCREF(Py_None); resultobj = Py_None; | |
22457 | return resultobj; | |
22458 | fail: | |
22459 | return NULL; | |
22460 | } | |
22461 | ||
22462 | ||
22463 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22464 | PyObject *resultobj; | |
22465 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22466 | PyObject * obj0 = 0 ; | |
22467 | char *kwnames[] = { | |
22468 | (char *) "self", NULL | |
22469 | }; | |
22470 | ||
22471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
22472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22474 | { | |
22475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22476 | (arg1)->CreateCanvas(); | |
22477 | ||
22478 | wxPyEndAllowThreads(__tstate); | |
22479 | if (PyErr_Occurred()) SWIG_fail; | |
22480 | } | |
22481 | Py_INCREF(Py_None); resultobj = Py_None; | |
22482 | return resultobj; | |
22483 | fail: | |
22484 | return NULL; | |
22485 | } | |
22486 | ||
22487 | ||
22488 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22489 | PyObject *resultobj; | |
22490 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22491 | wxPreviewControlBar *result; | |
22492 | PyObject * obj0 = 0 ; | |
22493 | char *kwnames[] = { | |
22494 | (char *) "self", NULL | |
22495 | }; | |
22496 | ||
22497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
22498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22500 | { | |
22501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22502 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
22503 | ||
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
22507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
22508 | return resultobj; | |
22509 | fail: | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
22515 | PyObject *obj; | |
22516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22517 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
22518 | Py_INCREF(obj); | |
22519 | return Py_BuildValue((char *)""); | |
22520 | } | |
22521 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22522 | PyObject *resultobj; | |
22523 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22524 | long arg2 ; | |
22525 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22526 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22527 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22528 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22529 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22530 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
22531 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22532 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22533 | wxPreviewControlBar *result; | |
22534 | wxPoint temp4 ; | |
22535 | wxSize temp5 ; | |
22536 | bool temp7 = False ; | |
22537 | PyObject * obj0 = 0 ; | |
22538 | PyObject * obj1 = 0 ; | |
22539 | PyObject * obj2 = 0 ; | |
22540 | PyObject * obj3 = 0 ; | |
22541 | PyObject * obj4 = 0 ; | |
22542 | PyObject * obj5 = 0 ; | |
22543 | PyObject * obj6 = 0 ; | |
22544 | char *kwnames[] = { | |
22545 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22546 | }; | |
22547 | ||
22548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22551 | arg2 = (long) SWIG_AsLong(obj1); | |
22552 | if (PyErr_Occurred()) SWIG_fail; | |
22553 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
22554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22555 | if (obj3) { | |
22556 | { | |
22557 | arg4 = &temp4; | |
22558 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22559 | } | |
22560 | } | |
22561 | if (obj4) { | |
22562 | { | |
22563 | arg5 = &temp5; | |
22564 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22565 | } | |
22566 | } | |
22567 | if (obj5) { | |
22568 | arg6 = (long) SWIG_AsLong(obj5); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | } | |
22571 | if (obj6) { | |
22572 | { | |
22573 | arg7 = wxString_in_helper(obj6); | |
22574 | if (arg7 == NULL) SWIG_fail; | |
22575 | temp7 = True; | |
22576 | } | |
22577 | } | |
22578 | { | |
0439c23b | 22579 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22581 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22582 | ||
22583 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 22584 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22585 | } |
22586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
22587 | { | |
22588 | if (temp7) | |
22589 | delete arg7; | |
22590 | } | |
22591 | return resultobj; | |
22592 | fail: | |
22593 | { | |
22594 | if (temp7) | |
22595 | delete arg7; | |
22596 | } | |
22597 | return NULL; | |
22598 | } | |
22599 | ||
22600 | ||
22601 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22602 | PyObject *resultobj; | |
22603 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22604 | int result; | |
22605 | PyObject * obj0 = 0 ; | |
22606 | char *kwnames[] = { | |
22607 | (char *) "self", NULL | |
22608 | }; | |
22609 | ||
22610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
22611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22613 | { | |
22614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22615 | result = (int)(arg1)->GetZoomControl(); | |
22616 | ||
22617 | wxPyEndAllowThreads(__tstate); | |
22618 | if (PyErr_Occurred()) SWIG_fail; | |
22619 | } | |
22620 | resultobj = SWIG_FromInt((int)result); | |
22621 | return resultobj; | |
22622 | fail: | |
22623 | return NULL; | |
22624 | } | |
22625 | ||
22626 | ||
22627 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22628 | PyObject *resultobj; | |
22629 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22630 | int arg2 ; | |
22631 | PyObject * obj0 = 0 ; | |
22632 | PyObject * obj1 = 0 ; | |
22633 | char *kwnames[] = { | |
22634 | (char *) "self",(char *) "zoom", NULL | |
22635 | }; | |
22636 | ||
22637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
22638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22640 | arg2 = (int) SWIG_AsInt(obj1); | |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | { | |
22643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22644 | (arg1)->SetZoomControl(arg2); | |
22645 | ||
22646 | wxPyEndAllowThreads(__tstate); | |
22647 | if (PyErr_Occurred()) SWIG_fail; | |
22648 | } | |
22649 | Py_INCREF(Py_None); resultobj = Py_None; | |
22650 | return resultobj; | |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
22656 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22657 | PyObject *resultobj; | |
22658 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22659 | wxPrintPreview *result; | |
22660 | PyObject * obj0 = 0 ; | |
22661 | char *kwnames[] = { | |
22662 | (char *) "self", NULL | |
22663 | }; | |
22664 | ||
22665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
22666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22668 | { | |
22669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22670 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
22671 | ||
22672 | wxPyEndAllowThreads(__tstate); | |
22673 | if (PyErr_Occurred()) SWIG_fail; | |
22674 | } | |
22675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
22676 | return resultobj; | |
22677 | fail: | |
22678 | return NULL; | |
22679 | } | |
22680 | ||
22681 | ||
22682 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22683 | PyObject *resultobj; | |
22684 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22685 | PyObject * obj0 = 0 ; | |
22686 | char *kwnames[] = { | |
22687 | (char *) "self", NULL | |
22688 | }; | |
22689 | ||
22690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
22691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22693 | { | |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | (arg1)->OnNext(); | |
22696 | ||
22697 | wxPyEndAllowThreads(__tstate); | |
22698 | if (PyErr_Occurred()) SWIG_fail; | |
22699 | } | |
22700 | Py_INCREF(Py_None); resultobj = Py_None; | |
22701 | return resultobj; | |
22702 | fail: | |
22703 | return NULL; | |
22704 | } | |
22705 | ||
22706 | ||
22707 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22708 | PyObject *resultobj; | |
22709 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | char *kwnames[] = { | |
22712 | (char *) "self", NULL | |
22713 | }; | |
22714 | ||
22715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
22716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22718 | { | |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | (arg1)->OnPrevious(); | |
22721 | ||
22722 | wxPyEndAllowThreads(__tstate); | |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
22724 | } | |
22725 | Py_INCREF(Py_None); resultobj = Py_None; | |
22726 | return resultobj; | |
22727 | fail: | |
22728 | return NULL; | |
22729 | } | |
22730 | ||
22731 | ||
22732 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22733 | PyObject *resultobj; | |
22734 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22735 | PyObject * obj0 = 0 ; | |
22736 | char *kwnames[] = { | |
22737 | (char *) "self", NULL | |
22738 | }; | |
22739 | ||
22740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
22741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22743 | { | |
22744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22745 | (arg1)->OnFirst(); | |
22746 | ||
22747 | wxPyEndAllowThreads(__tstate); | |
22748 | if (PyErr_Occurred()) SWIG_fail; | |
22749 | } | |
22750 | Py_INCREF(Py_None); resultobj = Py_None; | |
22751 | return resultobj; | |
22752 | fail: | |
22753 | return NULL; | |
22754 | } | |
22755 | ||
22756 | ||
22757 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22758 | PyObject *resultobj; | |
22759 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22760 | PyObject * obj0 = 0 ; | |
22761 | char *kwnames[] = { | |
22762 | (char *) "self", NULL | |
22763 | }; | |
22764 | ||
22765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
22766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | { | |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | (arg1)->OnLast(); | |
22771 | ||
22772 | wxPyEndAllowThreads(__tstate); | |
22773 | if (PyErr_Occurred()) SWIG_fail; | |
22774 | } | |
22775 | Py_INCREF(Py_None); resultobj = Py_None; | |
22776 | return resultobj; | |
22777 | fail: | |
22778 | return NULL; | |
22779 | } | |
22780 | ||
22781 | ||
22782 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22783 | PyObject *resultobj; | |
22784 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22785 | PyObject * obj0 = 0 ; | |
22786 | char *kwnames[] = { | |
22787 | (char *) "self", NULL | |
22788 | }; | |
22789 | ||
22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
22791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22793 | { | |
22794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22795 | (arg1)->OnGoto(); | |
22796 | ||
22797 | wxPyEndAllowThreads(__tstate); | |
22798 | if (PyErr_Occurred()) SWIG_fail; | |
22799 | } | |
22800 | Py_INCREF(Py_None); resultobj = Py_None; | |
22801 | return resultobj; | |
22802 | fail: | |
22803 | return NULL; | |
22804 | } | |
22805 | ||
22806 | ||
22807 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
22808 | PyObject *obj; | |
22809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22810 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
22811 | Py_INCREF(obj); | |
22812 | return Py_BuildValue((char *)""); | |
22813 | } | |
22814 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
22815 | PyObject *resultobj; | |
22816 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22817 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22818 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
22819 | wxPrintPreview *result; | |
22820 | PyObject * obj0 = 0 ; | |
22821 | PyObject * obj1 = 0 ; | |
22822 | PyObject * obj2 = 0 ; | |
22823 | ||
22824 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22829 | if (obj2) { | |
22830 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
22831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22832 | } | |
22833 | { | |
0439c23b | 22834 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22836 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22837 | ||
22838 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 22839 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22840 | } |
22841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
22848 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
22849 | PyObject *resultobj; | |
22850 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22851 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22852 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
22853 | wxPrintPreview *result; | |
22854 | PyObject * obj0 = 0 ; | |
22855 | PyObject * obj1 = 0 ; | |
22856 | PyObject * obj2 = 0 ; | |
22857 | ||
22858 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22861 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22863 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
22864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22865 | { | |
0439c23b | 22866 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22868 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22869 | ||
22870 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 22871 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22872 | } |
22873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
22881 | int argc; | |
22882 | PyObject *argv[4]; | |
22883 | int ii; | |
22884 | ||
22885 | argc = PyObject_Length(args); | |
22886 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
22887 | argv[ii] = PyTuple_GetItem(args,ii); | |
22888 | } | |
22889 | if ((argc >= 2) && (argc <= 3)) { | |
22890 | int _v; | |
22891 | { | |
22892 | void *ptr; | |
22893 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22894 | _v = 0; | |
22895 | PyErr_Clear(); | |
22896 | } else { | |
22897 | _v = 1; | |
22898 | } | |
22899 | } | |
22900 | if (_v) { | |
22901 | { | |
22902 | void *ptr; | |
22903 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22904 | _v = 0; | |
22905 | PyErr_Clear(); | |
22906 | } else { | |
22907 | _v = 1; | |
22908 | } | |
22909 | } | |
22910 | if (_v) { | |
22911 | if (argc <= 2) { | |
22912 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
22913 | } | |
22914 | { | |
22915 | void *ptr; | |
22916 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
22917 | _v = 0; | |
22918 | PyErr_Clear(); | |
22919 | } else { | |
22920 | _v = 1; | |
22921 | } | |
22922 | } | |
22923 | if (_v) { | |
22924 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
22925 | } | |
22926 | } | |
22927 | } | |
22928 | } | |
22929 | if (argc == 3) { | |
22930 | int _v; | |
22931 | { | |
22932 | void *ptr; | |
22933 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22934 | _v = 0; | |
22935 | PyErr_Clear(); | |
22936 | } else { | |
22937 | _v = 1; | |
22938 | } | |
22939 | } | |
22940 | if (_v) { | |
22941 | { | |
22942 | void *ptr; | |
22943 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22944 | _v = 0; | |
22945 | PyErr_Clear(); | |
22946 | } else { | |
22947 | _v = 1; | |
22948 | } | |
22949 | } | |
22950 | if (_v) { | |
22951 | { | |
22952 | void *ptr; | |
22953 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
22954 | _v = 0; | |
22955 | PyErr_Clear(); | |
22956 | } else { | |
22957 | _v = 1; | |
22958 | } | |
22959 | } | |
22960 | if (_v) { | |
22961 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
22962 | } | |
22963 | } | |
22964 | } | |
22965 | } | |
22966 | ||
22967 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22973 | PyObject *resultobj; | |
22974 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22975 | int arg2 ; | |
22976 | bool result; | |
22977 | PyObject * obj0 = 0 ; | |
22978 | PyObject * obj1 = 0 ; | |
22979 | char *kwnames[] = { | |
22980 | (char *) "self",(char *) "pageNum", NULL | |
22981 | }; | |
22982 | ||
22983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
22984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22986 | arg2 = (int) SWIG_AsInt(obj1); | |
22987 | if (PyErr_Occurred()) SWIG_fail; | |
22988 | { | |
22989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22990 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
22991 | ||
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
22995 | { | |
22996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22997 | } | |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
23001 | } | |
23002 | ||
23003 | ||
23004 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23005 | PyObject *resultobj; | |
23006 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23007 | int result; | |
23008 | PyObject * obj0 = 0 ; | |
23009 | char *kwnames[] = { | |
23010 | (char *) "self", NULL | |
23011 | }; | |
23012 | ||
23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
23014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23016 | { | |
23017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23018 | result = (int)(arg1)->GetCurrentPage(); | |
23019 | ||
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
23023 | resultobj = SWIG_FromInt((int)result); | |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
23030 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23031 | PyObject *resultobj; | |
23032 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23033 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23034 | PyObject * obj0 = 0 ; | |
23035 | PyObject * obj1 = 0 ; | |
23036 | char *kwnames[] = { | |
23037 | (char *) "self",(char *) "printout", NULL | |
23038 | }; | |
23039 | ||
23040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
23041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23045 | { | |
23046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23047 | (arg1)->SetPrintout(arg2); | |
23048 | ||
23049 | wxPyEndAllowThreads(__tstate); | |
23050 | if (PyErr_Occurred()) SWIG_fail; | |
23051 | } | |
23052 | Py_INCREF(Py_None); resultobj = Py_None; | |
23053 | return resultobj; | |
23054 | fail: | |
23055 | return NULL; | |
23056 | } | |
23057 | ||
23058 | ||
23059 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23060 | PyObject *resultobj; | |
23061 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23062 | wxPyPrintout *result; | |
23063 | PyObject * obj0 = 0 ; | |
23064 | char *kwnames[] = { | |
23065 | (char *) "self", NULL | |
23066 | }; | |
23067 | ||
23068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
23069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23071 | { | |
23072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23073 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
23074 | ||
23075 | wxPyEndAllowThreads(__tstate); | |
23076 | if (PyErr_Occurred()) SWIG_fail; | |
23077 | } | |
23078 | { | |
23079 | resultobj = wxPyMake_wxObject(result); | |
23080 | } | |
23081 | return resultobj; | |
23082 | fail: | |
23083 | return NULL; | |
23084 | } | |
23085 | ||
23086 | ||
23087 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23088 | PyObject *resultobj; | |
23089 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23090 | wxPyPrintout *result; | |
23091 | PyObject * obj0 = 0 ; | |
23092 | char *kwnames[] = { | |
23093 | (char *) "self", NULL | |
23094 | }; | |
23095 | ||
23096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
23097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23099 | { | |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
23106 | { | |
23107 | resultobj = wxPyMake_wxObject(result); | |
23108 | } | |
23109 | return resultobj; | |
23110 | fail: | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
23115 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23116 | PyObject *resultobj; | |
23117 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23118 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23119 | PyObject * obj0 = 0 ; | |
23120 | PyObject * obj1 = 0 ; | |
23121 | char *kwnames[] = { | |
23122 | (char *) "self",(char *) "frame", NULL | |
23123 | }; | |
23124 | ||
23125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
23126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23128 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23130 | { | |
23131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23132 | (arg1)->SetFrame(arg2); | |
23133 | ||
23134 | wxPyEndAllowThreads(__tstate); | |
23135 | if (PyErr_Occurred()) SWIG_fail; | |
23136 | } | |
23137 | Py_INCREF(Py_None); resultobj = Py_None; | |
23138 | return resultobj; | |
23139 | fail: | |
23140 | return NULL; | |
23141 | } | |
23142 | ||
23143 | ||
23144 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23145 | PyObject *resultobj; | |
23146 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23147 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23148 | PyObject * obj0 = 0 ; | |
23149 | PyObject * obj1 = 0 ; | |
23150 | char *kwnames[] = { | |
23151 | (char *) "self",(char *) "canvas", NULL | |
23152 | }; | |
23153 | ||
23154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23159 | { | |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | (arg1)->SetCanvas(arg2); | |
23162 | ||
23163 | wxPyEndAllowThreads(__tstate); | |
23164 | if (PyErr_Occurred()) SWIG_fail; | |
23165 | } | |
23166 | Py_INCREF(Py_None); resultobj = Py_None; | |
23167 | return resultobj; | |
23168 | fail: | |
23169 | return NULL; | |
23170 | } | |
23171 | ||
23172 | ||
23173 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23174 | PyObject *resultobj; | |
23175 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23176 | wxFrame *result; | |
23177 | PyObject * obj0 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
23183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23185 | { | |
23186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23187 | result = (wxFrame *)(arg1)->GetFrame(); | |
23188 | ||
23189 | wxPyEndAllowThreads(__tstate); | |
23190 | if (PyErr_Occurred()) SWIG_fail; | |
23191 | } | |
23192 | { | |
23193 | resultobj = wxPyMake_wxObject(result); | |
23194 | } | |
23195 | return resultobj; | |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23202 | PyObject *resultobj; | |
23203 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23204 | wxPreviewCanvas *result; | |
23205 | PyObject * obj0 = 0 ; | |
23206 | char *kwnames[] = { | |
23207 | (char *) "self", NULL | |
23208 | }; | |
23209 | ||
23210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
23211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23213 | { | |
23214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23215 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
23216 | ||
23217 | wxPyEndAllowThreads(__tstate); | |
23218 | if (PyErr_Occurred()) SWIG_fail; | |
23219 | } | |
23220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
23221 | return resultobj; | |
23222 | fail: | |
23223 | return NULL; | |
23224 | } | |
23225 | ||
23226 | ||
23227 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23228 | PyObject *resultobj; | |
23229 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23230 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23231 | wxDC *arg3 = 0 ; | |
23232 | bool result; | |
23233 | PyObject * obj0 = 0 ; | |
23234 | PyObject * obj1 = 0 ; | |
23235 | PyObject * obj2 = 0 ; | |
23236 | char *kwnames[] = { | |
23237 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23238 | }; | |
23239 | ||
23240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23245 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23246 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23247 | SWIG_fail; | |
23248 | if (arg3 == NULL) { | |
23249 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23250 | SWIG_fail; | |
23251 | } | |
23252 | { | |
23253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23254 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
23255 | ||
23256 | wxPyEndAllowThreads(__tstate); | |
23257 | if (PyErr_Occurred()) SWIG_fail; | |
23258 | } | |
23259 | { | |
23260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23261 | } | |
23262 | return resultobj; | |
23263 | fail: | |
23264 | return NULL; | |
23265 | } | |
23266 | ||
23267 | ||
23268 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23269 | PyObject *resultobj; | |
23270 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23271 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23272 | wxDC *arg3 = 0 ; | |
23273 | bool result; | |
23274 | PyObject * obj0 = 0 ; | |
23275 | PyObject * obj1 = 0 ; | |
23276 | PyObject * obj2 = 0 ; | |
23277 | char *kwnames[] = { | |
23278 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23279 | }; | |
23280 | ||
23281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23284 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23286 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23287 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23288 | SWIG_fail; | |
23289 | if (arg3 == NULL) { | |
23290 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23291 | SWIG_fail; | |
23292 | } | |
23293 | { | |
23294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23295 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23296 | ||
23297 | wxPyEndAllowThreads(__tstate); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
23300 | { | |
23301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23302 | } | |
23303 | return resultobj; | |
23304 | fail: | |
23305 | return NULL; | |
23306 | } | |
23307 | ||
23308 | ||
23309 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23310 | PyObject *resultobj; | |
23311 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23312 | int arg2 ; | |
23313 | bool result; | |
23314 | PyObject * obj0 = 0 ; | |
23315 | PyObject * obj1 = 0 ; | |
23316 | char *kwnames[] = { | |
23317 | (char *) "self",(char *) "pageNum", NULL | |
23318 | }; | |
23319 | ||
23320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23323 | arg2 = (int) SWIG_AsInt(obj1); | |
23324 | if (PyErr_Occurred()) SWIG_fail; | |
23325 | { | |
23326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23327 | result = (bool)(arg1)->RenderPage(arg2); | |
23328 | ||
23329 | wxPyEndAllowThreads(__tstate); | |
23330 | if (PyErr_Occurred()) SWIG_fail; | |
23331 | } | |
23332 | { | |
23333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23334 | } | |
23335 | return resultobj; | |
23336 | fail: | |
23337 | return NULL; | |
23338 | } | |
23339 | ||
23340 | ||
23341 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23342 | PyObject *resultobj; | |
23343 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23344 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23345 | PyObject * obj0 = 0 ; | |
23346 | PyObject * obj1 = 0 ; | |
23347 | char *kwnames[] = { | |
23348 | (char *) "self",(char *) "canvas", NULL | |
23349 | }; | |
23350 | ||
23351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23356 | { | |
23357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23358 | (arg1)->AdjustScrollbars(arg2); | |
23359 | ||
23360 | wxPyEndAllowThreads(__tstate); | |
23361 | if (PyErr_Occurred()) SWIG_fail; | |
23362 | } | |
23363 | Py_INCREF(Py_None); resultobj = Py_None; | |
23364 | return resultobj; | |
23365 | fail: | |
23366 | return NULL; | |
23367 | } | |
23368 | ||
23369 | ||
23370 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23371 | PyObject *resultobj; | |
23372 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23373 | wxPrintDialogData *result; | |
23374 | PyObject * obj0 = 0 ; | |
23375 | char *kwnames[] = { | |
23376 | (char *) "self", NULL | |
23377 | }; | |
23378 | ||
23379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
23380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23382 | { | |
23383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23384 | { | |
23385 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
23386 | result = (wxPrintDialogData *) &_result_ref; | |
23387 | } | |
23388 | ||
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
23392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
23393 | return resultobj; | |
23394 | fail: | |
23395 | return NULL; | |
23396 | } | |
23397 | ||
23398 | ||
23399 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23400 | PyObject *resultobj; | |
23401 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23402 | int arg2 ; | |
23403 | PyObject * obj0 = 0 ; | |
23404 | PyObject * obj1 = 0 ; | |
23405 | char *kwnames[] = { | |
23406 | (char *) "self",(char *) "percent", NULL | |
23407 | }; | |
23408 | ||
23409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23412 | arg2 = (int) SWIG_AsInt(obj1); | |
23413 | if (PyErr_Occurred()) SWIG_fail; | |
23414 | { | |
23415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23416 | (arg1)->SetZoom(arg2); | |
23417 | ||
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | Py_INCREF(Py_None); resultobj = Py_None; | |
23422 | return resultobj; | |
23423 | fail: | |
23424 | return NULL; | |
23425 | } | |
23426 | ||
23427 | ||
23428 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj; | |
23430 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23431 | int result; | |
23432 | PyObject * obj0 = 0 ; | |
23433 | char *kwnames[] = { | |
23434 | (char *) "self", NULL | |
23435 | }; | |
23436 | ||
23437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
23438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | result = (int)(arg1)->GetZoom(); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | resultobj = SWIG_FromInt((int)result); | |
23448 | return resultobj; | |
23449 | fail: | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
23454 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23455 | PyObject *resultobj; | |
23456 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23457 | int result; | |
23458 | PyObject * obj0 = 0 ; | |
23459 | char *kwnames[] = { | |
23460 | (char *) "self", NULL | |
23461 | }; | |
23462 | ||
23463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
23464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23466 | { | |
23467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23468 | result = (int)(arg1)->GetMaxPage(); | |
23469 | ||
23470 | wxPyEndAllowThreads(__tstate); | |
23471 | if (PyErr_Occurred()) SWIG_fail; | |
23472 | } | |
23473 | resultobj = SWIG_FromInt((int)result); | |
23474 | return resultobj; | |
23475 | fail: | |
23476 | return NULL; | |
23477 | } | |
23478 | ||
23479 | ||
23480 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23481 | PyObject *resultobj; | |
23482 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23483 | int result; | |
23484 | PyObject * obj0 = 0 ; | |
23485 | char *kwnames[] = { | |
23486 | (char *) "self", NULL | |
23487 | }; | |
23488 | ||
23489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
23490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23492 | { | |
23493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23494 | result = (int)(arg1)->GetMinPage(); | |
23495 | ||
23496 | wxPyEndAllowThreads(__tstate); | |
23497 | if (PyErr_Occurred()) SWIG_fail; | |
23498 | } | |
23499 | resultobj = SWIG_FromInt((int)result); | |
23500 | return resultobj; | |
23501 | fail: | |
23502 | return NULL; | |
23503 | } | |
23504 | ||
23505 | ||
23506 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23507 | PyObject *resultobj; | |
23508 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23509 | bool result; | |
23510 | PyObject * obj0 = 0 ; | |
23511 | char *kwnames[] = { | |
23512 | (char *) "self", NULL | |
23513 | }; | |
23514 | ||
23515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
23516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23518 | { | |
23519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23520 | result = (bool)(arg1)->Ok(); | |
23521 | ||
23522 | wxPyEndAllowThreads(__tstate); | |
23523 | if (PyErr_Occurred()) SWIG_fail; | |
23524 | } | |
23525 | { | |
23526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23527 | } | |
23528 | return resultobj; | |
23529 | fail: | |
23530 | return NULL; | |
23531 | } | |
23532 | ||
23533 | ||
23534 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23535 | PyObject *resultobj; | |
23536 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23537 | bool arg2 ; | |
23538 | PyObject * obj0 = 0 ; | |
23539 | PyObject * obj1 = 0 ; | |
23540 | char *kwnames[] = { | |
23541 | (char *) "self",(char *) "ok", NULL | |
23542 | }; | |
23543 | ||
23544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
23545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23547 | arg2 = (bool) SWIG_AsBool(obj1); | |
23548 | if (PyErr_Occurred()) SWIG_fail; | |
23549 | { | |
23550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23551 | (arg1)->SetOk(arg2); | |
23552 | ||
23553 | wxPyEndAllowThreads(__tstate); | |
23554 | if (PyErr_Occurred()) SWIG_fail; | |
23555 | } | |
23556 | Py_INCREF(Py_None); resultobj = Py_None; | |
23557 | return resultobj; | |
23558 | fail: | |
23559 | return NULL; | |
23560 | } | |
23561 | ||
23562 | ||
23563 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23564 | PyObject *resultobj; | |
23565 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23566 | bool arg2 ; | |
23567 | bool result; | |
23568 | PyObject * obj0 = 0 ; | |
23569 | PyObject * obj1 = 0 ; | |
23570 | char *kwnames[] = { | |
23571 | (char *) "self",(char *) "interactive", NULL | |
23572 | }; | |
23573 | ||
23574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
23575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23577 | arg2 = (bool) SWIG_AsBool(obj1); | |
23578 | if (PyErr_Occurred()) SWIG_fail; | |
23579 | { | |
23580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23581 | result = (bool)(arg1)->Print(arg2); | |
23582 | ||
23583 | wxPyEndAllowThreads(__tstate); | |
23584 | if (PyErr_Occurred()) SWIG_fail; | |
23585 | } | |
23586 | { | |
23587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23588 | } | |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
23595 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23596 | PyObject *resultobj; | |
23597 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23598 | PyObject * obj0 = 0 ; | |
23599 | char *kwnames[] = { | |
23600 | (char *) "self", NULL | |
23601 | }; | |
23602 | ||
23603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
23604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23606 | { | |
23607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23608 | (arg1)->DetermineScaling(); | |
23609 | ||
23610 | wxPyEndAllowThreads(__tstate); | |
23611 | if (PyErr_Occurred()) SWIG_fail; | |
23612 | } | |
23613 | Py_INCREF(Py_None); resultobj = Py_None; | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
23621 | PyObject *obj; | |
23622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23623 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
23624 | Py_INCREF(obj); | |
23625 | return Py_BuildValue((char *)""); | |
23626 | } | |
23627 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23628 | PyObject *resultobj; | |
23629 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23630 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23631 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23632 | wxPyPrintPreview *result; | |
23633 | PyObject * obj0 = 0 ; | |
23634 | PyObject * obj1 = 0 ; | |
23635 | PyObject * obj2 = 0 ; | |
23636 | ||
23637 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23642 | if (obj2) { | |
23643 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23645 | } | |
23646 | { | |
0439c23b | 23647 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23649 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23650 | ||
23651 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 23652 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23653 | } |
23654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23662 | PyObject *resultobj; | |
23663 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23664 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23665 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23666 | wxPyPrintPreview *result; | |
23667 | PyObject * obj0 = 0 ; | |
23668 | PyObject * obj1 = 0 ; | |
23669 | PyObject * obj2 = 0 ; | |
23670 | ||
23671 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23676 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23678 | { | |
0439c23b | 23679 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23681 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23682 | ||
23683 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 23684 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23685 | } |
23686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23687 | return resultobj; | |
23688 | fail: | |
23689 | return NULL; | |
23690 | } | |
23691 | ||
23692 | ||
23693 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
23694 | int argc; | |
23695 | PyObject *argv[4]; | |
23696 | int ii; | |
23697 | ||
23698 | argc = PyObject_Length(args); | |
23699 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23700 | argv[ii] = PyTuple_GetItem(args,ii); | |
23701 | } | |
23702 | if ((argc >= 2) && (argc <= 3)) { | |
23703 | int _v; | |
23704 | { | |
23705 | void *ptr; | |
23706 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23707 | _v = 0; | |
23708 | PyErr_Clear(); | |
23709 | } else { | |
23710 | _v = 1; | |
23711 | } | |
23712 | } | |
23713 | if (_v) { | |
23714 | { | |
23715 | void *ptr; | |
23716 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23717 | _v = 0; | |
23718 | PyErr_Clear(); | |
23719 | } else { | |
23720 | _v = 1; | |
23721 | } | |
23722 | } | |
23723 | if (_v) { | |
23724 | if (argc <= 2) { | |
23725 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23726 | } | |
23727 | { | |
23728 | void *ptr; | |
23729 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23730 | _v = 0; | |
23731 | PyErr_Clear(); | |
23732 | } else { | |
23733 | _v = 1; | |
23734 | } | |
23735 | } | |
23736 | if (_v) { | |
23737 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23738 | } | |
23739 | } | |
23740 | } | |
23741 | } | |
23742 | if (argc == 3) { | |
23743 | int _v; | |
23744 | { | |
23745 | void *ptr; | |
23746 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23747 | _v = 0; | |
23748 | PyErr_Clear(); | |
23749 | } else { | |
23750 | _v = 1; | |
23751 | } | |
23752 | } | |
23753 | if (_v) { | |
23754 | { | |
23755 | void *ptr; | |
23756 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23757 | _v = 0; | |
23758 | PyErr_Clear(); | |
23759 | } else { | |
23760 | _v = 1; | |
23761 | } | |
23762 | } | |
23763 | if (_v) { | |
23764 | { | |
23765 | void *ptr; | |
23766 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23767 | _v = 0; | |
23768 | PyErr_Clear(); | |
23769 | } else { | |
23770 | _v = 1; | |
23771 | } | |
23772 | } | |
23773 | if (_v) { | |
23774 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
23775 | } | |
23776 | } | |
23777 | } | |
23778 | } | |
23779 | ||
23780 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
23781 | return NULL; | |
23782 | } | |
23783 | ||
23784 | ||
23785 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23786 | PyObject *resultobj; | |
23787 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23788 | PyObject *arg2 = (PyObject *) 0 ; | |
23789 | PyObject *arg3 = (PyObject *) 0 ; | |
23790 | PyObject * obj0 = 0 ; | |
23791 | PyObject * obj1 = 0 ; | |
23792 | PyObject * obj2 = 0 ; | |
23793 | char *kwnames[] = { | |
23794 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23795 | }; | |
23796 | ||
23797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23800 | arg2 = obj1; | |
23801 | arg3 = obj2; | |
23802 | { | |
23803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23804 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23805 | ||
23806 | wxPyEndAllowThreads(__tstate); | |
23807 | if (PyErr_Occurred()) SWIG_fail; | |
23808 | } | |
23809 | Py_INCREF(Py_None); resultobj = Py_None; | |
23810 | return resultobj; | |
23811 | fail: | |
23812 | return NULL; | |
23813 | } | |
23814 | ||
23815 | ||
23816 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23817 | PyObject *resultobj; | |
23818 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23819 | int arg2 ; | |
23820 | bool result; | |
23821 | PyObject * obj0 = 0 ; | |
23822 | PyObject * obj1 = 0 ; | |
23823 | char *kwnames[] = { | |
23824 | (char *) "self",(char *) "pageNum", NULL | |
23825 | }; | |
23826 | ||
23827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23830 | arg2 = (int) SWIG_AsInt(obj1); | |
23831 | if (PyErr_Occurred()) SWIG_fail; | |
23832 | { | |
23833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23834 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
23835 | ||
23836 | wxPyEndAllowThreads(__tstate); | |
23837 | if (PyErr_Occurred()) SWIG_fail; | |
23838 | } | |
23839 | { | |
23840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23841 | } | |
23842 | return resultobj; | |
23843 | fail: | |
23844 | return NULL; | |
23845 | } | |
23846 | ||
23847 | ||
23848 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23849 | PyObject *resultobj; | |
23850 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23851 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23852 | wxDC *arg3 = 0 ; | |
23853 | bool result; | |
23854 | PyObject * obj0 = 0 ; | |
23855 | PyObject * obj1 = 0 ; | |
23856 | PyObject * obj2 = 0 ; | |
23857 | char *kwnames[] = { | |
23858 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23859 | }; | |
23860 | ||
23861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23866 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23868 | SWIG_fail; | |
23869 | if (arg3 == NULL) { | |
23870 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23871 | SWIG_fail; | |
23872 | } | |
23873 | { | |
23874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23875 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
23876 | ||
23877 | wxPyEndAllowThreads(__tstate); | |
23878 | if (PyErr_Occurred()) SWIG_fail; | |
23879 | } | |
23880 | { | |
23881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23882 | } | |
23883 | return resultobj; | |
23884 | fail: | |
23885 | return NULL; | |
23886 | } | |
23887 | ||
23888 | ||
23889 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23890 | PyObject *resultobj; | |
23891 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23892 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23893 | wxDC *arg3 = 0 ; | |
23894 | bool result; | |
23895 | PyObject * obj0 = 0 ; | |
23896 | PyObject * obj1 = 0 ; | |
23897 | PyObject * obj2 = 0 ; | |
23898 | char *kwnames[] = { | |
23899 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23900 | }; | |
23901 | ||
23902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23907 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23908 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23909 | SWIG_fail; | |
23910 | if (arg3 == NULL) { | |
23911 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23912 | SWIG_fail; | |
23913 | } | |
23914 | { | |
23915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23916 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
23917 | ||
23918 | wxPyEndAllowThreads(__tstate); | |
23919 | if (PyErr_Occurred()) SWIG_fail; | |
23920 | } | |
23921 | { | |
23922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23923 | } | |
23924 | return resultobj; | |
23925 | fail: | |
23926 | return NULL; | |
23927 | } | |
23928 | ||
23929 | ||
23930 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23931 | PyObject *resultobj; | |
23932 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23933 | int arg2 ; | |
23934 | bool result; | |
23935 | PyObject * obj0 = 0 ; | |
23936 | PyObject * obj1 = 0 ; | |
23937 | char *kwnames[] = { | |
23938 | (char *) "self",(char *) "pageNum", NULL | |
23939 | }; | |
23940 | ||
23941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23944 | arg2 = (int) SWIG_AsInt(obj1); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | { | |
23947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23948 | result = (bool)(arg1)->base_RenderPage(arg2); | |
23949 | ||
23950 | wxPyEndAllowThreads(__tstate); | |
23951 | if (PyErr_Occurred()) SWIG_fail; | |
23952 | } | |
23953 | { | |
23954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23955 | } | |
23956 | return resultobj; | |
23957 | fail: | |
23958 | return NULL; | |
23959 | } | |
23960 | ||
23961 | ||
23962 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23963 | PyObject *resultobj; | |
23964 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23965 | int arg2 ; | |
23966 | PyObject * obj0 = 0 ; | |
23967 | PyObject * obj1 = 0 ; | |
23968 | char *kwnames[] = { | |
23969 | (char *) "self",(char *) "percent", NULL | |
23970 | }; | |
23971 | ||
23972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23975 | arg2 = (int) SWIG_AsInt(obj1); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | { | |
23978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23979 | (arg1)->base_SetZoom(arg2); | |
23980 | ||
23981 | wxPyEndAllowThreads(__tstate); | |
23982 | if (PyErr_Occurred()) SWIG_fail; | |
23983 | } | |
23984 | Py_INCREF(Py_None); resultobj = Py_None; | |
23985 | return resultobj; | |
23986 | fail: | |
23987 | return NULL; | |
23988 | } | |
23989 | ||
23990 | ||
23991 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23992 | PyObject *resultobj; | |
23993 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23994 | bool arg2 ; | |
23995 | bool result; | |
23996 | PyObject * obj0 = 0 ; | |
23997 | PyObject * obj1 = 0 ; | |
23998 | char *kwnames[] = { | |
23999 | (char *) "self",(char *) "interactive", NULL | |
24000 | }; | |
24001 | ||
24002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
24003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24005 | arg2 = (bool) SWIG_AsBool(obj1); | |
24006 | if (PyErr_Occurred()) SWIG_fail; | |
24007 | { | |
24008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24009 | result = (bool)(arg1)->base_Print(arg2); | |
24010 | ||
24011 | wxPyEndAllowThreads(__tstate); | |
24012 | if (PyErr_Occurred()) SWIG_fail; | |
24013 | } | |
24014 | { | |
24015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24016 | } | |
24017 | return resultobj; | |
24018 | fail: | |
24019 | return NULL; | |
24020 | } | |
24021 | ||
24022 | ||
24023 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24024 | PyObject *resultobj; | |
24025 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24026 | PyObject * obj0 = 0 ; | |
24027 | char *kwnames[] = { | |
24028 | (char *) "self", NULL | |
24029 | }; | |
24030 | ||
24031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
24032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->base_DetermineScaling(); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24049 | PyObject *obj; | |
24050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24051 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
24052 | Py_INCREF(obj); | |
24053 | return Py_BuildValue((char *)""); | |
24054 | } | |
24055 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24056 | PyObject *resultobj; | |
24057 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24058 | wxFrame *arg2 = (wxFrame *) 0 ; | |
24059 | wxString *arg3 = 0 ; | |
24060 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24061 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24062 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24063 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24064 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
24065 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
24066 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24067 | wxPyPreviewFrame *result; | |
24068 | bool temp3 = False ; | |
24069 | wxPoint temp4 ; | |
24070 | wxSize temp5 ; | |
24071 | bool temp7 = False ; | |
24072 | PyObject * obj0 = 0 ; | |
24073 | PyObject * obj1 = 0 ; | |
24074 | PyObject * obj2 = 0 ; | |
24075 | PyObject * obj3 = 0 ; | |
24076 | PyObject * obj4 = 0 ; | |
24077 | PyObject * obj5 = 0 ; | |
24078 | PyObject * obj6 = 0 ; | |
24079 | char *kwnames[] = { | |
24080 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24081 | }; | |
24082 | ||
24083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
24087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24088 | { | |
24089 | arg3 = wxString_in_helper(obj2); | |
24090 | if (arg3 == NULL) SWIG_fail; | |
24091 | temp3 = True; | |
24092 | } | |
24093 | if (obj3) { | |
24094 | { | |
24095 | arg4 = &temp4; | |
24096 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24097 | } | |
24098 | } | |
24099 | if (obj4) { | |
24100 | { | |
24101 | arg5 = &temp5; | |
24102 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24103 | } | |
24104 | } | |
24105 | if (obj5) { | |
24106 | arg6 = (long) SWIG_AsLong(obj5); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
24108 | } | |
24109 | if (obj6) { | |
24110 | { | |
24111 | arg7 = wxString_in_helper(obj6); | |
24112 | if (arg7 == NULL) SWIG_fail; | |
24113 | temp7 = True; | |
24114 | } | |
24115 | } | |
24116 | { | |
0439c23b | 24117 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24119 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24120 | ||
24121 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 24122 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24123 | } |
24124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
24125 | { | |
24126 | if (temp3) | |
24127 | delete arg3; | |
24128 | } | |
24129 | { | |
24130 | if (temp7) | |
24131 | delete arg7; | |
24132 | } | |
24133 | return resultobj; | |
24134 | fail: | |
24135 | { | |
24136 | if (temp3) | |
24137 | delete arg3; | |
24138 | } | |
24139 | { | |
24140 | if (temp7) | |
24141 | delete arg7; | |
24142 | } | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24148 | PyObject *resultobj; | |
24149 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24150 | PyObject *arg2 = (PyObject *) 0 ; | |
24151 | PyObject *arg3 = (PyObject *) 0 ; | |
24152 | PyObject * obj0 = 0 ; | |
24153 | PyObject * obj1 = 0 ; | |
24154 | PyObject * obj2 = 0 ; | |
24155 | char *kwnames[] = { | |
24156 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24157 | }; | |
24158 | ||
24159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24162 | arg2 = obj1; | |
24163 | arg3 = obj2; | |
24164 | { | |
24165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24166 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24167 | ||
24168 | wxPyEndAllowThreads(__tstate); | |
24169 | if (PyErr_Occurred()) SWIG_fail; | |
24170 | } | |
24171 | Py_INCREF(Py_None); resultobj = Py_None; | |
24172 | return resultobj; | |
24173 | fail: | |
24174 | return NULL; | |
24175 | } | |
24176 | ||
24177 | ||
24178 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24179 | PyObject *resultobj; | |
24180 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24181 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24182 | PyObject * obj0 = 0 ; | |
24183 | PyObject * obj1 = 0 ; | |
24184 | char *kwnames[] = { | |
24185 | (char *) "self",(char *) "canvas", NULL | |
24186 | }; | |
24187 | ||
24188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
24189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24193 | { | |
24194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24195 | (arg1)->SetPreviewCanvas(arg2); | |
24196 | ||
24197 | wxPyEndAllowThreads(__tstate); | |
24198 | if (PyErr_Occurred()) SWIG_fail; | |
24199 | } | |
24200 | Py_INCREF(Py_None); resultobj = Py_None; | |
24201 | return resultobj; | |
24202 | fail: | |
24203 | return NULL; | |
24204 | } | |
24205 | ||
24206 | ||
24207 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24208 | PyObject *resultobj; | |
24209 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24210 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
24211 | PyObject * obj0 = 0 ; | |
24212 | PyObject * obj1 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self",(char *) "bar", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
24221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24222 | { | |
24223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24224 | (arg1)->SetControlBar(arg2); | |
24225 | ||
24226 | wxPyEndAllowThreads(__tstate); | |
24227 | if (PyErr_Occurred()) SWIG_fail; | |
24228 | } | |
24229 | Py_INCREF(Py_None); resultobj = Py_None; | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
24236 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24237 | PyObject *resultobj; | |
24238 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24239 | PyObject * obj0 = 0 ; | |
24240 | char *kwnames[] = { | |
24241 | (char *) "self", NULL | |
24242 | }; | |
24243 | ||
24244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
24245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24247 | { | |
24248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24249 | (arg1)->base_Initialize(); | |
24250 | ||
24251 | wxPyEndAllowThreads(__tstate); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | } | |
24254 | Py_INCREF(Py_None); resultobj = Py_None; | |
24255 | return resultobj; | |
24256 | fail: | |
24257 | return NULL; | |
24258 | } | |
24259 | ||
24260 | ||
24261 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24262 | PyObject *resultobj; | |
24263 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24264 | PyObject * obj0 = 0 ; | |
24265 | char *kwnames[] = { | |
24266 | (char *) "self", NULL | |
24267 | }; | |
24268 | ||
24269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
24270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24272 | { | |
24273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24274 | (arg1)->base_CreateCanvas(); | |
24275 | ||
24276 | wxPyEndAllowThreads(__tstate); | |
24277 | if (PyErr_Occurred()) SWIG_fail; | |
24278 | } | |
24279 | Py_INCREF(Py_None); resultobj = Py_None; | |
24280 | return resultobj; | |
24281 | fail: | |
24282 | return NULL; | |
24283 | } | |
24284 | ||
24285 | ||
24286 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24287 | PyObject *resultobj; | |
24288 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24289 | PyObject * obj0 = 0 ; | |
24290 | char *kwnames[] = { | |
24291 | (char *) "self", NULL | |
24292 | }; | |
24293 | ||
24294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24297 | { | |
24298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24299 | (arg1)->base_CreateControlBar(); | |
24300 | ||
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | Py_INCREF(Py_None); resultobj = Py_None; | |
24305 | return resultobj; | |
24306 | fail: | |
24307 | return NULL; | |
24308 | } | |
24309 | ||
24310 | ||
24311 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24312 | PyObject *obj; | |
24313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24314 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24315 | Py_INCREF(obj); | |
24316 | return Py_BuildValue((char *)""); | |
24317 | } | |
24318 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24319 | PyObject *resultobj; | |
24320 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24321 | long arg2 ; | |
24322 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24323 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24324 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24325 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24326 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24327 | long arg6 = (long) 0 ; | |
24328 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24329 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24330 | wxPyPreviewControlBar *result; | |
24331 | wxPoint temp4 ; | |
24332 | wxSize temp5 ; | |
24333 | bool temp7 = False ; | |
24334 | PyObject * obj0 = 0 ; | |
24335 | PyObject * obj1 = 0 ; | |
24336 | PyObject * obj2 = 0 ; | |
24337 | PyObject * obj3 = 0 ; | |
24338 | PyObject * obj4 = 0 ; | |
24339 | PyObject * obj5 = 0 ; | |
24340 | PyObject * obj6 = 0 ; | |
24341 | char *kwnames[] = { | |
24342 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24343 | }; | |
24344 | ||
24345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24348 | arg2 = (long) SWIG_AsLong(obj1); | |
24349 | if (PyErr_Occurred()) SWIG_fail; | |
24350 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24352 | if (obj3) { | |
24353 | { | |
24354 | arg4 = &temp4; | |
24355 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24356 | } | |
24357 | } | |
24358 | if (obj4) { | |
24359 | { | |
24360 | arg5 = &temp5; | |
24361 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24362 | } | |
24363 | } | |
24364 | if (obj5) { | |
24365 | arg6 = (long) SWIG_AsLong(obj5); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
24368 | if (obj6) { | |
24369 | { | |
24370 | arg7 = wxString_in_helper(obj6); | |
24371 | if (arg7 == NULL) SWIG_fail; | |
24372 | temp7 = True; | |
24373 | } | |
24374 | } | |
24375 | { | |
0439c23b | 24376 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24378 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24379 | ||
24380 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 24381 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24382 | } |
24383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
24384 | { | |
24385 | if (temp7) | |
24386 | delete arg7; | |
24387 | } | |
24388 | return resultobj; | |
24389 | fail: | |
24390 | { | |
24391 | if (temp7) | |
24392 | delete arg7; | |
24393 | } | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24399 | PyObject *resultobj; | |
24400 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24401 | PyObject *arg2 = (PyObject *) 0 ; | |
24402 | PyObject *arg3 = (PyObject *) 0 ; | |
24403 | PyObject * obj0 = 0 ; | |
24404 | PyObject * obj1 = 0 ; | |
24405 | PyObject * obj2 = 0 ; | |
24406 | char *kwnames[] = { | |
24407 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24408 | }; | |
24409 | ||
24410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24413 | arg2 = obj1; | |
24414 | arg3 = obj2; | |
24415 | { | |
24416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24417 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24418 | ||
24419 | wxPyEndAllowThreads(__tstate); | |
24420 | if (PyErr_Occurred()) SWIG_fail; | |
24421 | } | |
24422 | Py_INCREF(Py_None); resultobj = Py_None; | |
24423 | return resultobj; | |
24424 | fail: | |
24425 | return NULL; | |
24426 | } | |
24427 | ||
24428 | ||
24429 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24430 | PyObject *resultobj; | |
24431 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24432 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
24433 | PyObject * obj0 = 0 ; | |
24434 | PyObject * obj1 = 0 ; | |
24435 | char *kwnames[] = { | |
24436 | (char *) "self",(char *) "preview", NULL | |
24437 | }; | |
24438 | ||
24439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
24440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24442 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
24443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24444 | { | |
24445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24446 | (arg1)->SetPrintPreview(arg2); | |
24447 | ||
24448 | wxPyEndAllowThreads(__tstate); | |
24449 | if (PyErr_Occurred()) SWIG_fail; | |
24450 | } | |
24451 | Py_INCREF(Py_None); resultobj = Py_None; | |
24452 | return resultobj; | |
24453 | fail: | |
24454 | return NULL; | |
24455 | } | |
24456 | ||
24457 | ||
24458 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24459 | PyObject *resultobj; | |
24460 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24461 | PyObject * obj0 = 0 ; | |
24462 | char *kwnames[] = { | |
24463 | (char *) "self", NULL | |
24464 | }; | |
24465 | ||
24466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
24467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24469 | { | |
24470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24471 | (arg1)->base_CreateButtons(); | |
24472 | ||
24473 | wxPyEndAllowThreads(__tstate); | |
24474 | if (PyErr_Occurred()) SWIG_fail; | |
24475 | } | |
24476 | Py_INCREF(Py_None); resultobj = Py_None; | |
24477 | return resultobj; | |
24478 | fail: | |
24479 | return NULL; | |
24480 | } | |
24481 | ||
24482 | ||
24483 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24484 | PyObject *resultobj; | |
24485 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24486 | int arg2 ; | |
24487 | PyObject * obj0 = 0 ; | |
24488 | PyObject * obj1 = 0 ; | |
24489 | char *kwnames[] = { | |
24490 | (char *) "self",(char *) "zoom", NULL | |
24491 | }; | |
24492 | ||
24493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
24494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24496 | arg2 = (int) SWIG_AsInt(obj1); | |
24497 | if (PyErr_Occurred()) SWIG_fail; | |
24498 | { | |
24499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24500 | (arg1)->base_SetZoomControl(arg2); | |
24501 | ||
24502 | wxPyEndAllowThreads(__tstate); | |
24503 | if (PyErr_Occurred()) SWIG_fail; | |
24504 | } | |
24505 | Py_INCREF(Py_None); resultobj = Py_None; | |
24506 | return resultobj; | |
24507 | fail: | |
24508 | return NULL; | |
24509 | } | |
24510 | ||
24511 | ||
24512 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
24513 | PyObject *obj; | |
24514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24515 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
24516 | Py_INCREF(obj); | |
24517 | return Py_BuildValue((char *)""); | |
24518 | } | |
24519 | static PyMethodDef SwigMethods[] = { | |
24520 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
24521 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
24522 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
24523 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24524 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24525 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, |
24526 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24527 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24528 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24529 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24530 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
24531 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24532 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24533 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
24534 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
24535 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
24536 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
24537 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
24538 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24539 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24540 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
24541 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
24542 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24543 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
24544 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24545 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24546 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
24547 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24548 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24549 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, |
24550 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24551 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24552 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
24553 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
24554 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
24555 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24556 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24557 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
24558 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24559 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24560 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24561 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24562 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
24563 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, | |
24564 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacGetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, | |
24565 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
24566 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
24567 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
24568 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24569 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
24570 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
24571 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24572 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24573 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
24574 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24575 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24576 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24577 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24578 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24579 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24580 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24581 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24582 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24583 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24584 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24585 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24586 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
24587 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24588 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24589 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, |
24590 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
24591 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24593 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24594 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
24596 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
24597 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
24598 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24600 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24601 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, |
24602 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24603 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24605 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
24606 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
24610 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
24611 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
24612 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24613 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
24614 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
24615 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24619 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24622 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
24627 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24629 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24630 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, |
24631 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24633 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
24644 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24657 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24658 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, |
24659 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
24666 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24676 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24680 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
24689 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
24697 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24702 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
24709 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
24715 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24716 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24721 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
24722 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
24724 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
24728 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
24730 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
24733 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
24736 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
24737 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
24740 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
24747 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
24758 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
24778 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
24784 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 24790 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24791 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, |
24792 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24794 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
24796 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
24798 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
24807 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
24810 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
24817 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24827 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
24835 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
24839 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
24844 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
24848 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
24864 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
24867 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
24869 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
24873 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24879 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
24882 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
24891 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
24897 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
24909 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
24916 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
24920 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24923 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24924 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
24925 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24944 | { (char *)"PyWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24945 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, |
24946 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24949 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24950 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
24951 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24970 | { (char *)"PyPanel_base_GetDefaultAttributes", (PyCFunction) _wrap_PyPanel_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24971 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, |
24972 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24974 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24975 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24976 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
24977 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24996 | { (char *)"PyScrolledWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyScrolledWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24997 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, |
24998 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25025 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25031 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
25044 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25049 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25060 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
25076 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
25080 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
25081 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
25114 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
25119 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
25130 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
25153 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
25155 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
25161 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
25171 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
25172 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25173 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
25195 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
25196 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
25205 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
25213 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
25219 | { NULL, NULL } | |
25220 | }; | |
25221 | ||
25222 | ||
25223 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25224 | ||
25225 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
25226 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25227 | } | |
25228 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25229 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25230 | } | |
25231 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25232 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25233 | } | |
25234 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25235 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25236 | } | |
25237 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25238 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25239 | } | |
25240 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25241 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25242 | } | |
25243 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25244 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25245 | } | |
25246 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
25247 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25248 | } | |
25249 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25250 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25251 | } | |
25252 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25253 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25254 | } | |
25255 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
25256 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25257 | } | |
25258 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25259 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25260 | } | |
25261 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25262 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25263 | } | |
25264 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
25265 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25266 | } | |
25267 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25268 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25269 | } | |
25270 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25271 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25272 | } | |
25273 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25274 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25275 | } | |
25276 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25277 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25278 | } | |
25279 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25280 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25281 | } | |
25282 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25283 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25284 | } | |
25285 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25286 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25287 | } | |
25288 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25289 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25290 | } | |
25291 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25292 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25293 | } | |
25294 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25295 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25296 | } | |
25297 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25298 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25299 | } | |
25300 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25301 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25302 | } | |
25303 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25304 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25305 | } | |
25306 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25307 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25308 | } | |
25309 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25310 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25311 | } | |
25312 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25313 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25314 | } | |
25315 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25316 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25317 | } | |
25318 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25319 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25320 | } | |
25321 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25322 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25323 | } | |
25324 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25325 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25326 | } | |
25327 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25328 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25329 | } | |
25330 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25331 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25332 | } | |
25333 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25334 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25335 | } | |
25336 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25337 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25338 | } | |
25339 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25340 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25341 | } | |
25342 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25343 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25344 | } | |
25345 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25346 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25347 | } | |
25348 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
25349 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25350 | } | |
25351 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
25352 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25353 | } | |
25354 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
25355 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25356 | } | |
25357 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
25358 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25359 | } | |
25360 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
25361 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25362 | } | |
25363 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25364 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25365 | } | |
25366 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25367 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25368 | } | |
25369 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25370 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25371 | } | |
25372 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25373 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25374 | } | |
25375 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
25376 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25377 | } | |
25378 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25379 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25380 | } | |
25381 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25382 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25383 | } | |
25384 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
25385 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25386 | } | |
25387 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
25388 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25389 | } | |
25390 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
25391 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25392 | } | |
25393 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
25394 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25395 | } | |
25396 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
25397 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
25398 | } | |
25399 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
25400 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
25401 | } | |
25402 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25403 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25404 | } | |
25405 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
25406 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25407 | } | |
25408 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
25409 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25410 | } | |
25411 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
25412 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
25413 | } | |
25414 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
25415 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25416 | } | |
25417 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
25418 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
25419 | } | |
25420 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
25421 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
25422 | } | |
25423 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
25424 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
25425 | } | |
25426 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25427 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25428 | } | |
25429 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25430 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25431 | } | |
25432 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
25433 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
25434 | } | |
25435 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
25436 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
25437 | } | |
25438 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25439 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25440 | } | |
25441 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25442 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25443 | } | |
25444 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25445 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25446 | } | |
25447 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25448 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25449 | } | |
25450 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
25451 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25452 | } | |
25453 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25454 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25455 | } | |
25456 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25457 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25458 | } | |
25459 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
25460 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
25461 | } | |
25462 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
25463 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25464 | } | |
25465 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
25466 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25467 | } | |
25468 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
25469 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25470 | } | |
25471 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25472 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25473 | } | |
25474 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25475 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25476 | } | |
25477 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
25478 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25479 | } | |
25480 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
25481 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25482 | } | |
25483 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
25484 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25485 | } | |
25486 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
25487 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25488 | } | |
25489 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
25490 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25491 | } | |
25492 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
25493 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25494 | } | |
25495 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
25496 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25497 | } | |
25498 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
25499 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25500 | } | |
25501 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
25502 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25503 | } | |
25504 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
25505 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25506 | } | |
25507 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
25508 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
25509 | } | |
25510 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
25511 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
25512 | } | |
25513 | static void *_p_wxTipWindowTo_p_wxFrame(void *x) { | |
25514 | return (void *)((wxFrame *) ((wxTipWindow *) x)); | |
25515 | } | |
25516 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
25517 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
25518 | } | |
25519 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
25520 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25521 | } | |
25522 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
25523 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
25524 | } | |
25525 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
25526 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
25527 | } | |
25528 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
25529 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
25530 | } | |
25531 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25532 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25533 | } | |
25534 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
25535 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25536 | } | |
25537 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
25538 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25539 | } | |
25540 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
25541 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25542 | } | |
25543 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25544 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25545 | } | |
25546 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25547 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25548 | } | |
25549 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25550 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25551 | } | |
25552 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25553 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25554 | } | |
25555 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25556 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25557 | } | |
25558 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25559 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25560 | } | |
25561 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25562 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25563 | } | |
25564 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25565 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25566 | } | |
25567 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25568 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25569 | } | |
25570 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
25571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25572 | } | |
25573 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25574 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25575 | } | |
25576 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
25577 | return (void *)((wxObject *) ((wxFontData *) x)); | |
25578 | } | |
25579 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
25580 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
25581 | } | |
25582 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25583 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25584 | } | |
25585 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25586 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25587 | } | |
25588 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25589 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25590 | } | |
25591 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
25592 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
25593 | } | |
25594 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
25595 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25596 | } | |
25597 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
25598 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25599 | } | |
25600 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25601 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25602 | } | |
25603 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25604 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25605 | } | |
25606 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25607 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25608 | } | |
25609 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25610 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25611 | } | |
25612 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25613 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25614 | } | |
25615 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25616 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25617 | } | |
25618 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
25619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25620 | } | |
25621 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25622 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25623 | } | |
25624 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25625 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25626 | } | |
25627 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
25628 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25629 | } | |
25630 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25631 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25632 | } | |
25633 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
25634 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
25635 | } | |
25636 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25637 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25638 | } | |
25639 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
25640 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25641 | } | |
25642 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
25643 | return (void *)((wxObject *) ((wxColourData *) x)); | |
25644 | } | |
25645 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25646 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25647 | } | |
25648 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25649 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25650 | } | |
25651 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
25652 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
25653 | } | |
25654 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
25655 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25656 | } | |
25657 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
25658 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25659 | } | |
25660 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
25661 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25662 | } | |
25663 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
25664 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25665 | } | |
25666 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
25667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25668 | } | |
25669 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
25670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25671 | } | |
25672 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
25673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25674 | } | |
25675 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
25676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25677 | } | |
25678 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25679 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25680 | } | |
25681 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
25682 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
25683 | } | |
25684 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25685 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25686 | } | |
25687 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25688 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25689 | } | |
25690 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25691 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25692 | } | |
25693 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25694 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25695 | } | |
25696 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25697 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25698 | } | |
25699 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25700 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25701 | } | |
25702 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25703 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25704 | } | |
25705 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25706 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25707 | } | |
25708 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25709 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25710 | } | |
25711 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25712 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25713 | } | |
25714 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25715 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25716 | } | |
25717 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25718 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25719 | } | |
25720 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25721 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25722 | } | |
25723 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25724 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25725 | } | |
25726 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25727 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25728 | } | |
25729 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25730 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25731 | } | |
25732 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25733 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25734 | } | |
25735 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25736 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25737 | } | |
25738 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25739 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25740 | } | |
25741 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25742 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25743 | } | |
25744 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25745 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25746 | } | |
25747 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25748 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25749 | } | |
25750 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
25751 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25752 | } | |
25753 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
25754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25755 | } | |
25756 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
25757 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25758 | } | |
25759 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
25760 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25761 | } | |
25762 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
25763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25764 | } | |
25765 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25766 | return (void *)((wxObject *) ((wxImage *) x)); | |
25767 | } | |
25768 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
25769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25770 | } | |
25771 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
25772 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
25773 | } | |
25774 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25775 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25776 | } | |
25777 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
25778 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25779 | } | |
25780 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
25781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
25782 | } | |
25783 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
25784 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25785 | } | |
25786 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25787 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25788 | } | |
25789 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25790 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25791 | } | |
25792 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25793 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25794 | } | |
25795 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25796 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25797 | } | |
25798 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25799 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25800 | } | |
25801 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25803 | } | |
25804 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
25805 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25806 | } | |
25807 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
25808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
25809 | } | |
25810 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
25811 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
25812 | } | |
25813 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
25814 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
25815 | } | |
25816 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
25817 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
25818 | } | |
25819 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
25820 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25821 | } | |
25822 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
25823 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
25824 | } | |
25825 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
25826 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25827 | } | |
25828 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
25829 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25830 | } | |
25831 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
25832 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25833 | } | |
25834 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
25835 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
25836 | } | |
25837 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
25838 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25839 | } | |
25840 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
25841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
25842 | } | |
25843 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
25844 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
25845 | } | |
25846 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
25847 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
25848 | } | |
25849 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
25850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
25851 | } | |
25852 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
25853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25854 | } | |
25855 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
25856 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25857 | } | |
25858 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
25859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25860 | } | |
25861 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
25862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25863 | } | |
25864 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
25865 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25866 | } | |
25867 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
25868 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25869 | } | |
25870 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25871 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25872 | } | |
25873 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25874 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25875 | } | |
25876 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25877 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25878 | } | |
25879 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25880 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25881 | } | |
25882 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25883 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25884 | } | |
25885 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25886 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25887 | } | |
25888 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25889 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25890 | } | |
25891 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25892 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25893 | } | |
25894 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25895 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25896 | } | |
25897 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
25898 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25899 | } | |
25900 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
25901 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25902 | } | |
25903 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25904 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25905 | } | |
25906 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25907 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25908 | } | |
25909 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25910 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25911 | } | |
25912 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25913 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25914 | } | |
25915 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
25916 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
25917 | } | |
25918 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
25919 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
25920 | } | |
25921 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25922 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25923 | } | |
25924 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25925 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25926 | } | |
25927 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
25928 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25929 | } | |
25930 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
25931 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25932 | } | |
25933 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
25934 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25935 | } | |
25936 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
25937 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25938 | } | |
25939 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
25940 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
25941 | } | |
25942 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
25943 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
25944 | } | |
25945 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
25946 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
25947 | } | |
25948 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
25949 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
25950 | } | |
25951 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
25952 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
25953 | } | |
25954 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
25955 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
25956 | } | |
25957 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
25958 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
25959 | } | |
25960 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
25961 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
25962 | } | |
25963 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
25964 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
25965 | } | |
25966 | static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { | |
25967 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); | |
25968 | } | |
25969 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
25970 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
25971 | } | |
25972 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
25973 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
25974 | } | |
25975 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
25976 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
25977 | } | |
25978 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
25979 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
25980 | } | |
25981 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
25982 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
25983 | } | |
25984 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
25985 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25986 | } | |
25987 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
25988 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25989 | } | |
25990 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
25991 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
25992 | } | |
25993 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
25994 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
25995 | } | |
25996 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
25997 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
25998 | } | |
25999 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26000 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26001 | } | |
26002 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
26003 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26004 | } | |
26005 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
26006 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26007 | } | |
26008 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
26009 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
26010 | } | |
26011 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26012 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26013 | } | |
26014 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
26015 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26016 | } | |
26017 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
26018 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26019 | } | |
26020 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
26021 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26022 | } | |
26023 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
26024 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26025 | } | |
26026 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
26027 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26028 | } | |
26029 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
26030 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26031 | } | |
26032 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
26033 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26034 | } | |
26035 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
26036 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
26037 | } | |
26038 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
26039 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
26040 | } | |
26041 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
26042 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
26043 | } | |
26044 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
26045 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26046 | } | |
26047 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
26048 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
26049 | } | |
26050 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
26051 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26052 | } | |
26053 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
26054 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
26055 | } | |
26056 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
26057 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26058 | } | |
26059 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
26060 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
26061 | } | |
26062 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
26063 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
26064 | } | |
26065 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
26066 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
26067 | } | |
26068 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
26069 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
26070 | } | |
26071 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
26072 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
26073 | } | |
26074 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
26075 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26076 | } | |
26077 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26078 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26079 | } | |
26080 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
26081 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26082 | } | |
26083 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
26084 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26085 | } | |
26086 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
26087 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26088 | } | |
26089 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26090 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26091 | } | |
26092 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
26093 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
26094 | } | |
26095 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
26096 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26097 | } | |
26098 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
26099 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26100 | } | |
26101 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
26102 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26103 | } | |
26104 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
26105 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
26106 | } | |
26107 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
26108 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26109 | } | |
26110 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
26111 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
26112 | } | |
26113 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
26114 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26115 | } | |
26116 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
26117 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26118 | } | |
26119 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
26120 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26121 | } | |
26122 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
26123 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
26124 | } | |
26125 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
26126 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26127 | } | |
26128 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
26129 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26130 | } | |
26131 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
26132 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26133 | } | |
26134 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
26135 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26136 | } | |
26137 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
26138 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26139 | } | |
26140 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
26141 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26142 | } | |
26143 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
26144 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
26145 | } | |
26146 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
26147 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
26148 | } | |
26149 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
26150 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
26151 | } | |
26152 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
26153 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
26154 | } | |
26155 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
26156 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
26157 | } | |
26158 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
26159 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
26160 | } | |
26161 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
26162 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26163 | } | |
26164 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
26165 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26166 | } | |
26167 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
26168 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
26169 | } | |
26170 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
26171 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
26172 | } | |
26173 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
26174 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
26175 | } | |
26176 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
26177 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
26178 | } | |
26179 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
26180 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26181 | } | |
26182 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
26183 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26184 | } | |
26185 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
26186 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26187 | } | |
26188 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
26189 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26190 | } | |
26191 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
26192 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
26193 | } | |
26194 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
26195 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26196 | } | |
26197 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
26198 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
26199 | } | |
26200 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
26201 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26202 | } | |
26203 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
26204 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26205 | } | |
26206 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
26207 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
26208 | } | |
26209 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
26210 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26211 | } | |
26212 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
26213 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26214 | } | |
26215 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
26216 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26217 | } | |
26218 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
26219 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26220 | } | |
26221 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
26222 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26223 | } | |
26224 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
26225 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26226 | } | |
26227 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
26228 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26229 | } | |
26230 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
26231 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26232 | } | |
26233 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
26234 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
26235 | } | |
26236 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
26237 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26238 | } | |
26239 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent[] = {{"_p_wxQueryLayoutInfoEvent", 0, "wxQueryLayoutInfoEvent *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26240 | static swig_type_info _swigt__p_wxPreviewFrame[] = {{"_p_wxPreviewFrame", 0, "wxPreviewFrame *", 0, 0, 0, 0},{"_p_wxPreviewFrame", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxPreviewFrame, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26241 | static swig_type_info _swigt__p_wxPyPreviewFrame[] = {{"_p_wxPyPreviewFrame", 0, "wxPyPreviewFrame *", 0, 0, 0, 0},{"_p_wxPyPreviewFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26242 | static swig_type_info _swigt__p_wxPyPanel[] = {{"_p_wxPyPanel", 0, "wxPyPanel *", 0, 0, 0, 0},{"_p_wxPyPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26243 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
26244 | static swig_type_info _swigt__p_wxFontData[] = {{"_p_wxFontData", 0, "wxFontData *", 0, 0, 0, 0},{"_p_wxFontData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
26245 | 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_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_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_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}}; | |
f20a2e1f | 26246 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
26247 | static swig_type_info _swigt__p_wxTaskBarIcon[] = {{"_p_wxTaskBarIcon", 0, "wxTaskBarIcon *", 0, 0, 0, 0},{"_p_wxTaskBarIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
26248 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26249 | static swig_type_info _swigt__p_wxLayoutAlgorithm[] = {{"_p_wxLayoutAlgorithm", 0, "wxLayoutAlgorithm *", 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26250 | static swig_type_info _swigt__p_wxFindDialogEvent[] = {{"_p_wxFindDialogEvent", 0, "wxFindDialogEvent *", 0, 0, 0, 0},{"_p_wxFindDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26251 | static swig_type_info _swigt__p_wxPreviewCanvas[] = {{"_p_wxPreviewCanvas", 0, "wxPreviewCanvas *", 0, 0, 0, 0},{"_p_wxPreviewCanvas", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26252 | 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}}; | |
26253 | static swig_type_info _swigt__p_wxSplitterEvent[] = {{"_p_wxSplitterEvent", 0, "wxSplitterEvent *", 0, 0, 0, 0},{"_p_wxSplitterEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26254 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26255 | static swig_type_info _swigt__p_wxFindReplaceData[] = {{"_p_wxFindReplaceData", 0, "wxFindReplaceData *", 0, 0, 0, 0},{"_p_wxFindReplaceData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26256 | 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}}; | |
26257 | 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}}; | |
26258 | 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}}; | |
26259 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
f20a2e1f | 26260 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
26261 | static swig_type_info _swigt__p_wxMDIChildFrame[] = {{"_p_wxMDIChildFrame", 0, "wxMDIChildFrame *", 0, 0, 0, 0},{"_p_wxMDIChildFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
26262 | static swig_type_info _swigt__p_wxColourData[] = {{"_p_wxColourData", 0, "wxColourData *", 0, 0, 0, 0},{"_p_wxColourData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26263 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26264 | static swig_type_info _swigt__p_wxPyWindow[] = {{"_p_wxPyWindow", 0, "wxPyWindow *", 0, 0, 0, 0},{"_p_wxPyWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26265 | static swig_type_info _swigt__p_wxSplashScreen[] = {{"_p_wxSplashScreen", 0, "wxSplashScreen *", 0, 0, 0, 0},{"_p_wxSplashScreen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26266 | static swig_type_info _swigt__p_wxFindReplaceDialog[] = {{"_p_wxFindReplaceDialog", 0, "wxFindReplaceDialog *", 0, 0, 0, 0},{"_p_wxFindReplaceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26267 | static swig_type_info _swigt__p_wxProgressDialog[] = {{"_p_wxProgressDialog", 0, "wxProgressDialog *", 0, 0, 0, 0},{"_p_wxProgressDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26268 | static swig_type_info _swigt__p_wxMessageDialog[] = {{"_p_wxMessageDialog", 0, "wxMessageDialog *", 0, 0, 0, 0},{"_p_wxMessageDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26269 | static swig_type_info _swigt__p_wxTextEntryDialog[] = {{"_p_wxTextEntryDialog", 0, "wxTextEntryDialog *", 0, 0, 0, 0},{"_p_wxTextEntryDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26270 | static swig_type_info _swigt__p_wxSingleChoiceDialog[] = {{"_p_wxSingleChoiceDialog", 0, "wxSingleChoiceDialog *", 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26271 | static swig_type_info _swigt__p_wxMultiChoiceDialog[] = {{"_p_wxMultiChoiceDialog", 0, "wxMultiChoiceDialog *", 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26272 | static swig_type_info _swigt__p_wxFileDialog[] = {{"_p_wxFileDialog", 0, "wxFileDialog *", 0, 0, 0, 0},{"_p_wxFileDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26273 | static swig_type_info _swigt__p_wxPrinter[] = {{"_p_wxPrinter", 0, "wxPrinter *", 0, 0, 0, 0},{"_p_wxPrinter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26274 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26275 | 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_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_wxProgressDialog", _p_wxProgressDialogTo_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_wxTipWindow", _p_wxTipWindowTo_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_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_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_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_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}}; | |
26276 | static swig_type_info _swigt__p_wxCalculateLayoutEvent[] = {{"_p_wxCalculateLayoutEvent", 0, "wxCalculateLayoutEvent *", 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26277 | static swig_type_info _swigt__p_wxPyHtmlListBox[] = {{"_p_wxPyHtmlListBox", 0, "wxPyHtmlListBox *", 0, 0, 0, 0},{"_p_wxPyHtmlListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26278 | static swig_type_info _swigt__p_wxPyVListBox[] = {{"_p_wxPyVListBox", 0, "wxPyVListBox *", 0, 0, 0, 0},{"_p_wxPyVListBox", 0, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26279 | 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}}; | |
26280 | 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}}; | |
26281 | static swig_type_info _swigt__p_wxMiniFrame[] = {{"_p_wxMiniFrame", 0, "wxMiniFrame *", 0, 0, 0, 0},{"_p_wxMiniFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26282 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxFrame, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxFrame, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26283 | static swig_type_info _swigt__p_wxPyPrintout[] = {{"_p_wxPyPrintout", 0, "wxPyPrintout *", 0, 0, 0, 0},{"_p_wxPyPrintout", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26284 | static swig_type_info _swigt__p_wxTaskBarIconEvent[] = {{"_p_wxTaskBarIconEvent", 0, "wxTaskBarIconEvent *", 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26285 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26286 | static swig_type_info _swigt__p_wxStatusBar[] = {{"_p_wxStatusBar", 0, "wxStatusBar *", 0, 0, 0, 0},{"_p_wxStatusBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26287 | static swig_type_info _swigt__p_wxMDIParentFrame[] = {{"_p_wxMDIParentFrame", 0, "wxMDIParentFrame *", 0, 0, 0, 0},{"_p_wxMDIParentFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26288 | 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}}; | |
26289 | 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_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_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_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_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_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_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_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_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_wxTipWindow", _p_wxTipWindowTo_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_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_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_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_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_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_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_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_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_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}}; | |
26290 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26291 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26292 | static swig_type_info _swigt__p_wxPyScrolledWindow[] = {{"_p_wxPyScrolledWindow", 0, "wxPyScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26293 | static swig_type_info _swigt__p_wxMDIClientWindow[] = {{"_p_wxMDIClientWindow", 0, "wxMDIClientWindow *", 0, 0, 0, 0},{"_p_wxMDIClientWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26294 | static swig_type_info _swigt__p_wxTipWindow[] = {{"_p_wxTipWindow", 0, "wxTipWindow *", 0, 0, 0, 0},{"_p_wxTipWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26295 | static swig_type_info _swigt__p_wxPyPopupTransientWindow[] = {{"_p_wxPyPopupTransientWindow", 0, "wxPyPopupTransientWindow *", 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26296 | static swig_type_info _swigt__p_wxSashLayoutWindow[] = {{"_p_wxSashLayoutWindow", 0, "wxSashLayoutWindow *", 0, 0, 0, 0},{"_p_wxSashLayoutWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26297 | static swig_type_info _swigt__p_wxSplitterWindow[] = {{"_p_wxSplitterWindow", 0, "wxSplitterWindow *", 0, 0, 0, 0},{"_p_wxSplitterWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26298 | static swig_type_info _swigt__p_wxPyVScrolledWindow[] = {{"_p_wxPyVScrolledWindow", 0, "wxPyVScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPyVScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26299 | static swig_type_info _swigt__p_wxPopupWindow[] = {{"_p_wxPopupWindow", 0, "wxPopupWindow *", 0, 0, 0, 0},{"_p_wxPopupWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxPopupWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26300 | static swig_type_info _swigt__p_wxSashWindow[] = {{"_p_wxSashWindow", 0, "wxSashWindow *", 0, 0, 0, 0},{"_p_wxSashWindow", 0, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxSashWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26301 | static swig_type_info _swigt__p_wxTopLevelWindow[] = {{"_p_wxTopLevelWindow", 0, "wxTopLevelWindow *", 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", 0, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26302 | 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_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_wxTipWindow", _p_wxTipWindowTo_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_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_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_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_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}}; | |
26303 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 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}}; | |
26304 | static swig_type_info _swigt__p_wxSplashScreenWindow[] = {{"_p_wxSplashScreenWindow", 0, "wxSplashScreenWindow *", 0, 0, 0, 0},{"_p_wxSplashScreenWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26305 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26306 | static swig_type_info _swigt__p_wxPrintPreview[] = {{"_p_wxPrintPreview", 0, "wxPrintPreview *", 0, 0, 0, 0},{"_p_wxPrintPreview", 0, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxPrintPreview, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26307 | static swig_type_info _swigt__p_wxSashEvent[] = {{"_p_wxSashEvent", 0, "wxSashEvent *", 0, 0, 0, 0},{"_p_wxSashEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26308 | 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}}; | |
26309 | static swig_type_info _swigt__p_wxPyPrintPreview[] = {{"_p_wxPyPrintPreview", 0, "wxPyPrintPreview *", 0, 0, 0, 0},{"_p_wxPyPrintPreview", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26310 | static swig_type_info _swigt__p_wxFontDialog[] = {{"_p_wxFontDialog", 0, "wxFontDialog *", 0, 0, 0, 0},{"_p_wxFontDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26311 | static swig_type_info _swigt__p_wxDirDialog[] = {{"_p_wxDirDialog", 0, "wxDirDialog *", 0, 0, 0, 0},{"_p_wxDirDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26312 | static swig_type_info _swigt__p_wxColourDialog[] = {{"_p_wxColourDialog", 0, "wxColourDialog *", 0, 0, 0, 0},{"_p_wxColourDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26313 | static swig_type_info _swigt__p_wxDialog[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxDialog, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26314 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 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}}; | |
26315 | static swig_type_info _swigt__p_wxPageSetupDialog[] = {{"_p_wxPageSetupDialog", 0, "wxPageSetupDialog *", 0, 0, 0, 0},{"_p_wxPageSetupDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26316 | static swig_type_info _swigt__p_wxPrintDialog[] = {{"_p_wxPrintDialog", 0, "wxPrintDialog *", 0, 0, 0, 0},{"_p_wxPrintDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d6c14a4c | 26317 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
26318 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
26319 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26320 | static swig_type_info _swigt__p_wxPreviewControlBar[] = {{"_p_wxPreviewControlBar", 0, "wxPreviewControlBar *", 0, 0, 0, 0},{"_p_wxPreviewControlBar", 0, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26321 | static swig_type_info _swigt__p_wxPyPreviewControlBar[] = {{"_p_wxPyPreviewControlBar", 0, "wxPyPreviewControlBar *", 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26322 | 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}}; | |
26323 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26324 | static swig_type_info _swigt__p_wxPageSetupDialogData[] = {{"_p_wxPageSetupDialogData", 0, "wxPageSetupDialogData *", 0, 0, 0, 0},{"_p_wxPageSetupDialogData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26325 | static swig_type_info _swigt__p_wxPrintDialogData[] = {{"_p_wxPrintDialogData", 0, "wxPrintDialogData *", 0, 0, 0, 0},{"_p_wxPrintDialogData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26326 | ||
26327 | static swig_type_info *swig_types_initial[] = { | |
26328 | _swigt__p_wxQueryLayoutInfoEvent, | |
26329 | _swigt__p_wxPreviewFrame, | |
26330 | _swigt__p_wxPyPreviewFrame, | |
26331 | _swigt__p_wxPyPanel, | |
26332 | _swigt__p_wxMenu, | |
d55e5bfc RD |
26333 | _swigt__p_wxFontData, |
26334 | _swigt__p_wxEvent, | |
f20a2e1f | 26335 | _swigt__p_wxPrintData, |
d55e5bfc RD |
26336 | _swigt__p_wxTaskBarIcon, |
26337 | _swigt__p_wxIconBundle, | |
26338 | _swigt__p_wxLayoutAlgorithm, | |
26339 | _swigt__p_wxFindDialogEvent, | |
26340 | _swigt__p_wxPreviewCanvas, | |
26341 | _swigt__p_wxFont, | |
26342 | _swigt__p_wxSplitterEvent, | |
26343 | _swigt__p_wxRegion, | |
26344 | _swigt__p_wxFindReplaceData, | |
26345 | _swigt__p_int, | |
26346 | _swigt__p_wxSize, | |
26347 | _swigt__p_wxDC, | |
26348 | _swigt__p_wxIcon, | |
f20a2e1f | 26349 | _swigt__p_wxVisualAttributes, |
d55e5bfc RD |
26350 | _swigt__p_wxMDIChildFrame, |
26351 | _swigt__p_wxColourData, | |
26352 | _swigt__p_wxNotifyEvent, | |
26353 | _swigt__p_wxPyWindow, | |
26354 | _swigt__p_wxSplashScreen, | |
26355 | _swigt__p_wxFindReplaceDialog, | |
26356 | _swigt__p_wxProgressDialog, | |
26357 | _swigt__p_wxMessageDialog, | |
26358 | _swigt__p_wxTextEntryDialog, | |
26359 | _swigt__p_wxSingleChoiceDialog, | |
26360 | _swigt__p_wxMultiChoiceDialog, | |
26361 | _swigt__p_wxFileDialog, | |
26362 | _swigt__p_wxPrinter, | |
26363 | _swigt__p_wxArrayInt, | |
26364 | _swigt__p_wxEvtHandler, | |
26365 | _swigt__p_wxCalculateLayoutEvent, | |
26366 | _swigt__p_wxPyHtmlListBox, | |
26367 | _swigt__p_wxPyVListBox, | |
26368 | _swigt__p_wxRect, | |
26369 | _swigt__p_char, | |
26370 | _swigt__p_wxMiniFrame, | |
26371 | _swigt__p_wxFrame, | |
26372 | _swigt__p_wxPyPrintout, | |
26373 | _swigt__p_wxTaskBarIconEvent, | |
26374 | _swigt__p_wxScrollWinEvent, | |
26375 | _swigt__p_wxStatusBar, | |
26376 | _swigt__p_wxMDIParentFrame, | |
26377 | _swigt__p_wxPoint, | |
26378 | _swigt__p_wxObject, | |
26379 | _swigt__p_wxOutputStream, | |
26380 | _swigt__p_unsigned_long, | |
26381 | _swigt__p_wxPyScrolledWindow, | |
26382 | _swigt__p_wxMDIClientWindow, | |
26383 | _swigt__p_wxTipWindow, | |
26384 | _swigt__p_wxPyPopupTransientWindow, | |
26385 | _swigt__p_wxSashLayoutWindow, | |
26386 | _swigt__p_wxSplitterWindow, | |
26387 | _swigt__p_wxPyVScrolledWindow, | |
26388 | _swigt__p_wxPopupWindow, | |
26389 | _swigt__p_wxSashWindow, | |
26390 | _swigt__p_wxTopLevelWindow, | |
26391 | _swigt__p_wxWindow, | |
26392 | _swigt__p_wxScrolledWindow, | |
26393 | _swigt__p_wxSplashScreenWindow, | |
26394 | _swigt__p_wxMenuBar, | |
26395 | _swigt__p_wxPrintPreview, | |
26396 | _swigt__p_wxSashEvent, | |
26397 | _swigt__p_wxString, | |
26398 | _swigt__p_wxPyPrintPreview, | |
26399 | _swigt__p_wxFontDialog, | |
26400 | _swigt__p_wxDirDialog, | |
26401 | _swigt__p_wxColourDialog, | |
26402 | _swigt__p_wxDialog, | |
26403 | _swigt__p_wxPanel, | |
26404 | _swigt__p_wxPageSetupDialog, | |
26405 | _swigt__p_wxPrintDialog, | |
d6c14a4c | 26406 | _swigt__p_wxFileSystem, |
d55e5bfc RD |
26407 | _swigt__p_wxBitmap, |
26408 | _swigt__p_wxCommandEvent, | |
26409 | _swigt__p_wxPreviewControlBar, | |
26410 | _swigt__p_wxPyPreviewControlBar, | |
26411 | _swigt__p_wxColour, | |
26412 | _swigt__p_wxToolBar, | |
26413 | _swigt__p_wxPageSetupDialogData, | |
26414 | _swigt__p_wxPrintDialogData, | |
26415 | 0 | |
26416 | }; | |
26417 | ||
26418 | ||
26419 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26420 | ||
26421 | static swig_const_info swig_const_table[] = { | |
26422 | {0}}; | |
26423 | ||
26424 | #ifdef __cplusplus | |
26425 | } | |
26426 | #endif | |
26427 | ||
26428 | #ifdef __cplusplus | |
26429 | extern "C" | |
26430 | #endif | |
26431 | SWIGEXPORT(void) SWIG_init(void) { | |
26432 | static PyObject *SWIG_globals = 0; | |
26433 | static int typeinit = 0; | |
26434 | PyObject *m, *d; | |
26435 | int i; | |
26436 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26437 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26438 | d = PyModule_GetDict(m); | |
26439 | ||
26440 | if (!typeinit) { | |
26441 | for (i = 0; swig_types_initial[i]; i++) { | |
26442 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26443 | } | |
26444 | typeinit = 1; | |
26445 | } | |
26446 | SWIG_InstallConstants(d,swig_const_table); | |
26447 | ||
26448 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26449 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
26450 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
26451 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
26452 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
26453 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
26454 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
26455 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
26456 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
26457 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
26458 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
26459 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
26460 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
26461 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
26462 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
26463 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
26464 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
26465 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
26466 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
26467 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
26468 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
26469 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
26470 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
26471 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
26472 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
26473 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
26474 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
26475 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
26476 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
26477 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
26478 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
26479 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
26480 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
26481 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
26482 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
26483 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
26484 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
26485 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
26486 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
26487 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
26488 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
26489 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
26490 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
26491 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
26492 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
26493 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
26494 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
26495 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
26496 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
26497 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
26498 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
26499 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
26500 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
26501 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
26502 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
26503 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
26504 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
26505 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
26506 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
26507 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
26508 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
26509 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
26510 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
26511 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
26512 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
26513 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
26514 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
26515 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
26516 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
26517 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
26518 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
26519 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
26520 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
26521 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
26522 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
26523 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
26524 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
26525 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
26526 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
26527 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
26528 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
26529 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
26530 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
26531 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
26532 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
26533 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
26534 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
26535 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
26536 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
26537 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
26538 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
26539 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
26540 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
26541 | ||
26542 | // Map renamed classes back to their common name for OOR | |
26543 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
26544 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
26545 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
26546 | ||
26547 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
26548 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
26549 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
26550 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
26551 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
26552 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
26553 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
26554 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26555 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
26556 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
26557 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26558 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
26559 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
26560 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
26561 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
26562 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
26563 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
26564 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
26565 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
26566 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
26567 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
26568 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
26569 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
26570 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
26571 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
26572 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
26573 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
26574 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
26575 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
26576 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
26577 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
26578 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
26579 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
26580 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
26581 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
26582 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
26583 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
26584 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
26585 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
26586 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
26587 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
26588 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
26589 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
26590 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
26591 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
26592 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
26593 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
26594 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
26595 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
26596 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
26597 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
26598 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
26599 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
26600 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
26601 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
26602 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
26603 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
26604 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
26605 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
26606 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
26607 | ||
26608 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
26609 | ||
26610 | } | |
26611 |