]>
Commit | Line | Data |
---|---|---|
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] | |
214 | #define SWIGTYPE_p_wxPrintData swig_types[5] | |
215 | #define SWIGTYPE_p_wxFontData swig_types[6] | |
216 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
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] | |
230 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[21] | |
231 | #define SWIGTYPE_p_wxColourData swig_types[22] | |
232 | #define SWIGTYPE_p_wxNotifyEvent swig_types[23] | |
233 | #define SWIGTYPE_p_wxPyWindow swig_types[24] | |
234 | #define SWIGTYPE_p_wxSplashScreen swig_types[25] | |
235 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[26] | |
236 | #define SWIGTYPE_p_wxProgressDialog swig_types[27] | |
237 | #define SWIGTYPE_p_wxMessageDialog swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[29] | |
239 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[30] | |
240 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[31] | |
241 | #define SWIGTYPE_p_wxFileDialog swig_types[32] | |
242 | #define SWIGTYPE_p_wxPrinter swig_types[33] | |
243 | #define SWIGTYPE_p_wxArrayInt swig_types[34] | |
244 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
245 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[36] | |
246 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyVListBox swig_types[38] | |
248 | #define SWIGTYPE_p_wxRect swig_types[39] | |
249 | #define SWIGTYPE_p_char swig_types[40] | |
250 | #define SWIGTYPE_p_wxMiniFrame swig_types[41] | |
251 | #define SWIGTYPE_p_wxFrame swig_types[42] | |
252 | #define SWIGTYPE_p_wxPyPrintout swig_types[43] | |
253 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[44] | |
254 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxStatusBar swig_types[46] | |
256 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[47] | |
257 | #define SWIGTYPE_p_wxPoint swig_types[48] | |
258 | #define SWIGTYPE_p_wxObject swig_types[49] | |
259 | #define SWIGTYPE_p_wxOutputStream swig_types[50] | |
260 | #define SWIGTYPE_p_unsigned_long swig_types[51] | |
261 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[52] | |
262 | #define SWIGTYPE_p_wxTipWindow swig_types[53] | |
263 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[54] | |
264 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[55] | |
265 | #define SWIGTYPE_p_wxSplitterWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxPopupWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxSashWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxScrolledWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxMenuBar swig_types[64] | |
274 | #define SWIGTYPE_p_wxPrintPreview swig_types[65] | |
275 | #define SWIGTYPE_p_wxSashEvent swig_types[66] | |
276 | #define SWIGTYPE_p_wxString swig_types[67] | |
277 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[68] | |
278 | #define SWIGTYPE_p_wxFontDialog swig_types[69] | |
279 | #define SWIGTYPE_p_wxDirDialog swig_types[70] | |
280 | #define SWIGTYPE_p_wxColourDialog swig_types[71] | |
281 | #define SWIGTYPE_p_wxDialog swig_types[72] | |
282 | #define SWIGTYPE_p_wxPanel swig_types[73] | |
283 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[74] | |
284 | #define SWIGTYPE_p_wxPrintDialog swig_types[75] | |
285 | #define SWIGTYPE_p_wxBitmap swig_types[76] | |
286 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
287 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[78] | |
288 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[79] | |
289 | #define SWIGTYPE_p_wxColour swig_types[80] | |
290 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[82] | |
292 | #define SWIGTYPE_p_wxPrintDialogData swig_types[83] | |
293 | static swig_type_info *swig_types[85]; | |
294 | ||
295 | /* -------- TYPES TABLE (END) -------- */ | |
296 | ||
297 | ||
298 | /*----------------------------------------------- | |
299 | @(target):= _windows.so | |
300 | ------------------------------------------------*/ | |
301 | #define SWIG_init init_windows | |
302 | ||
303 | #define SWIG_name "_windows" | |
304 | ||
305 | /* Auxiliar swig macros */ | |
306 | ||
307 | #ifdef __cplusplus | |
308 | #define SWIGSTATICINLINE(a) static inline a | |
309 | #define SWIGSTATIC(a) static a | |
310 | #define swig_new_array(type, size) (new type[(size)]) | |
311 | #define swig_delete_array(cptr) delete[] cptr | |
312 | #define swig_const_cast(type,a) const_cast<type>(a) | |
313 | #define swig_static_cast(type,a) static_cast<type>(a) | |
314 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
315 | ||
316 | #ifdef HAVE_NUMERIC_CAST | |
317 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
318 | #else | |
319 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
320 | #endif | |
321 | ||
322 | #else /* C case */ | |
323 | ||
324 | #define SWIGSTATICINLINE(a) static a | |
325 | #define SWIGSTATIC(a) static a | |
326 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
327 | #define swig_delete_array(cptr) free((char*)cptr) | |
328 | #define swig_const_cast(type,a) (type)(a) | |
329 | #define swig_static_cast(type,a) (type)(a) | |
330 | #define swig_reinterpret_cast(type,a) (type)(a) | |
331 | #define swig_numeric_cast(type,a) (type)(a) | |
332 | ||
333 | #endif /* __cplusplus */ | |
334 | ||
335 | ||
336 | #define SWIG_FromSignedChar PyInt_FromLong | |
337 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
338 | #define SWIG_FromShort PyInt_FromLong | |
339 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
340 | #define SWIG_FromInt PyInt_FromLong | |
341 | #define SWIG_FromLong PyInt_FromLong | |
342 | #define SWIG_FromFloat PyFloat_FromDouble | |
343 | #define SWIG_FromDouble PyFloat_FromDouble | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | ||
347 | ||
348 | #include "wx/wxPython/wxPython.h" | |
349 | #include "wx/wxPython/pyclasses.h" | |
350 | ||
351 | ||
352 | static const wxString wxPyEmptyString(wxEmptyString); | |
353 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
354 | ||
355 | ||
356 | ||
357 | #include <limits.h> | |
358 | ||
359 | ||
360 | SWIGSTATICINLINE(long) | |
361 | SWIG_CheckLongInRange(long value, const char* type, | |
362 | long min_value, long max_value) | |
363 | { | |
364 | if (!PyErr_Occurred()) { | |
365 | if (value < min_value) { | |
366 | PyObject *err = | |
367 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
368 | value, type, min_value); | |
369 | ||
370 | PyErr_SetObject(PyExc_OverflowError, err); | |
371 | Py_DECREF(err); | |
372 | } else if (value > max_value) { | |
373 | PyObject *err = | |
374 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
375 | value, type, max_value); | |
376 | PyErr_SetObject(PyExc_OverflowError, err); | |
377 | Py_DECREF(err); | |
378 | } | |
379 | } | |
380 | return value; | |
381 | } | |
382 | ||
383 | ||
384 | SWIGSTATICINLINE(long) | |
385 | SWIG_AsLong(PyObject * obj) | |
386 | { | |
387 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
388 | } | |
389 | ||
390 | ||
391 | #if INT_MAX != LONG_MAX | |
392 | SWIGSTATICINLINE(int) | |
393 | SWIG_AsInt(PyObject *obj) | |
394 | { | |
395 | return swig_numeric_cast(int, | |
396 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
397 | "int", INT_MIN, INT_MAX)); | |
398 | } | |
399 | #else | |
400 | #define SWIG_AsInt SWIG_AsLong | |
401 | #endif | |
402 | ||
403 | ||
404 | SWIGSTATICINLINE(int) | |
405 | SWIG_CheckInt(PyObject* obj) | |
406 | { | |
407 | SWIG_AsInt(obj); | |
408 | if (PyErr_Occurred()) { | |
409 | PyErr_Clear(); | |
410 | return 0; | |
411 | } else { | |
412 | return 1; | |
413 | } | |
414 | } | |
415 | ||
416 | ||
417 | SWIGSTATICINLINE(int) | |
418 | SWIG_CheckLong(PyObject* obj) | |
419 | { | |
420 | SWIG_AsLong(obj); | |
421 | if (PyErr_Occurred()) { | |
422 | PyErr_Clear(); | |
423 | return 0; | |
424 | } else { | |
425 | return 1; | |
426 | } | |
427 | } | |
428 | ||
429 | ||
430 | SWIGSTATICINLINE(bool) | |
431 | SWIG_AsBool(PyObject *obj) | |
432 | { | |
433 | return PyObject_IsTrue(obj) ? true : false; | |
434 | } | |
435 | ||
436 | ||
437 | SWIGSTATICINLINE(int) | |
438 | SWIG_CheckBool(PyObject* obj) | |
439 | { | |
440 | SWIG_AsBool(obj); | |
441 | if (PyErr_Occurred()) { | |
442 | PyErr_Clear(); | |
443 | return 0; | |
444 | } else { | |
445 | return 1; | |
446 | } | |
447 | } | |
448 | ||
449 | ||
450 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
451 | PyObject* o2; | |
452 | PyObject* o3; | |
453 | ||
454 | if (!target) { | |
455 | target = o; | |
456 | } else if (target == Py_None) { | |
457 | Py_DECREF(Py_None); | |
458 | target = o; | |
459 | } else { | |
460 | if (!PyTuple_Check(target)) { | |
461 | o2 = target; | |
462 | target = PyTuple_New(1); | |
463 | PyTuple_SetItem(target, 0, o2); | |
464 | } | |
465 | o3 = PyTuple_New(1); | |
466 | PyTuple_SetItem(o3, 0, o); | |
467 | ||
468 | o2 = target; | |
469 | target = PySequence_Concat(o2, o3); | |
470 | Py_DECREF(o2); | |
471 | Py_DECREF(o3); | |
472 | } | |
473 | return target; | |
474 | } | |
475 | ||
476 | ||
477 | SWIGSTATICINLINE(double) | |
478 | SWIG_AsDouble(PyObject *obj) | |
479 | { | |
480 | double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
481 | #if HAVE_LONG_LONG | |
482 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
483 | #else | |
484 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
485 | #endif | |
486 | if (PyErr_Occurred()) { | |
487 | PyErr_Clear(); | |
488 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
489 | } | |
490 | return val; | |
491 | } | |
492 | ||
493 | ||
494 | SWIGSTATICINLINE(int) | |
495 | SWIG_CheckDouble(PyObject* obj) | |
496 | { | |
497 | SWIG_AsDouble(obj); | |
498 | if (PyErr_Occurred()) { | |
499 | PyErr_Clear(); | |
500 | return 0; | |
501 | } else { | |
502 | return 1; | |
503 | } | |
504 | } | |
505 | ||
506 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
507 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
508 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
509 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
510 | bool wxDialog_IsModalShowing(wxDialog *self){ | |
511 | ||
512 | ||
513 | ||
514 | return self->IsModalShowing(); | |
515 | ||
516 | } | |
517 | ||
518 | ||
519 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ | |
520 | wxRect r; | |
521 | self->GetFieldRect(i, r); | |
522 | return r; | |
523 | } | |
524 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
525 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
526 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
527 | ||
528 | #include <wx/popupwin.h> | |
529 | ||
530 | ||
531 | class wxPopupWindow : public wxWindow { | |
532 | public: | |
533 | wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
534 | wxPopupWindow() { wxPyRaiseNotImplemented(); } | |
535 | }; | |
536 | ||
537 | class wxPyPopupTransientWindow : public wxPopupWindow | |
538 | { | |
539 | public: | |
540 | wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
541 | wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } | |
542 | }; | |
543 | ||
544 | ||
545 | #include <wx/tipwin.h> | |
546 | ||
547 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
548 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
549 | } | |
550 | ||
551 | #include <wx/tipwin.h> | |
552 | ||
553 | ||
554 | #include <wx/vscroll.h> | |
555 | ||
556 | ||
557 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
558 | { | |
559 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
560 | public: | |
561 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
562 | ||
563 | wxPyVScrolledWindow(wxWindow *parent, | |
564 | wxWindowID id = wxID_ANY, | |
565 | const wxPoint& pos = wxDefaultPosition, | |
566 | const wxSize& size = wxDefaultSize, | |
567 | long style = 0, | |
568 | const wxString& name = wxPyPanelNameStr) | |
569 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
570 | {} | |
571 | ||
572 | // Overridable virtuals | |
573 | ||
574 | // this function must be overridden in the derived class and it should | |
575 | // return the height of the given line in pixels | |
576 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
577 | ||
578 | ||
579 | // this function doesn't have to be overridden but it may be useful to do | |
580 | // it if calculating the lines heights is a relatively expensive operation | |
581 | // as it gives the user code a possibility to calculate several of them at | |
582 | // once | |
583 | // | |
584 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
585 | // shouldn't rely on the latter being called for all lines in the interval | |
586 | // specified here. It is also possible that OnGetLineHeight() will be | |
587 | // called for the lines outside of this interval, so this is really just a | |
588 | // hint, not a promise. | |
589 | // | |
590 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
591 | // usual | |
592 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
593 | ||
594 | ||
595 | // when the number of lines changes, we try to estimate the total height | |
596 | // of all lines which is a rather expensive operation in terms of lines | |
597 | // access, so if the user code may estimate the average height | |
598 | // better/faster than we do, it should override this function to implement | |
599 | // its own logic | |
600 | // | |
601 | // this function should return the best guess for the total height it may | |
602 | // make | |
603 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
604 | ||
605 | ||
606 | // Also expose some other interesting protected methods | |
607 | ||
608 | ||
609 | // find the index of the line we need to show at the top of the window such | |
610 | // that the last (fully or partially) visible line is the given one | |
611 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
612 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
613 | ||
614 | // get the total height of the lines between lineMin (inclusive) and | |
615 | // lineMax (exclusive) | |
616 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
617 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
618 | ||
619 | ||
620 | PYPRIVATE; | |
621 | }; | |
622 | ||
623 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
624 | ||
625 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
626 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
627 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
628 | ||
629 | ||
630 | SWIGSTATICINLINE(unsigned long) | |
631 | SWIG_AsUnsignedLong(PyObject * obj) | |
632 | { | |
633 | if (PyLong_Check(obj)) { | |
634 | return PyLong_AsUnsignedLong(obj); | |
635 | } else { | |
636 | long i = PyInt_AsLong(obj); | |
637 | if ( !PyErr_Occurred() && (i < 0)) { | |
638 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
639 | } | |
640 | return i; | |
641 | } | |
642 | } | |
643 | ||
644 | ||
645 | SWIGSTATICINLINE(int) | |
646 | SWIG_CheckUnsignedLong(PyObject* obj) | |
647 | { | |
648 | SWIG_AsUnsignedLong(obj); | |
649 | if (PyErr_Occurred()) { | |
650 | PyErr_Clear(); | |
651 | return 0; | |
652 | } else { | |
653 | return 1; | |
654 | } | |
655 | } | |
656 | ||
657 | ||
658 | SWIGSTATICINLINE(PyObject* ) | |
659 | SWIG_FromUnsignedLong(unsigned long value) | |
660 | { | |
661 | return (value > LONG_MAX) ? | |
662 | PyLong_FromUnsignedLong(value) | |
663 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
664 | } | |
665 | ||
666 | ||
667 | #include <wx/vlbox.h> | |
668 | ||
669 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
670 | ||
671 | class wxPyVListBox : public wxVListBox | |
672 | { | |
673 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
674 | public: | |
675 | wxPyVListBox() : wxVListBox() {} | |
676 | ||
677 | wxPyVListBox(wxWindow *parent, | |
678 | wxWindowID id = wxID_ANY, | |
679 | const wxPoint& pos = wxDefaultPosition, | |
680 | const wxSize& size = wxDefaultSize, | |
681 | long style = 0, | |
682 | const wxString& name = wxPyVListBoxNameStr) | |
683 | : wxVListBox(parent, id, pos, size, style, name) | |
684 | {} | |
685 | ||
686 | // Overridable virtuals | |
687 | ||
688 | // the derived class must implement this function to actually draw the item | |
689 | // with the given index on the provided DC | |
690 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
691 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
692 | ||
693 | ||
694 | // the derived class must implement this method to return the height of the | |
695 | // specified item | |
696 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
697 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
698 | ||
699 | ||
700 | // this method may be used to draw separators between the lines; note that | |
701 | // the rectangle may be modified, typically to deflate it a bit before | |
702 | // passing to OnDrawItem() | |
703 | // | |
704 | // the base class version doesn't do anything | |
705 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
706 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
707 | ||
708 | ||
709 | // this method is used to draw the items background and, maybe, a border | |
710 | // around it | |
711 | // | |
712 | // the base class version implements a reasonable default behaviour which | |
713 | // consists in drawing the selected item with the standard background | |
714 | // colour and drawing a border around the item if it is either selected or | |
715 | // current | |
716 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
717 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
718 | ||
719 | ||
720 | PYPRIVATE; | |
721 | }; | |
722 | ||
723 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
724 | ||
725 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
726 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
727 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
728 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
729 | ||
730 | ||
731 | ||
732 | #include <wx/htmllbox.h> | |
733 | ||
734 | ||
735 | class wxPyHtmlListBox : public wxHtmlListBox | |
736 | { | |
737 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
738 | public: | |
739 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
740 | ||
741 | wxPyHtmlListBox(wxWindow *parent, | |
742 | wxWindowID id = wxID_ANY, | |
743 | const wxPoint& pos = wxDefaultPosition, | |
744 | const wxSize& size = wxDefaultSize, | |
745 | long style = 0, | |
746 | const wxString& name = wxPyVListBoxNameStr) | |
747 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
748 | {} | |
749 | ||
750 | // Overridable virtuals | |
751 | ||
752 | // this method must be implemented in the derived class and should return | |
753 | // the body (i.e. without <html>) of the HTML for the given item | |
754 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
755 | ||
756 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
757 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
758 | ||
759 | // TODO: | |
760 | // // this method allows to customize the selection appearance: it may be used | |
761 | // // to specify the colour of the text which normally has the given colour | |
762 | // // colFg when it is inside the selection | |
763 | // // | |
764 | // // by default, the original colour is not used at all and all text has the | |
765 | // // same (default for this system) colour inside selection | |
766 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
767 | ||
768 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
769 | // // background colour -- this is even more rarely used as you can change it | |
770 | // // globally using SetSelectionBackground() | |
771 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
772 | ||
773 | ||
774 | PYPRIVATE; | |
775 | }; | |
776 | ||
777 | ||
778 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
779 | ||
780 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
781 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
782 | ||
783 | ||
784 | ||
785 | ||
786 | ||
787 | #ifdef __WXMAC__ | |
788 | // implement dummy classes and such for wxMac | |
789 | ||
790 | class wxTaskBarIcon : public wxEvtHandler | |
791 | { | |
792 | public: | |
793 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
794 | }; | |
795 | ||
796 | ||
797 | class wxTaskBarIconEvent : public wxEvent | |
798 | { | |
799 | public: | |
800 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
801 | { wxPyRaiseNotImplemented(); } | |
802 | virtual wxEvent* Clone() const { return NULL; } | |
803 | }; | |
804 | ||
805 | enum { | |
806 | wxEVT_TASKBAR_MOVE = 0, | |
807 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
808 | wxEVT_TASKBAR_LEFT_UP = 0, | |
809 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
810 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
811 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
812 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
813 | }; | |
814 | #endif | |
815 | ||
816 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
817 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
818 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
819 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
820 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
821 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
822 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
823 | wxArrayString arr; | |
824 | self->GetFilenames(arr); | |
825 | return wxArrayString2PyList_helper(arr); | |
826 | } | |
827 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
828 | wxArrayString arr; | |
829 | self->GetPaths(arr); | |
830 | return wxArrayString2PyList_helper(arr); | |
831 | } | |
832 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
833 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
834 | } | |
835 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
836 | return new wxSingleChoiceDialog(parent, message, caption, | |
837 | choices, choices_array, NULL, style, pos); | |
838 | } | |
839 | ||
840 | #include <wx/mdi.h> | |
841 | ||
842 | // C++ version of Python aware wxWindow | |
843 | class wxPyWindow : public wxWindow | |
844 | { | |
845 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
846 | public: | |
847 | wxPyWindow() : wxWindow() {} | |
848 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
849 | const wxPoint& pos = wxDefaultPosition, | |
850 | const wxSize& size = wxDefaultSize, | |
851 | long style = 0, | |
852 | const wxString& name = wxPyPanelNameStr) | |
853 | : wxWindow(parent, id, pos, size, style, name) {} | |
854 | ||
855 | ||
856 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
857 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
858 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
859 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
860 | ||
861 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
862 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
863 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
864 | ||
865 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
866 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
867 | ||
868 | DEC_PYCALLBACK__(InitDialog); | |
869 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
870 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
871 | DEC_PYCALLBACK_BOOL_(Validate); | |
872 | ||
873 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
874 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
875 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
876 | ||
877 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
878 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
879 | ||
880 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
881 | ||
882 | PYPRIVATE; | |
883 | }; | |
884 | ||
885 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
886 | ||
887 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
888 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
889 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
890 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
891 | ||
892 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
893 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
894 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
895 | ||
896 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
897 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
898 | ||
899 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
900 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
901 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
902 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
903 | ||
904 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
905 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
906 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
907 | ||
908 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
909 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
910 | ||
911 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, ShouldInheritColours); | |
912 | ||
913 | // C++ version of Python aware wxPanel | |
914 | class wxPyPanel : public wxPanel | |
915 | { | |
916 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
917 | public: | |
918 | wxPyPanel() : wxPanel() {} | |
919 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
920 | const wxPoint& pos = wxDefaultPosition, | |
921 | const wxSize& size = wxDefaultSize, | |
922 | long style = 0, | |
923 | const wxString& name = wxPyPanelNameStr) | |
924 | : wxPanel(parent, id, pos, size, style, name) {} | |
925 | ||
926 | ||
927 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
928 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
929 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
930 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
931 | ||
932 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
933 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
934 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
935 | ||
936 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
937 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
938 | ||
939 | DEC_PYCALLBACK__(InitDialog); | |
940 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
941 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
942 | DEC_PYCALLBACK_BOOL_(Validate); | |
943 | ||
944 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
945 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
946 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
947 | ||
948 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
949 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
950 | ||
951 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
952 | ||
953 | PYPRIVATE; | |
954 | }; | |
955 | ||
956 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
957 | ||
958 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
959 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
960 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
961 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
962 | ||
963 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
964 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
965 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
966 | ||
967 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
968 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
969 | ||
970 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
971 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
972 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
973 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
974 | ||
975 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
976 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
977 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
978 | ||
979 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
980 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
981 | ||
982 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, ShouldInheritColours); | |
983 | ||
984 | ||
985 | #include "wx/wxPython/printfw.h" | |
986 | ||
987 | ||
988 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
989 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
990 | ||
991 | ||
992 | ||
993 | // Since this one would be tough and ugly to do with the Macros... | |
994 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
995 | bool hadErr = False; | |
996 | bool found; | |
997 | ||
998 | bool blocked = wxPyBeginBlockThreads(); | |
999 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1000 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1001 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1002 | PyObject* val; | |
1003 | ||
1004 | val = PyTuple_GetItem(result, 0); | |
1005 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1006 | else hadErr = True; | |
1007 | ||
1008 | val = PyTuple_GetItem(result, 1); | |
1009 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1010 | else hadErr = True; | |
1011 | ||
1012 | val = PyTuple_GetItem(result, 2); | |
1013 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1014 | else hadErr = True; | |
1015 | ||
1016 | val = PyTuple_GetItem(result, 3); | |
1017 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1018 | else hadErr = True; | |
1019 | } | |
1020 | else | |
1021 | hadErr = True; | |
1022 | ||
1023 | if (hadErr) { | |
1024 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1025 | PyErr_Print(); | |
1026 | } | |
1027 | Py_DECREF(result); | |
1028 | } | |
1029 | wxPyEndBlockThreads(blocked); | |
1030 | if (! found) | |
1031 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1032 | } | |
1033 | ||
1034 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1035 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1036 | } | |
1037 | ||
1038 | ||
1039 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1040 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1041 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1042 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1043 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1044 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1045 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1046 | ||
1047 | ||
1048 | ||
1049 | ||
1050 | ||
1051 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1052 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1053 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1054 | ||
1055 | ||
1056 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1057 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1058 | bool rval=False; \ | |
1059 | bool found; \ | |
1060 | bool blocked = wxPyBeginBlockThreads(); \ | |
1061 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
1062 | PyObject* win = wxPyMake_wxObject(a); \ | |
1063 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
1064 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
1065 | Py_DECREF(win); \ | |
1066 | Py_DECREF(dc); \ | |
1067 | } \ | |
1068 | wxPyEndBlockThreads(blocked); \ | |
1069 | if (! found) \ | |
1070 | rval = PCLASS::CBNAME(a, b); \ | |
1071 | return rval; \ | |
1072 | } \ | |
1073 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1074 | return PCLASS::CBNAME(a, b); \ | |
1075 | } | |
1076 | ||
1077 | ||
1078 | ||
1079 | ||
1080 | class wxPyPrintPreview : public wxPrintPreview | |
1081 | { | |
1082 | DECLARE_CLASS(wxPyPrintPreview) | |
1083 | public: | |
1084 | wxPyPrintPreview(wxPyPrintout* printout, | |
1085 | wxPyPrintout* printoutForPrinting, | |
1086 | wxPrintDialogData* data=NULL) | |
1087 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1088 | {} | |
1089 | wxPyPrintPreview(wxPyPrintout* printout, | |
1090 | wxPyPrintout* printoutForPrinting, | |
1091 | wxPrintData* data=NULL) | |
1092 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1093 | {} | |
1094 | ||
1095 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1096 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1097 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1098 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1099 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1100 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1101 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1102 | ||
1103 | PYPRIVATE; | |
1104 | }; | |
1105 | ||
1106 | // Stupid renamed classes... Fix this in 2.5... | |
1107 | #if defined(__WXMSW__) | |
1108 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1109 | #elif defined(__WXMAC__) | |
1110 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1111 | #else | |
1112 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1113 | #endif | |
1114 | ||
1115 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1116 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1117 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1118 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1119 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1120 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1121 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1122 | ||
1123 | ||
1124 | class wxPyPreviewFrame : public wxPreviewFrame | |
1125 | { | |
1126 | DECLARE_CLASS(wxPyPreviewFrame); | |
1127 | public: | |
1128 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1129 | const wxString& title, | |
1130 | const wxPoint& pos = wxDefaultPosition, | |
1131 | const wxSize& size = wxDefaultSize, | |
1132 | long style = wxDEFAULT_FRAME_STYLE, | |
1133 | const wxString& name = wxPyFrameNameStr) | |
1134 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1135 | {} | |
1136 | ||
1137 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1138 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1139 | ||
1140 | DEC_PYCALLBACK_VOID_(Initialize); | |
1141 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1142 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1143 | ||
1144 | PYPRIVATE; | |
1145 | }; | |
1146 | ||
1147 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1148 | ||
1149 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1150 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1151 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1152 | ||
1153 | ||
1154 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1155 | { | |
1156 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1157 | public: | |
1158 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1159 | long buttons, | |
1160 | wxWindow *parent, | |
1161 | const wxPoint& pos = wxDefaultPosition, | |
1162 | const wxSize& size = wxDefaultSize, | |
1163 | long style = 0, | |
1164 | const wxString& name = wxPyPanelNameStr) | |
1165 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1166 | {} | |
1167 | ||
1168 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1169 | ||
1170 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1171 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1172 | ||
1173 | PYPRIVATE; | |
1174 | }; | |
1175 | ||
1176 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1177 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1178 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1179 | ||
1180 | #ifdef __cplusplus | |
1181 | extern "C" { | |
1182 | #endif | |
1183 | static PyObject *_wrap_new_Panel(PyObject *, PyObject *args, PyObject *kwargs) { | |
1184 | PyObject *resultobj; | |
1185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1186 | int arg2 = (int) (int)-1 ; | |
1187 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1188 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1189 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1190 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1191 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1192 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1193 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1194 | wxPanel *result; | |
1195 | wxPoint temp3 ; | |
1196 | wxSize temp4 ; | |
1197 | bool temp6 = False ; | |
1198 | PyObject * obj0 = 0 ; | |
1199 | PyObject * obj1 = 0 ; | |
1200 | PyObject * obj2 = 0 ; | |
1201 | PyObject * obj3 = 0 ; | |
1202 | PyObject * obj4 = 0 ; | |
1203 | PyObject * obj5 = 0 ; | |
1204 | char *kwnames[] = { | |
1205 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1206 | }; | |
1207 | ||
1208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1211 | if (obj1) { | |
1212 | arg2 = (int const) SWIG_AsInt(obj1); | |
1213 | if (PyErr_Occurred()) SWIG_fail; | |
1214 | } | |
1215 | if (obj2) { | |
1216 | { | |
1217 | arg3 = &temp3; | |
1218 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1219 | } | |
1220 | } | |
1221 | if (obj3) { | |
1222 | { | |
1223 | arg4 = &temp4; | |
1224 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1225 | } | |
1226 | } | |
1227 | if (obj4) { | |
1228 | arg5 = (long) SWIG_AsLong(obj4); | |
1229 | if (PyErr_Occurred()) SWIG_fail; | |
1230 | } | |
1231 | if (obj5) { | |
1232 | { | |
1233 | arg6 = wxString_in_helper(obj5); | |
1234 | if (arg6 == NULL) SWIG_fail; | |
1235 | temp6 = True; | |
1236 | } | |
1237 | } | |
1238 | { | |
1239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1240 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1241 | ||
1242 | wxPyEndAllowThreads(__tstate); | |
1243 | if (PyErr_Occurred()) SWIG_fail; | |
1244 | } | |
1245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); | |
1246 | { | |
1247 | if (temp6) | |
1248 | delete arg6; | |
1249 | } | |
1250 | return resultobj; | |
1251 | fail: | |
1252 | { | |
1253 | if (temp6) | |
1254 | delete arg6; | |
1255 | } | |
1256 | return NULL; | |
1257 | } | |
1258 | ||
1259 | ||
1260 | static PyObject *_wrap_new_PrePanel(PyObject *, PyObject *args, PyObject *kwargs) { | |
1261 | PyObject *resultobj; | |
1262 | wxPanel *result; | |
1263 | char *kwnames[] = { | |
1264 | NULL | |
1265 | }; | |
1266 | ||
1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1268 | { | |
1269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1270 | result = (wxPanel *)new wxPanel(); | |
1271 | ||
1272 | wxPyEndAllowThreads(__tstate); | |
1273 | if (PyErr_Occurred()) SWIG_fail; | |
1274 | } | |
1275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); | |
1276 | return resultobj; | |
1277 | fail: | |
1278 | return NULL; | |
1279 | } | |
1280 | ||
1281 | ||
1282 | static PyObject *_wrap_Panel_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
1283 | PyObject *resultobj; | |
1284 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1285 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1286 | int arg3 ; | |
1287 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1288 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1289 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1290 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1291 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1292 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1293 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1294 | bool result; | |
1295 | wxPoint temp4 ; | |
1296 | wxSize temp5 ; | |
1297 | bool temp7 = False ; | |
1298 | PyObject * obj0 = 0 ; | |
1299 | PyObject * obj1 = 0 ; | |
1300 | PyObject * obj2 = 0 ; | |
1301 | PyObject * obj3 = 0 ; | |
1302 | PyObject * obj4 = 0 ; | |
1303 | PyObject * obj5 = 0 ; | |
1304 | PyObject * obj6 = 0 ; | |
1305 | char *kwnames[] = { | |
1306 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1307 | }; | |
1308 | ||
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1314 | arg3 = (int const) SWIG_AsInt(obj2); | |
1315 | if (PyErr_Occurred()) SWIG_fail; | |
1316 | if (obj3) { | |
1317 | { | |
1318 | arg4 = &temp4; | |
1319 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1320 | } | |
1321 | } | |
1322 | if (obj4) { | |
1323 | { | |
1324 | arg5 = &temp5; | |
1325 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1326 | } | |
1327 | } | |
1328 | if (obj5) { | |
1329 | arg6 = (long) SWIG_AsLong(obj5); | |
1330 | if (PyErr_Occurred()) SWIG_fail; | |
1331 | } | |
1332 | if (obj6) { | |
1333 | { | |
1334 | arg7 = wxString_in_helper(obj6); | |
1335 | if (arg7 == NULL) SWIG_fail; | |
1336 | temp7 = True; | |
1337 | } | |
1338 | } | |
1339 | { | |
1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1341 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1342 | ||
1343 | wxPyEndAllowThreads(__tstate); | |
1344 | if (PyErr_Occurred()) SWIG_fail; | |
1345 | } | |
1346 | { | |
1347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1348 | } | |
1349 | { | |
1350 | if (temp7) | |
1351 | delete arg7; | |
1352 | } | |
1353 | return resultobj; | |
1354 | fail: | |
1355 | { | |
1356 | if (temp7) | |
1357 | delete arg7; | |
1358 | } | |
1359 | return NULL; | |
1360 | } | |
1361 | ||
1362 | ||
1363 | static PyObject *_wrap_Panel_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
1364 | PyObject *resultobj; | |
1365 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1366 | PyObject * obj0 = 0 ; | |
1367 | char *kwnames[] = { | |
1368 | (char *) "self", NULL | |
1369 | }; | |
1370 | ||
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1374 | { | |
1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1376 | (arg1)->InitDialog(); | |
1377 | ||
1378 | wxPyEndAllowThreads(__tstate); | |
1379 | if (PyErr_Occurred()) SWIG_fail; | |
1380 | } | |
1381 | Py_INCREF(Py_None); resultobj = Py_None; | |
1382 | return resultobj; | |
1383 | fail: | |
1384 | return NULL; | |
1385 | } | |
1386 | ||
1387 | ||
1388 | static PyObject * Panel_swigregister(PyObject *, PyObject *args) { | |
1389 | PyObject *obj; | |
1390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1391 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1392 | Py_INCREF(obj); | |
1393 | return Py_BuildValue((char *)""); | |
1394 | } | |
1395 | static PyObject *_wrap_new_ScrolledWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
1396 | PyObject *resultobj; | |
1397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1398 | int arg2 = (int) (int)-1 ; | |
1399 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1400 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1401 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1402 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1403 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1404 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1405 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1406 | wxScrolledWindow *result; | |
1407 | wxPoint temp3 ; | |
1408 | wxSize temp4 ; | |
1409 | bool temp6 = False ; | |
1410 | PyObject * obj0 = 0 ; | |
1411 | PyObject * obj1 = 0 ; | |
1412 | PyObject * obj2 = 0 ; | |
1413 | PyObject * obj3 = 0 ; | |
1414 | PyObject * obj4 = 0 ; | |
1415 | PyObject * obj5 = 0 ; | |
1416 | char *kwnames[] = { | |
1417 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1418 | }; | |
1419 | ||
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1423 | if (obj1) { | |
1424 | arg2 = (int const) SWIG_AsInt(obj1); | |
1425 | if (PyErr_Occurred()) SWIG_fail; | |
1426 | } | |
1427 | if (obj2) { | |
1428 | { | |
1429 | arg3 = &temp3; | |
1430 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1431 | } | |
1432 | } | |
1433 | if (obj3) { | |
1434 | { | |
1435 | arg4 = &temp4; | |
1436 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1437 | } | |
1438 | } | |
1439 | if (obj4) { | |
1440 | arg5 = (long) SWIG_AsLong(obj4); | |
1441 | if (PyErr_Occurred()) SWIG_fail; | |
1442 | } | |
1443 | if (obj5) { | |
1444 | { | |
1445 | arg6 = wxString_in_helper(obj5); | |
1446 | if (arg6 == NULL) SWIG_fail; | |
1447 | temp6 = True; | |
1448 | } | |
1449 | } | |
1450 | { | |
1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1452 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1453 | ||
1454 | wxPyEndAllowThreads(__tstate); | |
1455 | if (PyErr_Occurred()) SWIG_fail; | |
1456 | } | |
1457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1458 | { | |
1459 | if (temp6) | |
1460 | delete arg6; | |
1461 | } | |
1462 | return resultobj; | |
1463 | fail: | |
1464 | { | |
1465 | if (temp6) | |
1466 | delete arg6; | |
1467 | } | |
1468 | return NULL; | |
1469 | } | |
1470 | ||
1471 | ||
1472 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
1473 | PyObject *resultobj; | |
1474 | wxScrolledWindow *result; | |
1475 | char *kwnames[] = { | |
1476 | NULL | |
1477 | }; | |
1478 | ||
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1480 | { | |
1481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1482 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1483 | ||
1484 | wxPyEndAllowThreads(__tstate); | |
1485 | if (PyErr_Occurred()) SWIG_fail; | |
1486 | } | |
1487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1488 | return resultobj; | |
1489 | fail: | |
1490 | return NULL; | |
1491 | } | |
1492 | ||
1493 | ||
1494 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
1495 | PyObject *resultobj; | |
1496 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1497 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1498 | int arg3 = (int) (int)-1 ; | |
1499 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1500 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1501 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1502 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1503 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1504 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1505 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1506 | bool result; | |
1507 | wxPoint temp4 ; | |
1508 | wxSize temp5 ; | |
1509 | bool temp7 = False ; | |
1510 | PyObject * obj0 = 0 ; | |
1511 | PyObject * obj1 = 0 ; | |
1512 | PyObject * obj2 = 0 ; | |
1513 | PyObject * obj3 = 0 ; | |
1514 | PyObject * obj4 = 0 ; | |
1515 | PyObject * obj5 = 0 ; | |
1516 | PyObject * obj6 = 0 ; | |
1517 | char *kwnames[] = { | |
1518 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1519 | }; | |
1520 | ||
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1526 | if (obj2) { | |
1527 | arg3 = (int const) SWIG_AsInt(obj2); | |
1528 | if (PyErr_Occurred()) SWIG_fail; | |
1529 | } | |
1530 | if (obj3) { | |
1531 | { | |
1532 | arg4 = &temp4; | |
1533 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1534 | } | |
1535 | } | |
1536 | if (obj4) { | |
1537 | { | |
1538 | arg5 = &temp5; | |
1539 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1540 | } | |
1541 | } | |
1542 | if (obj5) { | |
1543 | arg6 = (long) SWIG_AsLong(obj5); | |
1544 | if (PyErr_Occurred()) SWIG_fail; | |
1545 | } | |
1546 | if (obj6) { | |
1547 | { | |
1548 | arg7 = wxString_in_helper(obj6); | |
1549 | if (arg7 == NULL) SWIG_fail; | |
1550 | temp7 = True; | |
1551 | } | |
1552 | } | |
1553 | { | |
1554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1555 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1556 | ||
1557 | wxPyEndAllowThreads(__tstate); | |
1558 | if (PyErr_Occurred()) SWIG_fail; | |
1559 | } | |
1560 | { | |
1561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1562 | } | |
1563 | { | |
1564 | if (temp7) | |
1565 | delete arg7; | |
1566 | } | |
1567 | return resultobj; | |
1568 | fail: | |
1569 | { | |
1570 | if (temp7) | |
1571 | delete arg7; | |
1572 | } | |
1573 | return NULL; | |
1574 | } | |
1575 | ||
1576 | ||
1577 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *, PyObject *args, PyObject *kwargs) { | |
1578 | PyObject *resultobj; | |
1579 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1580 | int arg2 ; | |
1581 | int arg3 ; | |
1582 | int arg4 ; | |
1583 | int arg5 ; | |
1584 | int arg6 = (int) 0 ; | |
1585 | int arg7 = (int) 0 ; | |
1586 | bool arg8 = (bool) False ; | |
1587 | PyObject * obj0 = 0 ; | |
1588 | PyObject * obj1 = 0 ; | |
1589 | PyObject * obj2 = 0 ; | |
1590 | PyObject * obj3 = 0 ; | |
1591 | PyObject * obj4 = 0 ; | |
1592 | PyObject * obj5 = 0 ; | |
1593 | PyObject * obj6 = 0 ; | |
1594 | PyObject * obj7 = 0 ; | |
1595 | char *kwnames[] = { | |
1596 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1597 | }; | |
1598 | ||
1599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1602 | arg2 = (int) SWIG_AsInt(obj1); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | arg3 = (int) SWIG_AsInt(obj2); | |
1605 | if (PyErr_Occurred()) SWIG_fail; | |
1606 | arg4 = (int) SWIG_AsInt(obj3); | |
1607 | if (PyErr_Occurred()) SWIG_fail; | |
1608 | arg5 = (int) SWIG_AsInt(obj4); | |
1609 | if (PyErr_Occurred()) SWIG_fail; | |
1610 | if (obj5) { | |
1611 | arg6 = (int) SWIG_AsInt(obj5); | |
1612 | if (PyErr_Occurred()) SWIG_fail; | |
1613 | } | |
1614 | if (obj6) { | |
1615 | arg7 = (int) SWIG_AsInt(obj6); | |
1616 | if (PyErr_Occurred()) SWIG_fail; | |
1617 | } | |
1618 | if (obj7) { | |
1619 | arg8 = (bool) SWIG_AsBool(obj7); | |
1620 | if (PyErr_Occurred()) SWIG_fail; | |
1621 | } | |
1622 | { | |
1623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1624 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1625 | ||
1626 | wxPyEndAllowThreads(__tstate); | |
1627 | if (PyErr_Occurred()) SWIG_fail; | |
1628 | } | |
1629 | Py_INCREF(Py_None); resultobj = Py_None; | |
1630 | return resultobj; | |
1631 | fail: | |
1632 | return NULL; | |
1633 | } | |
1634 | ||
1635 | ||
1636 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *, PyObject *args, PyObject *kwargs) { | |
1637 | PyObject *resultobj; | |
1638 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1639 | int arg2 ; | |
1640 | int arg3 ; | |
1641 | PyObject * obj0 = 0 ; | |
1642 | PyObject * obj1 = 0 ; | |
1643 | PyObject * obj2 = 0 ; | |
1644 | char *kwnames[] = { | |
1645 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1646 | }; | |
1647 | ||
1648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1651 | arg2 = (int) SWIG_AsInt(obj1); | |
1652 | if (PyErr_Occurred()) SWIG_fail; | |
1653 | arg3 = (int) SWIG_AsInt(obj2); | |
1654 | if (PyErr_Occurred()) SWIG_fail; | |
1655 | { | |
1656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1657 | (arg1)->Scroll(arg2,arg3); | |
1658 | ||
1659 | wxPyEndAllowThreads(__tstate); | |
1660 | if (PyErr_Occurred()) SWIG_fail; | |
1661 | } | |
1662 | Py_INCREF(Py_None); resultobj = Py_None; | |
1663 | return resultobj; | |
1664 | fail: | |
1665 | return NULL; | |
1666 | } | |
1667 | ||
1668 | ||
1669 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
1670 | PyObject *resultobj; | |
1671 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1672 | int arg2 ; | |
1673 | int result; | |
1674 | PyObject * obj0 = 0 ; | |
1675 | PyObject * obj1 = 0 ; | |
1676 | char *kwnames[] = { | |
1677 | (char *) "self",(char *) "orient", NULL | |
1678 | }; | |
1679 | ||
1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1683 | arg2 = (int) SWIG_AsInt(obj1); | |
1684 | if (PyErr_Occurred()) SWIG_fail; | |
1685 | { | |
1686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1687 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1688 | ||
1689 | wxPyEndAllowThreads(__tstate); | |
1690 | if (PyErr_Occurred()) SWIG_fail; | |
1691 | } | |
1692 | resultobj = SWIG_FromInt((int)result); | |
1693 | return resultobj; | |
1694 | fail: | |
1695 | return NULL; | |
1696 | } | |
1697 | ||
1698 | ||
1699 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
1700 | PyObject *resultobj; | |
1701 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1702 | int arg2 ; | |
1703 | int arg3 ; | |
1704 | PyObject * obj0 = 0 ; | |
1705 | PyObject * obj1 = 0 ; | |
1706 | PyObject * obj2 = 0 ; | |
1707 | char *kwnames[] = { | |
1708 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1709 | }; | |
1710 | ||
1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1714 | arg2 = (int) SWIG_AsInt(obj1); | |
1715 | if (PyErr_Occurred()) SWIG_fail; | |
1716 | arg3 = (int) SWIG_AsInt(obj2); | |
1717 | if (PyErr_Occurred()) SWIG_fail; | |
1718 | { | |
1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1720 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1721 | ||
1722 | wxPyEndAllowThreads(__tstate); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | Py_INCREF(Py_None); resultobj = Py_None; | |
1726 | return resultobj; | |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
1732 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject *resultobj; | |
1734 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1735 | int arg2 ; | |
1736 | int arg3 ; | |
1737 | PyObject * obj0 = 0 ; | |
1738 | PyObject * obj1 = 0 ; | |
1739 | PyObject * obj2 = 0 ; | |
1740 | char *kwnames[] = { | |
1741 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1742 | }; | |
1743 | ||
1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1747 | arg2 = (int) SWIG_AsInt(obj1); | |
1748 | if (PyErr_Occurred()) SWIG_fail; | |
1749 | arg3 = (int) SWIG_AsInt(obj2); | |
1750 | if (PyErr_Occurred()) SWIG_fail; | |
1751 | { | |
1752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1753 | (arg1)->SetScrollRate(arg2,arg3); | |
1754 | ||
1755 | wxPyEndAllowThreads(__tstate); | |
1756 | if (PyErr_Occurred()) SWIG_fail; | |
1757 | } | |
1758 | Py_INCREF(Py_None); resultobj = Py_None; | |
1759 | return resultobj; | |
1760 | fail: | |
1761 | return NULL; | |
1762 | } | |
1763 | ||
1764 | ||
1765 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject *resultobj; | |
1767 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1768 | int *arg2 = (int *) 0 ; | |
1769 | int *arg3 = (int *) 0 ; | |
1770 | int temp2 ; | |
1771 | int temp3 ; | |
1772 | PyObject * obj0 = 0 ; | |
1773 | char *kwnames[] = { | |
1774 | (char *) "self", NULL | |
1775 | }; | |
1776 | ||
1777 | arg2 = &temp2; | |
1778 | arg3 = &temp3; | |
1779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1782 | { | |
1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1784 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1785 | ||
1786 | wxPyEndAllowThreads(__tstate); | |
1787 | if (PyErr_Occurred()) SWIG_fail; | |
1788 | } | |
1789 | Py_INCREF(Py_None); resultobj = Py_None; | |
1790 | { | |
1791 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1792 | resultobj = t_output_helper(resultobj,o); | |
1793 | } | |
1794 | { | |
1795 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1796 | resultobj = t_output_helper(resultobj,o); | |
1797 | } | |
1798 | return resultobj; | |
1799 | fail: | |
1800 | return NULL; | |
1801 | } | |
1802 | ||
1803 | ||
1804 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject *resultobj; | |
1806 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1807 | bool arg2 ; | |
1808 | bool arg3 ; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | PyObject * obj1 = 0 ; | |
1811 | PyObject * obj2 = 0 ; | |
1812 | char *kwnames[] = { | |
1813 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1814 | }; | |
1815 | ||
1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1819 | arg2 = (bool) SWIG_AsBool(obj1); | |
1820 | if (PyErr_Occurred()) SWIG_fail; | |
1821 | arg3 = (bool) SWIG_AsBool(obj2); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | { | |
1824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1825 | (arg1)->EnableScrolling(arg2,arg3); | |
1826 | ||
1827 | wxPyEndAllowThreads(__tstate); | |
1828 | if (PyErr_Occurred()) SWIG_fail; | |
1829 | } | |
1830 | Py_INCREF(Py_None); resultobj = Py_None; | |
1831 | return resultobj; | |
1832 | fail: | |
1833 | return NULL; | |
1834 | } | |
1835 | ||
1836 | ||
1837 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *, PyObject *args, PyObject *kwargs) { | |
1838 | PyObject *resultobj; | |
1839 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1840 | int *arg2 = (int *) 0 ; | |
1841 | int *arg3 = (int *) 0 ; | |
1842 | int temp2 ; | |
1843 | int temp3 ; | |
1844 | PyObject * obj0 = 0 ; | |
1845 | char *kwnames[] = { | |
1846 | (char *) "self", NULL | |
1847 | }; | |
1848 | ||
1849 | arg2 = &temp2; | |
1850 | arg3 = &temp3; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1854 | { | |
1855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1856 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1857 | ||
1858 | wxPyEndAllowThreads(__tstate); | |
1859 | if (PyErr_Occurred()) SWIG_fail; | |
1860 | } | |
1861 | Py_INCREF(Py_None); resultobj = Py_None; | |
1862 | { | |
1863 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1864 | resultobj = t_output_helper(resultobj,o); | |
1865 | } | |
1866 | { | |
1867 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1868 | resultobj = t_output_helper(resultobj,o); | |
1869 | } | |
1870 | return resultobj; | |
1871 | fail: | |
1872 | return NULL; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject *resultobj; | |
1878 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1879 | double arg2 ; | |
1880 | double arg3 ; | |
1881 | PyObject * obj0 = 0 ; | |
1882 | PyObject * obj1 = 0 ; | |
1883 | PyObject * obj2 = 0 ; | |
1884 | char *kwnames[] = { | |
1885 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
1886 | }; | |
1887 | ||
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1891 | arg2 = (double) SWIG_AsDouble(obj1); | |
1892 | if (PyErr_Occurred()) SWIG_fail; | |
1893 | arg3 = (double) SWIG_AsDouble(obj2); | |
1894 | if (PyErr_Occurred()) SWIG_fail; | |
1895 | { | |
1896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1897 | (arg1)->SetScale(arg2,arg3); | |
1898 | ||
1899 | wxPyEndAllowThreads(__tstate); | |
1900 | if (PyErr_Occurred()) SWIG_fail; | |
1901 | } | |
1902 | Py_INCREF(Py_None); resultobj = Py_None; | |
1903 | return resultobj; | |
1904 | fail: | |
1905 | return NULL; | |
1906 | } | |
1907 | ||
1908 | ||
1909 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject *resultobj; | |
1911 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1912 | double result; | |
1913 | PyObject * obj0 = 0 ; | |
1914 | char *kwnames[] = { | |
1915 | (char *) "self", NULL | |
1916 | }; | |
1917 | ||
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
1919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1921 | { | |
1922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1923 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
1924 | ||
1925 | wxPyEndAllowThreads(__tstate); | |
1926 | if (PyErr_Occurred()) SWIG_fail; | |
1927 | } | |
1928 | resultobj = SWIG_FromDouble((double)result); | |
1929 | return resultobj; | |
1930 | fail: | |
1931 | return NULL; | |
1932 | } | |
1933 | ||
1934 | ||
1935 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *, PyObject *args, PyObject *kwargs) { | |
1936 | PyObject *resultobj; | |
1937 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1938 | double result; | |
1939 | PyObject * obj0 = 0 ; | |
1940 | char *kwnames[] = { | |
1941 | (char *) "self", NULL | |
1942 | }; | |
1943 | ||
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
1945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1947 | { | |
1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1949 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
1950 | ||
1951 | wxPyEndAllowThreads(__tstate); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | } | |
1954 | resultobj = SWIG_FromDouble((double)result); | |
1955 | return resultobj; | |
1956 | fail: | |
1957 | return NULL; | |
1958 | } | |
1959 | ||
1960 | ||
1961 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *, PyObject *args) { | |
1962 | PyObject *resultobj; | |
1963 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1964 | wxPoint *arg2 = 0 ; | |
1965 | wxPoint result; | |
1966 | wxPoint temp2 ; | |
1967 | PyObject * obj0 = 0 ; | |
1968 | PyObject * obj1 = 0 ; | |
1969 | ||
1970 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
1971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1973 | { | |
1974 | arg2 = &temp2; | |
1975 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
1976 | } | |
1977 | { | |
1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1979 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
1980 | ||
1981 | wxPyEndAllowThreads(__tstate); | |
1982 | if (PyErr_Occurred()) SWIG_fail; | |
1983 | } | |
1984 | { | |
1985 | wxPoint * resultptr; | |
1986 | resultptr = new wxPoint((wxPoint &) result); | |
1987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
1988 | } | |
1989 | return resultobj; | |
1990 | fail: | |
1991 | return NULL; | |
1992 | } | |
1993 | ||
1994 | ||
1995 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *, PyObject *args) { | |
1996 | PyObject *resultobj; | |
1997 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1998 | int arg2 ; | |
1999 | int arg3 ; | |
2000 | int *arg4 = (int *) 0 ; | |
2001 | int *arg5 = (int *) 0 ; | |
2002 | int temp4 ; | |
2003 | int temp5 ; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | PyObject * obj1 = 0 ; | |
2006 | PyObject * obj2 = 0 ; | |
2007 | ||
2008 | arg4 = &temp4; | |
2009 | arg5 = &temp5; | |
2010 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2013 | arg2 = (int) SWIG_AsInt(obj1); | |
2014 | if (PyErr_Occurred()) SWIG_fail; | |
2015 | arg3 = (int) SWIG_AsInt(obj2); | |
2016 | if (PyErr_Occurred()) SWIG_fail; | |
2017 | { | |
2018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2019 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2020 | ||
2021 | wxPyEndAllowThreads(__tstate); | |
2022 | if (PyErr_Occurred()) SWIG_fail; | |
2023 | } | |
2024 | Py_INCREF(Py_None); resultobj = Py_None; | |
2025 | { | |
2026 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2027 | resultobj = t_output_helper(resultobj,o); | |
2028 | } | |
2029 | { | |
2030 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2031 | resultobj = t_output_helper(resultobj,o); | |
2032 | } | |
2033 | return resultobj; | |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2040 | int argc; | |
2041 | PyObject *argv[4]; | |
2042 | int ii; | |
2043 | ||
2044 | argc = PyObject_Length(args); | |
2045 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2046 | argv[ii] = PyTuple_GetItem(args,ii); | |
2047 | } | |
2048 | if (argc == 2) { | |
2049 | int _v; | |
2050 | { | |
2051 | void *ptr; | |
2052 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2053 | _v = 0; | |
2054 | PyErr_Clear(); | |
2055 | } else { | |
2056 | _v = 1; | |
2057 | } | |
2058 | } | |
2059 | if (_v) { | |
2060 | { | |
2061 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2062 | } | |
2063 | if (_v) { | |
2064 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2065 | } | |
2066 | } | |
2067 | } | |
2068 | if (argc == 3) { | |
2069 | int _v; | |
2070 | { | |
2071 | void *ptr; | |
2072 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2073 | _v = 0; | |
2074 | PyErr_Clear(); | |
2075 | } else { | |
2076 | _v = 1; | |
2077 | } | |
2078 | } | |
2079 | if (_v) { | |
2080 | _v = SWIG_CheckInt(argv[1]); | |
2081 | if (_v) { | |
2082 | _v = SWIG_CheckInt(argv[2]); | |
2083 | if (_v) { | |
2084 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2085 | } | |
2086 | } | |
2087 | } | |
2088 | } | |
2089 | ||
2090 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2091 | return NULL; | |
2092 | } | |
2093 | ||
2094 | ||
2095 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *, PyObject *args) { | |
2096 | PyObject *resultobj; | |
2097 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2098 | wxPoint *arg2 = 0 ; | |
2099 | wxPoint result; | |
2100 | wxPoint temp2 ; | |
2101 | PyObject * obj0 = 0 ; | |
2102 | PyObject * obj1 = 0 ; | |
2103 | ||
2104 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2107 | { | |
2108 | arg2 = &temp2; | |
2109 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2110 | } | |
2111 | { | |
2112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2113 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2114 | ||
2115 | wxPyEndAllowThreads(__tstate); | |
2116 | if (PyErr_Occurred()) SWIG_fail; | |
2117 | } | |
2118 | { | |
2119 | wxPoint * resultptr; | |
2120 | resultptr = new wxPoint((wxPoint &) result); | |
2121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2122 | } | |
2123 | return resultobj; | |
2124 | fail: | |
2125 | return NULL; | |
2126 | } | |
2127 | ||
2128 | ||
2129 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *, PyObject *args) { | |
2130 | PyObject *resultobj; | |
2131 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2132 | int arg2 ; | |
2133 | int arg3 ; | |
2134 | int *arg4 = (int *) 0 ; | |
2135 | int *arg5 = (int *) 0 ; | |
2136 | int temp4 ; | |
2137 | int temp5 ; | |
2138 | PyObject * obj0 = 0 ; | |
2139 | PyObject * obj1 = 0 ; | |
2140 | PyObject * obj2 = 0 ; | |
2141 | ||
2142 | arg4 = &temp4; | |
2143 | arg5 = &temp5; | |
2144 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2147 | arg2 = (int) SWIG_AsInt(obj1); | |
2148 | if (PyErr_Occurred()) SWIG_fail; | |
2149 | arg3 = (int) SWIG_AsInt(obj2); | |
2150 | if (PyErr_Occurred()) SWIG_fail; | |
2151 | { | |
2152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2153 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2154 | ||
2155 | wxPyEndAllowThreads(__tstate); | |
2156 | if (PyErr_Occurred()) SWIG_fail; | |
2157 | } | |
2158 | Py_INCREF(Py_None); resultobj = Py_None; | |
2159 | { | |
2160 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2161 | resultobj = t_output_helper(resultobj,o); | |
2162 | } | |
2163 | { | |
2164 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2165 | resultobj = t_output_helper(resultobj,o); | |
2166 | } | |
2167 | return resultobj; | |
2168 | fail: | |
2169 | return NULL; | |
2170 | } | |
2171 | ||
2172 | ||
2173 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2174 | int argc; | |
2175 | PyObject *argv[4]; | |
2176 | int ii; | |
2177 | ||
2178 | argc = PyObject_Length(args); | |
2179 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2180 | argv[ii] = PyTuple_GetItem(args,ii); | |
2181 | } | |
2182 | if (argc == 2) { | |
2183 | int _v; | |
2184 | { | |
2185 | void *ptr; | |
2186 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2187 | _v = 0; | |
2188 | PyErr_Clear(); | |
2189 | } else { | |
2190 | _v = 1; | |
2191 | } | |
2192 | } | |
2193 | if (_v) { | |
2194 | { | |
2195 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2196 | } | |
2197 | if (_v) { | |
2198 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2199 | } | |
2200 | } | |
2201 | } | |
2202 | if (argc == 3) { | |
2203 | int _v; | |
2204 | { | |
2205 | void *ptr; | |
2206 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2207 | _v = 0; | |
2208 | PyErr_Clear(); | |
2209 | } else { | |
2210 | _v = 1; | |
2211 | } | |
2212 | } | |
2213 | if (_v) { | |
2214 | _v = SWIG_CheckInt(argv[1]); | |
2215 | if (_v) { | |
2216 | _v = SWIG_CheckInt(argv[2]); | |
2217 | if (_v) { | |
2218 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2219 | } | |
2220 | } | |
2221 | } | |
2222 | } | |
2223 | ||
2224 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2225 | return NULL; | |
2226 | } | |
2227 | ||
2228 | ||
2229 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject *resultobj; | |
2231 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2232 | PyObject * obj0 = 0 ; | |
2233 | char *kwnames[] = { | |
2234 | (char *) "self", NULL | |
2235 | }; | |
2236 | ||
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2240 | { | |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | (arg1)->AdjustScrollbars(); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
2246 | } | |
2247 | Py_INCREF(Py_None); resultobj = Py_None; | |
2248 | return resultobj; | |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
2254 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject *resultobj; | |
2256 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2257 | wxScrollWinEvent *arg2 = 0 ; | |
2258 | int result; | |
2259 | PyObject * obj0 = 0 ; | |
2260 | PyObject * obj1 = 0 ; | |
2261 | char *kwnames[] = { | |
2262 | (char *) "self",(char *) "event", NULL | |
2263 | }; | |
2264 | ||
2265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2269 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2270 | SWIG_fail; | |
2271 | if (arg2 == NULL) { | |
2272 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2273 | SWIG_fail; | |
2274 | } | |
2275 | { | |
2276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2277 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2278 | ||
2279 | wxPyEndAllowThreads(__tstate); | |
2280 | if (PyErr_Occurred()) SWIG_fail; | |
2281 | } | |
2282 | resultobj = SWIG_FromInt((int)result); | |
2283 | return resultobj; | |
2284 | fail: | |
2285 | return NULL; | |
2286 | } | |
2287 | ||
2288 | ||
2289 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
2290 | PyObject *resultobj; | |
2291 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2292 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2293 | PyObject * obj0 = 0 ; | |
2294 | PyObject * obj1 = 0 ; | |
2295 | char *kwnames[] = { | |
2296 | (char *) "self",(char *) "target", NULL | |
2297 | }; | |
2298 | ||
2299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2302 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2304 | { | |
2305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2306 | (arg1)->SetTargetWindow(arg2); | |
2307 | ||
2308 | wxPyEndAllowThreads(__tstate); | |
2309 | if (PyErr_Occurred()) SWIG_fail; | |
2310 | } | |
2311 | Py_INCREF(Py_None); resultobj = Py_None; | |
2312 | return resultobj; | |
2313 | fail: | |
2314 | return NULL; | |
2315 | } | |
2316 | ||
2317 | ||
2318 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
2319 | PyObject *resultobj; | |
2320 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2321 | wxWindow *result; | |
2322 | PyObject * obj0 = 0 ; | |
2323 | char *kwnames[] = { | |
2324 | (char *) "self", NULL | |
2325 | }; | |
2326 | ||
2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2330 | { | |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2332 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2333 | ||
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | } | |
2337 | { | |
2338 | resultobj = wxPyMake_wxObject(result); | |
2339 | } | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2346 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject *resultobj; | |
2348 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2349 | wxRect *arg2 = 0 ; | |
2350 | wxRect temp2 ; | |
2351 | PyObject * obj0 = 0 ; | |
2352 | PyObject * obj1 = 0 ; | |
2353 | char *kwnames[] = { | |
2354 | (char *) "self",(char *) "rect", NULL | |
2355 | }; | |
2356 | ||
2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2360 | { | |
2361 | arg2 = &temp2; | |
2362 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2363 | } | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2366 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2367 | ||
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) SWIG_fail; | |
2370 | } | |
2371 | Py_INCREF(Py_None); resultobj = Py_None; | |
2372 | return resultobj; | |
2373 | fail: | |
2374 | return NULL; | |
2375 | } | |
2376 | ||
2377 | ||
2378 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
2379 | PyObject *resultobj; | |
2380 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2381 | wxRect result; | |
2382 | PyObject * obj0 = 0 ; | |
2383 | char *kwnames[] = { | |
2384 | (char *) "self", NULL | |
2385 | }; | |
2386 | ||
2387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2390 | { | |
2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2392 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2393 | ||
2394 | wxPyEndAllowThreads(__tstate); | |
2395 | if (PyErr_Occurred()) SWIG_fail; | |
2396 | } | |
2397 | { | |
2398 | wxRect * resultptr; | |
2399 | resultptr = new wxRect((wxRect &) result); | |
2400 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2401 | } | |
2402 | return resultobj; | |
2403 | fail: | |
2404 | return NULL; | |
2405 | } | |
2406 | ||
2407 | ||
2408 | static PyObject * ScrolledWindow_swigregister(PyObject *, PyObject *args) { | |
2409 | PyObject *obj; | |
2410 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2411 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2412 | Py_INCREF(obj); | |
2413 | return Py_BuildValue((char *)""); | |
2414 | } | |
2415 | static int _wrap_FrameNameStr_set(PyObject *) { | |
2416 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2417 | return 1; | |
2418 | } | |
2419 | ||
2420 | ||
2421 | static PyObject *_wrap_FrameNameStr_get() { | |
2422 | PyObject *pyobj; | |
2423 | ||
2424 | { | |
2425 | #if wxUSE_UNICODE | |
2426 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2427 | #else | |
2428 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2429 | #endif | |
2430 | } | |
2431 | return pyobj; | |
2432 | } | |
2433 | ||
2434 | ||
2435 | static int _wrap_DialogNameStr_set(PyObject *) { | |
2436 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2437 | return 1; | |
2438 | } | |
2439 | ||
2440 | ||
2441 | static PyObject *_wrap_DialogNameStr_get() { | |
2442 | PyObject *pyobj; | |
2443 | ||
2444 | { | |
2445 | #if wxUSE_UNICODE | |
2446 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2447 | #else | |
2448 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2449 | #endif | |
2450 | } | |
2451 | return pyobj; | |
2452 | } | |
2453 | ||
2454 | ||
2455 | static int _wrap_StatusLineNameStr_set(PyObject *) { | |
2456 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2457 | return 1; | |
2458 | } | |
2459 | ||
2460 | ||
2461 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2462 | PyObject *pyobj; | |
2463 | ||
2464 | { | |
2465 | #if wxUSE_UNICODE | |
2466 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2467 | #else | |
2468 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2469 | #endif | |
2470 | } | |
2471 | return pyobj; | |
2472 | } | |
2473 | ||
2474 | ||
2475 | static int _wrap_ToolBarNameStr_set(PyObject *) { | |
2476 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2477 | return 1; | |
2478 | } | |
2479 | ||
2480 | ||
2481 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2482 | PyObject *pyobj; | |
2483 | ||
2484 | { | |
2485 | #if wxUSE_UNICODE | |
2486 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2487 | #else | |
2488 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2489 | #endif | |
2490 | } | |
2491 | return pyobj; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2498 | bool arg2 = (bool) True ; | |
2499 | PyObject * obj0 = 0 ; | |
2500 | PyObject * obj1 = 0 ; | |
2501 | char *kwnames[] = { | |
2502 | (char *) "self",(char *) "maximize", NULL | |
2503 | }; | |
2504 | ||
2505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2508 | if (obj1) { | |
2509 | arg2 = (bool) SWIG_AsBool(obj1); | |
2510 | if (PyErr_Occurred()) SWIG_fail; | |
2511 | } | |
2512 | { | |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2514 | (arg1)->Maximize(arg2); | |
2515 | ||
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) SWIG_fail; | |
2518 | } | |
2519 | Py_INCREF(Py_None); resultobj = Py_None; | |
2520 | return resultobj; | |
2521 | fail: | |
2522 | return NULL; | |
2523 | } | |
2524 | ||
2525 | ||
2526 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject *resultobj; | |
2528 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2529 | PyObject * obj0 = 0 ; | |
2530 | char *kwnames[] = { | |
2531 | (char *) "self", NULL | |
2532 | }; | |
2533 | ||
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2537 | { | |
2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2539 | (arg1)->Restore(); | |
2540 | ||
2541 | wxPyEndAllowThreads(__tstate); | |
2542 | if (PyErr_Occurred()) SWIG_fail; | |
2543 | } | |
2544 | Py_INCREF(Py_None); resultobj = Py_None; | |
2545 | return resultobj; | |
2546 | fail: | |
2547 | return NULL; | |
2548 | } | |
2549 | ||
2550 | ||
2551 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject *resultobj; | |
2553 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2554 | bool arg2 = (bool) True ; | |
2555 | PyObject * obj0 = 0 ; | |
2556 | PyObject * obj1 = 0 ; | |
2557 | char *kwnames[] = { | |
2558 | (char *) "self",(char *) "iconize", NULL | |
2559 | }; | |
2560 | ||
2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2564 | if (obj1) { | |
2565 | arg2 = (bool) SWIG_AsBool(obj1); | |
2566 | if (PyErr_Occurred()) SWIG_fail; | |
2567 | } | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2570 | (arg1)->Iconize(arg2); | |
2571 | ||
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) SWIG_fail; | |
2574 | } | |
2575 | Py_INCREF(Py_None); resultobj = Py_None; | |
2576 | return resultobj; | |
2577 | fail: | |
2578 | return NULL; | |
2579 | } | |
2580 | ||
2581 | ||
2582 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject *resultobj; | |
2584 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2585 | bool result; | |
2586 | PyObject * obj0 = 0 ; | |
2587 | char *kwnames[] = { | |
2588 | (char *) "self", NULL | |
2589 | }; | |
2590 | ||
2591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2594 | { | |
2595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2596 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2597 | ||
2598 | wxPyEndAllowThreads(__tstate); | |
2599 | if (PyErr_Occurred()) SWIG_fail; | |
2600 | } | |
2601 | { | |
2602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2603 | } | |
2604 | return resultobj; | |
2605 | fail: | |
2606 | return NULL; | |
2607 | } | |
2608 | ||
2609 | ||
2610 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject *resultobj; | |
2612 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2613 | bool result; | |
2614 | PyObject * obj0 = 0 ; | |
2615 | char *kwnames[] = { | |
2616 | (char *) "self", NULL | |
2617 | }; | |
2618 | ||
2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2622 | { | |
2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2624 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2625 | ||
2626 | wxPyEndAllowThreads(__tstate); | |
2627 | if (PyErr_Occurred()) SWIG_fail; | |
2628 | } | |
2629 | { | |
2630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2631 | } | |
2632 | return resultobj; | |
2633 | fail: | |
2634 | return NULL; | |
2635 | } | |
2636 | ||
2637 | ||
2638 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject *resultobj; | |
2640 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2641 | wxIcon result; | |
2642 | PyObject * obj0 = 0 ; | |
2643 | char *kwnames[] = { | |
2644 | (char *) "self", NULL | |
2645 | }; | |
2646 | ||
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2650 | { | |
2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2652 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2653 | ||
2654 | wxPyEndAllowThreads(__tstate); | |
2655 | if (PyErr_Occurred()) SWIG_fail; | |
2656 | } | |
2657 | { | |
2658 | wxIcon * resultptr; | |
2659 | resultptr = new wxIcon((wxIcon &) result); | |
2660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2661 | } | |
2662 | return resultobj; | |
2663 | fail: | |
2664 | return NULL; | |
2665 | } | |
2666 | ||
2667 | ||
2668 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject *resultobj; | |
2670 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2671 | wxIcon *arg2 = 0 ; | |
2672 | PyObject * obj0 = 0 ; | |
2673 | PyObject * obj1 = 0 ; | |
2674 | char *kwnames[] = { | |
2675 | (char *) "self",(char *) "icon", NULL | |
2676 | }; | |
2677 | ||
2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",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 ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2683 | SWIG_fail; | |
2684 | if (arg2 == NULL) { | |
2685 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2686 | SWIG_fail; | |
2687 | } | |
2688 | { | |
2689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2690 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2691 | ||
2692 | wxPyEndAllowThreads(__tstate); | |
2693 | if (PyErr_Occurred()) SWIG_fail; | |
2694 | } | |
2695 | Py_INCREF(Py_None); resultobj = Py_None; | |
2696 | return resultobj; | |
2697 | fail: | |
2698 | return NULL; | |
2699 | } | |
2700 | ||
2701 | ||
2702 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *, PyObject *args, PyObject *kwargs) { | |
2703 | PyObject *resultobj; | |
2704 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2705 | wxIconBundle *arg2 = 0 ; | |
2706 | PyObject * obj0 = 0 ; | |
2707 | PyObject * obj1 = 0 ; | |
2708 | char *kwnames[] = { | |
2709 | (char *) "self",(char *) "icons", NULL | |
2710 | }; | |
2711 | ||
2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2715 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2716 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2717 | SWIG_fail; | |
2718 | if (arg2 == NULL) { | |
2719 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2720 | SWIG_fail; | |
2721 | } | |
2722 | { | |
2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2724 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2725 | ||
2726 | wxPyEndAllowThreads(__tstate); | |
2727 | if (PyErr_Occurred()) SWIG_fail; | |
2728 | } | |
2729 | Py_INCREF(Py_None); resultobj = Py_None; | |
2730 | return resultobj; | |
2731 | fail: | |
2732 | return NULL; | |
2733 | } | |
2734 | ||
2735 | ||
2736 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *, PyObject *args, PyObject *kwargs) { | |
2737 | PyObject *resultobj; | |
2738 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2739 | bool arg2 ; | |
2740 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2741 | bool result; | |
2742 | PyObject * obj0 = 0 ; | |
2743 | PyObject * obj1 = 0 ; | |
2744 | PyObject * obj2 = 0 ; | |
2745 | char *kwnames[] = { | |
2746 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2747 | }; | |
2748 | ||
2749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2752 | arg2 = (bool) SWIG_AsBool(obj1); | |
2753 | if (PyErr_Occurred()) SWIG_fail; | |
2754 | if (obj2) { | |
2755 | arg3 = (long) SWIG_AsLong(obj2); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | { | |
2759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2760 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2761 | ||
2762 | wxPyEndAllowThreads(__tstate); | |
2763 | if (PyErr_Occurred()) SWIG_fail; | |
2764 | } | |
2765 | { | |
2766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2767 | } | |
2768 | return resultobj; | |
2769 | fail: | |
2770 | return NULL; | |
2771 | } | |
2772 | ||
2773 | ||
2774 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *, PyObject *args, PyObject *kwargs) { | |
2775 | PyObject *resultobj; | |
2776 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2777 | bool result; | |
2778 | PyObject * obj0 = 0 ; | |
2779 | char *kwnames[] = { | |
2780 | (char *) "self", NULL | |
2781 | }; | |
2782 | ||
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2786 | { | |
2787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2788 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2789 | ||
2790 | wxPyEndAllowThreads(__tstate); | |
2791 | if (PyErr_Occurred()) SWIG_fail; | |
2792 | } | |
2793 | { | |
2794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2795 | } | |
2796 | return resultobj; | |
2797 | fail: | |
2798 | return NULL; | |
2799 | } | |
2800 | ||
2801 | ||
2802 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2803 | PyObject *resultobj; | |
2804 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2805 | wxString *arg2 = 0 ; | |
2806 | bool temp2 = False ; | |
2807 | PyObject * obj0 = 0 ; | |
2808 | PyObject * obj1 = 0 ; | |
2809 | char *kwnames[] = { | |
2810 | (char *) "self",(char *) "title", NULL | |
2811 | }; | |
2812 | ||
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2816 | { | |
2817 | arg2 = wxString_in_helper(obj1); | |
2818 | if (arg2 == NULL) SWIG_fail; | |
2819 | temp2 = True; | |
2820 | } | |
2821 | { | |
2822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2823 | (arg1)->SetTitle((wxString const &)*arg2); | |
2824 | ||
2825 | wxPyEndAllowThreads(__tstate); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | } | |
2828 | Py_INCREF(Py_None); resultobj = Py_None; | |
2829 | { | |
2830 | if (temp2) | |
2831 | delete arg2; | |
2832 | } | |
2833 | return resultobj; | |
2834 | fail: | |
2835 | { | |
2836 | if (temp2) | |
2837 | delete arg2; | |
2838 | } | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
2843 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject *resultobj; | |
2845 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2846 | wxString result; | |
2847 | PyObject * obj0 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "self", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
2853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2855 | { | |
2856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2857 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
2858 | ||
2859 | wxPyEndAllowThreads(__tstate); | |
2860 | if (PyErr_Occurred()) SWIG_fail; | |
2861 | } | |
2862 | { | |
2863 | #if wxUSE_UNICODE | |
2864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2865 | #else | |
2866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2867 | #endif | |
2868 | } | |
2869 | return resultobj; | |
2870 | fail: | |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
2875 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *, PyObject *args, PyObject *kwargs) { | |
2876 | PyObject *resultobj; | |
2877 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2878 | wxRegion *arg2 = 0 ; | |
2879 | bool result; | |
2880 | PyObject * obj0 = 0 ; | |
2881 | PyObject * obj1 = 0 ; | |
2882 | char *kwnames[] = { | |
2883 | (char *) "self",(char *) "region", NULL | |
2884 | }; | |
2885 | ||
2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
2887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
2890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2891 | SWIG_fail; | |
2892 | if (arg2 == NULL) { | |
2893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2894 | SWIG_fail; | |
2895 | } | |
2896 | { | |
2897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2898 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
2899 | ||
2900 | wxPyEndAllowThreads(__tstate); | |
2901 | if (PyErr_Occurred()) SWIG_fail; | |
2902 | } | |
2903 | { | |
2904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2905 | } | |
2906 | return resultobj; | |
2907 | fail: | |
2908 | return NULL; | |
2909 | } | |
2910 | ||
2911 | ||
2912 | static PyObject * TopLevelWindow_swigregister(PyObject *, PyObject *args) { | |
2913 | PyObject *obj; | |
2914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2915 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
2916 | Py_INCREF(obj); | |
2917 | return Py_BuildValue((char *)""); | |
2918 | } | |
2919 | static PyObject *_wrap_new_Frame(PyObject *, PyObject *args, PyObject *kwargs) { | |
2920 | PyObject *resultobj; | |
2921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2922 | int arg2 ; | |
2923 | wxString *arg3 = 0 ; | |
2924 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2925 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2926 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2927 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2928 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
2929 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
2930 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
2931 | wxFrame *result; | |
2932 | bool temp3 = False ; | |
2933 | wxPoint temp4 ; | |
2934 | wxSize temp5 ; | |
2935 | bool temp7 = False ; | |
2936 | PyObject * obj0 = 0 ; | |
2937 | PyObject * obj1 = 0 ; | |
2938 | PyObject * obj2 = 0 ; | |
2939 | PyObject * obj3 = 0 ; | |
2940 | PyObject * obj4 = 0 ; | |
2941 | PyObject * obj5 = 0 ; | |
2942 | PyObject * obj6 = 0 ; | |
2943 | char *kwnames[] = { | |
2944 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
2945 | }; | |
2946 | ||
2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2950 | arg2 = (int const) SWIG_AsInt(obj1); | |
2951 | if (PyErr_Occurred()) SWIG_fail; | |
2952 | { | |
2953 | arg3 = wxString_in_helper(obj2); | |
2954 | if (arg3 == NULL) SWIG_fail; | |
2955 | temp3 = True; | |
2956 | } | |
2957 | if (obj3) { | |
2958 | { | |
2959 | arg4 = &temp4; | |
2960 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2961 | } | |
2962 | } | |
2963 | if (obj4) { | |
2964 | { | |
2965 | arg5 = &temp5; | |
2966 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2967 | } | |
2968 | } | |
2969 | if (obj5) { | |
2970 | arg6 = (long) SWIG_AsLong(obj5); | |
2971 | if (PyErr_Occurred()) SWIG_fail; | |
2972 | } | |
2973 | if (obj6) { | |
2974 | { | |
2975 | arg7 = wxString_in_helper(obj6); | |
2976 | if (arg7 == NULL) SWIG_fail; | |
2977 | temp7 = True; | |
2978 | } | |
2979 | } | |
2980 | { | |
2981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2982 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
2983 | ||
2984 | wxPyEndAllowThreads(__tstate); | |
2985 | if (PyErr_Occurred()) SWIG_fail; | |
2986 | } | |
2987 | { | |
2988 | resultobj = wxPyMake_wxObject(result); | |
2989 | } | |
2990 | { | |
2991 | if (temp3) | |
2992 | delete arg3; | |
2993 | } | |
2994 | { | |
2995 | if (temp7) | |
2996 | delete arg7; | |
2997 | } | |
2998 | return resultobj; | |
2999 | fail: | |
3000 | { | |
3001 | if (temp3) | |
3002 | delete arg3; | |
3003 | } | |
3004 | { | |
3005 | if (temp7) | |
3006 | delete arg7; | |
3007 | } | |
3008 | return NULL; | |
3009 | } | |
3010 | ||
3011 | ||
3012 | static PyObject *_wrap_new_PreFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
3013 | PyObject *resultobj; | |
3014 | wxFrame *result; | |
3015 | char *kwnames[] = { | |
3016 | NULL | |
3017 | }; | |
3018 | ||
3019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3020 | { | |
3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3022 | result = (wxFrame *)new wxFrame(); | |
3023 | ||
3024 | wxPyEndAllowThreads(__tstate); | |
3025 | if (PyErr_Occurred()) SWIG_fail; | |
3026 | } | |
3027 | { | |
3028 | resultobj = wxPyMake_wxObject(result); | |
3029 | } | |
3030 | return resultobj; | |
3031 | fail: | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
3036 | static PyObject *_wrap_Frame_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject *resultobj; | |
3038 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3039 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3040 | int arg3 ; | |
3041 | wxString *arg4 = 0 ; | |
3042 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3043 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3044 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3045 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3046 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3047 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3048 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3049 | bool result; | |
3050 | bool temp4 = False ; | |
3051 | wxPoint temp5 ; | |
3052 | wxSize temp6 ; | |
3053 | bool temp8 = False ; | |
3054 | PyObject * obj0 = 0 ; | |
3055 | PyObject * obj1 = 0 ; | |
3056 | PyObject * obj2 = 0 ; | |
3057 | PyObject * obj3 = 0 ; | |
3058 | PyObject * obj4 = 0 ; | |
3059 | PyObject * obj5 = 0 ; | |
3060 | PyObject * obj6 = 0 ; | |
3061 | PyObject * obj7 = 0 ; | |
3062 | char *kwnames[] = { | |
3063 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3064 | }; | |
3065 | ||
3066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3071 | arg3 = (int const) SWIG_AsInt(obj2); | |
3072 | if (PyErr_Occurred()) SWIG_fail; | |
3073 | { | |
3074 | arg4 = wxString_in_helper(obj3); | |
3075 | if (arg4 == NULL) SWIG_fail; | |
3076 | temp4 = True; | |
3077 | } | |
3078 | if (obj4) { | |
3079 | { | |
3080 | arg5 = &temp5; | |
3081 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3082 | } | |
3083 | } | |
3084 | if (obj5) { | |
3085 | { | |
3086 | arg6 = &temp6; | |
3087 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3088 | } | |
3089 | } | |
3090 | if (obj6) { | |
3091 | arg7 = (long) SWIG_AsLong(obj6); | |
3092 | if (PyErr_Occurred()) SWIG_fail; | |
3093 | } | |
3094 | if (obj7) { | |
3095 | { | |
3096 | arg8 = wxString_in_helper(obj7); | |
3097 | if (arg8 == NULL) SWIG_fail; | |
3098 | temp8 = True; | |
3099 | } | |
3100 | } | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | { | |
3109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3110 | } | |
3111 | { | |
3112 | if (temp4) | |
3113 | delete arg4; | |
3114 | } | |
3115 | { | |
3116 | if (temp8) | |
3117 | delete arg8; | |
3118 | } | |
3119 | return resultobj; | |
3120 | fail: | |
3121 | { | |
3122 | if (temp4) | |
3123 | delete arg4; | |
3124 | } | |
3125 | { | |
3126 | if (temp8) | |
3127 | delete arg8; | |
3128 | } | |
3129 | return NULL; | |
3130 | } | |
3131 | ||
3132 | ||
3133 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { | |
3134 | PyObject *resultobj; | |
3135 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3136 | wxPoint result; | |
3137 | PyObject * obj0 = 0 ; | |
3138 | char *kwnames[] = { | |
3139 | (char *) "self", NULL | |
3140 | }; | |
3141 | ||
3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3145 | { | |
3146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3147 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3148 | ||
3149 | wxPyEndAllowThreads(__tstate); | |
3150 | if (PyErr_Occurred()) SWIG_fail; | |
3151 | } | |
3152 | { | |
3153 | wxPoint * resultptr; | |
3154 | resultptr = new wxPoint((wxPoint &) result); | |
3155 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3156 | } | |
3157 | return resultobj; | |
3158 | fail: | |
3159 | return NULL; | |
3160 | } | |
3161 | ||
3162 | ||
3163 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
3164 | PyObject *resultobj; | |
3165 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3166 | PyObject * obj0 = 0 ; | |
3167 | char *kwnames[] = { | |
3168 | (char *) "self", NULL | |
3169 | }; | |
3170 | ||
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3174 | { | |
3175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3176 | (arg1)->SendSizeEvent(); | |
3177 | ||
3178 | wxPyEndAllowThreads(__tstate); | |
3179 | if (PyErr_Occurred()) SWIG_fail; | |
3180 | } | |
3181 | Py_INCREF(Py_None); resultobj = Py_None; | |
3182 | return resultobj; | |
3183 | fail: | |
3184 | return NULL; | |
3185 | } | |
3186 | ||
3187 | ||
3188 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3189 | PyObject *resultobj; | |
3190 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3191 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3192 | PyObject * obj0 = 0 ; | |
3193 | PyObject * obj1 = 0 ; | |
3194 | char *kwnames[] = { | |
3195 | (char *) "self",(char *) "menubar", NULL | |
3196 | }; | |
3197 | ||
3198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3201 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3203 | { | |
3204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3205 | (arg1)->SetMenuBar(arg2); | |
3206 | ||
3207 | wxPyEndAllowThreads(__tstate); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | Py_INCREF(Py_None); resultobj = Py_None; | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | return NULL; | |
3214 | } | |
3215 | ||
3216 | ||
3217 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3218 | PyObject *resultobj; | |
3219 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3220 | wxMenuBar *result; | |
3221 | PyObject * obj0 = 0 ; | |
3222 | char *kwnames[] = { | |
3223 | (char *) "self", NULL | |
3224 | }; | |
3225 | ||
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3229 | { | |
3230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3231 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3232 | ||
3233 | wxPyEndAllowThreads(__tstate); | |
3234 | if (PyErr_Occurred()) SWIG_fail; | |
3235 | } | |
3236 | { | |
3237 | resultobj = wxPyMake_wxObject(result); | |
3238 | } | |
3239 | return resultobj; | |
3240 | fail: | |
3241 | return NULL; | |
3242 | } | |
3243 | ||
3244 | ||
3245 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
3246 | PyObject *resultobj; | |
3247 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3248 | int arg2 ; | |
3249 | bool result; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | PyObject * obj1 = 0 ; | |
3252 | char *kwnames[] = { | |
3253 | (char *) "self",(char *) "winid", NULL | |
3254 | }; | |
3255 | ||
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3259 | arg2 = (int) SWIG_AsInt(obj1); | |
3260 | if (PyErr_Occurred()) SWIG_fail; | |
3261 | { | |
3262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3263 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3264 | ||
3265 | wxPyEndAllowThreads(__tstate); | |
3266 | if (PyErr_Occurred()) SWIG_fail; | |
3267 | } | |
3268 | { | |
3269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3270 | } | |
3271 | return resultobj; | |
3272 | fail: | |
3273 | return NULL; | |
3274 | } | |
3275 | ||
3276 | ||
3277 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3278 | PyObject *resultobj; | |
3279 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3280 | int arg2 = (int) 1 ; | |
3281 | long arg3 = (long) wxST_SIZEGRIP ; | |
3282 | int arg4 = (int) 0 ; | |
3283 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3284 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3285 | wxStatusBar *result; | |
3286 | bool temp5 = False ; | |
3287 | PyObject * obj0 = 0 ; | |
3288 | PyObject * obj1 = 0 ; | |
3289 | PyObject * obj2 = 0 ; | |
3290 | PyObject * obj3 = 0 ; | |
3291 | PyObject * obj4 = 0 ; | |
3292 | char *kwnames[] = { | |
3293 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3294 | }; | |
3295 | ||
3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3299 | if (obj1) { | |
3300 | arg2 = (int) SWIG_AsInt(obj1); | |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
3302 | } | |
3303 | if (obj2) { | |
3304 | arg3 = (long) SWIG_AsLong(obj2); | |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
3306 | } | |
3307 | if (obj3) { | |
3308 | arg4 = (int) SWIG_AsInt(obj3); | |
3309 | if (PyErr_Occurred()) SWIG_fail; | |
3310 | } | |
3311 | if (obj4) { | |
3312 | { | |
3313 | arg5 = wxString_in_helper(obj4); | |
3314 | if (arg5 == NULL) SWIG_fail; | |
3315 | temp5 = True; | |
3316 | } | |
3317 | } | |
3318 | { | |
3319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3320 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3321 | ||
3322 | wxPyEndAllowThreads(__tstate); | |
3323 | if (PyErr_Occurred()) SWIG_fail; | |
3324 | } | |
3325 | { | |
3326 | resultobj = wxPyMake_wxObject(result); | |
3327 | } | |
3328 | { | |
3329 | if (temp5) | |
3330 | delete arg5; | |
3331 | } | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | { | |
3335 | if (temp5) | |
3336 | delete arg5; | |
3337 | } | |
3338 | return NULL; | |
3339 | } | |
3340 | ||
3341 | ||
3342 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3343 | PyObject *resultobj; | |
3344 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3345 | wxStatusBar *result; | |
3346 | PyObject * obj0 = 0 ; | |
3347 | char *kwnames[] = { | |
3348 | (char *) "self", NULL | |
3349 | }; | |
3350 | ||
3351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3354 | { | |
3355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3356 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3357 | ||
3358 | wxPyEndAllowThreads(__tstate); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | { | |
3362 | resultobj = wxPyMake_wxObject(result); | |
3363 | } | |
3364 | return resultobj; | |
3365 | fail: | |
3366 | return NULL; | |
3367 | } | |
3368 | ||
3369 | ||
3370 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3371 | PyObject *resultobj; | |
3372 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3373 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3374 | PyObject * obj0 = 0 ; | |
3375 | PyObject * obj1 = 0 ; | |
3376 | char *kwnames[] = { | |
3377 | (char *) "self",(char *) "statBar", NULL | |
3378 | }; | |
3379 | ||
3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3385 | { | |
3386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3387 | (arg1)->SetStatusBar(arg2); | |
3388 | ||
3389 | wxPyEndAllowThreads(__tstate); | |
3390 | if (PyErr_Occurred()) SWIG_fail; | |
3391 | } | |
3392 | Py_INCREF(Py_None); resultobj = Py_None; | |
3393 | return resultobj; | |
3394 | fail: | |
3395 | return NULL; | |
3396 | } | |
3397 | ||
3398 | ||
3399 | static PyObject *_wrap_Frame_SetStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
3400 | PyObject *resultobj; | |
3401 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3402 | wxString *arg2 = 0 ; | |
3403 | int arg3 = (int) 0 ; | |
3404 | bool temp2 = False ; | |
3405 | PyObject * obj0 = 0 ; | |
3406 | PyObject * obj1 = 0 ; | |
3407 | PyObject * obj2 = 0 ; | |
3408 | char *kwnames[] = { | |
3409 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3410 | }; | |
3411 | ||
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | { | |
3416 | arg2 = wxString_in_helper(obj1); | |
3417 | if (arg2 == NULL) SWIG_fail; | |
3418 | temp2 = True; | |
3419 | } | |
3420 | if (obj2) { | |
3421 | arg3 = (int) SWIG_AsInt(obj2); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
3423 | } | |
3424 | { | |
3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3426 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3427 | ||
3428 | wxPyEndAllowThreads(__tstate); | |
3429 | if (PyErr_Occurred()) SWIG_fail; | |
3430 | } | |
3431 | Py_INCREF(Py_None); resultobj = Py_None; | |
3432 | { | |
3433 | if (temp2) | |
3434 | delete arg2; | |
3435 | } | |
3436 | return resultobj; | |
3437 | fail: | |
3438 | { | |
3439 | if (temp2) | |
3440 | delete arg2; | |
3441 | } | |
3442 | return NULL; | |
3443 | } | |
3444 | ||
3445 | ||
3446 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *, PyObject *args, PyObject *kwargs) { | |
3447 | PyObject *resultobj; | |
3448 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3449 | int arg2 ; | |
3450 | int *arg3 = (int *) 0 ; | |
3451 | PyObject * obj0 = 0 ; | |
3452 | PyObject * obj1 = 0 ; | |
3453 | char *kwnames[] = { | |
3454 | (char *) "self",(char *) "widths", NULL | |
3455 | }; | |
3456 | ||
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3460 | { | |
3461 | arg2 = PyList_Size(obj1); | |
3462 | arg3 = int_LIST_helper(obj1); | |
3463 | if (arg3 == NULL) SWIG_fail; | |
3464 | } | |
3465 | { | |
3466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3467 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3468 | ||
3469 | wxPyEndAllowThreads(__tstate); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
3472 | Py_INCREF(Py_None); resultobj = Py_None; | |
3473 | { | |
3474 | if (arg3) delete [] arg3; | |
3475 | } | |
3476 | return resultobj; | |
3477 | fail: | |
3478 | { | |
3479 | if (arg3) delete [] arg3; | |
3480 | } | |
3481 | return NULL; | |
3482 | } | |
3483 | ||
3484 | ||
3485 | static PyObject *_wrap_Frame_PushStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
3486 | PyObject *resultobj; | |
3487 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3488 | wxString *arg2 = 0 ; | |
3489 | int arg3 = (int) 0 ; | |
3490 | bool temp2 = False ; | |
3491 | PyObject * obj0 = 0 ; | |
3492 | PyObject * obj1 = 0 ; | |
3493 | PyObject * obj2 = 0 ; | |
3494 | char *kwnames[] = { | |
3495 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3496 | }; | |
3497 | ||
3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3501 | { | |
3502 | arg2 = wxString_in_helper(obj1); | |
3503 | if (arg2 == NULL) SWIG_fail; | |
3504 | temp2 = True; | |
3505 | } | |
3506 | if (obj2) { | |
3507 | arg3 = (int) SWIG_AsInt(obj2); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
3510 | { | |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | Py_INCREF(Py_None); resultobj = Py_None; | |
3518 | { | |
3519 | if (temp2) | |
3520 | delete arg2; | |
3521 | } | |
3522 | return resultobj; | |
3523 | fail: | |
3524 | { | |
3525 | if (temp2) | |
3526 | delete arg2; | |
3527 | } | |
3528 | return NULL; | |
3529 | } | |
3530 | ||
3531 | ||
3532 | static PyObject *_wrap_Frame_PopStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
3533 | PyObject *resultobj; | |
3534 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3535 | int arg2 = (int) 0 ; | |
3536 | PyObject * obj0 = 0 ; | |
3537 | PyObject * obj1 = 0 ; | |
3538 | char *kwnames[] = { | |
3539 | (char *) "self",(char *) "number", NULL | |
3540 | }; | |
3541 | ||
3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3545 | if (obj1) { | |
3546 | arg2 = (int) SWIG_AsInt(obj1); | |
3547 | if (PyErr_Occurred()) SWIG_fail; | |
3548 | } | |
3549 | { | |
3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3551 | (arg1)->PopStatusText(arg2); | |
3552 | ||
3553 | wxPyEndAllowThreads(__tstate); | |
3554 | if (PyErr_Occurred()) SWIG_fail; | |
3555 | } | |
3556 | Py_INCREF(Py_None); resultobj = Py_None; | |
3557 | return resultobj; | |
3558 | fail: | |
3559 | return NULL; | |
3560 | } | |
3561 | ||
3562 | ||
3563 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *, PyObject *args, PyObject *kwargs) { | |
3564 | PyObject *resultobj; | |
3565 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3566 | int arg2 ; | |
3567 | PyObject * obj0 = 0 ; | |
3568 | PyObject * obj1 = 0 ; | |
3569 | char *kwnames[] = { | |
3570 | (char *) "self",(char *) "n", NULL | |
3571 | }; | |
3572 | ||
3573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3576 | arg2 = (int) SWIG_AsInt(obj1); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | (arg1)->SetStatusBarPane(arg2); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
3585 | Py_INCREF(Py_None); resultobj = Py_None; | |
3586 | return resultobj; | |
3587 | fail: | |
3588 | return NULL; | |
3589 | } | |
3590 | ||
3591 | ||
3592 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject *resultobj; | |
3594 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3595 | int result; | |
3596 | PyObject * obj0 = 0 ; | |
3597 | char *kwnames[] = { | |
3598 | (char *) "self", NULL | |
3599 | }; | |
3600 | ||
3601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3604 | { | |
3605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3606 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3607 | ||
3608 | wxPyEndAllowThreads(__tstate); | |
3609 | if (PyErr_Occurred()) SWIG_fail; | |
3610 | } | |
3611 | resultobj = SWIG_FromInt((int)result); | |
3612 | return resultobj; | |
3613 | fail: | |
3614 | return NULL; | |
3615 | } | |
3616 | ||
3617 | ||
3618 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3619 | PyObject *resultobj; | |
3620 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3621 | long arg2 = (long) -1 ; | |
3622 | int arg3 = (int) -1 ; | |
3623 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3624 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3625 | wxToolBar *result; | |
3626 | bool temp4 = False ; | |
3627 | PyObject * obj0 = 0 ; | |
3628 | PyObject * obj1 = 0 ; | |
3629 | PyObject * obj2 = 0 ; | |
3630 | PyObject * obj3 = 0 ; | |
3631 | char *kwnames[] = { | |
3632 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3633 | }; | |
3634 | ||
3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3638 | if (obj1) { | |
3639 | arg2 = (long) SWIG_AsLong(obj1); | |
3640 | if (PyErr_Occurred()) SWIG_fail; | |
3641 | } | |
3642 | if (obj2) { | |
3643 | arg3 = (int) SWIG_AsInt(obj2); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
3646 | if (obj3) { | |
3647 | { | |
3648 | arg4 = wxString_in_helper(obj3); | |
3649 | if (arg4 == NULL) SWIG_fail; | |
3650 | temp4 = True; | |
3651 | } | |
3652 | } | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | { | |
3661 | resultobj = wxPyMake_wxObject(result); | |
3662 | } | |
3663 | { | |
3664 | if (temp4) | |
3665 | delete arg4; | |
3666 | } | |
3667 | return resultobj; | |
3668 | fail: | |
3669 | { | |
3670 | if (temp4) | |
3671 | delete arg4; | |
3672 | } | |
3673 | return NULL; | |
3674 | } | |
3675 | ||
3676 | ||
3677 | static PyObject *_wrap_Frame_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3678 | PyObject *resultobj; | |
3679 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3680 | wxToolBar *result; | |
3681 | PyObject * obj0 = 0 ; | |
3682 | char *kwnames[] = { | |
3683 | (char *) "self", NULL | |
3684 | }; | |
3685 | ||
3686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3689 | { | |
3690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3691 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3692 | ||
3693 | wxPyEndAllowThreads(__tstate); | |
3694 | if (PyErr_Occurred()) SWIG_fail; | |
3695 | } | |
3696 | { | |
3697 | resultobj = wxPyMake_wxObject(result); | |
3698 | } | |
3699 | return resultobj; | |
3700 | fail: | |
3701 | return NULL; | |
3702 | } | |
3703 | ||
3704 | ||
3705 | static PyObject *_wrap_Frame_SetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
3706 | PyObject *resultobj; | |
3707 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3708 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3709 | PyObject * obj0 = 0 ; | |
3710 | PyObject * obj1 = 0 ; | |
3711 | char *kwnames[] = { | |
3712 | (char *) "self",(char *) "toolbar", NULL | |
3713 | }; | |
3714 | ||
3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3720 | { | |
3721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3722 | (arg1)->SetToolBar(arg2); | |
3723 | ||
3724 | wxPyEndAllowThreads(__tstate); | |
3725 | if (PyErr_Occurred()) SWIG_fail; | |
3726 | } | |
3727 | Py_INCREF(Py_None); resultobj = Py_None; | |
3728 | return resultobj; | |
3729 | fail: | |
3730 | return NULL; | |
3731 | } | |
3732 | ||
3733 | ||
3734 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
3735 | PyObject *resultobj; | |
3736 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3737 | wxString *arg2 = 0 ; | |
3738 | bool arg3 ; | |
3739 | bool temp2 = False ; | |
3740 | PyObject * obj0 = 0 ; | |
3741 | PyObject * obj1 = 0 ; | |
3742 | PyObject * obj2 = 0 ; | |
3743 | char *kwnames[] = { | |
3744 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3750 | { | |
3751 | arg2 = wxString_in_helper(obj1); | |
3752 | if (arg2 == NULL) SWIG_fail; | |
3753 | temp2 = True; | |
3754 | } | |
3755 | arg3 = (bool) SWIG_AsBool(obj2); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | { | |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3759 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
3762 | if (PyErr_Occurred()) SWIG_fail; | |
3763 | } | |
3764 | Py_INCREF(Py_None); resultobj = Py_None; | |
3765 | { | |
3766 | if (temp2) | |
3767 | delete arg2; | |
3768 | } | |
3769 | return resultobj; | |
3770 | fail: | |
3771 | { | |
3772 | if (temp2) | |
3773 | delete arg2; | |
3774 | } | |
3775 | return NULL; | |
3776 | } | |
3777 | ||
3778 | ||
3779 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *, PyObject *args, PyObject *kwargs) { | |
3780 | PyObject *resultobj; | |
3781 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3782 | wxMenu *arg2 = (wxMenu *) NULL ; | |
3783 | PyObject * obj0 = 0 ; | |
3784 | PyObject * obj1 = 0 ; | |
3785 | char *kwnames[] = { | |
3786 | (char *) "self",(char *) "menu", NULL | |
3787 | }; | |
3788 | ||
3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
3790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3792 | if (obj1) { | |
3793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
3794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3795 | } | |
3796 | { | |
3797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3798 | (arg1)->DoMenuUpdates(arg2); | |
3799 | ||
3800 | wxPyEndAllowThreads(__tstate); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | } | |
3803 | Py_INCREF(Py_None); resultobj = Py_None; | |
3804 | return resultobj; | |
3805 | fail: | |
3806 | return NULL; | |
3807 | } | |
3808 | ||
3809 | ||
3810 | static PyObject * Frame_swigregister(PyObject *, PyObject *args) { | |
3811 | PyObject *obj; | |
3812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3813 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
3814 | Py_INCREF(obj); | |
3815 | return Py_BuildValue((char *)""); | |
3816 | } | |
3817 | static PyObject *_wrap_new_Dialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
3818 | PyObject *resultobj; | |
3819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3820 | int arg2 ; | |
3821 | wxString *arg3 = 0 ; | |
3822 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3823 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3824 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3825 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3826 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
3827 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
3828 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3829 | wxDialog *result; | |
3830 | bool temp3 = False ; | |
3831 | wxPoint temp4 ; | |
3832 | wxSize temp5 ; | |
3833 | bool temp7 = False ; | |
3834 | PyObject * obj0 = 0 ; | |
3835 | PyObject * obj1 = 0 ; | |
3836 | PyObject * obj2 = 0 ; | |
3837 | PyObject * obj3 = 0 ; | |
3838 | PyObject * obj4 = 0 ; | |
3839 | PyObject * obj5 = 0 ; | |
3840 | PyObject * obj6 = 0 ; | |
3841 | char *kwnames[] = { | |
3842 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3843 | }; | |
3844 | ||
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3848 | arg2 = (int const) SWIG_AsInt(obj1); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | { | |
3851 | arg3 = wxString_in_helper(obj2); | |
3852 | if (arg3 == NULL) SWIG_fail; | |
3853 | temp3 = True; | |
3854 | } | |
3855 | if (obj3) { | |
3856 | { | |
3857 | arg4 = &temp4; | |
3858 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3859 | } | |
3860 | } | |
3861 | if (obj4) { | |
3862 | { | |
3863 | arg5 = &temp5; | |
3864 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3865 | } | |
3866 | } | |
3867 | if (obj5) { | |
3868 | arg6 = (long) SWIG_AsLong(obj5); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
3871 | if (obj6) { | |
3872 | { | |
3873 | arg7 = wxString_in_helper(obj6); | |
3874 | if (arg7 == NULL) SWIG_fail; | |
3875 | temp7 = True; | |
3876 | } | |
3877 | } | |
3878 | { | |
3879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3880 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3881 | ||
3882 | wxPyEndAllowThreads(__tstate); | |
3883 | if (PyErr_Occurred()) SWIG_fail; | |
3884 | } | |
3885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); | |
3886 | { | |
3887 | if (temp3) | |
3888 | delete arg3; | |
3889 | } | |
3890 | { | |
3891 | if (temp7) | |
3892 | delete arg7; | |
3893 | } | |
3894 | return resultobj; | |
3895 | fail: | |
3896 | { | |
3897 | if (temp3) | |
3898 | delete arg3; | |
3899 | } | |
3900 | { | |
3901 | if (temp7) | |
3902 | delete arg7; | |
3903 | } | |
3904 | return NULL; | |
3905 | } | |
3906 | ||
3907 | ||
3908 | static PyObject *_wrap_new_PreDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
3909 | PyObject *resultobj; | |
3910 | wxDialog *result; | |
3911 | char *kwnames[] = { | |
3912 | NULL | |
3913 | }; | |
3914 | ||
3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | result = (wxDialog *)new wxDialog(); | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) SWIG_fail; | |
3922 | } | |
3923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); | |
3924 | return resultobj; | |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
3930 | static PyObject *_wrap_Dialog_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject *resultobj; | |
3932 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3933 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3934 | int arg3 ; | |
3935 | wxString *arg4 = 0 ; | |
3936 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3937 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3938 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3939 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3940 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
3941 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
3942 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3943 | bool result; | |
3944 | bool temp4 = False ; | |
3945 | wxPoint temp5 ; | |
3946 | wxSize temp6 ; | |
3947 | bool temp8 = False ; | |
3948 | PyObject * obj0 = 0 ; | |
3949 | PyObject * obj1 = 0 ; | |
3950 | PyObject * obj2 = 0 ; | |
3951 | PyObject * obj3 = 0 ; | |
3952 | PyObject * obj4 = 0 ; | |
3953 | PyObject * obj5 = 0 ; | |
3954 | PyObject * obj6 = 0 ; | |
3955 | PyObject * obj7 = 0 ; | |
3956 | char *kwnames[] = { | |
3957 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3958 | }; | |
3959 | ||
3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
3962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3965 | arg3 = (int const) SWIG_AsInt(obj2); | |
3966 | if (PyErr_Occurred()) SWIG_fail; | |
3967 | { | |
3968 | arg4 = wxString_in_helper(obj3); | |
3969 | if (arg4 == NULL) SWIG_fail; | |
3970 | temp4 = True; | |
3971 | } | |
3972 | if (obj4) { | |
3973 | { | |
3974 | arg5 = &temp5; | |
3975 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3976 | } | |
3977 | } | |
3978 | if (obj5) { | |
3979 | { | |
3980 | arg6 = &temp6; | |
3981 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3982 | } | |
3983 | } | |
3984 | if (obj6) { | |
3985 | arg7 = (long) SWIG_AsLong(obj6); | |
3986 | if (PyErr_Occurred()) SWIG_fail; | |
3987 | } | |
3988 | if (obj7) { | |
3989 | { | |
3990 | arg8 = wxString_in_helper(obj7); | |
3991 | if (arg8 == NULL) SWIG_fail; | |
3992 | temp8 = True; | |
3993 | } | |
3994 | } | |
3995 | { | |
3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3997 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3998 | ||
3999 | wxPyEndAllowThreads(__tstate); | |
4000 | if (PyErr_Occurred()) SWIG_fail; | |
4001 | } | |
4002 | { | |
4003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4004 | } | |
4005 | { | |
4006 | if (temp4) | |
4007 | delete arg4; | |
4008 | } | |
4009 | { | |
4010 | if (temp8) | |
4011 | delete arg8; | |
4012 | } | |
4013 | return resultobj; | |
4014 | fail: | |
4015 | { | |
4016 | if (temp4) | |
4017 | delete arg4; | |
4018 | } | |
4019 | { | |
4020 | if (temp8) | |
4021 | delete arg8; | |
4022 | } | |
4023 | return NULL; | |
4024 | } | |
4025 | ||
4026 | ||
4027 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *, PyObject *args, PyObject *kwargs) { | |
4028 | PyObject *resultobj; | |
4029 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4030 | int arg2 ; | |
4031 | PyObject * obj0 = 0 ; | |
4032 | PyObject * obj1 = 0 ; | |
4033 | char *kwnames[] = { | |
4034 | (char *) "self",(char *) "returnCode", NULL | |
4035 | }; | |
4036 | ||
4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4040 | arg2 = (int) SWIG_AsInt(obj1); | |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | { | |
4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4044 | (arg1)->SetReturnCode(arg2); | |
4045 | ||
4046 | wxPyEndAllowThreads(__tstate); | |
4047 | if (PyErr_Occurred()) SWIG_fail; | |
4048 | } | |
4049 | Py_INCREF(Py_None); resultobj = Py_None; | |
4050 | return resultobj; | |
4051 | fail: | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
4056 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *, PyObject *args, PyObject *kwargs) { | |
4057 | PyObject *resultobj; | |
4058 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4059 | int result; | |
4060 | PyObject * obj0 = 0 ; | |
4061 | char *kwnames[] = { | |
4062 | (char *) "self", NULL | |
4063 | }; | |
4064 | ||
4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4068 | { | |
4069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4070 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4071 | ||
4072 | wxPyEndAllowThreads(__tstate); | |
4073 | if (PyErr_Occurred()) SWIG_fail; | |
4074 | } | |
4075 | resultobj = SWIG_FromInt((int)result); | |
4076 | return resultobj; | |
4077 | fail: | |
4078 | return NULL; | |
4079 | } | |
4080 | ||
4081 | ||
4082 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *, PyObject *args, PyObject *kwargs) { | |
4083 | PyObject *resultobj; | |
4084 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4085 | wxString *arg2 = 0 ; | |
4086 | wxSizer *result; | |
4087 | bool temp2 = False ; | |
4088 | PyObject * obj0 = 0 ; | |
4089 | PyObject * obj1 = 0 ; | |
4090 | char *kwnames[] = { | |
4091 | (char *) "self",(char *) "message", NULL | |
4092 | }; | |
4093 | ||
4094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4097 | { | |
4098 | arg2 = wxString_in_helper(obj1); | |
4099 | if (arg2 == NULL) SWIG_fail; | |
4100 | temp2 = True; | |
4101 | } | |
4102 | { | |
4103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4104 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4105 | ||
4106 | wxPyEndAllowThreads(__tstate); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | } | |
4109 | { | |
4110 | resultobj = wxPyMake_wxSizer(result); | |
4111 | } | |
4112 | { | |
4113 | if (temp2) | |
4114 | delete arg2; | |
4115 | } | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | { | |
4119 | if (temp2) | |
4120 | delete arg2; | |
4121 | } | |
4122 | return NULL; | |
4123 | } | |
4124 | ||
4125 | ||
4126 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject *resultobj; | |
4128 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4129 | long arg2 ; | |
4130 | wxSizer *result; | |
4131 | PyObject * obj0 = 0 ; | |
4132 | PyObject * obj1 = 0 ; | |
4133 | char *kwnames[] = { | |
4134 | (char *) "self",(char *) "flags", NULL | |
4135 | }; | |
4136 | ||
4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4140 | arg2 = (long) SWIG_AsLong(obj1); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | { | |
4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4144 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4145 | ||
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
4149 | { | |
4150 | resultobj = wxPyMake_wxSizer(result); | |
4151 | } | |
4152 | return resultobj; | |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
4158 | static PyObject *_wrap_Dialog_IsModal(PyObject *, PyObject *args, PyObject *kwargs) { | |
4159 | PyObject *resultobj; | |
4160 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4161 | bool result; | |
4162 | PyObject * obj0 = 0 ; | |
4163 | char *kwnames[] = { | |
4164 | (char *) "self", NULL | |
4165 | }; | |
4166 | ||
4167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4170 | { | |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4172 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4173 | ||
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
4177 | { | |
4178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4179 | } | |
4180 | return resultobj; | |
4181 | fail: | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
4186 | static PyObject *_wrap_Dialog_ShowModal(PyObject *, PyObject *args, PyObject *kwargs) { | |
4187 | PyObject *resultobj; | |
4188 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4189 | int result; | |
4190 | PyObject * obj0 = 0 ; | |
4191 | char *kwnames[] = { | |
4192 | (char *) "self", NULL | |
4193 | }; | |
4194 | ||
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4198 | { | |
4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4200 | result = (int)(arg1)->ShowModal(); | |
4201 | ||
4202 | wxPyEndAllowThreads(__tstate); | |
4203 | if (PyErr_Occurred()) SWIG_fail; | |
4204 | } | |
4205 | resultobj = SWIG_FromInt((int)result); | |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
4212 | static PyObject *_wrap_Dialog_EndModal(PyObject *, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject *resultobj; | |
4214 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4215 | int arg2 ; | |
4216 | PyObject * obj0 = 0 ; | |
4217 | PyObject * obj1 = 0 ; | |
4218 | char *kwnames[] = { | |
4219 | (char *) "self",(char *) "retCode", NULL | |
4220 | }; | |
4221 | ||
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4225 | arg2 = (int) SWIG_AsInt(obj1); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | { | |
4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4229 | (arg1)->EndModal(arg2); | |
4230 | ||
4231 | wxPyEndAllowThreads(__tstate); | |
4232 | if (PyErr_Occurred()) SWIG_fail; | |
4233 | } | |
4234 | Py_INCREF(Py_None); resultobj = Py_None; | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
4241 | static PyObject *_wrap_Dialog_IsModalShowing(PyObject *, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4244 | bool result; | |
4245 | PyObject * obj0 = 0 ; | |
4246 | char *kwnames[] = { | |
4247 | (char *) "self", NULL | |
4248 | }; | |
4249 | ||
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModalShowing",kwnames,&obj0)) goto fail; | |
4251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4253 | { | |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | result = (bool)wxDialog_IsModalShowing(arg1); | |
4256 | ||
4257 | wxPyEndAllowThreads(__tstate); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
4260 | { | |
4261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4262 | } | |
4263 | return resultobj; | |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject * Dialog_swigregister(PyObject *, PyObject *args) { | |
4270 | PyObject *obj; | |
4271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4272 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4273 | Py_INCREF(obj); | |
4274 | return Py_BuildValue((char *)""); | |
4275 | } | |
4276 | static PyObject *_wrap_new_MiniFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
4277 | PyObject *resultobj; | |
4278 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4279 | int arg2 ; | |
4280 | wxString *arg3 = 0 ; | |
4281 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4282 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4283 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4284 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4285 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4286 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4287 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4288 | wxMiniFrame *result; | |
4289 | bool temp3 = False ; | |
4290 | wxPoint temp4 ; | |
4291 | wxSize temp5 ; | |
4292 | bool temp7 = False ; | |
4293 | PyObject * obj0 = 0 ; | |
4294 | PyObject * obj1 = 0 ; | |
4295 | PyObject * obj2 = 0 ; | |
4296 | PyObject * obj3 = 0 ; | |
4297 | PyObject * obj4 = 0 ; | |
4298 | PyObject * obj5 = 0 ; | |
4299 | PyObject * obj6 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4307 | arg2 = (int const) SWIG_AsInt(obj1); | |
4308 | if (PyErr_Occurred()) SWIG_fail; | |
4309 | { | |
4310 | arg3 = wxString_in_helper(obj2); | |
4311 | if (arg3 == NULL) SWIG_fail; | |
4312 | temp3 = True; | |
4313 | } | |
4314 | if (obj3) { | |
4315 | { | |
4316 | arg4 = &temp4; | |
4317 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4318 | } | |
4319 | } | |
4320 | if (obj4) { | |
4321 | { | |
4322 | arg5 = &temp5; | |
4323 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4324 | } | |
4325 | } | |
4326 | if (obj5) { | |
4327 | arg6 = (long) SWIG_AsLong(obj5); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
4330 | if (obj6) { | |
4331 | { | |
4332 | arg7 = wxString_in_helper(obj6); | |
4333 | if (arg7 == NULL) SWIG_fail; | |
4334 | temp7 = True; | |
4335 | } | |
4336 | } | |
4337 | { | |
4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4339 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4340 | ||
4341 | wxPyEndAllowThreads(__tstate); | |
4342 | if (PyErr_Occurred()) SWIG_fail; | |
4343 | } | |
4344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4345 | { | |
4346 | if (temp3) | |
4347 | delete arg3; | |
4348 | } | |
4349 | { | |
4350 | if (temp7) | |
4351 | delete arg7; | |
4352 | } | |
4353 | return resultobj; | |
4354 | fail: | |
4355 | { | |
4356 | if (temp3) | |
4357 | delete arg3; | |
4358 | } | |
4359 | { | |
4360 | if (temp7) | |
4361 | delete arg7; | |
4362 | } | |
4363 | return NULL; | |
4364 | } | |
4365 | ||
4366 | ||
4367 | static PyObject *_wrap_new_PreMiniFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
4368 | PyObject *resultobj; | |
4369 | wxMiniFrame *result; | |
4370 | char *kwnames[] = { | |
4371 | NULL | |
4372 | }; | |
4373 | ||
4374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4375 | { | |
4376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4377 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4378 | ||
4379 | wxPyEndAllowThreads(__tstate); | |
4380 | if (PyErr_Occurred()) SWIG_fail; | |
4381 | } | |
4382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4383 | return resultobj; | |
4384 | fail: | |
4385 | return NULL; | |
4386 | } | |
4387 | ||
4388 | ||
4389 | static PyObject *_wrap_MiniFrame_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
4390 | PyObject *resultobj; | |
4391 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4392 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4393 | int arg3 ; | |
4394 | wxString *arg4 = 0 ; | |
4395 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4396 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4397 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4398 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4399 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4400 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4401 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4402 | bool result; | |
4403 | bool temp4 = False ; | |
4404 | wxPoint temp5 ; | |
4405 | wxSize temp6 ; | |
4406 | bool temp8 = False ; | |
4407 | PyObject * obj0 = 0 ; | |
4408 | PyObject * obj1 = 0 ; | |
4409 | PyObject * obj2 = 0 ; | |
4410 | PyObject * obj3 = 0 ; | |
4411 | PyObject * obj4 = 0 ; | |
4412 | PyObject * obj5 = 0 ; | |
4413 | PyObject * obj6 = 0 ; | |
4414 | PyObject * obj7 = 0 ; | |
4415 | char *kwnames[] = { | |
4416 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4417 | }; | |
4418 | ||
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, | |
4421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4424 | arg3 = (int const) SWIG_AsInt(obj2); | |
4425 | if (PyErr_Occurred()) SWIG_fail; | |
4426 | { | |
4427 | arg4 = wxString_in_helper(obj3); | |
4428 | if (arg4 == NULL) SWIG_fail; | |
4429 | temp4 = True; | |
4430 | } | |
4431 | if (obj4) { | |
4432 | { | |
4433 | arg5 = &temp5; | |
4434 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4435 | } | |
4436 | } | |
4437 | if (obj5) { | |
4438 | { | |
4439 | arg6 = &temp6; | |
4440 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4441 | } | |
4442 | } | |
4443 | if (obj6) { | |
4444 | arg7 = (long) SWIG_AsLong(obj6); | |
4445 | if (PyErr_Occurred()) SWIG_fail; | |
4446 | } | |
4447 | if (obj7) { | |
4448 | { | |
4449 | arg8 = wxString_in_helper(obj7); | |
4450 | if (arg8 == NULL) SWIG_fail; | |
4451 | temp8 = True; | |
4452 | } | |
4453 | } | |
4454 | { | |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4456 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
4459 | if (PyErr_Occurred()) SWIG_fail; | |
4460 | } | |
4461 | { | |
4462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4463 | } | |
4464 | { | |
4465 | if (temp4) | |
4466 | delete arg4; | |
4467 | } | |
4468 | { | |
4469 | if (temp8) | |
4470 | delete arg8; | |
4471 | } | |
4472 | return resultobj; | |
4473 | fail: | |
4474 | { | |
4475 | if (temp4) | |
4476 | delete arg4; | |
4477 | } | |
4478 | { | |
4479 | if (temp8) | |
4480 | delete arg8; | |
4481 | } | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | static PyObject * MiniFrame_swigregister(PyObject *, PyObject *args) { | |
4487 | PyObject *obj; | |
4488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4489 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4490 | Py_INCREF(obj); | |
4491 | return Py_BuildValue((char *)""); | |
4492 | } | |
4493 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | wxBitmap *arg1 = 0 ; | |
4496 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4497 | int arg3 ; | |
4498 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4499 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4500 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4501 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4502 | long arg6 = (long) wxNO_BORDER ; | |
4503 | wxSplashScreenWindow *result; | |
4504 | wxPoint temp4 ; | |
4505 | wxSize temp5 ; | |
4506 | PyObject * obj0 = 0 ; | |
4507 | PyObject * obj1 = 0 ; | |
4508 | PyObject * obj2 = 0 ; | |
4509 | PyObject * obj3 = 0 ; | |
4510 | PyObject * obj4 = 0 ; | |
4511 | PyObject * obj5 = 0 ; | |
4512 | char *kwnames[] = { | |
4513 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4514 | }; | |
4515 | ||
4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4518 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4519 | SWIG_fail; | |
4520 | if (arg1 == NULL) { | |
4521 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4522 | SWIG_fail; | |
4523 | } | |
4524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4526 | arg3 = (int) SWIG_AsInt(obj2); | |
4527 | if (PyErr_Occurred()) SWIG_fail; | |
4528 | if (obj3) { | |
4529 | { | |
4530 | arg4 = &temp4; | |
4531 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4532 | } | |
4533 | } | |
4534 | if (obj4) { | |
4535 | { | |
4536 | arg5 = &temp5; | |
4537 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4538 | } | |
4539 | } | |
4540 | if (obj5) { | |
4541 | arg6 = (long) SWIG_AsLong(obj5); | |
4542 | if (PyErr_Occurred()) SWIG_fail; | |
4543 | } | |
4544 | { | |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4546 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4547 | ||
4548 | wxPyEndAllowThreads(__tstate); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | } | |
4551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4552 | return resultobj; | |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
4558 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject *resultobj; | |
4560 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4561 | wxBitmap *arg2 = 0 ; | |
4562 | PyObject * obj0 = 0 ; | |
4563 | PyObject * obj1 = 0 ; | |
4564 | char *kwnames[] = { | |
4565 | (char *) "self",(char *) "bitmap", NULL | |
4566 | }; | |
4567 | ||
4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4573 | SWIG_fail; | |
4574 | if (arg2 == NULL) { | |
4575 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4576 | SWIG_fail; | |
4577 | } | |
4578 | { | |
4579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4580 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4581 | ||
4582 | wxPyEndAllowThreads(__tstate); | |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
4584 | } | |
4585 | Py_INCREF(Py_None); resultobj = Py_None; | |
4586 | return resultobj; | |
4587 | fail: | |
4588 | return NULL; | |
4589 | } | |
4590 | ||
4591 | ||
4592 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4593 | PyObject *resultobj; | |
4594 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4595 | wxBitmap *result; | |
4596 | PyObject * obj0 = 0 ; | |
4597 | char *kwnames[] = { | |
4598 | (char *) "self", NULL | |
4599 | }; | |
4600 | ||
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4604 | { | |
4605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4606 | { | |
4607 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4608 | result = (wxBitmap *) &_result_ref; | |
4609 | } | |
4610 | ||
4611 | wxPyEndAllowThreads(__tstate); | |
4612 | if (PyErr_Occurred()) SWIG_fail; | |
4613 | } | |
4614 | { | |
4615 | wxBitmap* resultptr = new wxBitmap(*result); | |
4616 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4617 | } | |
4618 | return resultobj; | |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | static PyObject * SplashScreenWindow_swigregister(PyObject *, PyObject *args) { | |
4625 | PyObject *obj; | |
4626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4627 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4628 | Py_INCREF(obj); | |
4629 | return Py_BuildValue((char *)""); | |
4630 | } | |
4631 | static PyObject *_wrap_new_SplashScreen(PyObject *, PyObject *args, PyObject *kwargs) { | |
4632 | PyObject *resultobj; | |
4633 | wxBitmap *arg1 = 0 ; | |
4634 | long arg2 ; | |
4635 | int arg3 ; | |
4636 | wxWindow *arg4 = (wxWindow *) 0 ; | |
4637 | int arg5 ; | |
4638 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
4639 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4640 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4641 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4642 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4643 | wxSplashScreen *result; | |
4644 | wxPoint temp6 ; | |
4645 | wxSize temp7 ; | |
4646 | PyObject * obj0 = 0 ; | |
4647 | PyObject * obj1 = 0 ; | |
4648 | PyObject * obj2 = 0 ; | |
4649 | PyObject * obj3 = 0 ; | |
4650 | PyObject * obj4 = 0 ; | |
4651 | PyObject * obj5 = 0 ; | |
4652 | PyObject * obj6 = 0 ; | |
4653 | PyObject * obj7 = 0 ; | |
4654 | char *kwnames[] = { | |
4655 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4656 | }; | |
4657 | ||
4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4660 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4661 | SWIG_fail; | |
4662 | if (arg1 == NULL) { | |
4663 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4664 | SWIG_fail; | |
4665 | } | |
4666 | arg2 = (long) SWIG_AsLong(obj1); | |
4667 | if (PyErr_Occurred()) SWIG_fail; | |
4668 | arg3 = (int) SWIG_AsInt(obj2); | |
4669 | if (PyErr_Occurred()) SWIG_fail; | |
4670 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4672 | arg5 = (int) SWIG_AsInt(obj4); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | if (obj5) { | |
4675 | { | |
4676 | arg6 = &temp6; | |
4677 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4678 | } | |
4679 | } | |
4680 | if (obj6) { | |
4681 | { | |
4682 | arg7 = &temp7; | |
4683 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4684 | } | |
4685 | } | |
4686 | if (obj7) { | |
4687 | arg8 = (long) SWIG_AsLong(obj7); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
4690 | { | |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4692 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
4697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
4698 | return resultobj; | |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
4704 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
4705 | PyObject *resultobj; | |
4706 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4707 | long result; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | char *kwnames[] = { | |
4710 | (char *) "self", NULL | |
4711 | }; | |
4712 | ||
4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4716 | { | |
4717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4718 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4719 | ||
4720 | wxPyEndAllowThreads(__tstate); | |
4721 | if (PyErr_Occurred()) SWIG_fail; | |
4722 | } | |
4723 | resultobj = SWIG_FromLong((long)result); | |
4724 | return resultobj; | |
4725 | fail: | |
4726 | return NULL; | |
4727 | } | |
4728 | ||
4729 | ||
4730 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
4731 | PyObject *resultobj; | |
4732 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4733 | wxSplashScreenWindow *result; | |
4734 | PyObject * obj0 = 0 ; | |
4735 | char *kwnames[] = { | |
4736 | (char *) "self", NULL | |
4737 | }; | |
4738 | ||
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
4740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4742 | { | |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4744 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
4747 | if (PyErr_Occurred()) SWIG_fail; | |
4748 | } | |
4749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
4750 | return resultobj; | |
4751 | fail: | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *, PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj; | |
4758 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4759 | int result; | |
4760 | PyObject * obj0 = 0 ; | |
4761 | char *kwnames[] = { | |
4762 | (char *) "self", NULL | |
4763 | }; | |
4764 | ||
4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
4766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4768 | { | |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | resultobj = SWIG_FromInt((int)result); | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject * SplashScreen_swigregister(PyObject *, PyObject *args) { | |
4783 | PyObject *obj; | |
4784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4785 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
4786 | Py_INCREF(obj); | |
4787 | return Py_BuildValue((char *)""); | |
4788 | } | |
4789 | static PyObject *_wrap_new_StatusBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
4790 | PyObject *resultobj; | |
4791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4792 | int arg2 = (int) -1 ; | |
4793 | long arg3 = (long) wxST_SIZEGRIP ; | |
4794 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
4795 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4796 | wxStatusBar *result; | |
4797 | bool temp4 = False ; | |
4798 | PyObject * obj0 = 0 ; | |
4799 | PyObject * obj1 = 0 ; | |
4800 | PyObject * obj2 = 0 ; | |
4801 | PyObject * obj3 = 0 ; | |
4802 | char *kwnames[] = { | |
4803 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4804 | }; | |
4805 | ||
4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4809 | if (obj1) { | |
4810 | arg2 = (int) SWIG_AsInt(obj1); | |
4811 | if (PyErr_Occurred()) SWIG_fail; | |
4812 | } | |
4813 | if (obj2) { | |
4814 | arg3 = (long) SWIG_AsLong(obj2); | |
4815 | if (PyErr_Occurred()) SWIG_fail; | |
4816 | } | |
4817 | if (obj3) { | |
4818 | { | |
4819 | arg4 = wxString_in_helper(obj3); | |
4820 | if (arg4 == NULL) SWIG_fail; | |
4821 | temp4 = True; | |
4822 | } | |
4823 | } | |
4824 | { | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
4827 | ||
4828 | wxPyEndAllowThreads(__tstate); | |
4829 | if (PyErr_Occurred()) SWIG_fail; | |
4830 | } | |
4831 | { | |
4832 | resultobj = wxPyMake_wxObject(result); | |
4833 | } | |
4834 | { | |
4835 | if (temp4) | |
4836 | delete arg4; | |
4837 | } | |
4838 | return resultobj; | |
4839 | fail: | |
4840 | { | |
4841 | if (temp4) | |
4842 | delete arg4; | |
4843 | } | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
4848 | static PyObject *_wrap_new_PreStatusBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
4849 | PyObject *resultobj; | |
4850 | wxStatusBar *result; | |
4851 | char *kwnames[] = { | |
4852 | NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
4856 | { | |
4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4858 | result = (wxStatusBar *)new wxStatusBar(); | |
4859 | ||
4860 | wxPyEndAllowThreads(__tstate); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | } | |
4863 | { | |
4864 | resultobj = wxPyMake_wxObject(result); | |
4865 | } | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
4872 | static PyObject *_wrap_StatusBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
4873 | PyObject *resultobj; | |
4874 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4875 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4876 | int arg3 ; | |
4877 | long arg4 = (long) wxST_SIZEGRIP ; | |
4878 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
4879 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4880 | bool result; | |
4881 | bool temp5 = False ; | |
4882 | PyObject * obj0 = 0 ; | |
4883 | PyObject * obj1 = 0 ; | |
4884 | PyObject * obj2 = 0 ; | |
4885 | PyObject * obj3 = 0 ; | |
4886 | PyObject * obj4 = 0 ; | |
4887 | char *kwnames[] = { | |
4888 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4889 | }; | |
4890 | ||
4891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
4893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4894 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4896 | arg3 = (int) SWIG_AsInt(obj2); | |
4897 | if (PyErr_Occurred()) SWIG_fail; | |
4898 | if (obj3) { | |
4899 | arg4 = (long) SWIG_AsLong(obj3); | |
4900 | if (PyErr_Occurred()) SWIG_fail; | |
4901 | } | |
4902 | if (obj4) { | |
4903 | { | |
4904 | arg5 = wxString_in_helper(obj4); | |
4905 | if (arg5 == NULL) SWIG_fail; | |
4906 | temp5 = True; | |
4907 | } | |
4908 | } | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
4912 | ||
4913 | wxPyEndAllowThreads(__tstate); | |
4914 | if (PyErr_Occurred()) SWIG_fail; | |
4915 | } | |
4916 | { | |
4917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4918 | } | |
4919 | { | |
4920 | if (temp5) | |
4921 | delete arg5; | |
4922 | } | |
4923 | return resultobj; | |
4924 | fail: | |
4925 | { | |
4926 | if (temp5) | |
4927 | delete arg5; | |
4928 | } | |
4929 | return NULL; | |
4930 | } | |
4931 | ||
4932 | ||
4933 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
4934 | PyObject *resultobj; | |
4935 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4936 | int arg2 = (int) 1 ; | |
4937 | PyObject * obj0 = 0 ; | |
4938 | PyObject * obj1 = 0 ; | |
4939 | char *kwnames[] = { | |
4940 | (char *) "self",(char *) "number", NULL | |
4941 | }; | |
4942 | ||
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
4944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
4945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4946 | if (obj1) { | |
4947 | arg2 = (int) SWIG_AsInt(obj1); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | { | |
4951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4952 | (arg1)->SetFieldsCount(arg2); | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
4957 | Py_INCREF(Py_None); resultobj = Py_None; | |
4958 | return resultobj; | |
4959 | fail: | |
4960 | return NULL; | |
4961 | } | |
4962 | ||
4963 | ||
4964 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
4965 | PyObject *resultobj; | |
4966 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4967 | int result; | |
4968 | PyObject * obj0 = 0 ; | |
4969 | char *kwnames[] = { | |
4970 | (char *) "self", NULL | |
4971 | }; | |
4972 | ||
4973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
4974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
4975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4978 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
4979 | ||
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) SWIG_fail; | |
4982 | } | |
4983 | resultobj = SWIG_FromInt((int)result); | |
4984 | return resultobj; | |
4985 | fail: | |
4986 | return NULL; | |
4987 | } | |
4988 | ||
4989 | ||
4990 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
4991 | PyObject *resultobj; | |
4992 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4993 | wxString *arg2 = 0 ; | |
4994 | int arg3 = (int) 0 ; | |
4995 | bool temp2 = False ; | |
4996 | PyObject * obj0 = 0 ; | |
4997 | PyObject * obj1 = 0 ; | |
4998 | PyObject * obj2 = 0 ; | |
4999 | char *kwnames[] = { | |
5000 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5001 | }; | |
5002 | ||
5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5006 | { | |
5007 | arg2 = wxString_in_helper(obj1); | |
5008 | if (arg2 == NULL) SWIG_fail; | |
5009 | temp2 = True; | |
5010 | } | |
5011 | if (obj2) { | |
5012 | arg3 = (int) SWIG_AsInt(obj2); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5018 | ||
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | Py_INCREF(Py_None); resultobj = Py_None; | |
5023 | { | |
5024 | if (temp2) | |
5025 | delete arg2; | |
5026 | } | |
5027 | return resultobj; | |
5028 | fail: | |
5029 | { | |
5030 | if (temp2) | |
5031 | delete arg2; | |
5032 | } | |
5033 | return NULL; | |
5034 | } | |
5035 | ||
5036 | ||
5037 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
5038 | PyObject *resultobj; | |
5039 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5040 | int arg2 = (int) 0 ; | |
5041 | wxString result; | |
5042 | PyObject * obj0 = 0 ; | |
5043 | PyObject * obj1 = 0 ; | |
5044 | char *kwnames[] = { | |
5045 | (char *) "self",(char *) "number", NULL | |
5046 | }; | |
5047 | ||
5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5051 | if (obj1) { | |
5052 | arg2 = (int) SWIG_AsInt(obj1); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | { | |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5057 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5058 | ||
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
5062 | { | |
5063 | #if wxUSE_UNICODE | |
5064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5065 | #else | |
5066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5067 | #endif | |
5068 | } | |
5069 | return resultobj; | |
5070 | fail: | |
5071 | return NULL; | |
5072 | } | |
5073 | ||
5074 | ||
5075 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject *resultobj; | |
5077 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5078 | wxString *arg2 = 0 ; | |
5079 | int arg3 = (int) 0 ; | |
5080 | bool temp2 = False ; | |
5081 | PyObject * obj0 = 0 ; | |
5082 | PyObject * obj1 = 0 ; | |
5083 | PyObject * obj2 = 0 ; | |
5084 | char *kwnames[] = { | |
5085 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5086 | }; | |
5087 | ||
5088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5091 | { | |
5092 | arg2 = wxString_in_helper(obj1); | |
5093 | if (arg2 == NULL) SWIG_fail; | |
5094 | temp2 = True; | |
5095 | } | |
5096 | if (obj2) { | |
5097 | arg3 = (int) SWIG_AsInt(obj2); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | } | |
5100 | { | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5103 | ||
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | Py_INCREF(Py_None); resultobj = Py_None; | |
5108 | { | |
5109 | if (temp2) | |
5110 | delete arg2; | |
5111 | } | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | { | |
5115 | if (temp2) | |
5116 | delete arg2; | |
5117 | } | |
5118 | return NULL; | |
5119 | } | |
5120 | ||
5121 | ||
5122 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *, PyObject *args, PyObject *kwargs) { | |
5123 | PyObject *resultobj; | |
5124 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5125 | int arg2 = (int) 0 ; | |
5126 | PyObject * obj0 = 0 ; | |
5127 | PyObject * obj1 = 0 ; | |
5128 | char *kwnames[] = { | |
5129 | (char *) "self",(char *) "number", NULL | |
5130 | }; | |
5131 | ||
5132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5135 | if (obj1) { | |
5136 | arg2 = (int) SWIG_AsInt(obj1); | |
5137 | if (PyErr_Occurred()) SWIG_fail; | |
5138 | } | |
5139 | { | |
5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5141 | (arg1)->PopStatusText(arg2); | |
5142 | ||
5143 | wxPyEndAllowThreads(__tstate); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
5146 | Py_INCREF(Py_None); resultobj = Py_None; | |
5147 | return resultobj; | |
5148 | fail: | |
5149 | return NULL; | |
5150 | } | |
5151 | ||
5152 | ||
5153 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *, PyObject *args, PyObject *kwargs) { | |
5154 | PyObject *resultobj; | |
5155 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5156 | int arg2 ; | |
5157 | int *arg3 = (int *) 0 ; | |
5158 | PyObject * obj0 = 0 ; | |
5159 | PyObject * obj1 = 0 ; | |
5160 | char *kwnames[] = { | |
5161 | (char *) "self",(char *) "widths", NULL | |
5162 | }; | |
5163 | ||
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5167 | { | |
5168 | arg2 = PyList_Size(obj1); | |
5169 | arg3 = int_LIST_helper(obj1); | |
5170 | if (arg3 == NULL) SWIG_fail; | |
5171 | } | |
5172 | { | |
5173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5174 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5175 | ||
5176 | wxPyEndAllowThreads(__tstate); | |
5177 | if (PyErr_Occurred()) SWIG_fail; | |
5178 | } | |
5179 | Py_INCREF(Py_None); resultobj = Py_None; | |
5180 | { | |
5181 | if (arg3) delete [] arg3; | |
5182 | } | |
5183 | return resultobj; | |
5184 | fail: | |
5185 | { | |
5186 | if (arg3) delete [] arg3; | |
5187 | } | |
5188 | return NULL; | |
5189 | } | |
5190 | ||
5191 | ||
5192 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5193 | PyObject *resultobj; | |
5194 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5195 | int arg2 ; | |
5196 | wxRect result; | |
5197 | PyObject * obj0 = 0 ; | |
5198 | PyObject * obj1 = 0 ; | |
5199 | char *kwnames[] = { | |
5200 | (char *) "self",(char *) "i", NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5206 | arg2 = (int) SWIG_AsInt(obj1); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | { | |
5209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5210 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
5215 | { | |
5216 | wxRect * resultptr; | |
5217 | resultptr = new wxRect((wxRect &) result); | |
5218 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5219 | } | |
5220 | return resultobj; | |
5221 | fail: | |
5222 | return NULL; | |
5223 | } | |
5224 | ||
5225 | ||
5226 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
5227 | PyObject *resultobj; | |
5228 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5229 | int arg2 ; | |
5230 | PyObject * obj0 = 0 ; | |
5231 | PyObject * obj1 = 0 ; | |
5232 | char *kwnames[] = { | |
5233 | (char *) "self",(char *) "height", NULL | |
5234 | }; | |
5235 | ||
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5239 | arg2 = (int) SWIG_AsInt(obj1); | |
5240 | if (PyErr_Occurred()) SWIG_fail; | |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | (arg1)->SetMinHeight(arg2); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
5248 | Py_INCREF(Py_None); resultobj = Py_None; | |
5249 | return resultobj; | |
5250 | fail: | |
5251 | return NULL; | |
5252 | } | |
5253 | ||
5254 | ||
5255 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *, PyObject *args, PyObject *kwargs) { | |
5256 | PyObject *resultobj; | |
5257 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5258 | int result; | |
5259 | PyObject * obj0 = 0 ; | |
5260 | char *kwnames[] = { | |
5261 | (char *) "self", NULL | |
5262 | }; | |
5263 | ||
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5267 | { | |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5269 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5270 | ||
5271 | wxPyEndAllowThreads(__tstate); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | resultobj = SWIG_FromInt((int)result); | |
5275 | return resultobj; | |
5276 | fail: | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5284 | int result; | |
5285 | PyObject * obj0 = 0 ; | |
5286 | char *kwnames[] = { | |
5287 | (char *) "self", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5293 | { | |
5294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5295 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5296 | ||
5297 | wxPyEndAllowThreads(__tstate); | |
5298 | if (PyErr_Occurred()) SWIG_fail; | |
5299 | } | |
5300 | resultobj = SWIG_FromInt((int)result); | |
5301 | return resultobj; | |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
5307 | static PyObject * StatusBar_swigregister(PyObject *, PyObject *args) { | |
5308 | PyObject *obj; | |
5309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5310 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5311 | Py_INCREF(obj); | |
5312 | return Py_BuildValue((char *)""); | |
5313 | } | |
5314 | static int _wrap_SplitterNameStr_set(PyObject *) { | |
5315 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5316 | return 1; | |
5317 | } | |
5318 | ||
5319 | ||
5320 | static PyObject *_wrap_SplitterNameStr_get() { | |
5321 | PyObject *pyobj; | |
5322 | ||
5323 | { | |
5324 | #if wxUSE_UNICODE | |
5325 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5326 | #else | |
5327 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5328 | #endif | |
5329 | } | |
5330 | return pyobj; | |
5331 | } | |
5332 | ||
5333 | ||
5334 | static PyObject *_wrap_new_SplitterWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
5335 | PyObject *resultobj; | |
5336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5337 | int arg2 ; | |
5338 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5339 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5340 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5341 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5342 | long arg5 = (long) wxSP_3D ; | |
5343 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5344 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5345 | wxSplitterWindow *result; | |
5346 | wxPoint temp3 ; | |
5347 | wxSize temp4 ; | |
5348 | bool temp6 = False ; | |
5349 | PyObject * obj0 = 0 ; | |
5350 | PyObject * obj1 = 0 ; | |
5351 | PyObject * obj2 = 0 ; | |
5352 | PyObject * obj3 = 0 ; | |
5353 | PyObject * obj4 = 0 ; | |
5354 | PyObject * obj5 = 0 ; | |
5355 | char *kwnames[] = { | |
5356 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5357 | }; | |
5358 | ||
5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5362 | arg2 = (int) SWIG_AsInt(obj1); | |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
5364 | if (obj2) { | |
5365 | { | |
5366 | arg3 = &temp3; | |
5367 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5368 | } | |
5369 | } | |
5370 | if (obj3) { | |
5371 | { | |
5372 | arg4 = &temp4; | |
5373 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5374 | } | |
5375 | } | |
5376 | if (obj4) { | |
5377 | arg5 = (long) SWIG_AsLong(obj4); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | if (obj5) { | |
5381 | { | |
5382 | arg6 = wxString_in_helper(obj5); | |
5383 | if (arg6 == NULL) SWIG_fail; | |
5384 | temp6 = True; | |
5385 | } | |
5386 | } | |
5387 | { | |
5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5389 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5390 | ||
5391 | wxPyEndAllowThreads(__tstate); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
5393 | } | |
5394 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5395 | { | |
5396 | if (temp6) | |
5397 | delete arg6; | |
5398 | } | |
5399 | return resultobj; | |
5400 | fail: | |
5401 | { | |
5402 | if (temp6) | |
5403 | delete arg6; | |
5404 | } | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj; | |
5411 | wxSplitterWindow *result; | |
5412 | char *kwnames[] = { | |
5413 | NULL | |
5414 | }; | |
5415 | ||
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5417 | { | |
5418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5419 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5420 | ||
5421 | wxPyEndAllowThreads(__tstate); | |
5422 | if (PyErr_Occurred()) SWIG_fail; | |
5423 | } | |
5424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5425 | return resultobj; | |
5426 | fail: | |
5427 | return NULL; | |
5428 | } | |
5429 | ||
5430 | ||
5431 | static PyObject *_wrap_SplitterWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
5432 | PyObject *resultobj; | |
5433 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5434 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5435 | int arg3 ; | |
5436 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5437 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5438 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5439 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5440 | long arg6 = (long) wxSP_3D ; | |
5441 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5442 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5443 | bool result; | |
5444 | wxPoint temp4 ; | |
5445 | wxSize temp5 ; | |
5446 | bool temp7 = False ; | |
5447 | PyObject * obj0 = 0 ; | |
5448 | PyObject * obj1 = 0 ; | |
5449 | PyObject * obj2 = 0 ; | |
5450 | PyObject * obj3 = 0 ; | |
5451 | PyObject * obj4 = 0 ; | |
5452 | PyObject * obj5 = 0 ; | |
5453 | PyObject * obj6 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5463 | arg3 = (int) SWIG_AsInt(obj2); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | if (obj3) { | |
5466 | { | |
5467 | arg4 = &temp4; | |
5468 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5469 | } | |
5470 | } | |
5471 | if (obj4) { | |
5472 | { | |
5473 | arg5 = &temp5; | |
5474 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5475 | } | |
5476 | } | |
5477 | if (obj5) { | |
5478 | arg6 = (long) SWIG_AsLong(obj5); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | if (obj6) { | |
5482 | { | |
5483 | arg7 = wxString_in_helper(obj6); | |
5484 | if (arg7 == NULL) SWIG_fail; | |
5485 | temp7 = True; | |
5486 | } | |
5487 | } | |
5488 | { | |
5489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5490 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5491 | ||
5492 | wxPyEndAllowThreads(__tstate); | |
5493 | if (PyErr_Occurred()) SWIG_fail; | |
5494 | } | |
5495 | { | |
5496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5497 | } | |
5498 | { | |
5499 | if (temp7) | |
5500 | delete arg7; | |
5501 | } | |
5502 | return resultobj; | |
5503 | fail: | |
5504 | { | |
5505 | if (temp7) | |
5506 | delete arg7; | |
5507 | } | |
5508 | return NULL; | |
5509 | } | |
5510 | ||
5511 | ||
5512 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *, PyObject *args, PyObject *kwargs) { | |
5513 | PyObject *resultobj; | |
5514 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5515 | wxWindow *result; | |
5516 | PyObject * obj0 = 0 ; | |
5517 | char *kwnames[] = { | |
5518 | (char *) "self", NULL | |
5519 | }; | |
5520 | ||
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5524 | { | |
5525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5526 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5527 | ||
5528 | wxPyEndAllowThreads(__tstate); | |
5529 | if (PyErr_Occurred()) SWIG_fail; | |
5530 | } | |
5531 | { | |
5532 | resultobj = wxPyMake_wxObject(result); | |
5533 | } | |
5534 | return resultobj; | |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject *resultobj; | |
5542 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5543 | wxWindow *result; | |
5544 | PyObject * obj0 = 0 ; | |
5545 | char *kwnames[] = { | |
5546 | (char *) "self", NULL | |
5547 | }; | |
5548 | ||
5549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5552 | { | |
5553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5554 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5555 | ||
5556 | wxPyEndAllowThreads(__tstate); | |
5557 | if (PyErr_Occurred()) SWIG_fail; | |
5558 | } | |
5559 | { | |
5560 | resultobj = wxPyMake_wxObject(result); | |
5561 | } | |
5562 | return resultobj; | |
5563 | fail: | |
5564 | return NULL; | |
5565 | } | |
5566 | ||
5567 | ||
5568 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject *resultobj; | |
5570 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5571 | int arg2 ; | |
5572 | PyObject * obj0 = 0 ; | |
5573 | PyObject * obj1 = 0 ; | |
5574 | char *kwnames[] = { | |
5575 | (char *) "self",(char *) "mode", NULL | |
5576 | }; | |
5577 | ||
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5581 | arg2 = (int) SWIG_AsInt(obj1); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | { | |
5584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5585 | (arg1)->SetSplitMode(arg2); | |
5586 | ||
5587 | wxPyEndAllowThreads(__tstate); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
5590 | Py_INCREF(Py_None); resultobj = Py_None; | |
5591 | return resultobj; | |
5592 | fail: | |
5593 | return NULL; | |
5594 | } | |
5595 | ||
5596 | ||
5597 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
5598 | PyObject *resultobj; | |
5599 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5600 | int result; | |
5601 | PyObject * obj0 = 0 ; | |
5602 | char *kwnames[] = { | |
5603 | (char *) "self", NULL | |
5604 | }; | |
5605 | ||
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5609 | { | |
5610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5611 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5612 | ||
5613 | wxPyEndAllowThreads(__tstate); | |
5614 | if (PyErr_Occurred()) SWIG_fail; | |
5615 | } | |
5616 | resultobj = SWIG_FromInt((int)result); | |
5617 | return resultobj; | |
5618 | fail: | |
5619 | return NULL; | |
5620 | } | |
5621 | ||
5622 | ||
5623 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5624 | PyObject *resultobj; | |
5625 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5626 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5627 | PyObject * obj0 = 0 ; | |
5628 | PyObject * obj1 = 0 ; | |
5629 | char *kwnames[] = { | |
5630 | (char *) "self",(char *) "window", NULL | |
5631 | }; | |
5632 | ||
5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5638 | { | |
5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5640 | (arg1)->Initialize(arg2); | |
5641 | ||
5642 | wxPyEndAllowThreads(__tstate); | |
5643 | if (PyErr_Occurred()) SWIG_fail; | |
5644 | } | |
5645 | Py_INCREF(Py_None); resultobj = Py_None; | |
5646 | return resultobj; | |
5647 | fail: | |
5648 | return NULL; | |
5649 | } | |
5650 | ||
5651 | ||
5652 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject *resultobj; | |
5654 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5655 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5656 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5657 | int arg4 = (int) 0 ; | |
5658 | bool result; | |
5659 | PyObject * obj0 = 0 ; | |
5660 | PyObject * obj1 = 0 ; | |
5661 | PyObject * obj2 = 0 ; | |
5662 | PyObject * obj3 = 0 ; | |
5663 | char *kwnames[] = { | |
5664 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5665 | }; | |
5666 | ||
5667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5672 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5674 | if (obj3) { | |
5675 | arg4 = (int) SWIG_AsInt(obj3); | |
5676 | if (PyErr_Occurred()) SWIG_fail; | |
5677 | } | |
5678 | { | |
5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5680 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
5681 | ||
5682 | wxPyEndAllowThreads(__tstate); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | } | |
5685 | { | |
5686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5687 | } | |
5688 | return resultobj; | |
5689 | fail: | |
5690 | return NULL; | |
5691 | } | |
5692 | ||
5693 | ||
5694 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *, PyObject *args, PyObject *kwargs) { | |
5695 | PyObject *resultobj; | |
5696 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5697 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5698 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5699 | int arg4 = (int) 0 ; | |
5700 | bool result; | |
5701 | PyObject * obj0 = 0 ; | |
5702 | PyObject * obj1 = 0 ; | |
5703 | PyObject * obj2 = 0 ; | |
5704 | PyObject * obj3 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5714 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5716 | if (obj3) { | |
5717 | arg4 = (int) SWIG_AsInt(obj3); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | { | |
5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5722 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
5723 | ||
5724 | wxPyEndAllowThreads(__tstate); | |
5725 | if (PyErr_Occurred()) SWIG_fail; | |
5726 | } | |
5727 | { | |
5728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5729 | } | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | return NULL; | |
5733 | } | |
5734 | ||
5735 | ||
5736 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject *resultobj; | |
5738 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5739 | wxWindow *arg2 = (wxWindow *) NULL ; | |
5740 | bool result; | |
5741 | PyObject * obj0 = 0 ; | |
5742 | PyObject * obj1 = 0 ; | |
5743 | char *kwnames[] = { | |
5744 | (char *) "self",(char *) "toRemove", NULL | |
5745 | }; | |
5746 | ||
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
5748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5750 | if (obj1) { | |
5751 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5753 | } | |
5754 | { | |
5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5756 | result = (bool)(arg1)->Unsplit(arg2); | |
5757 | ||
5758 | wxPyEndAllowThreads(__tstate); | |
5759 | if (PyErr_Occurred()) SWIG_fail; | |
5760 | } | |
5761 | { | |
5762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5763 | } | |
5764 | return resultobj; | |
5765 | fail: | |
5766 | return NULL; | |
5767 | } | |
5768 | ||
5769 | ||
5770 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
5771 | PyObject *resultobj; | |
5772 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5773 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5774 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5775 | bool result; | |
5776 | PyObject * obj0 = 0 ; | |
5777 | PyObject * obj1 = 0 ; | |
5778 | PyObject * obj2 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5788 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5790 | { | |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5792 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
5793 | ||
5794 | wxPyEndAllowThreads(__tstate); | |
5795 | if (PyErr_Occurred()) SWIG_fail; | |
5796 | } | |
5797 | { | |
5798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5799 | } | |
5800 | return resultobj; | |
5801 | fail: | |
5802 | return NULL; | |
5803 | } | |
5804 | ||
5805 | ||
5806 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5807 | PyObject *resultobj; | |
5808 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5809 | PyObject * obj0 = 0 ; | |
5810 | char *kwnames[] = { | |
5811 | (char *) "self", NULL | |
5812 | }; | |
5813 | ||
5814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
5815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5817 | { | |
5818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5819 | (arg1)->UpdateSize(); | |
5820 | ||
5821 | wxPyEndAllowThreads(__tstate); | |
5822 | if (PyErr_Occurred()) SWIG_fail; | |
5823 | } | |
5824 | Py_INCREF(Py_None); resultobj = Py_None; | |
5825 | return resultobj; | |
5826 | fail: | |
5827 | return NULL; | |
5828 | } | |
5829 | ||
5830 | ||
5831 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *, PyObject *args, PyObject *kwargs) { | |
5832 | PyObject *resultobj; | |
5833 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5834 | bool result; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | char *kwnames[] = { | |
5837 | (char *) "self", NULL | |
5838 | }; | |
5839 | ||
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
5841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | { | |
5851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5852 | } | |
5853 | return resultobj; | |
5854 | fail: | |
5855 | return NULL; | |
5856 | } | |
5857 | ||
5858 | ||
5859 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5860 | PyObject *resultobj; | |
5861 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5862 | int arg2 ; | |
5863 | PyObject * obj0 = 0 ; | |
5864 | PyObject * obj1 = 0 ; | |
5865 | char *kwnames[] = { | |
5866 | (char *) "self",(char *) "width", NULL | |
5867 | }; | |
5868 | ||
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
5870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5872 | arg2 = (int) SWIG_AsInt(obj1); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | { | |
5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5876 | (arg1)->SetSashSize(arg2); | |
5877 | ||
5878 | wxPyEndAllowThreads(__tstate); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
5881 | Py_INCREF(Py_None); resultobj = Py_None; | |
5882 | return resultobj; | |
5883 | fail: | |
5884 | return NULL; | |
5885 | } | |
5886 | ||
5887 | ||
5888 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5889 | PyObject *resultobj; | |
5890 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5891 | int arg2 ; | |
5892 | PyObject * obj0 = 0 ; | |
5893 | PyObject * obj1 = 0 ; | |
5894 | char *kwnames[] = { | |
5895 | (char *) "self",(char *) "width", NULL | |
5896 | }; | |
5897 | ||
5898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
5899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5901 | arg2 = (int) SWIG_AsInt(obj1); | |
5902 | if (PyErr_Occurred()) SWIG_fail; | |
5903 | { | |
5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5905 | (arg1)->SetBorderSize(arg2); | |
5906 | ||
5907 | wxPyEndAllowThreads(__tstate); | |
5908 | if (PyErr_Occurred()) SWIG_fail; | |
5909 | } | |
5910 | Py_INCREF(Py_None); resultobj = Py_None; | |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
5917 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject *resultobj; | |
5919 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5920 | int result; | |
5921 | PyObject * obj0 = 0 ; | |
5922 | char *kwnames[] = { | |
5923 | (char *) "self", NULL | |
5924 | }; | |
5925 | ||
5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
5927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5929 | { | |
5930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5931 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
5932 | ||
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | resultobj = SWIG_FromInt((int)result); | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
5943 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5944 | PyObject *resultobj; | |
5945 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5946 | int result; | |
5947 | PyObject * obj0 = 0 ; | |
5948 | char *kwnames[] = { | |
5949 | (char *) "self", NULL | |
5950 | }; | |
5951 | ||
5952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
5953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5955 | { | |
5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5957 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
5958 | ||
5959 | wxPyEndAllowThreads(__tstate); | |
5960 | if (PyErr_Occurred()) SWIG_fail; | |
5961 | } | |
5962 | resultobj = SWIG_FromInt((int)result); | |
5963 | return resultobj; | |
5964 | fail: | |
5965 | return NULL; | |
5966 | } | |
5967 | ||
5968 | ||
5969 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
5970 | PyObject *resultobj; | |
5971 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5972 | int arg2 ; | |
5973 | bool arg3 = (bool) True ; | |
5974 | PyObject * obj0 = 0 ; | |
5975 | PyObject * obj1 = 0 ; | |
5976 | PyObject * obj2 = 0 ; | |
5977 | char *kwnames[] = { | |
5978 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
5979 | }; | |
5980 | ||
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5984 | arg2 = (int) SWIG_AsInt(obj1); | |
5985 | if (PyErr_Occurred()) SWIG_fail; | |
5986 | if (obj2) { | |
5987 | arg3 = (bool) SWIG_AsBool(obj2); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | } | |
5990 | { | |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | (arg1)->SetSashPosition(arg2,arg3); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | } | |
5997 | Py_INCREF(Py_None); resultobj = Py_None; | |
5998 | return resultobj; | |
5999 | fail: | |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
6004 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
6005 | PyObject *resultobj; | |
6006 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6007 | int result; | |
6008 | PyObject * obj0 = 0 ; | |
6009 | char *kwnames[] = { | |
6010 | (char *) "self", NULL | |
6011 | }; | |
6012 | ||
6013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6016 | { | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) SWIG_fail; | |
6022 | } | |
6023 | resultobj = SWIG_FromInt((int)result); | |
6024 | return resultobj; | |
6025 | fail: | |
6026 | return NULL; | |
6027 | } | |
6028 | ||
6029 | ||
6030 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6031 | PyObject *resultobj; | |
6032 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6033 | int arg2 ; | |
6034 | PyObject * obj0 = 0 ; | |
6035 | PyObject * obj1 = 0 ; | |
6036 | char *kwnames[] = { | |
6037 | (char *) "self",(char *) "min", NULL | |
6038 | }; | |
6039 | ||
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6043 | arg2 = (int) SWIG_AsInt(obj1); | |
6044 | if (PyErr_Occurred()) SWIG_fail; | |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | (arg1)->SetMinimumPaneSize(arg2); | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | Py_INCREF(Py_None); resultobj = Py_None; | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
6059 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject *resultobj; | |
6061 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6062 | int result; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6071 | { | |
6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6073 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6074 | ||
6075 | wxPyEndAllowThreads(__tstate); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | resultobj = SWIG_FromInt((int)result); | |
6079 | return resultobj; | |
6080 | fail: | |
6081 | return NULL; | |
6082 | } | |
6083 | ||
6084 | ||
6085 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
6086 | PyObject *resultobj; | |
6087 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6088 | int arg2 ; | |
6089 | int arg3 ; | |
6090 | int arg4 = (int) 5 ; | |
6091 | bool result; | |
6092 | PyObject * obj0 = 0 ; | |
6093 | PyObject * obj1 = 0 ; | |
6094 | PyObject * obj2 = 0 ; | |
6095 | PyObject * obj3 = 0 ; | |
6096 | char *kwnames[] = { | |
6097 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6098 | }; | |
6099 | ||
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6103 | arg2 = (int) SWIG_AsInt(obj1); | |
6104 | if (PyErr_Occurred()) SWIG_fail; | |
6105 | arg3 = (int) SWIG_AsInt(obj2); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
6107 | if (obj3) { | |
6108 | arg4 = (int) SWIG_AsInt(obj3); | |
6109 | if (PyErr_Occurred()) SWIG_fail; | |
6110 | } | |
6111 | { | |
6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6113 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
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_SizeWindows(PyObject *, 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_SizeWindows",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)->SizeWindows(); | |
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_SetNeedUpdating(PyObject *, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject *resultobj; | |
6154 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6155 | bool arg2 ; | |
6156 | PyObject * obj0 = 0 ; | |
6157 | PyObject * obj1 = 0 ; | |
6158 | char *kwnames[] = { | |
6159 | (char *) "self",(char *) "needUpdating", NULL | |
6160 | }; | |
6161 | ||
6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6165 | arg2 = (bool) SWIG_AsBool(obj1); | |
6166 | if (PyErr_Occurred()) SWIG_fail; | |
6167 | { | |
6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6169 | (arg1)->SetNeedUpdating(arg2); | |
6170 | ||
6171 | wxPyEndAllowThreads(__tstate); | |
6172 | if (PyErr_Occurred()) SWIG_fail; | |
6173 | } | |
6174 | Py_INCREF(Py_None); resultobj = Py_None; | |
6175 | return resultobj; | |
6176 | fail: | |
6177 | return NULL; | |
6178 | } | |
6179 | ||
6180 | ||
6181 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject *resultobj; | |
6183 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6184 | bool result; | |
6185 | PyObject * obj0 = 0 ; | |
6186 | char *kwnames[] = { | |
6187 | (char *) "self", NULL | |
6188 | }; | |
6189 | ||
6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6193 | { | |
6194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6195 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6196 | ||
6197 | wxPyEndAllowThreads(__tstate); | |
6198 | if (PyErr_Occurred()) SWIG_fail; | |
6199 | } | |
6200 | { | |
6201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6202 | } | |
6203 | return resultobj; | |
6204 | fail: | |
6205 | return NULL; | |
6206 | } | |
6207 | ||
6208 | ||
6209 | static PyObject * SplitterWindow_swigregister(PyObject *, PyObject *args) { | |
6210 | PyObject *obj; | |
6211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6212 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6213 | Py_INCREF(obj); | |
6214 | return Py_BuildValue((char *)""); | |
6215 | } | |
6216 | static PyObject *_wrap_new_SplitterEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
6217 | PyObject *resultobj; | |
6218 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6219 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6220 | wxSplitterEvent *result; | |
6221 | PyObject * obj0 = 0 ; | |
6222 | PyObject * obj1 = 0 ; | |
6223 | char *kwnames[] = { | |
6224 | (char *) "type",(char *) "splitter", NULL | |
6225 | }; | |
6226 | ||
6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6228 | if (obj0) { | |
6229 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
6232 | if (obj1) { | |
6233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6235 | } | |
6236 | { | |
6237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6238 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6239 | ||
6240 | wxPyEndAllowThreads(__tstate); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
6243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | return NULL; | |
6247 | } | |
6248 | ||
6249 | ||
6250 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
6251 | PyObject *resultobj; | |
6252 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6253 | int arg2 ; | |
6254 | PyObject * obj0 = 0 ; | |
6255 | PyObject * obj1 = 0 ; | |
6256 | char *kwnames[] = { | |
6257 | (char *) "self",(char *) "pos", NULL | |
6258 | }; | |
6259 | ||
6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6263 | arg2 = (int) SWIG_AsInt(obj1); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | { | |
6266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6267 | (arg1)->SetSashPosition(arg2); | |
6268 | ||
6269 | wxPyEndAllowThreads(__tstate); | |
6270 | if (PyErr_Occurred()) SWIG_fail; | |
6271 | } | |
6272 | Py_INCREF(Py_None); resultobj = Py_None; | |
6273 | return resultobj; | |
6274 | fail: | |
6275 | return NULL; | |
6276 | } | |
6277 | ||
6278 | ||
6279 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
6280 | PyObject *resultobj; | |
6281 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6282 | int result; | |
6283 | PyObject * obj0 = 0 ; | |
6284 | char *kwnames[] = { | |
6285 | (char *) "self", NULL | |
6286 | }; | |
6287 | ||
6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6291 | { | |
6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6293 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6294 | ||
6295 | wxPyEndAllowThreads(__tstate); | |
6296 | if (PyErr_Occurred()) SWIG_fail; | |
6297 | } | |
6298 | resultobj = SWIG_FromInt((int)result); | |
6299 | return resultobj; | |
6300 | fail: | |
6301 | return NULL; | |
6302 | } | |
6303 | ||
6304 | ||
6305 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *, PyObject *args, PyObject *kwargs) { | |
6306 | PyObject *resultobj; | |
6307 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6308 | wxWindow *result; | |
6309 | PyObject * obj0 = 0 ; | |
6310 | char *kwnames[] = { | |
6311 | (char *) "self", NULL | |
6312 | }; | |
6313 | ||
6314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6320 | ||
6321 | wxPyEndAllowThreads(__tstate); | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | { | |
6325 | resultobj = wxPyMake_wxObject(result); | |
6326 | } | |
6327 | return resultobj; | |
6328 | fail: | |
6329 | return NULL; | |
6330 | } | |
6331 | ||
6332 | ||
6333 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6334 | PyObject *resultobj; | |
6335 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6336 | int result; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | char *kwnames[] = { | |
6339 | (char *) "self", NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6345 | { | |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
6352 | resultobj = SWIG_FromInt((int)result); | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
6359 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6360 | PyObject *resultobj; | |
6361 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6362 | int result; | |
6363 | PyObject * obj0 = 0 ; | |
6364 | char *kwnames[] = { | |
6365 | (char *) "self", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6371 | { | |
6372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6373 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6374 | ||
6375 | wxPyEndAllowThreads(__tstate); | |
6376 | if (PyErr_Occurred()) SWIG_fail; | |
6377 | } | |
6378 | resultobj = SWIG_FromInt((int)result); | |
6379 | return resultobj; | |
6380 | fail: | |
6381 | return NULL; | |
6382 | } | |
6383 | ||
6384 | ||
6385 | static PyObject * SplitterEvent_swigregister(PyObject *, PyObject *args) { | |
6386 | PyObject *obj; | |
6387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6388 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6389 | Py_INCREF(obj); | |
6390 | return Py_BuildValue((char *)""); | |
6391 | } | |
6392 | static int _wrap_SashNameStr_set(PyObject *) { | |
6393 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6394 | return 1; | |
6395 | } | |
6396 | ||
6397 | ||
6398 | static PyObject *_wrap_SashNameStr_get() { | |
6399 | PyObject *pyobj; | |
6400 | ||
6401 | { | |
6402 | #if wxUSE_UNICODE | |
6403 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6404 | #else | |
6405 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6406 | #endif | |
6407 | } | |
6408 | return pyobj; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static int _wrap_SashLayoutNameStr_set(PyObject *) { | |
6413 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6414 | return 1; | |
6415 | } | |
6416 | ||
6417 | ||
6418 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6419 | PyObject *pyobj; | |
6420 | ||
6421 | { | |
6422 | #if wxUSE_UNICODE | |
6423 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6424 | #else | |
6425 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6426 | #endif | |
6427 | } | |
6428 | return pyobj; | |
6429 | } | |
6430 | ||
6431 | ||
6432 | static PyObject *_wrap_new_SashWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject *resultobj; | |
6434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6435 | int arg2 ; | |
6436 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6437 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6438 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6439 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6440 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6441 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6442 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6443 | wxSashWindow *result; | |
6444 | wxPoint temp3 ; | |
6445 | wxSize temp4 ; | |
6446 | bool temp6 = False ; | |
6447 | PyObject * obj0 = 0 ; | |
6448 | PyObject * obj1 = 0 ; | |
6449 | PyObject * obj2 = 0 ; | |
6450 | PyObject * obj3 = 0 ; | |
6451 | PyObject * obj4 = 0 ; | |
6452 | PyObject * obj5 = 0 ; | |
6453 | char *kwnames[] = { | |
6454 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6455 | }; | |
6456 | ||
6457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6460 | arg2 = (int) SWIG_AsInt(obj1); | |
6461 | if (PyErr_Occurred()) SWIG_fail; | |
6462 | if (obj2) { | |
6463 | { | |
6464 | arg3 = &temp3; | |
6465 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6466 | } | |
6467 | } | |
6468 | if (obj3) { | |
6469 | { | |
6470 | arg4 = &temp4; | |
6471 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6472 | } | |
6473 | } | |
6474 | if (obj4) { | |
6475 | arg5 = (long) SWIG_AsLong(obj4); | |
6476 | if (PyErr_Occurred()) SWIG_fail; | |
6477 | } | |
6478 | if (obj5) { | |
6479 | { | |
6480 | arg6 = wxString_in_helper(obj5); | |
6481 | if (arg6 == NULL) SWIG_fail; | |
6482 | temp6 = True; | |
6483 | } | |
6484 | } | |
6485 | { | |
6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6487 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6488 | ||
6489 | wxPyEndAllowThreads(__tstate); | |
6490 | if (PyErr_Occurred()) SWIG_fail; | |
6491 | } | |
6492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6493 | { | |
6494 | if (temp6) | |
6495 | delete arg6; | |
6496 | } | |
6497 | return resultobj; | |
6498 | fail: | |
6499 | { | |
6500 | if (temp6) | |
6501 | delete arg6; | |
6502 | } | |
6503 | return NULL; | |
6504 | } | |
6505 | ||
6506 | ||
6507 | static PyObject *_wrap_new_PreSashWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject *resultobj; | |
6509 | wxSashWindow *result; | |
6510 | char *kwnames[] = { | |
6511 | NULL | |
6512 | }; | |
6513 | ||
6514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6515 | { | |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6517 | result = (wxSashWindow *)new wxSashWindow(); | |
6518 | ||
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | } | |
6522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6523 | return resultobj; | |
6524 | fail: | |
6525 | return NULL; | |
6526 | } | |
6527 | ||
6528 | ||
6529 | static PyObject *_wrap_SashWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
6530 | PyObject *resultobj; | |
6531 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6532 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6533 | int arg3 ; | |
6534 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6535 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6536 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6537 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6538 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6539 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6540 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6541 | bool result; | |
6542 | wxPoint temp4 ; | |
6543 | wxSize temp5 ; | |
6544 | bool temp7 = False ; | |
6545 | PyObject * obj0 = 0 ; | |
6546 | PyObject * obj1 = 0 ; | |
6547 | PyObject * obj2 = 0 ; | |
6548 | PyObject * obj3 = 0 ; | |
6549 | PyObject * obj4 = 0 ; | |
6550 | PyObject * obj5 = 0 ; | |
6551 | PyObject * obj6 = 0 ; | |
6552 | char *kwnames[] = { | |
6553 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6554 | }; | |
6555 | ||
6556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6561 | arg3 = (int) SWIG_AsInt(obj2); | |
6562 | if (PyErr_Occurred()) SWIG_fail; | |
6563 | if (obj3) { | |
6564 | { | |
6565 | arg4 = &temp4; | |
6566 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6567 | } | |
6568 | } | |
6569 | if (obj4) { | |
6570 | { | |
6571 | arg5 = &temp5; | |
6572 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6573 | } | |
6574 | } | |
6575 | if (obj5) { | |
6576 | arg6 = (long) SWIG_AsLong(obj5); | |
6577 | if (PyErr_Occurred()) SWIG_fail; | |
6578 | } | |
6579 | if (obj6) { | |
6580 | { | |
6581 | arg7 = wxString_in_helper(obj6); | |
6582 | if (arg7 == NULL) SWIG_fail; | |
6583 | temp7 = True; | |
6584 | } | |
6585 | } | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6589 | ||
6590 | wxPyEndAllowThreads(__tstate); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | } | |
6593 | { | |
6594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6595 | } | |
6596 | { | |
6597 | if (temp7) | |
6598 | delete arg7; | |
6599 | } | |
6600 | return resultobj; | |
6601 | fail: | |
6602 | { | |
6603 | if (temp7) | |
6604 | delete arg7; | |
6605 | } | |
6606 | return NULL; | |
6607 | } | |
6608 | ||
6609 | ||
6610 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
6611 | PyObject *resultobj; | |
6612 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6613 | int arg2 ; | |
6614 | bool arg3 ; | |
6615 | PyObject * obj0 = 0 ; | |
6616 | PyObject * obj1 = 0 ; | |
6617 | PyObject * obj2 = 0 ; | |
6618 | char *kwnames[] = { | |
6619 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6620 | }; | |
6621 | ||
6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6625 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6626 | if (PyErr_Occurred()) SWIG_fail; | |
6627 | arg3 = (bool) SWIG_AsBool(obj2); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
6629 | { | |
6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6631 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | Py_INCREF(Py_None); resultobj = Py_None; | |
6637 | return resultobj; | |
6638 | fail: | |
6639 | return NULL; | |
6640 | } | |
6641 | ||
6642 | ||
6643 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
6644 | PyObject *resultobj; | |
6645 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6646 | int arg2 ; | |
6647 | bool result; | |
6648 | PyObject * obj0 = 0 ; | |
6649 | PyObject * obj1 = 0 ; | |
6650 | char *kwnames[] = { | |
6651 | (char *) "self",(char *) "edge", NULL | |
6652 | }; | |
6653 | ||
6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
6655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6657 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6658 | if (PyErr_Occurred()) SWIG_fail; | |
6659 | { | |
6660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6661 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
6662 | ||
6663 | wxPyEndAllowThreads(__tstate); | |
6664 | if (PyErr_Occurred()) SWIG_fail; | |
6665 | } | |
6666 | { | |
6667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6668 | } | |
6669 | return resultobj; | |
6670 | fail: | |
6671 | return NULL; | |
6672 | } | |
6673 | ||
6674 | ||
6675 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *, PyObject *args, PyObject *kwargs) { | |
6676 | PyObject *resultobj; | |
6677 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6678 | int arg2 ; | |
6679 | bool arg3 ; | |
6680 | PyObject * obj0 = 0 ; | |
6681 | PyObject * obj1 = 0 ; | |
6682 | PyObject * obj2 = 0 ; | |
6683 | char *kwnames[] = { | |
6684 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
6685 | }; | |
6686 | ||
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6690 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6691 | if (PyErr_Occurred()) SWIG_fail; | |
6692 | arg3 = (bool) SWIG_AsBool(obj2); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | { | |
6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6696 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
6697 | ||
6698 | wxPyEndAllowThreads(__tstate); | |
6699 | if (PyErr_Occurred()) SWIG_fail; | |
6700 | } | |
6701 | Py_INCREF(Py_None); resultobj = Py_None; | |
6702 | return resultobj; | |
6703 | fail: | |
6704 | return NULL; | |
6705 | } | |
6706 | ||
6707 | ||
6708 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *, PyObject *args, PyObject *kwargs) { | |
6709 | PyObject *resultobj; | |
6710 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6711 | int arg2 ; | |
6712 | bool result; | |
6713 | PyObject * obj0 = 0 ; | |
6714 | PyObject * obj1 = 0 ; | |
6715 | char *kwnames[] = { | |
6716 | (char *) "self",(char *) "edge", NULL | |
6717 | }; | |
6718 | ||
6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
6720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6722 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6723 | if (PyErr_Occurred()) SWIG_fail; | |
6724 | { | |
6725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6726 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
6727 | ||
6728 | wxPyEndAllowThreads(__tstate); | |
6729 | if (PyErr_Occurred()) SWIG_fail; | |
6730 | } | |
6731 | { | |
6732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6733 | } | |
6734 | return resultobj; | |
6735 | fail: | |
6736 | return NULL; | |
6737 | } | |
6738 | ||
6739 | ||
6740 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *, PyObject *args, PyObject *kwargs) { | |
6741 | PyObject *resultobj; | |
6742 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6743 | int arg2 ; | |
6744 | int result; | |
6745 | PyObject * obj0 = 0 ; | |
6746 | PyObject * obj1 = 0 ; | |
6747 | char *kwnames[] = { | |
6748 | (char *) "self",(char *) "edge", NULL | |
6749 | }; | |
6750 | ||
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
6752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6754 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6755 | if (PyErr_Occurred()) SWIG_fail; | |
6756 | { | |
6757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6758 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
6759 | ||
6760 | wxPyEndAllowThreads(__tstate); | |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
6762 | } | |
6763 | resultobj = SWIG_FromInt((int)result); | |
6764 | return resultobj; | |
6765 | fail: | |
6766 | return NULL; | |
6767 | } | |
6768 | ||
6769 | ||
6770 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6771 | PyObject *resultobj; | |
6772 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6773 | int arg2 ; | |
6774 | PyObject * obj0 = 0 ; | |
6775 | PyObject * obj1 = 0 ; | |
6776 | char *kwnames[] = { | |
6777 | (char *) "self",(char *) "width", NULL | |
6778 | }; | |
6779 | ||
6780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6783 | arg2 = (int) SWIG_AsInt(obj1); | |
6784 | if (PyErr_Occurred()) SWIG_fail; | |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | (arg1)->SetDefaultBorderSize(arg2); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | Py_INCREF(Py_None); resultobj = Py_None; | |
6793 | return resultobj; | |
6794 | fail: | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6802 | int result; | |
6803 | PyObject * obj0 = 0 ; | |
6804 | char *kwnames[] = { | |
6805 | (char *) "self", NULL | |
6806 | }; | |
6807 | ||
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
6809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6811 | { | |
6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6813 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
6814 | ||
6815 | wxPyEndAllowThreads(__tstate); | |
6816 | if (PyErr_Occurred()) SWIG_fail; | |
6817 | } | |
6818 | resultobj = SWIG_FromInt((int)result); | |
6819 | return resultobj; | |
6820 | fail: | |
6821 | return NULL; | |
6822 | } | |
6823 | ||
6824 | ||
6825 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject *resultobj; | |
6827 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6828 | int arg2 ; | |
6829 | PyObject * obj0 = 0 ; | |
6830 | PyObject * obj1 = 0 ; | |
6831 | char *kwnames[] = { | |
6832 | (char *) "self",(char *) "width", NULL | |
6833 | }; | |
6834 | ||
6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6838 | arg2 = (int) SWIG_AsInt(obj1); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | { | |
6841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6842 | (arg1)->SetExtraBorderSize(arg2); | |
6843 | ||
6844 | wxPyEndAllowThreads(__tstate); | |
6845 | if (PyErr_Occurred()) SWIG_fail; | |
6846 | } | |
6847 | Py_INCREF(Py_None); resultobj = Py_None; | |
6848 | return resultobj; | |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
6854 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject *resultobj; | |
6856 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6857 | int result; | |
6858 | PyObject * obj0 = 0 ; | |
6859 | char *kwnames[] = { | |
6860 | (char *) "self", NULL | |
6861 | }; | |
6862 | ||
6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
6864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6866 | { | |
6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6868 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
6869 | ||
6870 | wxPyEndAllowThreads(__tstate); | |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | } | |
6873 | resultobj = SWIG_FromInt((int)result); | |
6874 | return resultobj; | |
6875 | fail: | |
6876 | return NULL; | |
6877 | } | |
6878 | ||
6879 | ||
6880 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6881 | PyObject *resultobj; | |
6882 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6883 | int arg2 ; | |
6884 | PyObject * obj0 = 0 ; | |
6885 | PyObject * obj1 = 0 ; | |
6886 | char *kwnames[] = { | |
6887 | (char *) "self",(char *) "min", NULL | |
6888 | }; | |
6889 | ||
6890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
6891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6893 | arg2 = (int) SWIG_AsInt(obj1); | |
6894 | if (PyErr_Occurred()) SWIG_fail; | |
6895 | { | |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | (arg1)->SetMinimumSizeX(arg2); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | Py_INCREF(Py_None); resultobj = Py_None; | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
6909 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj; | |
6911 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6912 | int arg2 ; | |
6913 | PyObject * obj0 = 0 ; | |
6914 | PyObject * obj1 = 0 ; | |
6915 | char *kwnames[] = { | |
6916 | (char *) "self",(char *) "min", NULL | |
6917 | }; | |
6918 | ||
6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
6920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6922 | arg2 = (int) SWIG_AsInt(obj1); | |
6923 | if (PyErr_Occurred()) SWIG_fail; | |
6924 | { | |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6926 | (arg1)->SetMinimumSizeY(arg2); | |
6927 | ||
6928 | wxPyEndAllowThreads(__tstate); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
6931 | Py_INCREF(Py_None); resultobj = Py_None; | |
6932 | return resultobj; | |
6933 | fail: | |
6934 | return NULL; | |
6935 | } | |
6936 | ||
6937 | ||
6938 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6939 | PyObject *resultobj; | |
6940 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6941 | int result; | |
6942 | PyObject * obj0 = 0 ; | |
6943 | char *kwnames[] = { | |
6944 | (char *) "self", NULL | |
6945 | }; | |
6946 | ||
6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
6948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | resultobj = SWIG_FromInt((int)result); | |
6958 | return resultobj; | |
6959 | fail: | |
6960 | return NULL; | |
6961 | } | |
6962 | ||
6963 | ||
6964 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject *resultobj; | |
6966 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6967 | int result; | |
6968 | PyObject * obj0 = 0 ; | |
6969 | char *kwnames[] = { | |
6970 | (char *) "self", NULL | |
6971 | }; | |
6972 | ||
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
6974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6976 | { | |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
6983 | resultobj = SWIG_FromInt((int)result); | |
6984 | return resultobj; | |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6993 | int arg2 ; | |
6994 | PyObject * obj0 = 0 ; | |
6995 | PyObject * obj1 = 0 ; | |
6996 | char *kwnames[] = { | |
6997 | (char *) "self",(char *) "max", NULL | |
6998 | }; | |
6999 | ||
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7003 | arg2 = (int) SWIG_AsInt(obj1); | |
7004 | if (PyErr_Occurred()) SWIG_fail; | |
7005 | { | |
7006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7007 | (arg1)->SetMaximumSizeX(arg2); | |
7008 | ||
7009 | wxPyEndAllowThreads(__tstate); | |
7010 | if (PyErr_Occurred()) SWIG_fail; | |
7011 | } | |
7012 | Py_INCREF(Py_None); resultobj = Py_None; | |
7013 | return resultobj; | |
7014 | fail: | |
7015 | return NULL; | |
7016 | } | |
7017 | ||
7018 | ||
7019 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *, PyObject *args, PyObject *kwargs) { | |
7020 | PyObject *resultobj; | |
7021 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7022 | int arg2 ; | |
7023 | PyObject * obj0 = 0 ; | |
7024 | PyObject * obj1 = 0 ; | |
7025 | char *kwnames[] = { | |
7026 | (char *) "self",(char *) "max", NULL | |
7027 | }; | |
7028 | ||
7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7032 | arg2 = (int) SWIG_AsInt(obj1); | |
7033 | if (PyErr_Occurred()) SWIG_fail; | |
7034 | { | |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | (arg1)->SetMaximumSizeY(arg2); | |
7037 | ||
7038 | wxPyEndAllowThreads(__tstate); | |
7039 | if (PyErr_Occurred()) SWIG_fail; | |
7040 | } | |
7041 | Py_INCREF(Py_None); resultobj = Py_None; | |
7042 | return resultobj; | |
7043 | fail: | |
7044 | return NULL; | |
7045 | } | |
7046 | ||
7047 | ||
7048 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *, PyObject *args, PyObject *kwargs) { | |
7049 | PyObject *resultobj; | |
7050 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7051 | int result; | |
7052 | PyObject * obj0 = 0 ; | |
7053 | char *kwnames[] = { | |
7054 | (char *) "self", NULL | |
7055 | }; | |
7056 | ||
7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7060 | { | |
7061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7062 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7063 | ||
7064 | wxPyEndAllowThreads(__tstate); | |
7065 | if (PyErr_Occurred()) SWIG_fail; | |
7066 | } | |
7067 | resultobj = SWIG_FromInt((int)result); | |
7068 | return resultobj; | |
7069 | fail: | |
7070 | return NULL; | |
7071 | } | |
7072 | ||
7073 | ||
7074 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *, PyObject *args, PyObject *kwargs) { | |
7075 | PyObject *resultobj; | |
7076 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7077 | int result; | |
7078 | PyObject * obj0 = 0 ; | |
7079 | char *kwnames[] = { | |
7080 | (char *) "self", NULL | |
7081 | }; | |
7082 | ||
7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7089 | ||
7090 | wxPyEndAllowThreads(__tstate); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | resultobj = SWIG_FromInt((int)result); | |
7094 | return resultobj; | |
7095 | fail: | |
7096 | return NULL; | |
7097 | } | |
7098 | ||
7099 | ||
7100 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
7101 | PyObject *resultobj; | |
7102 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7103 | int arg2 ; | |
7104 | int arg3 ; | |
7105 | int arg4 = (int) 2 ; | |
7106 | int result; | |
7107 | PyObject * obj0 = 0 ; | |
7108 | PyObject * obj1 = 0 ; | |
7109 | PyObject * obj2 = 0 ; | |
7110 | PyObject * obj3 = 0 ; | |
7111 | char *kwnames[] = { | |
7112 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7113 | }; | |
7114 | ||
7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7118 | arg2 = (int) SWIG_AsInt(obj1); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | arg3 = (int) SWIG_AsInt(obj2); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | if (obj3) { | |
7123 | arg4 = (int) SWIG_AsInt(obj3); | |
7124 | if (PyErr_Occurred()) SWIG_fail; | |
7125 | } | |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | resultobj = SWIG_FromInt((int)result); | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | return NULL; | |
7137 | } | |
7138 | ||
7139 | ||
7140 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *, PyObject *args, PyObject *kwargs) { | |
7141 | PyObject *resultobj; | |
7142 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7143 | PyObject * obj0 = 0 ; | |
7144 | char *kwnames[] = { | |
7145 | (char *) "self", NULL | |
7146 | }; | |
7147 | ||
7148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | (arg1)->SizeWindows(); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
7158 | Py_INCREF(Py_None); resultobj = Py_None; | |
7159 | return resultobj; | |
7160 | fail: | |
7161 | return NULL; | |
7162 | } | |
7163 | ||
7164 | ||
7165 | static PyObject * SashWindow_swigregister(PyObject *, PyObject *args) { | |
7166 | PyObject *obj; | |
7167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7168 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7169 | Py_INCREF(obj); | |
7170 | return Py_BuildValue((char *)""); | |
7171 | } | |
7172 | static PyObject *_wrap_new_SashEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | int arg1 = (int) 0 ; | |
7175 | int arg2 = (int) wxSASH_NONE ; | |
7176 | wxSashEvent *result; | |
7177 | PyObject * obj0 = 0 ; | |
7178 | PyObject * obj1 = 0 ; | |
7179 | char *kwnames[] = { | |
7180 | (char *) "id",(char *) "edge", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7184 | if (obj0) { | |
7185 | arg1 = (int) SWIG_AsInt(obj0); | |
7186 | if (PyErr_Occurred()) SWIG_fail; | |
7187 | } | |
7188 | if (obj1) { | |
7189 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | { | |
7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7194 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7195 | ||
7196 | wxPyEndAllowThreads(__tstate); | |
7197 | if (PyErr_Occurred()) SWIG_fail; | |
7198 | } | |
7199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7200 | return resultobj; | |
7201 | fail: | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
7206 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { | |
7207 | PyObject *resultobj; | |
7208 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7209 | int arg2 ; | |
7210 | PyObject * obj0 = 0 ; | |
7211 | PyObject * obj1 = 0 ; | |
7212 | char *kwnames[] = { | |
7213 | (char *) "self",(char *) "edge", NULL | |
7214 | }; | |
7215 | ||
7216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7219 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7220 | if (PyErr_Occurred()) SWIG_fail; | |
7221 | { | |
7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7223 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7224 | ||
7225 | wxPyEndAllowThreads(__tstate); | |
7226 | if (PyErr_Occurred()) SWIG_fail; | |
7227 | } | |
7228 | Py_INCREF(Py_None); resultobj = Py_None; | |
7229 | return resultobj; | |
7230 | fail: | |
7231 | return NULL; | |
7232 | } | |
7233 | ||
7234 | ||
7235 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { | |
7236 | PyObject *resultobj; | |
7237 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7238 | int result; | |
7239 | PyObject * obj0 = 0 ; | |
7240 | char *kwnames[] = { | |
7241 | (char *) "self", NULL | |
7242 | }; | |
7243 | ||
7244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7247 | { | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7250 | ||
7251 | wxPyEndAllowThreads(__tstate); | |
7252 | if (PyErr_Occurred()) SWIG_fail; | |
7253 | } | |
7254 | resultobj = SWIG_FromInt((int)result); | |
7255 | return resultobj; | |
7256 | fail: | |
7257 | return NULL; | |
7258 | } | |
7259 | ||
7260 | ||
7261 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
7262 | PyObject *resultobj; | |
7263 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7264 | wxRect *arg2 = 0 ; | |
7265 | wxRect temp2 ; | |
7266 | PyObject * obj0 = 0 ; | |
7267 | PyObject * obj1 = 0 ; | |
7268 | char *kwnames[] = { | |
7269 | (char *) "self",(char *) "rect", NULL | |
7270 | }; | |
7271 | ||
7272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7275 | { | |
7276 | arg2 = &temp2; | |
7277 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7278 | } | |
7279 | { | |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | Py_INCREF(Py_None); resultobj = Py_None; | |
7287 | return resultobj; | |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7296 | wxRect result; | |
7297 | PyObject * obj0 = 0 ; | |
7298 | char *kwnames[] = { | |
7299 | (char *) "self", NULL | |
7300 | }; | |
7301 | ||
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7305 | { | |
7306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7307 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7308 | ||
7309 | wxPyEndAllowThreads(__tstate); | |
7310 | if (PyErr_Occurred()) SWIG_fail; | |
7311 | } | |
7312 | { | |
7313 | wxRect * resultptr; | |
7314 | resultptr = new wxRect((wxRect &) result); | |
7315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7316 | } | |
7317 | return resultobj; | |
7318 | fail: | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
7323 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject *resultobj; | |
7325 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7326 | int arg2 ; | |
7327 | PyObject * obj0 = 0 ; | |
7328 | PyObject * obj1 = 0 ; | |
7329 | char *kwnames[] = { | |
7330 | (char *) "self",(char *) "status", NULL | |
7331 | }; | |
7332 | ||
7333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7336 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | Py_INCREF(Py_None); resultobj = Py_None; | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7355 | int result; | |
7356 | PyObject * obj0 = 0 ; | |
7357 | char *kwnames[] = { | |
7358 | (char *) "self", NULL | |
7359 | }; | |
7360 | ||
7361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | resultobj = SWIG_FromInt((int)result); | |
7372 | return resultobj; | |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject * SashEvent_swigregister(PyObject *, PyObject *args) { | |
7379 | PyObject *obj; | |
7380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7381 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7382 | Py_INCREF(obj); | |
7383 | return Py_BuildValue((char *)""); | |
7384 | } | |
7385 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
7386 | PyObject *resultobj; | |
7387 | int arg1 = (int) 0 ; | |
7388 | wxQueryLayoutInfoEvent *result; | |
7389 | PyObject * obj0 = 0 ; | |
7390 | char *kwnames[] = { | |
7391 | (char *) "id", NULL | |
7392 | }; | |
7393 | ||
7394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7395 | if (obj0) { | |
7396 | arg1 = (int) SWIG_AsInt(obj0); | |
7397 | if (PyErr_Occurred()) SWIG_fail; | |
7398 | } | |
7399 | { | |
7400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7401 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7402 | ||
7403 | wxPyEndAllowThreads(__tstate); | |
7404 | if (PyErr_Occurred()) SWIG_fail; | |
7405 | } | |
7406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7407 | return resultobj; | |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
7413 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
7414 | PyObject *resultobj; | |
7415 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7416 | int arg2 ; | |
7417 | PyObject * obj0 = 0 ; | |
7418 | PyObject * obj1 = 0 ; | |
7419 | char *kwnames[] = { | |
7420 | (char *) "self",(char *) "length", NULL | |
7421 | }; | |
7422 | ||
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7426 | arg2 = (int) SWIG_AsInt(obj1); | |
7427 | if (PyErr_Occurred()) SWIG_fail; | |
7428 | { | |
7429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7430 | (arg1)->SetRequestedLength(arg2); | |
7431 | ||
7432 | wxPyEndAllowThreads(__tstate); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | } | |
7435 | Py_INCREF(Py_None); resultobj = Py_None; | |
7436 | return resultobj; | |
7437 | fail: | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj; | |
7444 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7445 | int result; | |
7446 | PyObject * obj0 = 0 ; | |
7447 | char *kwnames[] = { | |
7448 | (char *) "self", NULL | |
7449 | }; | |
7450 | ||
7451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7454 | { | |
7455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7456 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7457 | ||
7458 | wxPyEndAllowThreads(__tstate); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
7461 | resultobj = SWIG_FromInt((int)result); | |
7462 | return resultobj; | |
7463 | fail: | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject *resultobj; | |
7470 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7471 | int arg2 ; | |
7472 | PyObject * obj0 = 0 ; | |
7473 | PyObject * obj1 = 0 ; | |
7474 | char *kwnames[] = { | |
7475 | (char *) "self",(char *) "flags", NULL | |
7476 | }; | |
7477 | ||
7478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7481 | arg2 = (int) SWIG_AsInt(obj1); | |
7482 | if (PyErr_Occurred()) SWIG_fail; | |
7483 | { | |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7485 | (arg1)->SetFlags(arg2); | |
7486 | ||
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
7490 | Py_INCREF(Py_None); resultobj = Py_None; | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
7497 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
7498 | PyObject *resultobj; | |
7499 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7500 | int result; | |
7501 | PyObject * obj0 = 0 ; | |
7502 | char *kwnames[] = { | |
7503 | (char *) "self", NULL | |
7504 | }; | |
7505 | ||
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7509 | { | |
7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7511 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7512 | ||
7513 | wxPyEndAllowThreads(__tstate); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
7516 | resultobj = SWIG_FromInt((int)result); | |
7517 | return resultobj; | |
7518 | fail: | |
7519 | return NULL; | |
7520 | } | |
7521 | ||
7522 | ||
7523 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
7524 | PyObject *resultobj; | |
7525 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7526 | wxSize *arg2 = 0 ; | |
7527 | wxSize temp2 ; | |
7528 | PyObject * obj0 = 0 ; | |
7529 | PyObject * obj1 = 0 ; | |
7530 | char *kwnames[] = { | |
7531 | (char *) "self",(char *) "size", NULL | |
7532 | }; | |
7533 | ||
7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7537 | { | |
7538 | arg2 = &temp2; | |
7539 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7540 | } | |
7541 | { | |
7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7543 | (arg1)->SetSize((wxSize const &)*arg2); | |
7544 | ||
7545 | wxPyEndAllowThreads(__tstate); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
7548 | Py_INCREF(Py_None); resultobj = Py_None; | |
7549 | return resultobj; | |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7558 | wxSize result; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | char *kwnames[] = { | |
7561 | (char *) "self", NULL | |
7562 | }; | |
7563 | ||
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7567 | { | |
7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7569 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7570 | ||
7571 | wxPyEndAllowThreads(__tstate); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
7574 | { | |
7575 | wxSize * resultptr; | |
7576 | resultptr = new wxSize((wxSize &) result); | |
7577 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7578 | } | |
7579 | return resultobj; | |
7580 | fail: | |
7581 | return NULL; | |
7582 | } | |
7583 | ||
7584 | ||
7585 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
7586 | PyObject *resultobj; | |
7587 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7588 | int arg2 ; | |
7589 | PyObject * obj0 = 0 ; | |
7590 | PyObject * obj1 = 0 ; | |
7591 | char *kwnames[] = { | |
7592 | (char *) "self",(char *) "orient", NULL | |
7593 | }; | |
7594 | ||
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
7596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7598 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | { | |
7601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7602 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7603 | ||
7604 | wxPyEndAllowThreads(__tstate); | |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
7606 | } | |
7607 | Py_INCREF(Py_None); resultobj = Py_None; | |
7608 | return resultobj; | |
7609 | fail: | |
7610 | return NULL; | |
7611 | } | |
7612 | ||
7613 | ||
7614 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject *resultobj; | |
7616 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7617 | int result; | |
7618 | PyObject * obj0 = 0 ; | |
7619 | char *kwnames[] = { | |
7620 | (char *) "self", NULL | |
7621 | }; | |
7622 | ||
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7626 | { | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7629 | ||
7630 | wxPyEndAllowThreads(__tstate); | |
7631 | if (PyErr_Occurred()) SWIG_fail; | |
7632 | } | |
7633 | resultobj = SWIG_FromInt((int)result); | |
7634 | return resultobj; | |
7635 | fail: | |
7636 | return NULL; | |
7637 | } | |
7638 | ||
7639 | ||
7640 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject *resultobj; | |
7642 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7643 | int arg2 ; | |
7644 | PyObject * obj0 = 0 ; | |
7645 | PyObject * obj1 = 0 ; | |
7646 | char *kwnames[] = { | |
7647 | (char *) "self",(char *) "align", NULL | |
7648 | }; | |
7649 | ||
7650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7653 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
7654 | if (PyErr_Occurred()) SWIG_fail; | |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7658 | ||
7659 | wxPyEndAllowThreads(__tstate); | |
7660 | if (PyErr_Occurred()) SWIG_fail; | |
7661 | } | |
7662 | Py_INCREF(Py_None); resultobj = Py_None; | |
7663 | return resultobj; | |
7664 | fail: | |
7665 | return NULL; | |
7666 | } | |
7667 | ||
7668 | ||
7669 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
7670 | PyObject *resultobj; | |
7671 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7672 | int result; | |
7673 | PyObject * obj0 = 0 ; | |
7674 | char *kwnames[] = { | |
7675 | (char *) "self", NULL | |
7676 | }; | |
7677 | ||
7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
7679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7681 | { | |
7682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7683 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
7684 | ||
7685 | wxPyEndAllowThreads(__tstate); | |
7686 | if (PyErr_Occurred()) SWIG_fail; | |
7687 | } | |
7688 | resultobj = SWIG_FromInt((int)result); | |
7689 | return resultobj; | |
7690 | fail: | |
7691 | return NULL; | |
7692 | } | |
7693 | ||
7694 | ||
7695 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *, PyObject *args) { | |
7696 | PyObject *obj; | |
7697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7698 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
7699 | Py_INCREF(obj); | |
7700 | return Py_BuildValue((char *)""); | |
7701 | } | |
7702 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
7703 | PyObject *resultobj; | |
7704 | int arg1 = (int) 0 ; | |
7705 | wxCalculateLayoutEvent *result; | |
7706 | PyObject * obj0 = 0 ; | |
7707 | char *kwnames[] = { | |
7708 | (char *) "id", NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
7712 | if (obj0) { | |
7713 | arg1 = (int) SWIG_AsInt(obj0); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
7724 | return resultobj; | |
7725 | fail: | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
7730 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
7731 | PyObject *resultobj; | |
7732 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7733 | int arg2 ; | |
7734 | PyObject * obj0 = 0 ; | |
7735 | PyObject * obj1 = 0 ; | |
7736 | char *kwnames[] = { | |
7737 | (char *) "self",(char *) "flags", NULL | |
7738 | }; | |
7739 | ||
7740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
7742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7743 | arg2 = (int) SWIG_AsInt(obj1); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | { | |
7746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7747 | (arg1)->SetFlags(arg2); | |
7748 | ||
7749 | wxPyEndAllowThreads(__tstate); | |
7750 | if (PyErr_Occurred()) SWIG_fail; | |
7751 | } | |
7752 | Py_INCREF(Py_None); resultobj = Py_None; | |
7753 | return resultobj; | |
7754 | fail: | |
7755 | return NULL; | |
7756 | } | |
7757 | ||
7758 | ||
7759 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject *resultobj; | |
7761 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7762 | int result; | |
7763 | PyObject * obj0 = 0 ; | |
7764 | char *kwnames[] = { | |
7765 | (char *) "self", NULL | |
7766 | }; | |
7767 | ||
7768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
7770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7771 | { | |
7772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7773 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
7774 | ||
7775 | wxPyEndAllowThreads(__tstate); | |
7776 | if (PyErr_Occurred()) SWIG_fail; | |
7777 | } | |
7778 | resultobj = SWIG_FromInt((int)result); | |
7779 | return resultobj; | |
7780 | fail: | |
7781 | return NULL; | |
7782 | } | |
7783 | ||
7784 | ||
7785 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
7786 | PyObject *resultobj; | |
7787 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7788 | wxRect *arg2 = 0 ; | |
7789 | wxRect temp2 ; | |
7790 | PyObject * obj0 = 0 ; | |
7791 | PyObject * obj1 = 0 ; | |
7792 | char *kwnames[] = { | |
7793 | (char *) "self",(char *) "rect", NULL | |
7794 | }; | |
7795 | ||
7796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
7797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
7798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7799 | { | |
7800 | arg2 = &temp2; | |
7801 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7802 | } | |
7803 | { | |
7804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7805 | (arg1)->SetRect((wxRect const &)*arg2); | |
7806 | ||
7807 | wxPyEndAllowThreads(__tstate); | |
7808 | if (PyErr_Occurred()) SWIG_fail; | |
7809 | } | |
7810 | Py_INCREF(Py_None); resultobj = Py_None; | |
7811 | return resultobj; | |
7812 | fail: | |
7813 | return NULL; | |
7814 | } | |
7815 | ||
7816 | ||
7817 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
7818 | PyObject *resultobj; | |
7819 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7820 | wxRect result; | |
7821 | PyObject * obj0 = 0 ; | |
7822 | char *kwnames[] = { | |
7823 | (char *) "self", NULL | |
7824 | }; | |
7825 | ||
7826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
7827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
7828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7829 | { | |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
7835 | } | |
7836 | { | |
7837 | wxRect * resultptr; | |
7838 | resultptr = new wxRect((wxRect &) result); | |
7839 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7840 | } | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *, PyObject *args) { | |
7848 | PyObject *obj; | |
7849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7850 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
7851 | Py_INCREF(obj); | |
7852 | return Py_BuildValue((char *)""); | |
7853 | } | |
7854 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
7855 | PyObject *resultobj; | |
7856 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7857 | int arg2 ; | |
7858 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7859 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7860 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7861 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7862 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
7863 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
7864 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7865 | wxSashLayoutWindow *result; | |
7866 | wxPoint temp3 ; | |
7867 | wxSize temp4 ; | |
7868 | bool temp6 = False ; | |
7869 | PyObject * obj0 = 0 ; | |
7870 | PyObject * obj1 = 0 ; | |
7871 | PyObject * obj2 = 0 ; | |
7872 | PyObject * obj3 = 0 ; | |
7873 | PyObject * obj4 = 0 ; | |
7874 | PyObject * obj5 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
7880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
7881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7882 | arg2 = (int) SWIG_AsInt(obj1); | |
7883 | if (PyErr_Occurred()) SWIG_fail; | |
7884 | if (obj2) { | |
7885 | { | |
7886 | arg3 = &temp3; | |
7887 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7888 | } | |
7889 | } | |
7890 | if (obj3) { | |
7891 | { | |
7892 | arg4 = &temp4; | |
7893 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7894 | } | |
7895 | } | |
7896 | if (obj4) { | |
7897 | arg5 = (long) SWIG_AsLong(obj4); | |
7898 | if (PyErr_Occurred()) SWIG_fail; | |
7899 | } | |
7900 | if (obj5) { | |
7901 | { | |
7902 | arg6 = wxString_in_helper(obj5); | |
7903 | if (arg6 == NULL) SWIG_fail; | |
7904 | temp6 = True; | |
7905 | } | |
7906 | } | |
7907 | { | |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7910 | ||
7911 | wxPyEndAllowThreads(__tstate); | |
7912 | if (PyErr_Occurred()) SWIG_fail; | |
7913 | } | |
7914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
7915 | { | |
7916 | if (temp6) | |
7917 | delete arg6; | |
7918 | } | |
7919 | return resultobj; | |
7920 | fail: | |
7921 | { | |
7922 | if (temp6) | |
7923 | delete arg6; | |
7924 | } | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | wxSashLayoutWindow *result; | |
7932 | char *kwnames[] = { | |
7933 | NULL | |
7934 | }; | |
7935 | ||
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
7937 | { | |
7938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7939 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
7940 | ||
7941 | wxPyEndAllowThreads(__tstate); | |
7942 | if (PyErr_Occurred()) SWIG_fail; | |
7943 | } | |
7944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
7945 | return resultobj; | |
7946 | fail: | |
7947 | return NULL; | |
7948 | } | |
7949 | ||
7950 | ||
7951 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
7952 | PyObject *resultobj; | |
7953 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7954 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7955 | int arg3 ; | |
7956 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7957 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7958 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7959 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7960 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
7961 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
7962 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7963 | bool result; | |
7964 | wxPoint temp4 ; | |
7965 | wxSize temp5 ; | |
7966 | bool temp7 = False ; | |
7967 | PyObject * obj0 = 0 ; | |
7968 | PyObject * obj1 = 0 ; | |
7969 | PyObject * obj2 = 0 ; | |
7970 | PyObject * obj3 = 0 ; | |
7971 | PyObject * obj4 = 0 ; | |
7972 | PyObject * obj5 = 0 ; | |
7973 | PyObject * obj6 = 0 ; | |
7974 | char *kwnames[] = { | |
7975 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7976 | }; | |
7977 | ||
7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
7979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
7980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7983 | arg3 = (int) SWIG_AsInt(obj2); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | if (obj3) { | |
7986 | { | |
7987 | arg4 = &temp4; | |
7988 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7989 | } | |
7990 | } | |
7991 | if (obj4) { | |
7992 | { | |
7993 | arg5 = &temp5; | |
7994 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7995 | } | |
7996 | } | |
7997 | if (obj5) { | |
7998 | arg6 = (long) SWIG_AsLong(obj5); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | } | |
8001 | if (obj6) { | |
8002 | { | |
8003 | arg7 = wxString_in_helper(obj6); | |
8004 | if (arg7 == NULL) SWIG_fail; | |
8005 | temp7 = True; | |
8006 | } | |
8007 | } | |
8008 | { | |
8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8010 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8011 | ||
8012 | wxPyEndAllowThreads(__tstate); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | } | |
8015 | { | |
8016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8017 | } | |
8018 | { | |
8019 | if (temp7) | |
8020 | delete arg7; | |
8021 | } | |
8022 | return resultobj; | |
8023 | fail: | |
8024 | { | |
8025 | if (temp7) | |
8026 | delete arg7; | |
8027 | } | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
8032 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
8033 | PyObject *resultobj; | |
8034 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8035 | int result; | |
8036 | PyObject * obj0 = 0 ; | |
8037 | char *kwnames[] = { | |
8038 | (char *) "self", NULL | |
8039 | }; | |
8040 | ||
8041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | result = (int)(arg1)->GetAlignment(); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | resultobj = SWIG_FromInt((int)result); | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8061 | int result; | |
8062 | PyObject * obj0 = 0 ; | |
8063 | char *kwnames[] = { | |
8064 | (char *) "self", NULL | |
8065 | }; | |
8066 | ||
8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8070 | { | |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | result = (int)(arg1)->GetOrientation(); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | resultobj = SWIG_FromInt((int)result); | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | return NULL; | |
8081 | } | |
8082 | ||
8083 | ||
8084 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
8085 | PyObject *resultobj; | |
8086 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8087 | int arg2 ; | |
8088 | PyObject * obj0 = 0 ; | |
8089 | PyObject * obj1 = 0 ; | |
8090 | char *kwnames[] = { | |
8091 | (char *) "self",(char *) "alignment", NULL | |
8092 | }; | |
8093 | ||
8094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8097 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8098 | if (PyErr_Occurred()) SWIG_fail; | |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | } | |
8106 | Py_INCREF(Py_None); resultobj = Py_None; | |
8107 | return resultobj; | |
8108 | fail: | |
8109 | return NULL; | |
8110 | } | |
8111 | ||
8112 | ||
8113 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8114 | PyObject *resultobj; | |
8115 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8116 | wxSize *arg2 = 0 ; | |
8117 | wxSize temp2 ; | |
8118 | PyObject * obj0 = 0 ; | |
8119 | PyObject * obj1 = 0 ; | |
8120 | char *kwnames[] = { | |
8121 | (char *) "self",(char *) "size", NULL | |
8122 | }; | |
8123 | ||
8124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8127 | { | |
8128 | arg2 = &temp2; | |
8129 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8130 | } | |
8131 | { | |
8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8133 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8134 | ||
8135 | wxPyEndAllowThreads(__tstate); | |
8136 | if (PyErr_Occurred()) SWIG_fail; | |
8137 | } | |
8138 | Py_INCREF(Py_None); resultobj = Py_None; | |
8139 | return resultobj; | |
8140 | fail: | |
8141 | return NULL; | |
8142 | } | |
8143 | ||
8144 | ||
8145 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
8146 | PyObject *resultobj; | |
8147 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8148 | int arg2 ; | |
8149 | PyObject * obj0 = 0 ; | |
8150 | PyObject * obj1 = 0 ; | |
8151 | char *kwnames[] = { | |
8152 | (char *) "self",(char *) "orientation", NULL | |
8153 | }; | |
8154 | ||
8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8158 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8159 | if (PyErr_Occurred()) SWIG_fail; | |
8160 | { | |
8161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8162 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8163 | ||
8164 | wxPyEndAllowThreads(__tstate); | |
8165 | if (PyErr_Occurred()) SWIG_fail; | |
8166 | } | |
8167 | Py_INCREF(Py_None); resultobj = Py_None; | |
8168 | return resultobj; | |
8169 | fail: | |
8170 | return NULL; | |
8171 | } | |
8172 | ||
8173 | ||
8174 | static PyObject * SashLayoutWindow_swigregister(PyObject *, PyObject *args) { | |
8175 | PyObject *obj; | |
8176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8177 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8178 | Py_INCREF(obj); | |
8179 | return Py_BuildValue((char *)""); | |
8180 | } | |
8181 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *, PyObject *args, PyObject *kwargs) { | |
8182 | PyObject *resultobj; | |
8183 | wxLayoutAlgorithm *result; | |
8184 | char *kwnames[] = { | |
8185 | NULL | |
8186 | }; | |
8187 | ||
8188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8189 | { | |
8190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8191 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8192 | ||
8193 | wxPyEndAllowThreads(__tstate); | |
8194 | if (PyErr_Occurred()) SWIG_fail; | |
8195 | } | |
8196 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8197 | return resultobj; | |
8198 | fail: | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject *resultobj; | |
8205 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8206 | PyObject * obj0 = 0 ; | |
8207 | char *kwnames[] = { | |
8208 | (char *) "self", NULL | |
8209 | }; | |
8210 | ||
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8214 | { | |
8215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8216 | delete arg1; | |
8217 | ||
8218 | wxPyEndAllowThreads(__tstate); | |
8219 | if (PyErr_Occurred()) SWIG_fail; | |
8220 | } | |
8221 | Py_INCREF(Py_None); resultobj = Py_None; | |
8222 | return resultobj; | |
8223 | fail: | |
8224 | return NULL; | |
8225 | } | |
8226 | ||
8227 | ||
8228 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
8229 | PyObject *resultobj; | |
8230 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8231 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8232 | wxRect *arg3 = (wxRect *) NULL ; | |
8233 | bool result; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | PyObject * obj1 = 0 ; | |
8236 | PyObject * obj2 = 0 ; | |
8237 | char *kwnames[] = { | |
8238 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8239 | }; | |
8240 | ||
8241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8246 | if (obj2) { | |
8247 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8249 | } | |
8250 | { | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8253 | ||
8254 | wxPyEndAllowThreads(__tstate); | |
8255 | if (PyErr_Occurred()) SWIG_fail; | |
8256 | } | |
8257 | { | |
8258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8259 | } | |
8260 | return resultobj; | |
8261 | fail: | |
8262 | return NULL; | |
8263 | } | |
8264 | ||
8265 | ||
8266 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
8267 | PyObject *resultobj; | |
8268 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8269 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8270 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8271 | bool result; | |
8272 | PyObject * obj0 = 0 ; | |
8273 | PyObject * obj1 = 0 ; | |
8274 | PyObject * obj2 = 0 ; | |
8275 | char *kwnames[] = { | |
8276 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8277 | }; | |
8278 | ||
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8284 | if (obj2) { | |
8285 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8287 | } | |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
8295 | { | |
8296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8297 | } | |
8298 | return resultobj; | |
8299 | fail: | |
8300 | return NULL; | |
8301 | } | |
8302 | ||
8303 | ||
8304 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8305 | PyObject *resultobj; | |
8306 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8307 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8308 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8309 | bool result; | |
8310 | PyObject * obj0 = 0 ; | |
8311 | PyObject * obj1 = 0 ; | |
8312 | PyObject * obj2 = 0 ; | |
8313 | char *kwnames[] = { | |
8314 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8315 | }; | |
8316 | ||
8317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8322 | if (obj2) { | |
8323 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8325 | } | |
8326 | { | |
8327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8328 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8329 | ||
8330 | wxPyEndAllowThreads(__tstate); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | { | |
8334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8335 | } | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
8342 | static PyObject * LayoutAlgorithm_swigregister(PyObject *, PyObject *args) { | |
8343 | PyObject *obj; | |
8344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8345 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8346 | Py_INCREF(obj); | |
8347 | return Py_BuildValue((char *)""); | |
8348 | } | |
8349 | static PyObject *_wrap_new_PopupWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8350 | PyObject *resultobj; | |
8351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8352 | int arg2 = (int) wxBORDER_NONE ; | |
8353 | wxPopupWindow *result; | |
8354 | PyObject * obj0 = 0 ; | |
8355 | PyObject * obj1 = 0 ; | |
8356 | char *kwnames[] = { | |
8357 | (char *) "parent",(char *) "flags", NULL | |
8358 | }; | |
8359 | ||
8360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8363 | if (obj1) { | |
8364 | arg2 = (int) SWIG_AsInt(obj1); | |
8365 | if (PyErr_Occurred()) SWIG_fail; | |
8366 | } | |
8367 | { | |
8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8369 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8370 | ||
8371 | wxPyEndAllowThreads(__tstate); | |
8372 | if (PyErr_Occurred()) SWIG_fail; | |
8373 | } | |
8374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8375 | return resultobj; | |
8376 | fail: | |
8377 | return NULL; | |
8378 | } | |
8379 | ||
8380 | ||
8381 | static PyObject *_wrap_new_PrePopupWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8382 | PyObject *resultobj; | |
8383 | wxPopupWindow *result; | |
8384 | char *kwnames[] = { | |
8385 | NULL | |
8386 | }; | |
8387 | ||
8388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8389 | { | |
8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8391 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8392 | ||
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8397 | return resultobj; | |
8398 | fail: | |
8399 | return NULL; | |
8400 | } | |
8401 | ||
8402 | ||
8403 | static PyObject * PopupWindow_swigregister(PyObject *, PyObject *args) { | |
8404 | PyObject *obj; | |
8405 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8406 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8407 | Py_INCREF(obj); | |
8408 | return Py_BuildValue((char *)""); | |
8409 | } | |
8410 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8411 | PyObject *resultobj; | |
8412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8413 | int arg2 = (int) wxBORDER_NONE ; | |
8414 | wxPyPopupTransientWindow *result; | |
8415 | PyObject * obj0 = 0 ; | |
8416 | PyObject * obj1 = 0 ; | |
8417 | char *kwnames[] = { | |
8418 | (char *) "parent",(char *) "style", NULL | |
8419 | }; | |
8420 | ||
8421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8424 | if (obj1) { | |
8425 | arg2 = (int) SWIG_AsInt(obj1); | |
8426 | if (PyErr_Occurred()) SWIG_fail; | |
8427 | } | |
8428 | { | |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8430 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8431 | ||
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
8435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8436 | return resultobj; | |
8437 | fail: | |
8438 | return NULL; | |
8439 | } | |
8440 | ||
8441 | ||
8442 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8443 | PyObject *resultobj; | |
8444 | wxPyPopupTransientWindow *result; | |
8445 | char *kwnames[] = { | |
8446 | NULL | |
8447 | }; | |
8448 | ||
8449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8450 | { | |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject * PopupTransientWindow_swigregister(PyObject *, PyObject *args) { | |
8465 | PyObject *obj; | |
8466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8467 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8468 | Py_INCREF(obj); | |
8469 | return Py_BuildValue((char *)""); | |
8470 | } | |
8471 | static PyObject *_wrap_new_TipWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject *resultobj; | |
8473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8474 | wxString *arg2 = 0 ; | |
8475 | int arg3 = (int) 100 ; | |
8476 | wxRect *arg4 = (wxRect *) NULL ; | |
8477 | wxTipWindow *result; | |
8478 | bool temp2 = False ; | |
8479 | PyObject * obj0 = 0 ; | |
8480 | PyObject * obj1 = 0 ; | |
8481 | PyObject * obj2 = 0 ; | |
8482 | PyObject * obj3 = 0 ; | |
8483 | char *kwnames[] = { | |
8484 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8490 | { | |
8491 | arg2 = wxString_in_helper(obj1); | |
8492 | if (arg2 == NULL) SWIG_fail; | |
8493 | temp2 = True; | |
8494 | } | |
8495 | if (obj2) { | |
8496 | arg3 = (int) SWIG_AsInt(obj2); | |
8497 | if (PyErr_Occurred()) SWIG_fail; | |
8498 | } | |
8499 | if (obj3) { | |
8500 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
8501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8502 | } | |
8503 | { | |
8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8505 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8506 | ||
8507 | wxPyEndAllowThreads(__tstate); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
8511 | { | |
8512 | if (temp2) | |
8513 | delete arg2; | |
8514 | } | |
8515 | return resultobj; | |
8516 | fail: | |
8517 | { | |
8518 | if (temp2) | |
8519 | delete arg2; | |
8520 | } | |
8521 | return NULL; | |
8522 | } | |
8523 | ||
8524 | ||
8525 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject *resultobj; | |
8527 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8528 | wxRect *arg2 = 0 ; | |
8529 | wxRect temp2 ; | |
8530 | PyObject * obj0 = 0 ; | |
8531 | PyObject * obj1 = 0 ; | |
8532 | char *kwnames[] = { | |
8533 | (char *) "self",(char *) "rectBound", NULL | |
8534 | }; | |
8535 | ||
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8539 | { | |
8540 | arg2 = &temp2; | |
8541 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8542 | } | |
8543 | { | |
8544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8545 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8546 | ||
8547 | wxPyEndAllowThreads(__tstate); | |
8548 | if (PyErr_Occurred()) SWIG_fail; | |
8549 | } | |
8550 | Py_INCREF(Py_None); resultobj = Py_None; | |
8551 | return resultobj; | |
8552 | fail: | |
8553 | return NULL; | |
8554 | } | |
8555 | ||
8556 | ||
8557 | static PyObject *_wrap_TipWindow_Close(PyObject *, PyObject *args, PyObject *kwargs) { | |
8558 | PyObject *resultobj; | |
8559 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8560 | PyObject * obj0 = 0 ; | |
8561 | char *kwnames[] = { | |
8562 | (char *) "self", NULL | |
8563 | }; | |
8564 | ||
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8568 | { | |
8569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8570 | (arg1)->Close(); | |
8571 | ||
8572 | wxPyEndAllowThreads(__tstate); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | Py_INCREF(Py_None); resultobj = Py_None; | |
8576 | return resultobj; | |
8577 | fail: | |
8578 | return NULL; | |
8579 | } | |
8580 | ||
8581 | ||
8582 | static PyObject * TipWindow_swigregister(PyObject *, PyObject *args) { | |
8583 | PyObject *obj; | |
8584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8585 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
8586 | Py_INCREF(obj); | |
8587 | return Py_BuildValue((char *)""); | |
8588 | } | |
8589 | static PyObject *_wrap_new_VScrolledWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj; | |
8591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8592 | int arg2 = (int) wxID_ANY ; | |
8593 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8594 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8595 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8596 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8597 | long arg5 = (long) 0 ; | |
8598 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8599 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8600 | wxPyVScrolledWindow *result; | |
8601 | wxPoint temp3 ; | |
8602 | wxSize temp4 ; | |
8603 | bool temp6 = False ; | |
8604 | PyObject * obj0 = 0 ; | |
8605 | PyObject * obj1 = 0 ; | |
8606 | PyObject * obj2 = 0 ; | |
8607 | PyObject * obj3 = 0 ; | |
8608 | PyObject * obj4 = 0 ; | |
8609 | PyObject * obj5 = 0 ; | |
8610 | char *kwnames[] = { | |
8611 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8612 | }; | |
8613 | ||
8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8617 | if (obj1) { | |
8618 | arg2 = (int) SWIG_AsInt(obj1); | |
8619 | if (PyErr_Occurred()) SWIG_fail; | |
8620 | } | |
8621 | if (obj2) { | |
8622 | { | |
8623 | arg3 = &temp3; | |
8624 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8625 | } | |
8626 | } | |
8627 | if (obj3) { | |
8628 | { | |
8629 | arg4 = &temp4; | |
8630 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8631 | } | |
8632 | } | |
8633 | if (obj4) { | |
8634 | arg5 = (long) SWIG_AsLong(obj4); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
8637 | if (obj5) { | |
8638 | { | |
8639 | arg6 = wxString_in_helper(obj5); | |
8640 | if (arg6 == NULL) SWIG_fail; | |
8641 | temp6 = True; | |
8642 | } | |
8643 | } | |
8644 | { | |
8645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8646 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8647 | ||
8648 | wxPyEndAllowThreads(__tstate); | |
8649 | if (PyErr_Occurred()) SWIG_fail; | |
8650 | } | |
8651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8652 | { | |
8653 | if (temp6) | |
8654 | delete arg6; | |
8655 | } | |
8656 | return resultobj; | |
8657 | fail: | |
8658 | { | |
8659 | if (temp6) | |
8660 | delete arg6; | |
8661 | } | |
8662 | return NULL; | |
8663 | } | |
8664 | ||
8665 | ||
8666 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8667 | PyObject *resultobj; | |
8668 | wxPyVScrolledWindow *result; | |
8669 | char *kwnames[] = { | |
8670 | NULL | |
8671 | }; | |
8672 | ||
8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
8674 | { | |
8675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8676 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
8677 | ||
8678 | wxPyEndAllowThreads(__tstate); | |
8679 | if (PyErr_Occurred()) SWIG_fail; | |
8680 | } | |
8681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8682 | return resultobj; | |
8683 | fail: | |
8684 | return NULL; | |
8685 | } | |
8686 | ||
8687 | ||
8688 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
8689 | PyObject *resultobj; | |
8690 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8691 | PyObject *arg2 = (PyObject *) 0 ; | |
8692 | PyObject *arg3 = (PyObject *) 0 ; | |
8693 | PyObject * obj0 = 0 ; | |
8694 | PyObject * obj1 = 0 ; | |
8695 | PyObject * obj2 = 0 ; | |
8696 | char *kwnames[] = { | |
8697 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8698 | }; | |
8699 | ||
8700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8703 | arg2 = obj1; | |
8704 | arg3 = obj2; | |
8705 | { | |
8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8707 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8708 | ||
8709 | wxPyEndAllowThreads(__tstate); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
8712 | Py_INCREF(Py_None); resultobj = Py_None; | |
8713 | return resultobj; | |
8714 | fail: | |
8715 | return NULL; | |
8716 | } | |
8717 | ||
8718 | ||
8719 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
8720 | PyObject *resultobj; | |
8721 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8723 | int arg3 = (int) wxID_ANY ; | |
8724 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8725 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8726 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8727 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8728 | long arg6 = (long) 0 ; | |
8729 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
8730 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8731 | bool result; | |
8732 | wxPoint temp4 ; | |
8733 | wxSize temp5 ; | |
8734 | bool temp7 = False ; | |
8735 | PyObject * obj0 = 0 ; | |
8736 | PyObject * obj1 = 0 ; | |
8737 | PyObject * obj2 = 0 ; | |
8738 | PyObject * obj3 = 0 ; | |
8739 | PyObject * obj4 = 0 ; | |
8740 | PyObject * obj5 = 0 ; | |
8741 | PyObject * obj6 = 0 ; | |
8742 | char *kwnames[] = { | |
8743 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8744 | }; | |
8745 | ||
8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8751 | if (obj2) { | |
8752 | arg3 = (int) SWIG_AsInt(obj2); | |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
8755 | if (obj3) { | |
8756 | { | |
8757 | arg4 = &temp4; | |
8758 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8759 | } | |
8760 | } | |
8761 | if (obj4) { | |
8762 | { | |
8763 | arg5 = &temp5; | |
8764 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8765 | } | |
8766 | } | |
8767 | if (obj5) { | |
8768 | arg6 = (long) SWIG_AsLong(obj5); | |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
8770 | } | |
8771 | if (obj6) { | |
8772 | { | |
8773 | arg7 = wxString_in_helper(obj6); | |
8774 | if (arg7 == NULL) SWIG_fail; | |
8775 | temp7 = True; | |
8776 | } | |
8777 | } | |
8778 | { | |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
8785 | { | |
8786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8787 | } | |
8788 | { | |
8789 | if (temp7) | |
8790 | delete arg7; | |
8791 | } | |
8792 | return resultobj; | |
8793 | fail: | |
8794 | { | |
8795 | if (temp7) | |
8796 | delete arg7; | |
8797 | } | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
8802 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
8803 | PyObject *resultobj; | |
8804 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8805 | size_t arg2 ; | |
8806 | PyObject * obj0 = 0 ; | |
8807 | PyObject * obj1 = 0 ; | |
8808 | char *kwnames[] = { | |
8809 | (char *) "self",(char *) "count", NULL | |
8810 | }; | |
8811 | ||
8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
8813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8815 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
8816 | if (PyErr_Occurred()) SWIG_fail; | |
8817 | { | |
8818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8819 | (arg1)->SetLineCount(arg2); | |
8820 | ||
8821 | wxPyEndAllowThreads(__tstate); | |
8822 | if (PyErr_Occurred()) SWIG_fail; | |
8823 | } | |
8824 | Py_INCREF(Py_None); resultobj = Py_None; | |
8825 | return resultobj; | |
8826 | fail: | |
8827 | return NULL; | |
8828 | } | |
8829 | ||
8830 | ||
8831 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
8832 | PyObject *resultobj; | |
8833 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8834 | size_t arg2 ; | |
8835 | bool result; | |
8836 | PyObject * obj0 = 0 ; | |
8837 | PyObject * obj1 = 0 ; | |
8838 | char *kwnames[] = { | |
8839 | (char *) "self",(char *) "line", NULL | |
8840 | }; | |
8841 | ||
8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
8843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8845 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
8846 | if (PyErr_Occurred()) SWIG_fail; | |
8847 | { | |
8848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8849 | result = (bool)(arg1)->ScrollToLine(arg2); | |
8850 | ||
8851 | wxPyEndAllowThreads(__tstate); | |
8852 | if (PyErr_Occurred()) SWIG_fail; | |
8853 | } | |
8854 | { | |
8855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8856 | } | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | return NULL; | |
8860 | } | |
8861 | ||
8862 | ||
8863 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
8864 | PyObject *resultobj; | |
8865 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8866 | int arg2 ; | |
8867 | bool result; | |
8868 | PyObject * obj0 = 0 ; | |
8869 | PyObject * obj1 = 0 ; | |
8870 | char *kwnames[] = { | |
8871 | (char *) "self",(char *) "lines", NULL | |
8872 | }; | |
8873 | ||
8874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
8875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8877 | arg2 = (int) SWIG_AsInt(obj1); | |
8878 | if (PyErr_Occurred()) SWIG_fail; | |
8879 | { | |
8880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8881 | result = (bool)(arg1)->ScrollLines(arg2); | |
8882 | ||
8883 | wxPyEndAllowThreads(__tstate); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | { | |
8887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8888 | } | |
8889 | return resultobj; | |
8890 | fail: | |
8891 | return NULL; | |
8892 | } | |
8893 | ||
8894 | ||
8895 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
8896 | PyObject *resultobj; | |
8897 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8898 | int arg2 ; | |
8899 | bool result; | |
8900 | PyObject * obj0 = 0 ; | |
8901 | PyObject * obj1 = 0 ; | |
8902 | char *kwnames[] = { | |
8903 | (char *) "self",(char *) "pages", NULL | |
8904 | }; | |
8905 | ||
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
8907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8909 | arg2 = (int) SWIG_AsInt(obj1); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | { | |
8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8913 | result = (bool)(arg1)->ScrollPages(arg2); | |
8914 | ||
8915 | wxPyEndAllowThreads(__tstate); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | } | |
8918 | { | |
8919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8920 | } | |
8921 | return resultobj; | |
8922 | fail: | |
8923 | return NULL; | |
8924 | } | |
8925 | ||
8926 | ||
8927 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
8928 | PyObject *resultobj; | |
8929 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8930 | size_t arg2 ; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | PyObject * obj1 = 0 ; | |
8933 | char *kwnames[] = { | |
8934 | (char *) "self",(char *) "line", NULL | |
8935 | }; | |
8936 | ||
8937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
8938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8940 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | { | |
8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8944 | (arg1)->RefreshLine(arg2); | |
8945 | ||
8946 | wxPyEndAllowThreads(__tstate); | |
8947 | if (PyErr_Occurred()) SWIG_fail; | |
8948 | } | |
8949 | Py_INCREF(Py_None); resultobj = Py_None; | |
8950 | return resultobj; | |
8951 | fail: | |
8952 | return NULL; | |
8953 | } | |
8954 | ||
8955 | ||
8956 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
8957 | PyObject *resultobj; | |
8958 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8959 | size_t arg2 ; | |
8960 | size_t arg3 ; | |
8961 | PyObject * obj0 = 0 ; | |
8962 | PyObject * obj1 = 0 ; | |
8963 | PyObject * obj2 = 0 ; | |
8964 | char *kwnames[] = { | |
8965 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8966 | }; | |
8967 | ||
8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
8970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8971 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
8974 | if (PyErr_Occurred()) SWIG_fail; | |
8975 | { | |
8976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8977 | (arg1)->RefreshLines(arg2,arg3); | |
8978 | ||
8979 | wxPyEndAllowThreads(__tstate); | |
8980 | if (PyErr_Occurred()) SWIG_fail; | |
8981 | } | |
8982 | Py_INCREF(Py_None); resultobj = Py_None; | |
8983 | return resultobj; | |
8984 | fail: | |
8985 | return NULL; | |
8986 | } | |
8987 | ||
8988 | ||
8989 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *, PyObject *args, PyObject *kwargs) { | |
8990 | PyObject *resultobj; | |
8991 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8992 | int arg2 ; | |
8993 | int arg3 ; | |
8994 | int result; | |
8995 | PyObject * obj0 = 0 ; | |
8996 | PyObject * obj1 = 0 ; | |
8997 | PyObject * obj2 = 0 ; | |
8998 | char *kwnames[] = { | |
8999 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9000 | }; | |
9001 | ||
9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9005 | arg2 = (int) SWIG_AsInt(obj1); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | arg3 = (int) SWIG_AsInt(obj2); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | { | |
9010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9011 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9012 | ||
9013 | wxPyEndAllowThreads(__tstate); | |
9014 | if (PyErr_Occurred()) SWIG_fail; | |
9015 | } | |
9016 | resultobj = SWIG_FromInt((int)result); | |
9017 | return resultobj; | |
9018 | fail: | |
9019 | return NULL; | |
9020 | } | |
9021 | ||
9022 | ||
9023 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
9024 | PyObject *resultobj; | |
9025 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9026 | wxPoint *arg2 = 0 ; | |
9027 | int result; | |
9028 | wxPoint temp2 ; | |
9029 | PyObject * obj0 = 0 ; | |
9030 | PyObject * obj1 = 0 ; | |
9031 | char *kwnames[] = { | |
9032 | (char *) "self",(char *) "pt", NULL | |
9033 | }; | |
9034 | ||
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9038 | { | |
9039 | arg2 = &temp2; | |
9040 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9041 | } | |
9042 | { | |
9043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9044 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9045 | ||
9046 | wxPyEndAllowThreads(__tstate); | |
9047 | if (PyErr_Occurred()) SWIG_fail; | |
9048 | } | |
9049 | resultobj = SWIG_FromInt((int)result); | |
9050 | return resultobj; | |
9051 | fail: | |
9052 | return NULL; | |
9053 | } | |
9054 | ||
9055 | ||
9056 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
9057 | PyObject *resultobj; | |
9058 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9059 | PyObject * obj0 = 0 ; | |
9060 | char *kwnames[] = { | |
9061 | (char *) "self", NULL | |
9062 | }; | |
9063 | ||
9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9067 | { | |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | (arg1)->RefreshAll(); | |
9070 | ||
9071 | wxPyEndAllowThreads(__tstate); | |
9072 | if (PyErr_Occurred()) SWIG_fail; | |
9073 | } | |
9074 | Py_INCREF(Py_None); resultobj = Py_None; | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
9082 | PyObject *resultobj; | |
9083 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9084 | size_t result; | |
9085 | PyObject * obj0 = 0 ; | |
9086 | char *kwnames[] = { | |
9087 | (char *) "self", NULL | |
9088 | }; | |
9089 | ||
9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9093 | { | |
9094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9095 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9096 | ||
9097 | wxPyEndAllowThreads(__tstate); | |
9098 | if (PyErr_Occurred()) SWIG_fail; | |
9099 | } | |
9100 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9101 | return resultobj; | |
9102 | fail: | |
9103 | return NULL; | |
9104 | } | |
9105 | ||
9106 | ||
9107 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
9108 | PyObject *resultobj; | |
9109 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9110 | size_t result; | |
9111 | PyObject * obj0 = 0 ; | |
9112 | char *kwnames[] = { | |
9113 | (char *) "self", NULL | |
9114 | }; | |
9115 | ||
9116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9119 | { | |
9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9121 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9122 | ||
9123 | wxPyEndAllowThreads(__tstate); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | } | |
9126 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9127 | return resultobj; | |
9128 | fail: | |
9129 | return NULL; | |
9130 | } | |
9131 | ||
9132 | ||
9133 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
9134 | PyObject *resultobj; | |
9135 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9136 | size_t result; | |
9137 | PyObject * obj0 = 0 ; | |
9138 | char *kwnames[] = { | |
9139 | (char *) "self", NULL | |
9140 | }; | |
9141 | ||
9142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9145 | { | |
9146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9147 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9148 | ||
9149 | wxPyEndAllowThreads(__tstate); | |
9150 | if (PyErr_Occurred()) SWIG_fail; | |
9151 | } | |
9152 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9153 | return resultobj; | |
9154 | fail: | |
9155 | return NULL; | |
9156 | } | |
9157 | ||
9158 | ||
9159 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
9160 | PyObject *resultobj; | |
9161 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9162 | size_t arg2 ; | |
9163 | bool result; | |
9164 | PyObject * obj0 = 0 ; | |
9165 | PyObject * obj1 = 0 ; | |
9166 | char *kwnames[] = { | |
9167 | (char *) "self",(char *) "line", NULL | |
9168 | }; | |
9169 | ||
9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9173 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | { | |
9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9177 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9178 | ||
9179 | wxPyEndAllowThreads(__tstate); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | } | |
9182 | { | |
9183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9184 | } | |
9185 | return resultobj; | |
9186 | fail: | |
9187 | return NULL; | |
9188 | } | |
9189 | ||
9190 | ||
9191 | static PyObject * VScrolledWindow_swigregister(PyObject *, PyObject *args) { | |
9192 | PyObject *obj; | |
9193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9194 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9195 | Py_INCREF(obj); | |
9196 | return Py_BuildValue((char *)""); | |
9197 | } | |
9198 | static int _wrap_VListBoxNameStr_set(PyObject *) { | |
9199 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9200 | return 1; | |
9201 | } | |
9202 | ||
9203 | ||
9204 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9205 | PyObject *pyobj; | |
9206 | ||
9207 | { | |
9208 | #if wxUSE_UNICODE | |
9209 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9210 | #else | |
9211 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9212 | #endif | |
9213 | } | |
9214 | return pyobj; | |
9215 | } | |
9216 | ||
9217 | ||
9218 | static PyObject *_wrap_new_VListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
9219 | PyObject *resultobj; | |
9220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9221 | int arg2 = (int) wxID_ANY ; | |
9222 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9223 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9224 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9225 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9226 | long arg5 = (long) 0 ; | |
9227 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9228 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9229 | wxPyVListBox *result; | |
9230 | wxPoint temp3 ; | |
9231 | wxSize temp4 ; | |
9232 | bool temp6 = False ; | |
9233 | PyObject * obj0 = 0 ; | |
9234 | PyObject * obj1 = 0 ; | |
9235 | PyObject * obj2 = 0 ; | |
9236 | PyObject * obj3 = 0 ; | |
9237 | PyObject * obj4 = 0 ; | |
9238 | PyObject * obj5 = 0 ; | |
9239 | char *kwnames[] = { | |
9240 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9241 | }; | |
9242 | ||
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9246 | if (obj1) { | |
9247 | arg2 = (int) SWIG_AsInt(obj1); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | } | |
9250 | if (obj2) { | |
9251 | { | |
9252 | arg3 = &temp3; | |
9253 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9254 | } | |
9255 | } | |
9256 | if (obj3) { | |
9257 | { | |
9258 | arg4 = &temp4; | |
9259 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9260 | } | |
9261 | } | |
9262 | if (obj4) { | |
9263 | arg5 = (long) SWIG_AsLong(obj4); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | } | |
9266 | if (obj5) { | |
9267 | { | |
9268 | arg6 = wxString_in_helper(obj5); | |
9269 | if (arg6 == NULL) SWIG_fail; | |
9270 | temp6 = True; | |
9271 | } | |
9272 | } | |
9273 | { | |
9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9275 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9276 | ||
9277 | wxPyEndAllowThreads(__tstate); | |
9278 | if (PyErr_Occurred()) SWIG_fail; | |
9279 | } | |
9280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9281 | { | |
9282 | if (temp6) | |
9283 | delete arg6; | |
9284 | } | |
9285 | return resultobj; | |
9286 | fail: | |
9287 | { | |
9288 | if (temp6) | |
9289 | delete arg6; | |
9290 | } | |
9291 | return NULL; | |
9292 | } | |
9293 | ||
9294 | ||
9295 | static PyObject *_wrap_new_PreVListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
9296 | PyObject *resultobj; | |
9297 | wxPyVListBox *result; | |
9298 | char *kwnames[] = { | |
9299 | NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9303 | { | |
9304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9305 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9306 | ||
9307 | wxPyEndAllowThreads(__tstate); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | } | |
9310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9311 | return resultobj; | |
9312 | fail: | |
9313 | return NULL; | |
9314 | } | |
9315 | ||
9316 | ||
9317 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
9318 | PyObject *resultobj; | |
9319 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9320 | PyObject *arg2 = (PyObject *) 0 ; | |
9321 | PyObject *arg3 = (PyObject *) 0 ; | |
9322 | PyObject * obj0 = 0 ; | |
9323 | PyObject * obj1 = 0 ; | |
9324 | PyObject * obj2 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9332 | arg2 = obj1; | |
9333 | arg3 = obj2; | |
9334 | { | |
9335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9336 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9337 | ||
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
9341 | Py_INCREF(Py_None); resultobj = Py_None; | |
9342 | return resultobj; | |
9343 | fail: | |
9344 | return NULL; | |
9345 | } | |
9346 | ||
9347 | ||
9348 | static PyObject *_wrap_VListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
9349 | PyObject *resultobj; | |
9350 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9351 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9352 | int arg3 = (int) wxID_ANY ; | |
9353 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9354 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9355 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9356 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9357 | long arg6 = (long) 0 ; | |
9358 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9359 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9360 | bool result; | |
9361 | wxPoint temp4 ; | |
9362 | wxSize temp5 ; | |
9363 | bool temp7 = False ; | |
9364 | PyObject * obj0 = 0 ; | |
9365 | PyObject * obj1 = 0 ; | |
9366 | PyObject * obj2 = 0 ; | |
9367 | PyObject * obj3 = 0 ; | |
9368 | PyObject * obj4 = 0 ; | |
9369 | PyObject * obj5 = 0 ; | |
9370 | PyObject * obj6 = 0 ; | |
9371 | char *kwnames[] = { | |
9372 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9373 | }; | |
9374 | ||
9375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9380 | if (obj2) { | |
9381 | arg3 = (int) SWIG_AsInt(obj2); | |
9382 | if (PyErr_Occurred()) SWIG_fail; | |
9383 | } | |
9384 | if (obj3) { | |
9385 | { | |
9386 | arg4 = &temp4; | |
9387 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9388 | } | |
9389 | } | |
9390 | if (obj4) { | |
9391 | { | |
9392 | arg5 = &temp5; | |
9393 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9394 | } | |
9395 | } | |
9396 | if (obj5) { | |
9397 | arg6 = (long) SWIG_AsLong(obj5); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | } | |
9400 | if (obj6) { | |
9401 | { | |
9402 | arg7 = wxString_in_helper(obj6); | |
9403 | if (arg7 == NULL) SWIG_fail; | |
9404 | temp7 = True; | |
9405 | } | |
9406 | } | |
9407 | { | |
9408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9409 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9410 | ||
9411 | wxPyEndAllowThreads(__tstate); | |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | } | |
9414 | { | |
9415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9416 | } | |
9417 | { | |
9418 | if (temp7) | |
9419 | delete arg7; | |
9420 | } | |
9421 | return resultobj; | |
9422 | fail: | |
9423 | { | |
9424 | if (temp7) | |
9425 | delete arg7; | |
9426 | } | |
9427 | return NULL; | |
9428 | } | |
9429 | ||
9430 | ||
9431 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
9432 | PyObject *resultobj; | |
9433 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9434 | size_t result; | |
9435 | PyObject * obj0 = 0 ; | |
9436 | char *kwnames[] = { | |
9437 | (char *) "self", NULL | |
9438 | }; | |
9439 | ||
9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9443 | { | |
9444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9445 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9446 | ||
9447 | wxPyEndAllowThreads(__tstate); | |
9448 | if (PyErr_Occurred()) SWIG_fail; | |
9449 | } | |
9450 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9451 | return resultobj; | |
9452 | fail: | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
9457 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
9458 | PyObject *resultobj; | |
9459 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9460 | bool result; | |
9461 | PyObject * obj0 = 0 ; | |
9462 | char *kwnames[] = { | |
9463 | (char *) "self", NULL | |
9464 | }; | |
9465 | ||
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9469 | { | |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
9476 | { | |
9477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9478 | } | |
9479 | return resultobj; | |
9480 | fail: | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
9485 | static PyObject *_wrap_VListBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject *resultobj; | |
9487 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9488 | int result; | |
9489 | PyObject * obj0 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "self", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9497 | { | |
9498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9499 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9500 | ||
9501 | wxPyEndAllowThreads(__tstate); | |
9502 | if (PyErr_Occurred()) SWIG_fail; | |
9503 | } | |
9504 | resultobj = SWIG_FromInt((int)result); | |
9505 | return resultobj; | |
9506 | fail: | |
9507 | return NULL; | |
9508 | } | |
9509 | ||
9510 | ||
9511 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9512 | PyObject *resultobj; | |
9513 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9514 | size_t arg2 ; | |
9515 | bool result; | |
9516 | PyObject * obj0 = 0 ; | |
9517 | PyObject * obj1 = 0 ; | |
9518 | char *kwnames[] = { | |
9519 | (char *) "self",(char *) "item", NULL | |
9520 | }; | |
9521 | ||
9522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9525 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | { | |
9528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9529 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9530 | ||
9531 | wxPyEndAllowThreads(__tstate); | |
9532 | if (PyErr_Occurred()) SWIG_fail; | |
9533 | } | |
9534 | { | |
9535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9536 | } | |
9537 | return resultobj; | |
9538 | fail: | |
9539 | return NULL; | |
9540 | } | |
9541 | ||
9542 | ||
9543 | static PyObject *_wrap_VListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
9544 | PyObject *resultobj; | |
9545 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9546 | size_t arg2 ; | |
9547 | bool result; | |
9548 | PyObject * obj0 = 0 ; | |
9549 | PyObject * obj1 = 0 ; | |
9550 | char *kwnames[] = { | |
9551 | (char *) "self",(char *) "item", NULL | |
9552 | }; | |
9553 | ||
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9557 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | { | |
9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9561 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
9562 | ||
9563 | wxPyEndAllowThreads(__tstate); | |
9564 | if (PyErr_Occurred()) SWIG_fail; | |
9565 | } | |
9566 | { | |
9567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9568 | } | |
9569 | return resultobj; | |
9570 | fail: | |
9571 | return NULL; | |
9572 | } | |
9573 | ||
9574 | ||
9575 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
9576 | PyObject *resultobj; | |
9577 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9578 | size_t result; | |
9579 | PyObject * obj0 = 0 ; | |
9580 | char *kwnames[] = { | |
9581 | (char *) "self", NULL | |
9582 | }; | |
9583 | ||
9584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
9585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9587 | { | |
9588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9589 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
9590 | ||
9591 | wxPyEndAllowThreads(__tstate); | |
9592 | if (PyErr_Occurred()) SWIG_fail; | |
9593 | } | |
9594 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9595 | return resultobj; | |
9596 | fail: | |
9597 | return NULL; | |
9598 | } | |
9599 | ||
9600 | ||
9601 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
9602 | PyObject *resultobj; | |
9603 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9604 | unsigned long *arg2 = 0 ; | |
9605 | int result; | |
9606 | PyObject * obj0 = 0 ; | |
9607 | PyObject * obj1 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self",(char *) "cookie", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
9613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9617 | SWIG_fail; | |
9618 | if (arg2 == NULL) { | |
9619 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9620 | SWIG_fail; | |
9621 | } | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
9629 | resultobj = SWIG_FromInt((int)result); | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9639 | unsigned long *arg2 = 0 ; | |
9640 | int result; | |
9641 | PyObject * obj0 = 0 ; | |
9642 | PyObject * obj1 = 0 ; | |
9643 | char *kwnames[] = { | |
9644 | (char *) "self",(char *) "cookie", NULL | |
9645 | }; | |
9646 | ||
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
9648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9652 | SWIG_fail; | |
9653 | if (arg2 == NULL) { | |
9654 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9655 | SWIG_fail; | |
9656 | } | |
9657 | { | |
9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9659 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
9660 | ||
9661 | wxPyEndAllowThreads(__tstate); | |
9662 | if (PyErr_Occurred()) SWIG_fail; | |
9663 | } | |
9664 | resultobj = SWIG_FromInt((int)result); | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
9671 | static PyObject *_wrap_VListBox_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
9672 | PyObject *resultobj; | |
9673 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9674 | wxPoint result; | |
9675 | PyObject * obj0 = 0 ; | |
9676 | char *kwnames[] = { | |
9677 | (char *) "self", NULL | |
9678 | }; | |
9679 | ||
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
9681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9683 | { | |
9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9685 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
9686 | ||
9687 | wxPyEndAllowThreads(__tstate); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | { | |
9691 | wxPoint * resultptr; | |
9692 | resultptr = new wxPoint((wxPoint &) result); | |
9693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
9694 | } | |
9695 | return resultobj; | |
9696 | fail: | |
9697 | return NULL; | |
9698 | } | |
9699 | ||
9700 | ||
9701 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
9702 | PyObject *resultobj; | |
9703 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9704 | wxColour *result; | |
9705 | PyObject * obj0 = 0 ; | |
9706 | char *kwnames[] = { | |
9707 | (char *) "self", NULL | |
9708 | }; | |
9709 | ||
9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
9711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9713 | { | |
9714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9715 | { | |
9716 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
9717 | result = (wxColour *) &_result_ref; | |
9718 | } | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9724 | return resultobj; | |
9725 | fail: | |
9726 | return NULL; | |
9727 | } | |
9728 | ||
9729 | ||
9730 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
9731 | PyObject *resultobj; | |
9732 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9733 | size_t arg2 ; | |
9734 | PyObject * obj0 = 0 ; | |
9735 | PyObject * obj1 = 0 ; | |
9736 | char *kwnames[] = { | |
9737 | (char *) "self",(char *) "count", NULL | |
9738 | }; | |
9739 | ||
9740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
9741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9743 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9744 | if (PyErr_Occurred()) SWIG_fail; | |
9745 | { | |
9746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9747 | (arg1)->SetItemCount(arg2); | |
9748 | ||
9749 | wxPyEndAllowThreads(__tstate); | |
9750 | if (PyErr_Occurred()) SWIG_fail; | |
9751 | } | |
9752 | Py_INCREF(Py_None); resultobj = Py_None; | |
9753 | return resultobj; | |
9754 | fail: | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_VListBox_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9762 | PyObject * obj0 = 0 ; | |
9763 | char *kwnames[] = { | |
9764 | (char *) "self", NULL | |
9765 | }; | |
9766 | ||
9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
9768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9770 | { | |
9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9772 | (arg1)->Clear(); | |
9773 | ||
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | Py_INCREF(Py_None); resultobj = Py_None; | |
9778 | return resultobj; | |
9779 | fail: | |
9780 | return NULL; | |
9781 | } | |
9782 | ||
9783 | ||
9784 | static PyObject *_wrap_VListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
9785 | PyObject *resultobj; | |
9786 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9787 | int arg2 ; | |
9788 | PyObject * obj0 = 0 ; | |
9789 | PyObject * obj1 = 0 ; | |
9790 | char *kwnames[] = { | |
9791 | (char *) "self",(char *) "selection", NULL | |
9792 | }; | |
9793 | ||
9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
9795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9797 | arg2 = (int) SWIG_AsInt(obj1); | |
9798 | if (PyErr_Occurred()) SWIG_fail; | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | (arg1)->SetSelection(arg2); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
9806 | Py_INCREF(Py_None); resultobj = Py_None; | |
9807 | return resultobj; | |
9808 | fail: | |
9809 | return NULL; | |
9810 | } | |
9811 | ||
9812 | ||
9813 | static PyObject *_wrap_VListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { | |
9814 | PyObject *resultobj; | |
9815 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9816 | size_t arg2 ; | |
9817 | bool arg3 = (bool) True ; | |
9818 | bool result; | |
9819 | PyObject * obj0 = 0 ; | |
9820 | PyObject * obj1 = 0 ; | |
9821 | PyObject * obj2 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self",(char *) "item",(char *) "select", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9829 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | if (obj2) { | |
9832 | arg3 = (bool) SWIG_AsBool(obj2); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
9835 | { | |
9836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9837 | result = (bool)(arg1)->Select(arg2,arg3); | |
9838 | ||
9839 | wxPyEndAllowThreads(__tstate); | |
9840 | if (PyErr_Occurred()) SWIG_fail; | |
9841 | } | |
9842 | { | |
9843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9844 | } | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | return NULL; | |
9848 | } | |
9849 | ||
9850 | ||
9851 | static PyObject *_wrap_VListBox_SelectRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
9852 | PyObject *resultobj; | |
9853 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9854 | size_t arg2 ; | |
9855 | size_t arg3 ; | |
9856 | bool result; | |
9857 | PyObject * obj0 = 0 ; | |
9858 | PyObject * obj1 = 0 ; | |
9859 | PyObject * obj2 = 0 ; | |
9860 | char *kwnames[] = { | |
9861 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9862 | }; | |
9863 | ||
9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9867 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9868 | if (PyErr_Occurred()) SWIG_fail; | |
9869 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9870 | if (PyErr_Occurred()) SWIG_fail; | |
9871 | { | |
9872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9873 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
9874 | ||
9875 | wxPyEndAllowThreads(__tstate); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | } | |
9878 | { | |
9879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9880 | } | |
9881 | return resultobj; | |
9882 | fail: | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
9887 | static PyObject *_wrap_VListBox_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9890 | size_t arg2 ; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | PyObject * obj1 = 0 ; | |
9893 | char *kwnames[] = { | |
9894 | (char *) "self",(char *) "item", NULL | |
9895 | }; | |
9896 | ||
9897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
9898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9900 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9901 | if (PyErr_Occurred()) SWIG_fail; | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | (arg1)->Toggle(arg2); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) SWIG_fail; | |
9908 | } | |
9909 | Py_INCREF(Py_None); resultobj = Py_None; | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
9916 | static PyObject *_wrap_VListBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
9917 | PyObject *resultobj; | |
9918 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9919 | bool result; | |
9920 | PyObject * obj0 = 0 ; | |
9921 | char *kwnames[] = { | |
9922 | (char *) "self", NULL | |
9923 | }; | |
9924 | ||
9925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
9926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9928 | { | |
9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9930 | result = (bool)(arg1)->SelectAll(); | |
9931 | ||
9932 | wxPyEndAllowThreads(__tstate); | |
9933 | if (PyErr_Occurred()) SWIG_fail; | |
9934 | } | |
9935 | { | |
9936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9937 | } | |
9938 | return resultobj; | |
9939 | fail: | |
9940 | return NULL; | |
9941 | } | |
9942 | ||
9943 | ||
9944 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
9945 | PyObject *resultobj; | |
9946 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9947 | bool result; | |
9948 | PyObject * obj0 = 0 ; | |
9949 | char *kwnames[] = { | |
9950 | (char *) "self", NULL | |
9951 | }; | |
9952 | ||
9953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
9954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9956 | { | |
9957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9958 | result = (bool)(arg1)->DeselectAll(); | |
9959 | ||
9960 | wxPyEndAllowThreads(__tstate); | |
9961 | if (PyErr_Occurred()) SWIG_fail; | |
9962 | } | |
9963 | { | |
9964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9965 | } | |
9966 | return resultobj; | |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_VListBox_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9975 | wxPoint *arg2 = 0 ; | |
9976 | wxPoint temp2 ; | |
9977 | PyObject * obj0 = 0 ; | |
9978 | PyObject * obj1 = 0 ; | |
9979 | char *kwnames[] = { | |
9980 | (char *) "self",(char *) "pt", NULL | |
9981 | }; | |
9982 | ||
9983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
9984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9986 | { | |
9987 | arg2 = &temp2; | |
9988 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9989 | } | |
9990 | { | |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9992 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
9993 | ||
9994 | wxPyEndAllowThreads(__tstate); | |
9995 | if (PyErr_Occurred()) SWIG_fail; | |
9996 | } | |
9997 | Py_INCREF(Py_None); resultobj = Py_None; | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
10004 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { | |
10005 | PyObject *resultobj; | |
10006 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10007 | int arg2 ; | |
10008 | int arg3 ; | |
10009 | PyObject * obj0 = 0 ; | |
10010 | PyObject * obj1 = 0 ; | |
10011 | PyObject * obj2 = 0 ; | |
10012 | char *kwnames[] = { | |
10013 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10014 | }; | |
10015 | ||
10016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10019 | arg2 = (int) SWIG_AsInt(obj1); | |
10020 | if (PyErr_Occurred()) SWIG_fail; | |
10021 | arg3 = (int) SWIG_AsInt(obj2); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | (arg1)->SetMargins(arg2,arg3); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | Py_INCREF(Py_None); resultobj = Py_None; | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10040 | wxColour *arg2 = 0 ; | |
10041 | wxColour temp2 ; | |
10042 | PyObject * obj0 = 0 ; | |
10043 | PyObject * obj1 = 0 ; | |
10044 | char *kwnames[] = { | |
10045 | (char *) "self",(char *) "col", NULL | |
10046 | }; | |
10047 | ||
10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10051 | { | |
10052 | arg2 = &temp2; | |
10053 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10058 | ||
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
10062 | Py_INCREF(Py_None); resultobj = Py_None; | |
10063 | return resultobj; | |
10064 | fail: | |
10065 | return NULL; | |
10066 | } | |
10067 | ||
10068 | ||
10069 | static PyObject * VListBox_swigregister(PyObject *, PyObject *args) { | |
10070 | PyObject *obj; | |
10071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10072 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10073 | Py_INCREF(obj); | |
10074 | return Py_BuildValue((char *)""); | |
10075 | } | |
10076 | static PyObject *_wrap_new_HtmlListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj; | |
10078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10079 | int arg2 = (int) wxID_ANY ; | |
10080 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10081 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10082 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10083 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10084 | long arg5 = (long) 0 ; | |
10085 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10086 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10087 | wxPyHtmlListBox *result; | |
10088 | wxPoint temp3 ; | |
10089 | wxSize temp4 ; | |
10090 | bool temp6 = False ; | |
10091 | PyObject * obj0 = 0 ; | |
10092 | PyObject * obj1 = 0 ; | |
10093 | PyObject * obj2 = 0 ; | |
10094 | PyObject * obj3 = 0 ; | |
10095 | PyObject * obj4 = 0 ; | |
10096 | PyObject * obj5 = 0 ; | |
10097 | char *kwnames[] = { | |
10098 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10099 | }; | |
10100 | ||
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10104 | if (obj1) { | |
10105 | arg2 = (int) SWIG_AsInt(obj1); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | if (obj2) { | |
10109 | { | |
10110 | arg3 = &temp3; | |
10111 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10112 | } | |
10113 | } | |
10114 | if (obj3) { | |
10115 | { | |
10116 | arg4 = &temp4; | |
10117 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10118 | } | |
10119 | } | |
10120 | if (obj4) { | |
10121 | arg5 = (long) SWIG_AsLong(obj4); | |
10122 | if (PyErr_Occurred()) SWIG_fail; | |
10123 | } | |
10124 | if (obj5) { | |
10125 | { | |
10126 | arg6 = wxString_in_helper(obj5); | |
10127 | if (arg6 == NULL) SWIG_fail; | |
10128 | temp6 = True; | |
10129 | } | |
10130 | } | |
10131 | { | |
10132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10133 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10134 | ||
10135 | wxPyEndAllowThreads(__tstate); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10139 | { | |
10140 | if (temp6) | |
10141 | delete arg6; | |
10142 | } | |
10143 | return resultobj; | |
10144 | fail: | |
10145 | { | |
10146 | if (temp6) | |
10147 | delete arg6; | |
10148 | } | |
10149 | return NULL; | |
10150 | } | |
10151 | ||
10152 | ||
10153 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
10154 | PyObject *resultobj; | |
10155 | wxPyHtmlListBox *result; | |
10156 | char *kwnames[] = { | |
10157 | NULL | |
10158 | }; | |
10159 | ||
10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10161 | { | |
10162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10163 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10164 | ||
10165 | wxPyEndAllowThreads(__tstate); | |
10166 | if (PyErr_Occurred()) SWIG_fail; | |
10167 | } | |
10168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10169 | return resultobj; | |
10170 | fail: | |
10171 | return NULL; | |
10172 | } | |
10173 | ||
10174 | ||
10175 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject *resultobj; | |
10177 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10178 | PyObject *arg2 = (PyObject *) 0 ; | |
10179 | PyObject *arg3 = (PyObject *) 0 ; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | PyObject * obj1 = 0 ; | |
10182 | PyObject * obj2 = 0 ; | |
10183 | char *kwnames[] = { | |
10184 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10185 | }; | |
10186 | ||
10187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10190 | arg2 = obj1; | |
10191 | arg3 = obj2; | |
10192 | { | |
10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10194 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10195 | ||
10196 | wxPyEndAllowThreads(__tstate); | |
10197 | if (PyErr_Occurred()) SWIG_fail; | |
10198 | } | |
10199 | Py_INCREF(Py_None); resultobj = Py_None; | |
10200 | return resultobj; | |
10201 | fail: | |
10202 | return NULL; | |
10203 | } | |
10204 | ||
10205 | ||
10206 | static PyObject *_wrap_HtmlListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
10207 | PyObject *resultobj; | |
10208 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10210 | int arg3 = (int) wxID_ANY ; | |
10211 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10212 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10213 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10214 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10215 | long arg6 = (long) 0 ; | |
10216 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10217 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10218 | bool result; | |
10219 | wxPoint temp4 ; | |
10220 | wxSize temp5 ; | |
10221 | bool temp7 = False ; | |
10222 | PyObject * obj0 = 0 ; | |
10223 | PyObject * obj1 = 0 ; | |
10224 | PyObject * obj2 = 0 ; | |
10225 | PyObject * obj3 = 0 ; | |
10226 | PyObject * obj4 = 0 ; | |
10227 | PyObject * obj5 = 0 ; | |
10228 | PyObject * obj6 = 0 ; | |
10229 | char *kwnames[] = { | |
10230 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10231 | }; | |
10232 | ||
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10236 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10238 | if (obj2) { | |
10239 | arg3 = (int) SWIG_AsInt(obj2); | |
10240 | if (PyErr_Occurred()) SWIG_fail; | |
10241 | } | |
10242 | if (obj3) { | |
10243 | { | |
10244 | arg4 = &temp4; | |
10245 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10246 | } | |
10247 | } | |
10248 | if (obj4) { | |
10249 | { | |
10250 | arg5 = &temp5; | |
10251 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10252 | } | |
10253 | } | |
10254 | if (obj5) { | |
10255 | arg6 = (long) SWIG_AsLong(obj5); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
10258 | if (obj6) { | |
10259 | { | |
10260 | arg7 = wxString_in_helper(obj6); | |
10261 | if (arg7 == NULL) SWIG_fail; | |
10262 | temp7 = True; | |
10263 | } | |
10264 | } | |
10265 | { | |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
10272 | { | |
10273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10274 | } | |
10275 | { | |
10276 | if (temp7) | |
10277 | delete arg7; | |
10278 | } | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | { | |
10282 | if (temp7) | |
10283 | delete arg7; | |
10284 | } | |
10285 | return NULL; | |
10286 | } | |
10287 | ||
10288 | ||
10289 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
10290 | PyObject *resultobj; | |
10291 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10292 | PyObject * obj0 = 0 ; | |
10293 | char *kwnames[] = { | |
10294 | (char *) "self", NULL | |
10295 | }; | |
10296 | ||
10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10300 | { | |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10302 | (arg1)->RefreshAll(); | |
10303 | ||
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | Py_INCREF(Py_None); resultobj = Py_None; | |
10308 | return resultobj; | |
10309 | fail: | |
10310 | return NULL; | |
10311 | } | |
10312 | ||
10313 | ||
10314 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
10315 | PyObject *resultobj; | |
10316 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10317 | size_t arg2 ; | |
10318 | PyObject * obj0 = 0 ; | |
10319 | PyObject * obj1 = 0 ; | |
10320 | char *kwnames[] = { | |
10321 | (char *) "self",(char *) "count", NULL | |
10322 | }; | |
10323 | ||
10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10327 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10328 | if (PyErr_Occurred()) SWIG_fail; | |
10329 | { | |
10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10331 | (arg1)->SetItemCount(arg2); | |
10332 | ||
10333 | wxPyEndAllowThreads(__tstate); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | } | |
10336 | Py_INCREF(Py_None); resultobj = Py_None; | |
10337 | return resultobj; | |
10338 | fail: | |
10339 | return NULL; | |
10340 | } | |
10341 | ||
10342 | ||
10343 | static PyObject * HtmlListBox_swigregister(PyObject *, PyObject *args) { | |
10344 | PyObject *obj; | |
10345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10346 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10347 | Py_INCREF(obj); | |
10348 | return Py_BuildValue((char *)""); | |
10349 | } | |
10350 | static PyObject *_wrap_new_TaskBarIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
10351 | PyObject *resultobj; | |
10352 | wxTaskBarIcon *result; | |
10353 | char *kwnames[] = { | |
10354 | NULL | |
10355 | }; | |
10356 | ||
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10360 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10361 | ||
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
10365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
10373 | PyObject *resultobj; | |
10374 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10375 | PyObject * obj0 = 0 ; | |
10376 | char *kwnames[] = { | |
10377 | (char *) "self", NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10383 | { | |
10384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10385 | delete arg1; | |
10386 | ||
10387 | wxPyEndAllowThreads(__tstate); | |
10388 | if (PyErr_Occurred()) SWIG_fail; | |
10389 | } | |
10390 | Py_INCREF(Py_None); resultobj = Py_None; | |
10391 | return resultobj; | |
10392 | fail: | |
10393 | return NULL; | |
10394 | } | |
10395 | ||
10396 | ||
10397 | static PyObject * TaskBarIcon_swigregister(PyObject *, PyObject *args) { | |
10398 | PyObject *obj; | |
10399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10400 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
10401 | Py_INCREF(obj); | |
10402 | return Py_BuildValue((char *)""); | |
10403 | } | |
10404 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
10405 | PyObject *resultobj; | |
10406 | wxEventType arg1 ; | |
10407 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
10408 | wxTaskBarIconEvent *result; | |
10409 | PyObject * obj0 = 0 ; | |
10410 | PyObject * obj1 = 0 ; | |
10411 | char *kwnames[] = { | |
10412 | (char *) "evtType",(char *) "tbIcon", NULL | |
10413 | }; | |
10414 | ||
10415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
10416 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10417 | if (PyErr_Occurred()) SWIG_fail; | |
10418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
10419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10420 | { | |
10421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10422 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
10423 | ||
10424 | wxPyEndAllowThreads(__tstate); | |
10425 | if (PyErr_Occurred()) SWIG_fail; | |
10426 | } | |
10427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
10434 | static PyObject * TaskBarIconEvent_swigregister(PyObject *, PyObject *args) { | |
10435 | PyObject *obj; | |
10436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10437 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
10438 | Py_INCREF(obj); | |
10439 | return Py_BuildValue((char *)""); | |
10440 | } | |
10441 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
10442 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
10443 | return 1; | |
10444 | } | |
10445 | ||
10446 | ||
10447 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
10448 | PyObject *pyobj; | |
10449 | ||
10450 | { | |
10451 | #if wxUSE_UNICODE | |
10452 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10453 | #else | |
10454 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10455 | #endif | |
10456 | } | |
10457 | return pyobj; | |
10458 | } | |
10459 | ||
10460 | ||
10461 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
10462 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
10463 | return 1; | |
10464 | } | |
10465 | ||
10466 | ||
10467 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
10468 | PyObject *pyobj; | |
10469 | ||
10470 | { | |
10471 | #if wxUSE_UNICODE | |
10472 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10473 | #else | |
10474 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10475 | #endif | |
10476 | } | |
10477 | return pyobj; | |
10478 | } | |
10479 | ||
10480 | ||
10481 | static int _wrap_DirDialogNameStr_set(PyObject *) { | |
10482 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
10483 | return 1; | |
10484 | } | |
10485 | ||
10486 | ||
10487 | static PyObject *_wrap_DirDialogNameStr_get() { | |
10488 | PyObject *pyobj; | |
10489 | ||
10490 | { | |
10491 | #if wxUSE_UNICODE | |
10492 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10493 | #else | |
10494 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10495 | #endif | |
10496 | } | |
10497 | return pyobj; | |
10498 | } | |
10499 | ||
10500 | ||
10501 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
10502 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
10503 | return 1; | |
10504 | } | |
10505 | ||
10506 | ||
10507 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
10508 | PyObject *pyobj; | |
10509 | ||
10510 | { | |
10511 | #if wxUSE_UNICODE | |
10512 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10513 | #else | |
10514 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10515 | #endif | |
10516 | } | |
10517 | return pyobj; | |
10518 | } | |
10519 | ||
10520 | ||
10521 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *) { | |
10522 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
10523 | return 1; | |
10524 | } | |
10525 | ||
10526 | ||
10527 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
10528 | PyObject *pyobj; | |
10529 | ||
10530 | { | |
10531 | #if wxUSE_UNICODE | |
10532 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10533 | #else | |
10534 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10535 | #endif | |
10536 | } | |
10537 | return pyobj; | |
10538 | } | |
10539 | ||
10540 | ||
10541 | static int _wrap_MessageBoxCaptionStr_set(PyObject *) { | |
10542 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
10543 | return 1; | |
10544 | } | |
10545 | ||
10546 | ||
10547 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
10548 | PyObject *pyobj; | |
10549 | ||
10550 | { | |
10551 | #if wxUSE_UNICODE | |
10552 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10553 | #else | |
10554 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10555 | #endif | |
10556 | } | |
10557 | return pyobj; | |
10558 | } | |
10559 | ||
10560 | ||
10561 | static PyObject *_wrap_new_ColourData(PyObject *, PyObject *args, PyObject *kwargs) { | |
10562 | PyObject *resultobj; | |
10563 | wxColourData *result; | |
10564 | char *kwnames[] = { | |
10565 | NULL | |
10566 | }; | |
10567 | ||
10568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
10569 | { | |
10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10571 | result = (wxColourData *)new wxColourData(); | |
10572 | ||
10573 | wxPyEndAllowThreads(__tstate); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
10577 | return resultobj; | |
10578 | fail: | |
10579 | return NULL; | |
10580 | } | |
10581 | ||
10582 | ||
10583 | static PyObject *_wrap_delete_ColourData(PyObject *, PyObject *args, PyObject *kwargs) { | |
10584 | PyObject *resultobj; | |
10585 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10586 | PyObject * obj0 = 0 ; | |
10587 | char *kwnames[] = { | |
10588 | (char *) "self", NULL | |
10589 | }; | |
10590 | ||
10591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
10592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | delete arg1; | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | Py_INCREF(Py_None); resultobj = Py_None; | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *, PyObject *args, PyObject *kwargs) { | |
10609 | PyObject *resultobj; | |
10610 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10611 | bool result; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | char *kwnames[] = { | |
10614 | (char *) "self", NULL | |
10615 | }; | |
10616 | ||
10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
10618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10620 | { | |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10622 | result = (bool)(arg1)->GetChooseFull(); | |
10623 | ||
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
10626 | } | |
10627 | { | |
10628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10629 | } | |
10630 | return resultobj; | |
10631 | fail: | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
10636 | static PyObject *_wrap_ColourData_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject *resultobj; | |
10638 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10639 | wxColour result; | |
10640 | PyObject * obj0 = 0 ; | |
10641 | char *kwnames[] = { | |
10642 | (char *) "self", NULL | |
10643 | }; | |
10644 | ||
10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
10646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10648 | { | |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | result = (arg1)->GetColour(); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | { | |
10656 | wxColour * resultptr; | |
10657 | resultptr = new wxColour((wxColour &) result); | |
10658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10659 | } | |
10660 | return resultobj; | |
10661 | fail: | |
10662 | return NULL; | |
10663 | } | |
10664 | ||
10665 | ||
10666 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10667 | PyObject *resultobj; | |
10668 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10669 | int arg2 ; | |
10670 | wxColour result; | |
10671 | PyObject * obj0 = 0 ; | |
10672 | PyObject * obj1 = 0 ; | |
10673 | char *kwnames[] = { | |
10674 | (char *) "self",(char *) "i", NULL | |
10675 | }; | |
10676 | ||
10677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
10678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10680 | arg2 = (int) SWIG_AsInt(obj1); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | { | |
10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10684 | result = (arg1)->GetCustomColour(arg2); | |
10685 | ||
10686 | wxPyEndAllowThreads(__tstate); | |
10687 | if (PyErr_Occurred()) SWIG_fail; | |
10688 | } | |
10689 | { | |
10690 | wxColour * resultptr; | |
10691 | resultptr = new wxColour((wxColour &) result); | |
10692 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10693 | } | |
10694 | return resultobj; | |
10695 | fail: | |
10696 | return NULL; | |
10697 | } | |
10698 | ||
10699 | ||
10700 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject *resultobj; | |
10702 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10703 | int arg2 ; | |
10704 | PyObject * obj0 = 0 ; | |
10705 | PyObject * obj1 = 0 ; | |
10706 | char *kwnames[] = { | |
10707 | (char *) "self",(char *) "flag", NULL | |
10708 | }; | |
10709 | ||
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
10711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10713 | arg2 = (int) SWIG_AsInt(obj1); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | { | |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | (arg1)->SetChooseFull(arg2); | |
10718 | ||
10719 | wxPyEndAllowThreads(__tstate); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | } | |
10722 | Py_INCREF(Py_None); resultobj = Py_None; | |
10723 | return resultobj; | |
10724 | fail: | |
10725 | return NULL; | |
10726 | } | |
10727 | ||
10728 | ||
10729 | static PyObject *_wrap_ColourData_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10730 | PyObject *resultobj; | |
10731 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10732 | wxColour *arg2 = 0 ; | |
10733 | wxColour temp2 ; | |
10734 | PyObject * obj0 = 0 ; | |
10735 | PyObject * obj1 = 0 ; | |
10736 | char *kwnames[] = { | |
10737 | (char *) "self",(char *) "colour", NULL | |
10738 | }; | |
10739 | ||
10740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
10741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10743 | { | |
10744 | arg2 = &temp2; | |
10745 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10746 | } | |
10747 | { | |
10748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10749 | (arg1)->SetColour((wxColour const &)*arg2); | |
10750 | ||
10751 | wxPyEndAllowThreads(__tstate); | |
10752 | if (PyErr_Occurred()) SWIG_fail; | |
10753 | } | |
10754 | Py_INCREF(Py_None); resultobj = Py_None; | |
10755 | return resultobj; | |
10756 | fail: | |
10757 | return NULL; | |
10758 | } | |
10759 | ||
10760 | ||
10761 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
10762 | PyObject *resultobj; | |
10763 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10764 | int arg2 ; | |
10765 | wxColour *arg3 = 0 ; | |
10766 | wxColour temp3 ; | |
10767 | PyObject * obj0 = 0 ; | |
10768 | PyObject * obj1 = 0 ; | |
10769 | PyObject * obj2 = 0 ; | |
10770 | char *kwnames[] = { | |
10771 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10777 | arg2 = (int) SWIG_AsInt(obj1); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | { | |
10780 | arg3 = &temp3; | |
10781 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10782 | } | |
10783 | { | |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | Py_INCREF(Py_None); resultobj = Py_None; | |
10791 | return resultobj; | |
10792 | fail: | |
10793 | return NULL; | |
10794 | } | |
10795 | ||
10796 | ||
10797 | static PyObject * ColourData_swigregister(PyObject *, PyObject *args) { | |
10798 | PyObject *obj; | |
10799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10800 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
10801 | Py_INCREF(obj); | |
10802 | return Py_BuildValue((char *)""); | |
10803 | } | |
10804 | static PyObject *_wrap_new_ColourDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
10805 | PyObject *resultobj; | |
10806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10807 | wxColourData *arg2 = (wxColourData *) NULL ; | |
10808 | wxColourDialog *result; | |
10809 | PyObject * obj0 = 0 ; | |
10810 | PyObject * obj1 = 0 ; | |
10811 | char *kwnames[] = { | |
10812 | (char *) "parent",(char *) "data", NULL | |
10813 | }; | |
10814 | ||
10815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
10816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10818 | if (obj1) { | |
10819 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
10820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10821 | } | |
10822 | { | |
10823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10824 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
10825 | ||
10826 | wxPyEndAllowThreads(__tstate); | |
10827 | if (PyErr_Occurred()) SWIG_fail; | |
10828 | } | |
10829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
10830 | return resultobj; | |
10831 | fail: | |
10832 | return NULL; | |
10833 | } | |
10834 | ||
10835 | ||
10836 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *, PyObject *args, PyObject *kwargs) { | |
10837 | PyObject *resultobj; | |
10838 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
10839 | wxColourData *result; | |
10840 | PyObject * obj0 = 0 ; | |
10841 | char *kwnames[] = { | |
10842 | (char *) "self", NULL | |
10843 | }; | |
10844 | ||
10845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
10846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
10847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10848 | { | |
10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10850 | { | |
10851 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
10852 | result = (wxColourData *) &_result_ref; | |
10853 | } | |
10854 | ||
10855 | wxPyEndAllowThreads(__tstate); | |
10856 | if (PyErr_Occurred()) SWIG_fail; | |
10857 | } | |
10858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
10859 | return resultobj; | |
10860 | fail: | |
10861 | return NULL; | |
10862 | } | |
10863 | ||
10864 | ||
10865 | static PyObject * ColourDialog_swigregister(PyObject *, PyObject *args) { | |
10866 | PyObject *obj; | |
10867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10868 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
10869 | Py_INCREF(obj); | |
10870 | return Py_BuildValue((char *)""); | |
10871 | } | |
10872 | static PyObject *_wrap_new_DirDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
10873 | PyObject *resultobj; | |
10874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10875 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
10876 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10877 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10878 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10879 | long arg4 = (long) 0 ; | |
10880 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10881 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10882 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10883 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10884 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
10885 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10886 | wxDirDialog *result; | |
10887 | bool temp2 = False ; | |
10888 | bool temp3 = False ; | |
10889 | wxPoint temp5 ; | |
10890 | wxSize temp6 ; | |
10891 | bool temp7 = False ; | |
10892 | PyObject * obj0 = 0 ; | |
10893 | PyObject * obj1 = 0 ; | |
10894 | PyObject * obj2 = 0 ; | |
10895 | PyObject * obj3 = 0 ; | |
10896 | PyObject * obj4 = 0 ; | |
10897 | PyObject * obj5 = 0 ; | |
10898 | PyObject * obj6 = 0 ; | |
10899 | char *kwnames[] = { | |
10900 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
10901 | }; | |
10902 | ||
10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10906 | if (obj1) { | |
10907 | { | |
10908 | arg2 = wxString_in_helper(obj1); | |
10909 | if (arg2 == NULL) SWIG_fail; | |
10910 | temp2 = True; | |
10911 | } | |
10912 | } | |
10913 | if (obj2) { | |
10914 | { | |
10915 | arg3 = wxString_in_helper(obj2); | |
10916 | if (arg3 == NULL) SWIG_fail; | |
10917 | temp3 = True; | |
10918 | } | |
10919 | } | |
10920 | if (obj3) { | |
10921 | arg4 = (long) SWIG_AsLong(obj3); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | if (obj4) { | |
10925 | { | |
10926 | arg5 = &temp5; | |
10927 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10928 | } | |
10929 | } | |
10930 | if (obj5) { | |
10931 | { | |
10932 | arg6 = &temp6; | |
10933 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10934 | } | |
10935 | } | |
10936 | if (obj6) { | |
10937 | { | |
10938 | arg7 = wxString_in_helper(obj6); | |
10939 | if (arg7 == NULL) SWIG_fail; | |
10940 | temp7 = True; | |
10941 | } | |
10942 | } | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
10951 | { | |
10952 | if (temp2) | |
10953 | delete arg2; | |
10954 | } | |
10955 | { | |
10956 | if (temp3) | |
10957 | delete arg3; | |
10958 | } | |
10959 | { | |
10960 | if (temp7) | |
10961 | delete arg7; | |
10962 | } | |
10963 | return resultobj; | |
10964 | fail: | |
10965 | { | |
10966 | if (temp2) | |
10967 | delete arg2; | |
10968 | } | |
10969 | { | |
10970 | if (temp3) | |
10971 | delete arg3; | |
10972 | } | |
10973 | { | |
10974 | if (temp7) | |
10975 | delete arg7; | |
10976 | } | |
10977 | return NULL; | |
10978 | } | |
10979 | ||
10980 | ||
10981 | static PyObject *_wrap_DirDialog_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
10982 | PyObject *resultobj; | |
10983 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
10984 | wxString result; | |
10985 | PyObject * obj0 = 0 ; | |
10986 | char *kwnames[] = { | |
10987 | (char *) "self", NULL | |
10988 | }; | |
10989 | ||
10990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
10991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
10992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10993 | { | |
10994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10995 | result = (arg1)->GetPath(); | |
10996 | ||
10997 | wxPyEndAllowThreads(__tstate); | |
10998 | if (PyErr_Occurred()) SWIG_fail; | |
10999 | } | |
11000 | { | |
11001 | #if wxUSE_UNICODE | |
11002 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11003 | #else | |
11004 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11005 | #endif | |
11006 | } | |
11007 | return resultobj; | |
11008 | fail: | |
11009 | return NULL; | |
11010 | } | |
11011 | ||
11012 | ||
11013 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *, PyObject *args, PyObject *kwargs) { | |
11014 | PyObject *resultobj; | |
11015 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11016 | wxString result; | |
11017 | PyObject * obj0 = 0 ; | |
11018 | char *kwnames[] = { | |
11019 | (char *) "self", NULL | |
11020 | }; | |
11021 | ||
11022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (arg1)->GetMessage(); | |
11028 | ||
11029 | wxPyEndAllowThreads(__tstate); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | { | |
11033 | #if wxUSE_UNICODE | |
11034 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11035 | #else | |
11036 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11037 | #endif | |
11038 | } | |
11039 | return resultobj; | |
11040 | fail: | |
11041 | return NULL; | |
11042 | } | |
11043 | ||
11044 | ||
11045 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
11046 | PyObject *resultobj; | |
11047 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11048 | long result; | |
11049 | PyObject * obj0 = 0 ; | |
11050 | char *kwnames[] = { | |
11051 | (char *) "self", NULL | |
11052 | }; | |
11053 | ||
11054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11057 | { | |
11058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11059 | result = (long)(arg1)->GetStyle(); | |
11060 | ||
11061 | wxPyEndAllowThreads(__tstate); | |
11062 | if (PyErr_Occurred()) SWIG_fail; | |
11063 | } | |
11064 | resultobj = SWIG_FromLong((long)result); | |
11065 | return resultobj; | |
11066 | fail: | |
11067 | return NULL; | |
11068 | } | |
11069 | ||
11070 | ||
11071 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *, PyObject *args, PyObject *kwargs) { | |
11072 | PyObject *resultobj; | |
11073 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11074 | wxString *arg2 = 0 ; | |
11075 | bool temp2 = False ; | |
11076 | PyObject * obj0 = 0 ; | |
11077 | PyObject * obj1 = 0 ; | |
11078 | char *kwnames[] = { | |
11079 | (char *) "self",(char *) "message", NULL | |
11080 | }; | |
11081 | ||
11082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11085 | { | |
11086 | arg2 = wxString_in_helper(obj1); | |
11087 | if (arg2 == NULL) SWIG_fail; | |
11088 | temp2 = True; | |
11089 | } | |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | (arg1)->SetMessage((wxString const &)*arg2); | |
11093 | ||
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | Py_INCREF(Py_None); resultobj = Py_None; | |
11098 | { | |
11099 | if (temp2) | |
11100 | delete arg2; | |
11101 | } | |
11102 | return resultobj; | |
11103 | fail: | |
11104 | { | |
11105 | if (temp2) | |
11106 | delete arg2; | |
11107 | } | |
11108 | return NULL; | |
11109 | } | |
11110 | ||
11111 | ||
11112 | static PyObject *_wrap_DirDialog_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
11113 | PyObject *resultobj; | |
11114 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11115 | wxString *arg2 = 0 ; | |
11116 | bool temp2 = False ; | |
11117 | PyObject * obj0 = 0 ; | |
11118 | PyObject * obj1 = 0 ; | |
11119 | char *kwnames[] = { | |
11120 | (char *) "self",(char *) "path", NULL | |
11121 | }; | |
11122 | ||
11123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11126 | { | |
11127 | arg2 = wxString_in_helper(obj1); | |
11128 | if (arg2 == NULL) SWIG_fail; | |
11129 | temp2 = True; | |
11130 | } | |
11131 | { | |
11132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11133 | (arg1)->SetPath((wxString const &)*arg2); | |
11134 | ||
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
11138 | Py_INCREF(Py_None); resultobj = Py_None; | |
11139 | { | |
11140 | if (temp2) | |
11141 | delete arg2; | |
11142 | } | |
11143 | return resultobj; | |
11144 | fail: | |
11145 | { | |
11146 | if (temp2) | |
11147 | delete arg2; | |
11148 | } | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | static PyObject * DirDialog_swigregister(PyObject *, PyObject *args) { | |
11154 | PyObject *obj; | |
11155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11156 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11157 | Py_INCREF(obj); | |
11158 | return Py_BuildValue((char *)""); | |
11159 | } | |
11160 | static PyObject *_wrap_new_FileDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
11161 | PyObject *resultobj; | |
11162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11163 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11164 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11165 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11166 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11167 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11168 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11169 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11170 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11171 | long arg6 = (long) 0 ; | |
11172 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11173 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11174 | wxFileDialog *result; | |
11175 | bool temp2 = False ; | |
11176 | bool temp3 = False ; | |
11177 | bool temp4 = False ; | |
11178 | bool temp5 = False ; | |
11179 | wxPoint temp7 ; | |
11180 | PyObject * obj0 = 0 ; | |
11181 | PyObject * obj1 = 0 ; | |
11182 | PyObject * obj2 = 0 ; | |
11183 | PyObject * obj3 = 0 ; | |
11184 | PyObject * obj4 = 0 ; | |
11185 | PyObject * obj5 = 0 ; | |
11186 | PyObject * obj6 = 0 ; | |
11187 | char *kwnames[] = { | |
11188 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11189 | }; | |
11190 | ||
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11194 | if (obj1) { | |
11195 | { | |
11196 | arg2 = wxString_in_helper(obj1); | |
11197 | if (arg2 == NULL) SWIG_fail; | |
11198 | temp2 = True; | |
11199 | } | |
11200 | } | |
11201 | if (obj2) { | |
11202 | { | |
11203 | arg3 = wxString_in_helper(obj2); | |
11204 | if (arg3 == NULL) SWIG_fail; | |
11205 | temp3 = True; | |
11206 | } | |
11207 | } | |
11208 | if (obj3) { | |
11209 | { | |
11210 | arg4 = wxString_in_helper(obj3); | |
11211 | if (arg4 == NULL) SWIG_fail; | |
11212 | temp4 = True; | |
11213 | } | |
11214 | } | |
11215 | if (obj4) { | |
11216 | { | |
11217 | arg5 = wxString_in_helper(obj4); | |
11218 | if (arg5 == NULL) SWIG_fail; | |
11219 | temp5 = True; | |
11220 | } | |
11221 | } | |
11222 | if (obj5) { | |
11223 | arg6 = (long) SWIG_AsLong(obj5); | |
11224 | if (PyErr_Occurred()) SWIG_fail; | |
11225 | } | |
11226 | if (obj6) { | |
11227 | { | |
11228 | arg7 = &temp7; | |
11229 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11230 | } | |
11231 | } | |
11232 | { | |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11234 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11235 | ||
11236 | wxPyEndAllowThreads(__tstate); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | } | |
11239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
11240 | { | |
11241 | if (temp2) | |
11242 | delete arg2; | |
11243 | } | |
11244 | { | |
11245 | if (temp3) | |
11246 | delete arg3; | |
11247 | } | |
11248 | { | |
11249 | if (temp4) | |
11250 | delete arg4; | |
11251 | } | |
11252 | { | |
11253 | if (temp5) | |
11254 | delete arg5; | |
11255 | } | |
11256 | return resultobj; | |
11257 | fail: | |
11258 | { | |
11259 | if (temp2) | |
11260 | delete arg2; | |
11261 | } | |
11262 | { | |
11263 | if (temp3) | |
11264 | delete arg3; | |
11265 | } | |
11266 | { | |
11267 | if (temp4) | |
11268 | delete arg4; | |
11269 | } | |
11270 | { | |
11271 | if (temp5) | |
11272 | delete arg5; | |
11273 | } | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *, PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj; | |
11280 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11281 | wxString *arg2 = 0 ; | |
11282 | bool temp2 = False ; | |
11283 | PyObject * obj0 = 0 ; | |
11284 | PyObject * obj1 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "self",(char *) "message", NULL | |
11287 | }; | |
11288 | ||
11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11292 | { | |
11293 | arg2 = wxString_in_helper(obj1); | |
11294 | if (arg2 == NULL) SWIG_fail; | |
11295 | temp2 = True; | |
11296 | } | |
11297 | { | |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | (arg1)->SetMessage((wxString const &)*arg2); | |
11300 | ||
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
11304 | Py_INCREF(Py_None); resultobj = Py_None; | |
11305 | { | |
11306 | if (temp2) | |
11307 | delete arg2; | |
11308 | } | |
11309 | return resultobj; | |
11310 | fail: | |
11311 | { | |
11312 | if (temp2) | |
11313 | delete arg2; | |
11314 | } | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
11319 | static PyObject *_wrap_FileDialog_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
11320 | PyObject *resultobj; | |
11321 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11322 | wxString *arg2 = 0 ; | |
11323 | bool temp2 = False ; | |
11324 | PyObject * obj0 = 0 ; | |
11325 | PyObject * obj1 = 0 ; | |
11326 | char *kwnames[] = { | |
11327 | (char *) "self",(char *) "path", NULL | |
11328 | }; | |
11329 | ||
11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11333 | { | |
11334 | arg2 = wxString_in_helper(obj1); | |
11335 | if (arg2 == NULL) SWIG_fail; | |
11336 | temp2 = True; | |
11337 | } | |
11338 | { | |
11339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11340 | (arg1)->SetPath((wxString const &)*arg2); | |
11341 | ||
11342 | wxPyEndAllowThreads(__tstate); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | Py_INCREF(Py_None); resultobj = Py_None; | |
11346 | { | |
11347 | if (temp2) | |
11348 | delete arg2; | |
11349 | } | |
11350 | return resultobj; | |
11351 | fail: | |
11352 | { | |
11353 | if (temp2) | |
11354 | delete arg2; | |
11355 | } | |
11356 | return NULL; | |
11357 | } | |
11358 | ||
11359 | ||
11360 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *, PyObject *args, PyObject *kwargs) { | |
11361 | PyObject *resultobj; | |
11362 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11363 | wxString *arg2 = 0 ; | |
11364 | bool temp2 = False ; | |
11365 | PyObject * obj0 = 0 ; | |
11366 | PyObject * obj1 = 0 ; | |
11367 | char *kwnames[] = { | |
11368 | (char *) "self",(char *) "dir", NULL | |
11369 | }; | |
11370 | ||
11371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
11372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11374 | { | |
11375 | arg2 = wxString_in_helper(obj1); | |
11376 | if (arg2 == NULL) SWIG_fail; | |
11377 | temp2 = True; | |
11378 | } | |
11379 | { | |
11380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11381 | (arg1)->SetDirectory((wxString const &)*arg2); | |
11382 | ||
11383 | wxPyEndAllowThreads(__tstate); | |
11384 | if (PyErr_Occurred()) SWIG_fail; | |
11385 | } | |
11386 | Py_INCREF(Py_None); resultobj = Py_None; | |
11387 | { | |
11388 | if (temp2) | |
11389 | delete arg2; | |
11390 | } | |
11391 | return resultobj; | |
11392 | fail: | |
11393 | { | |
11394 | if (temp2) | |
11395 | delete arg2; | |
11396 | } | |
11397 | return NULL; | |
11398 | } | |
11399 | ||
11400 | ||
11401 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11404 | wxString *arg2 = 0 ; | |
11405 | bool temp2 = False ; | |
11406 | PyObject * obj0 = 0 ; | |
11407 | PyObject * obj1 = 0 ; | |
11408 | char *kwnames[] = { | |
11409 | (char *) "self",(char *) "name", NULL | |
11410 | }; | |
11411 | ||
11412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11415 | { | |
11416 | arg2 = wxString_in_helper(obj1); | |
11417 | if (arg2 == NULL) SWIG_fail; | |
11418 | temp2 = True; | |
11419 | } | |
11420 | { | |
11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11422 | (arg1)->SetFilename((wxString const &)*arg2); | |
11423 | ||
11424 | wxPyEndAllowThreads(__tstate); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
11427 | Py_INCREF(Py_None); resultobj = Py_None; | |
11428 | { | |
11429 | if (temp2) | |
11430 | delete arg2; | |
11431 | } | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | { | |
11435 | if (temp2) | |
11436 | delete arg2; | |
11437 | } | |
11438 | return NULL; | |
11439 | } | |
11440 | ||
11441 | ||
11442 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *, PyObject *args, PyObject *kwargs) { | |
11443 | PyObject *resultobj; | |
11444 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11445 | wxString *arg2 = 0 ; | |
11446 | bool temp2 = False ; | |
11447 | PyObject * obj0 = 0 ; | |
11448 | PyObject * obj1 = 0 ; | |
11449 | char *kwnames[] = { | |
11450 | (char *) "self",(char *) "wildCard", NULL | |
11451 | }; | |
11452 | ||
11453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
11454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11456 | { | |
11457 | arg2 = wxString_in_helper(obj1); | |
11458 | if (arg2 == NULL) SWIG_fail; | |
11459 | temp2 = True; | |
11460 | } | |
11461 | { | |
11462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11463 | (arg1)->SetWildcard((wxString const &)*arg2); | |
11464 | ||
11465 | wxPyEndAllowThreads(__tstate); | |
11466 | if (PyErr_Occurred()) SWIG_fail; | |
11467 | } | |
11468 | Py_INCREF(Py_None); resultobj = Py_None; | |
11469 | { | |
11470 | if (temp2) | |
11471 | delete arg2; | |
11472 | } | |
11473 | return resultobj; | |
11474 | fail: | |
11475 | { | |
11476 | if (temp2) | |
11477 | delete arg2; | |
11478 | } | |
11479 | return NULL; | |
11480 | } | |
11481 | ||
11482 | ||
11483 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
11484 | PyObject *resultobj; | |
11485 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11486 | long arg2 ; | |
11487 | PyObject * obj0 = 0 ; | |
11488 | PyObject * obj1 = 0 ; | |
11489 | char *kwnames[] = { | |
11490 | (char *) "self",(char *) "style", NULL | |
11491 | }; | |
11492 | ||
11493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
11494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11496 | arg2 = (long) SWIG_AsLong(obj1); | |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | (arg1)->SetStyle(arg2); | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | Py_INCREF(Py_None); resultobj = Py_None; | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
11512 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
11513 | PyObject *resultobj; | |
11514 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11515 | int arg2 ; | |
11516 | PyObject * obj0 = 0 ; | |
11517 | PyObject * obj1 = 0 ; | |
11518 | char *kwnames[] = { | |
11519 | (char *) "self",(char *) "filterIndex", NULL | |
11520 | }; | |
11521 | ||
11522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
11523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11525 | arg2 = (int) SWIG_AsInt(obj1); | |
11526 | if (PyErr_Occurred()) SWIG_fail; | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | (arg1)->SetFilterIndex(arg2); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | Py_INCREF(Py_None); resultobj = Py_None; | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11544 | wxString result; | |
11545 | PyObject * obj0 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "self", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11553 | { | |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | { | |
11561 | #if wxUSE_UNICODE | |
11562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11563 | #else | |
11564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11565 | #endif | |
11566 | } | |
11567 | return resultobj; | |
11568 | fail: | |
11569 | return NULL; | |
11570 | } | |
11571 | ||
11572 | ||
11573 | static PyObject *_wrap_FileDialog_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
11574 | PyObject *resultobj; | |
11575 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11576 | wxString result; | |
11577 | PyObject * obj0 = 0 ; | |
11578 | char *kwnames[] = { | |
11579 | (char *) "self", NULL | |
11580 | }; | |
11581 | ||
11582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
11583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11585 | { | |
11586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11587 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
11588 | ||
11589 | wxPyEndAllowThreads(__tstate); | |
11590 | if (PyErr_Occurred()) SWIG_fail; | |
11591 | } | |
11592 | { | |
11593 | #if wxUSE_UNICODE | |
11594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11595 | #else | |
11596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11597 | #endif | |
11598 | } | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | return NULL; | |
11602 | } | |
11603 | ||
11604 | ||
11605 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *, PyObject *args, PyObject *kwargs) { | |
11606 | PyObject *resultobj; | |
11607 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11608 | wxString result; | |
11609 | PyObject * obj0 = 0 ; | |
11610 | char *kwnames[] = { | |
11611 | (char *) "self", NULL | |
11612 | }; | |
11613 | ||
11614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
11615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11617 | { | |
11618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11619 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
11620 | ||
11621 | wxPyEndAllowThreads(__tstate); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
11623 | } | |
11624 | { | |
11625 | #if wxUSE_UNICODE | |
11626 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11627 | #else | |
11628 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11629 | #endif | |
11630 | } | |
11631 | return resultobj; | |
11632 | fail: | |
11633 | return NULL; | |
11634 | } | |
11635 | ||
11636 | ||
11637 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
11638 | PyObject *resultobj; | |
11639 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11640 | wxString result; | |
11641 | PyObject * obj0 = 0 ; | |
11642 | char *kwnames[] = { | |
11643 | (char *) "self", NULL | |
11644 | }; | |
11645 | ||
11646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
11647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11649 | { | |
11650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11651 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
11652 | ||
11653 | wxPyEndAllowThreads(__tstate); | |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
11655 | } | |
11656 | { | |
11657 | #if wxUSE_UNICODE | |
11658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11659 | #else | |
11660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11661 | #endif | |
11662 | } | |
11663 | return resultobj; | |
11664 | fail: | |
11665 | return NULL; | |
11666 | } | |
11667 | ||
11668 | ||
11669 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *, PyObject *args, PyObject *kwargs) { | |
11670 | PyObject *resultobj; | |
11671 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11672 | wxString result; | |
11673 | PyObject * obj0 = 0 ; | |
11674 | char *kwnames[] = { | |
11675 | (char *) "self", NULL | |
11676 | }; | |
11677 | ||
11678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
11679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11681 | { | |
11682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11683 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
11684 | ||
11685 | wxPyEndAllowThreads(__tstate); | |
11686 | if (PyErr_Occurred()) SWIG_fail; | |
11687 | } | |
11688 | { | |
11689 | #if wxUSE_UNICODE | |
11690 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11691 | #else | |
11692 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11693 | #endif | |
11694 | } | |
11695 | return resultobj; | |
11696 | fail: | |
11697 | return NULL; | |
11698 | } | |
11699 | ||
11700 | ||
11701 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
11702 | PyObject *resultobj; | |
11703 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11704 | long result; | |
11705 | PyObject * obj0 = 0 ; | |
11706 | char *kwnames[] = { | |
11707 | (char *) "self", NULL | |
11708 | }; | |
11709 | ||
11710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11713 | { | |
11714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11715 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
11716 | ||
11717 | wxPyEndAllowThreads(__tstate); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | } | |
11720 | resultobj = SWIG_FromLong((long)result); | |
11721 | return resultobj; | |
11722 | fail: | |
11723 | return NULL; | |
11724 | } | |
11725 | ||
11726 | ||
11727 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
11728 | PyObject *resultobj; | |
11729 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11730 | int result; | |
11731 | PyObject * obj0 = 0 ; | |
11732 | char *kwnames[] = { | |
11733 | (char *) "self", NULL | |
11734 | }; | |
11735 | ||
11736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
11737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11739 | { | |
11740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11741 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
11742 | ||
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
11746 | resultobj = SWIG_FromInt((int)result); | |
11747 | return resultobj; | |
11748 | fail: | |
11749 | return NULL; | |
11750 | } | |
11751 | ||
11752 | ||
11753 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { | |
11754 | PyObject *resultobj; | |
11755 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11756 | PyObject *result; | |
11757 | PyObject * obj0 = 0 ; | |
11758 | char *kwnames[] = { | |
11759 | (char *) "self", NULL | |
11760 | }; | |
11761 | ||
11762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
11763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11765 | { | |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11767 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
11768 | ||
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | resultobj = result; | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
11779 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *, PyObject *args, PyObject *kwargs) { | |
11780 | PyObject *resultobj; | |
11781 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11782 | PyObject *result; | |
11783 | PyObject * obj0 = 0 ; | |
11784 | char *kwnames[] = { | |
11785 | (char *) "self", NULL | |
11786 | }; | |
11787 | ||
11788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
11789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
11798 | resultobj = result; | |
11799 | return resultobj; | |
11800 | fail: | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
11805 | static PyObject * FileDialog_swigregister(PyObject *, PyObject *args) { | |
11806 | PyObject *obj; | |
11807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11808 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
11809 | Py_INCREF(obj); | |
11810 | return Py_BuildValue((char *)""); | |
11811 | } | |
11812 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
11813 | PyObject *resultobj; | |
11814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11815 | wxString *arg2 = 0 ; | |
11816 | wxString *arg3 = 0 ; | |
11817 | int arg4 = (int) 0 ; | |
11818 | wxString *arg5 = (wxString *) 0 ; | |
11819 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
11820 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11821 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11822 | wxMultiChoiceDialog *result; | |
11823 | bool temp2 = False ; | |
11824 | bool temp3 = False ; | |
11825 | wxPoint temp6 ; | |
11826 | PyObject * obj0 = 0 ; | |
11827 | PyObject * obj1 = 0 ; | |
11828 | PyObject * obj2 = 0 ; | |
11829 | PyObject * obj3 = 0 ; | |
11830 | PyObject * obj4 = 0 ; | |
11831 | PyObject * obj5 = 0 ; | |
11832 | char *kwnames[] = { | |
11833 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
11834 | }; | |
11835 | ||
11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11839 | { | |
11840 | arg2 = wxString_in_helper(obj1); | |
11841 | if (arg2 == NULL) SWIG_fail; | |
11842 | temp2 = True; | |
11843 | } | |
11844 | { | |
11845 | arg3 = wxString_in_helper(obj2); | |
11846 | if (arg3 == NULL) SWIG_fail; | |
11847 | temp3 = True; | |
11848 | } | |
11849 | if (obj3) { | |
11850 | { | |
11851 | arg4 = PyList_Size(obj3); | |
11852 | arg5 = wxString_LIST_helper(obj3); | |
11853 | if (arg5 == NULL) SWIG_fail; | |
11854 | } | |
11855 | } | |
11856 | if (obj4) { | |
11857 | arg6 = (long) SWIG_AsLong(obj4); | |
11858 | if (PyErr_Occurred()) SWIG_fail; | |
11859 | } | |
11860 | if (obj5) { | |
11861 | { | |
11862 | arg7 = &temp6; | |
11863 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
11864 | } | |
11865 | } | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
11869 | ||
11870 | wxPyEndAllowThreads(__tstate); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
11874 | { | |
11875 | if (temp2) | |
11876 | delete arg2; | |
11877 | } | |
11878 | { | |
11879 | if (temp3) | |
11880 | delete arg3; | |
11881 | } | |
11882 | { | |
11883 | if (arg5) delete [] arg5; | |
11884 | } | |
11885 | return resultobj; | |
11886 | fail: | |
11887 | { | |
11888 | if (temp2) | |
11889 | delete arg2; | |
11890 | } | |
11891 | { | |
11892 | if (temp3) | |
11893 | delete arg3; | |
11894 | } | |
11895 | { | |
11896 | if (arg5) delete [] arg5; | |
11897 | } | |
11898 | return NULL; | |
11899 | } | |
11900 | ||
11901 | ||
11902 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *, PyObject *args, PyObject *kwargs) { | |
11903 | PyObject *resultobj; | |
11904 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
11905 | wxArrayInt *arg2 = 0 ; | |
11906 | bool temp2 = False ; | |
11907 | PyObject * obj0 = 0 ; | |
11908 | PyObject * obj1 = 0 ; | |
11909 | char *kwnames[] = { | |
11910 | (char *) "self",(char *) "selections", NULL | |
11911 | }; | |
11912 | ||
11913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
11914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
11915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11916 | { | |
11917 | if (! PySequence_Check(obj1)) { | |
11918 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
11919 | SWIG_fail; | |
11920 | } | |
11921 | arg2 = new wxArrayInt; | |
11922 | temp2 = True; | |
11923 | int i, len=PySequence_Length(obj1); | |
11924 | for (i=0; i<len; i++) { | |
11925 | PyObject* item = PySequence_GetItem(obj1, i); | |
11926 | PyObject* number = PyNumber_Int(item); | |
11927 | arg2->Add(PyInt_AS_LONG(number)); | |
11928 | Py_DECREF(item); | |
11929 | Py_DECREF(number); | |
11930 | } | |
11931 | } | |
11932 | { | |
11933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11934 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
11935 | ||
11936 | wxPyEndAllowThreads(__tstate); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | Py_INCREF(Py_None); resultobj = Py_None; | |
11940 | { | |
11941 | if (temp2) delete arg2; | |
11942 | } | |
11943 | return resultobj; | |
11944 | fail: | |
11945 | { | |
11946 | if (temp2) delete arg2; | |
11947 | } | |
11948 | return NULL; | |
11949 | } | |
11950 | ||
11951 | ||
11952 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { | |
11953 | PyObject *resultobj; | |
11954 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
11955 | PyObject *result; | |
11956 | PyObject * obj0 = 0 ; | |
11957 | char *kwnames[] = { | |
11958 | (char *) "self", NULL | |
11959 | }; | |
11960 | ||
11961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
11962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
11963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
11967 | ||
11968 | wxPyEndAllowThreads(__tstate); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
11971 | resultobj = result; | |
11972 | return resultobj; | |
11973 | fail: | |
11974 | return NULL; | |
11975 | } | |
11976 | ||
11977 | ||
11978 | static PyObject * MultiChoiceDialog_swigregister(PyObject *, PyObject *args) { | |
11979 | PyObject *obj; | |
11980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11981 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
11982 | Py_INCREF(obj); | |
11983 | return Py_BuildValue((char *)""); | |
11984 | } | |
11985 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
11986 | PyObject *resultobj; | |
11987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11988 | wxString *arg2 = 0 ; | |
11989 | wxString *arg3 = 0 ; | |
11990 | int arg4 ; | |
11991 | wxString *arg5 = (wxString *) 0 ; | |
11992 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
11993 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11994 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11995 | wxSingleChoiceDialog *result; | |
11996 | bool temp2 = False ; | |
11997 | bool temp3 = False ; | |
11998 | wxPoint temp6 ; | |
11999 | PyObject * obj0 = 0 ; | |
12000 | PyObject * obj1 = 0 ; | |
12001 | PyObject * obj2 = 0 ; | |
12002 | PyObject * obj3 = 0 ; | |
12003 | PyObject * obj4 = 0 ; | |
12004 | PyObject * obj5 = 0 ; | |
12005 | char *kwnames[] = { | |
12006 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12007 | }; | |
12008 | ||
12009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12012 | { | |
12013 | arg2 = wxString_in_helper(obj1); | |
12014 | if (arg2 == NULL) SWIG_fail; | |
12015 | temp2 = True; | |
12016 | } | |
12017 | { | |
12018 | arg3 = wxString_in_helper(obj2); | |
12019 | if (arg3 == NULL) SWIG_fail; | |
12020 | temp3 = True; | |
12021 | } | |
12022 | { | |
12023 | arg4 = PyList_Size(obj3); | |
12024 | arg5 = wxString_LIST_helper(obj3); | |
12025 | if (arg5 == NULL) SWIG_fail; | |
12026 | } | |
12027 | if (obj4) { | |
12028 | arg6 = (long) SWIG_AsLong(obj4); | |
12029 | if (PyErr_Occurred()) SWIG_fail; | |
12030 | } | |
12031 | if (obj5) { | |
12032 | { | |
12033 | arg7 = &temp6; | |
12034 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12035 | } | |
12036 | } | |
12037 | { | |
12038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12039 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12040 | ||
12041 | wxPyEndAllowThreads(__tstate); | |
12042 | if (PyErr_Occurred()) SWIG_fail; | |
12043 | } | |
12044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12045 | { | |
12046 | if (temp2) | |
12047 | delete arg2; | |
12048 | } | |
12049 | { | |
12050 | if (temp3) | |
12051 | delete arg3; | |
12052 | } | |
12053 | { | |
12054 | if (arg5) delete [] arg5; | |
12055 | } | |
12056 | return resultobj; | |
12057 | fail: | |
12058 | { | |
12059 | if (temp2) | |
12060 | delete arg2; | |
12061 | } | |
12062 | { | |
12063 | if (temp3) | |
12064 | delete arg3; | |
12065 | } | |
12066 | { | |
12067 | if (arg5) delete [] arg5; | |
12068 | } | |
12069 | return NULL; | |
12070 | } | |
12071 | ||
12072 | ||
12073 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
12074 | PyObject *resultobj; | |
12075 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12076 | int result; | |
12077 | PyObject * obj0 = 0 ; | |
12078 | char *kwnames[] = { | |
12079 | (char *) "self", NULL | |
12080 | }; | |
12081 | ||
12082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12085 | { | |
12086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12087 | result = (int)(arg1)->GetSelection(); | |
12088 | ||
12089 | wxPyEndAllowThreads(__tstate); | |
12090 | if (PyErr_Occurred()) SWIG_fail; | |
12091 | } | |
12092 | resultobj = SWIG_FromInt((int)result); | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
12099 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
12100 | PyObject *resultobj; | |
12101 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12102 | wxString result; | |
12103 | PyObject * obj0 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | result = (arg1)->GetStringSelection(); | |
12114 | ||
12115 | wxPyEndAllowThreads(__tstate); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
12118 | { | |
12119 | #if wxUSE_UNICODE | |
12120 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12121 | #else | |
12122 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12123 | #endif | |
12124 | } | |
12125 | return resultobj; | |
12126 | fail: | |
12127 | return NULL; | |
12128 | } | |
12129 | ||
12130 | ||
12131 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
12132 | PyObject *resultobj; | |
12133 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12134 | int arg2 ; | |
12135 | PyObject * obj0 = 0 ; | |
12136 | PyObject * obj1 = 0 ; | |
12137 | char *kwnames[] = { | |
12138 | (char *) "self",(char *) "sel", NULL | |
12139 | }; | |
12140 | ||
12141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12144 | arg2 = (int) SWIG_AsInt(obj1); | |
12145 | if (PyErr_Occurred()) SWIG_fail; | |
12146 | { | |
12147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12148 | (arg1)->SetSelection(arg2); | |
12149 | ||
12150 | wxPyEndAllowThreads(__tstate); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
12152 | } | |
12153 | Py_INCREF(Py_None); resultobj = Py_None; | |
12154 | return resultobj; | |
12155 | fail: | |
12156 | return NULL; | |
12157 | } | |
12158 | ||
12159 | ||
12160 | static PyObject * SingleChoiceDialog_swigregister(PyObject *, PyObject *args) { | |
12161 | PyObject *obj; | |
12162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12163 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12164 | Py_INCREF(obj); | |
12165 | return Py_BuildValue((char *)""); | |
12166 | } | |
12167 | static PyObject *_wrap_new_TextEntryDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
12168 | PyObject *resultobj; | |
12169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12170 | wxString *arg2 = 0 ; | |
12171 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12172 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12173 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12174 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12175 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12176 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12177 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12178 | wxTextEntryDialog *result; | |
12179 | bool temp2 = False ; | |
12180 | bool temp3 = False ; | |
12181 | bool temp4 = False ; | |
12182 | wxPoint temp6 ; | |
12183 | PyObject * obj0 = 0 ; | |
12184 | PyObject * obj1 = 0 ; | |
12185 | PyObject * obj2 = 0 ; | |
12186 | PyObject * obj3 = 0 ; | |
12187 | PyObject * obj4 = 0 ; | |
12188 | PyObject * obj5 = 0 ; | |
12189 | char *kwnames[] = { | |
12190 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12191 | }; | |
12192 | ||
12193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12196 | { | |
12197 | arg2 = wxString_in_helper(obj1); | |
12198 | if (arg2 == NULL) SWIG_fail; | |
12199 | temp2 = True; | |
12200 | } | |
12201 | if (obj2) { | |
12202 | { | |
12203 | arg3 = wxString_in_helper(obj2); | |
12204 | if (arg3 == NULL) SWIG_fail; | |
12205 | temp3 = True; | |
12206 | } | |
12207 | } | |
12208 | if (obj3) { | |
12209 | { | |
12210 | arg4 = wxString_in_helper(obj3); | |
12211 | if (arg4 == NULL) SWIG_fail; | |
12212 | temp4 = True; | |
12213 | } | |
12214 | } | |
12215 | if (obj4) { | |
12216 | arg5 = (long) SWIG_AsLong(obj4); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | if (obj5) { | |
12220 | { | |
12221 | arg6 = &temp6; | |
12222 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12223 | } | |
12224 | } | |
12225 | { | |
12226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12227 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12228 | ||
12229 | wxPyEndAllowThreads(__tstate); | |
12230 | if (PyErr_Occurred()) SWIG_fail; | |
12231 | } | |
12232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
12233 | { | |
12234 | if (temp2) | |
12235 | delete arg2; | |
12236 | } | |
12237 | { | |
12238 | if (temp3) | |
12239 | delete arg3; | |
12240 | } | |
12241 | { | |
12242 | if (temp4) | |
12243 | delete arg4; | |
12244 | } | |
12245 | return resultobj; | |
12246 | fail: | |
12247 | { | |
12248 | if (temp2) | |
12249 | delete arg2; | |
12250 | } | |
12251 | { | |
12252 | if (temp3) | |
12253 | delete arg3; | |
12254 | } | |
12255 | { | |
12256 | if (temp4) | |
12257 | delete arg4; | |
12258 | } | |
12259 | return NULL; | |
12260 | } | |
12261 | ||
12262 | ||
12263 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
12264 | PyObject *resultobj; | |
12265 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12266 | wxString result; | |
12267 | PyObject * obj0 = 0 ; | |
12268 | char *kwnames[] = { | |
12269 | (char *) "self", NULL | |
12270 | }; | |
12271 | ||
12272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12275 | { | |
12276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12277 | result = (arg1)->GetValue(); | |
12278 | ||
12279 | wxPyEndAllowThreads(__tstate); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | } | |
12282 | { | |
12283 | #if wxUSE_UNICODE | |
12284 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12285 | #else | |
12286 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12287 | #endif | |
12288 | } | |
12289 | return resultobj; | |
12290 | fail: | |
12291 | return NULL; | |
12292 | } | |
12293 | ||
12294 | ||
12295 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
12296 | PyObject *resultobj; | |
12297 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12298 | wxString *arg2 = 0 ; | |
12299 | bool temp2 = False ; | |
12300 | PyObject * obj0 = 0 ; | |
12301 | PyObject * obj1 = 0 ; | |
12302 | char *kwnames[] = { | |
12303 | (char *) "self",(char *) "value", NULL | |
12304 | }; | |
12305 | ||
12306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12309 | { | |
12310 | arg2 = wxString_in_helper(obj1); | |
12311 | if (arg2 == NULL) SWIG_fail; | |
12312 | temp2 = True; | |
12313 | } | |
12314 | { | |
12315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12316 | (arg1)->SetValue((wxString const &)*arg2); | |
12317 | ||
12318 | wxPyEndAllowThreads(__tstate); | |
12319 | if (PyErr_Occurred()) SWIG_fail; | |
12320 | } | |
12321 | Py_INCREF(Py_None); resultobj = Py_None; | |
12322 | { | |
12323 | if (temp2) | |
12324 | delete arg2; | |
12325 | } | |
12326 | return resultobj; | |
12327 | fail: | |
12328 | { | |
12329 | if (temp2) | |
12330 | delete arg2; | |
12331 | } | |
12332 | return NULL; | |
12333 | } | |
12334 | ||
12335 | ||
12336 | static PyObject * TextEntryDialog_swigregister(PyObject *, PyObject *args) { | |
12337 | PyObject *obj; | |
12338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12339 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12340 | Py_INCREF(obj); | |
12341 | return Py_BuildValue((char *)""); | |
12342 | } | |
12343 | static PyObject *_wrap_new_FontData(PyObject *, PyObject *args, PyObject *kwargs) { | |
12344 | PyObject *resultobj; | |
12345 | wxFontData *result; | |
12346 | char *kwnames[] = { | |
12347 | NULL | |
12348 | }; | |
12349 | ||
12350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
12351 | { | |
12352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12353 | result = (wxFontData *)new wxFontData(); | |
12354 | ||
12355 | wxPyEndAllowThreads(__tstate); | |
12356 | if (PyErr_Occurred()) SWIG_fail; | |
12357 | } | |
12358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
12359 | return resultobj; | |
12360 | fail: | |
12361 | return NULL; | |
12362 | } | |
12363 | ||
12364 | ||
12365 | static PyObject *_wrap_delete_FontData(PyObject *, PyObject *args, PyObject *kwargs) { | |
12366 | PyObject *resultobj; | |
12367 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12368 | PyObject * obj0 = 0 ; | |
12369 | char *kwnames[] = { | |
12370 | (char *) "self", NULL | |
12371 | }; | |
12372 | ||
12373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
12374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12376 | { | |
12377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12378 | delete arg1; | |
12379 | ||
12380 | wxPyEndAllowThreads(__tstate); | |
12381 | if (PyErr_Occurred()) SWIG_fail; | |
12382 | } | |
12383 | Py_INCREF(Py_None); resultobj = Py_None; | |
12384 | return resultobj; | |
12385 | fail: | |
12386 | return NULL; | |
12387 | } | |
12388 | ||
12389 | ||
12390 | static PyObject *_wrap_FontData_EnableEffects(PyObject *, PyObject *args, PyObject *kwargs) { | |
12391 | PyObject *resultobj; | |
12392 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12393 | bool arg2 ; | |
12394 | PyObject * obj0 = 0 ; | |
12395 | PyObject * obj1 = 0 ; | |
12396 | char *kwnames[] = { | |
12397 | (char *) "self",(char *) "enable", NULL | |
12398 | }; | |
12399 | ||
12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12403 | arg2 = (bool) SWIG_AsBool(obj1); | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | (arg1)->EnableEffects(arg2); | |
12408 | ||
12409 | wxPyEndAllowThreads(__tstate); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | Py_INCREF(Py_None); resultobj = Py_None; | |
12413 | return resultobj; | |
12414 | fail: | |
12415 | return NULL; | |
12416 | } | |
12417 | ||
12418 | ||
12419 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *, PyObject *args, PyObject *kwargs) { | |
12420 | PyObject *resultobj; | |
12421 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12422 | bool result; | |
12423 | PyObject * obj0 = 0 ; | |
12424 | char *kwnames[] = { | |
12425 | (char *) "self", NULL | |
12426 | }; | |
12427 | ||
12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
12429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | result = (bool)(arg1)->GetAllowSymbols(); | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | { | |
12439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12440 | } | |
12441 | return resultobj; | |
12442 | fail: | |
12443 | return NULL; | |
12444 | } | |
12445 | ||
12446 | ||
12447 | static PyObject *_wrap_FontData_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
12448 | PyObject *resultobj; | |
12449 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12450 | wxColour result; | |
12451 | PyObject * obj0 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12459 | { | |
12460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12461 | result = (arg1)->GetColour(); | |
12462 | ||
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | { | |
12467 | wxColour * resultptr; | |
12468 | resultptr = new wxColour((wxColour &) result); | |
12469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
12470 | } | |
12471 | return resultobj; | |
12472 | fail: | |
12473 | return NULL; | |
12474 | } | |
12475 | ||
12476 | ||
12477 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
12478 | PyObject *resultobj; | |
12479 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12480 | wxFont result; | |
12481 | PyObject * obj0 = 0 ; | |
12482 | char *kwnames[] = { | |
12483 | (char *) "self", NULL | |
12484 | }; | |
12485 | ||
12486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
12487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12489 | { | |
12490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12491 | result = (arg1)->GetChosenFont(); | |
12492 | ||
12493 | wxPyEndAllowThreads(__tstate); | |
12494 | if (PyErr_Occurred()) SWIG_fail; | |
12495 | } | |
12496 | { | |
12497 | wxFont * resultptr; | |
12498 | resultptr = new wxFont((wxFont &) result); | |
12499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12500 | } | |
12501 | return resultobj; | |
12502 | fail: | |
12503 | return NULL; | |
12504 | } | |
12505 | ||
12506 | ||
12507 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *, PyObject *args, PyObject *kwargs) { | |
12508 | PyObject *resultobj; | |
12509 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12510 | bool result; | |
12511 | PyObject * obj0 = 0 ; | |
12512 | char *kwnames[] = { | |
12513 | (char *) "self", NULL | |
12514 | }; | |
12515 | ||
12516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
12517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12519 | { | |
12520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12521 | result = (bool)(arg1)->GetEnableEffects(); | |
12522 | ||
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
12526 | { | |
12527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12528 | } | |
12529 | return resultobj; | |
12530 | fail: | |
12531 | return NULL; | |
12532 | } | |
12533 | ||
12534 | ||
12535 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
12536 | PyObject *resultobj; | |
12537 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12538 | wxFont result; | |
12539 | PyObject * obj0 = 0 ; | |
12540 | char *kwnames[] = { | |
12541 | (char *) "self", NULL | |
12542 | }; | |
12543 | ||
12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
12545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12547 | { | |
12548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12549 | result = (arg1)->GetInitialFont(); | |
12550 | ||
12551 | wxPyEndAllowThreads(__tstate); | |
12552 | if (PyErr_Occurred()) SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | wxFont * resultptr; | |
12556 | resultptr = new wxFont((wxFont &) result); | |
12557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12558 | } | |
12559 | return resultobj; | |
12560 | fail: | |
12561 | return NULL; | |
12562 | } | |
12563 | ||
12564 | ||
12565 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
12566 | PyObject *resultobj; | |
12567 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12568 | bool result; | |
12569 | PyObject * obj0 = 0 ; | |
12570 | char *kwnames[] = { | |
12571 | (char *) "self", NULL | |
12572 | }; | |
12573 | ||
12574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
12575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12577 | { | |
12578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12579 | result = (bool)(arg1)->GetShowHelp(); | |
12580 | ||
12581 | wxPyEndAllowThreads(__tstate); | |
12582 | if (PyErr_Occurred()) SWIG_fail; | |
12583 | } | |
12584 | { | |
12585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12586 | } | |
12587 | return resultobj; | |
12588 | fail: | |
12589 | return NULL; | |
12590 | } | |
12591 | ||
12592 | ||
12593 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *, PyObject *args, PyObject *kwargs) { | |
12594 | PyObject *resultobj; | |
12595 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12596 | bool arg2 ; | |
12597 | PyObject * obj0 = 0 ; | |
12598 | PyObject * obj1 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self",(char *) "allowSymbols", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
12604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12606 | arg2 = (bool) SWIG_AsBool(obj1); | |
12607 | if (PyErr_Occurred()) SWIG_fail; | |
12608 | { | |
12609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12610 | (arg1)->SetAllowSymbols(arg2); | |
12611 | ||
12612 | wxPyEndAllowThreads(__tstate); | |
12613 | if (PyErr_Occurred()) SWIG_fail; | |
12614 | } | |
12615 | Py_INCREF(Py_None); resultobj = Py_None; | |
12616 | return resultobj; | |
12617 | fail: | |
12618 | return NULL; | |
12619 | } | |
12620 | ||
12621 | ||
12622 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
12623 | PyObject *resultobj; | |
12624 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12625 | wxFont *arg2 = 0 ; | |
12626 | PyObject * obj0 = 0 ; | |
12627 | PyObject * obj1 = 0 ; | |
12628 | char *kwnames[] = { | |
12629 | (char *) "self",(char *) "font", NULL | |
12630 | }; | |
12631 | ||
12632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
12633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12637 | SWIG_fail; | |
12638 | if (arg2 == NULL) { | |
12639 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12640 | SWIG_fail; | |
12641 | } | |
12642 | { | |
12643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12644 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
12645 | ||
12646 | wxPyEndAllowThreads(__tstate); | |
12647 | if (PyErr_Occurred()) SWIG_fail; | |
12648 | } | |
12649 | Py_INCREF(Py_None); resultobj = Py_None; | |
12650 | return resultobj; | |
12651 | fail: | |
12652 | return NULL; | |
12653 | } | |
12654 | ||
12655 | ||
12656 | static PyObject *_wrap_FontData_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
12657 | PyObject *resultobj; | |
12658 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12659 | wxColour *arg2 = 0 ; | |
12660 | wxColour temp2 ; | |
12661 | PyObject * obj0 = 0 ; | |
12662 | PyObject * obj1 = 0 ; | |
12663 | char *kwnames[] = { | |
12664 | (char *) "self",(char *) "colour", NULL | |
12665 | }; | |
12666 | ||
12667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
12668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12670 | { | |
12671 | arg2 = &temp2; | |
12672 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12673 | } | |
12674 | { | |
12675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12676 | (arg1)->SetColour((wxColour const &)*arg2); | |
12677 | ||
12678 | wxPyEndAllowThreads(__tstate); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
12681 | Py_INCREF(Py_None); resultobj = Py_None; | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | return NULL; | |
12685 | } | |
12686 | ||
12687 | ||
12688 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
12689 | PyObject *resultobj; | |
12690 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12691 | wxFont *arg2 = 0 ; | |
12692 | PyObject * obj0 = 0 ; | |
12693 | PyObject * obj1 = 0 ; | |
12694 | char *kwnames[] = { | |
12695 | (char *) "self",(char *) "font", NULL | |
12696 | }; | |
12697 | ||
12698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
12699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12702 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12703 | SWIG_fail; | |
12704 | if (arg2 == NULL) { | |
12705 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12706 | SWIG_fail; | |
12707 | } | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | Py_INCREF(Py_None); resultobj = Py_None; | |
12716 | return resultobj; | |
12717 | fail: | |
12718 | return NULL; | |
12719 | } | |
12720 | ||
12721 | ||
12722 | static PyObject *_wrap_FontData_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
12723 | PyObject *resultobj; | |
12724 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12725 | int arg2 ; | |
12726 | int arg3 ; | |
12727 | PyObject * obj0 = 0 ; | |
12728 | PyObject * obj1 = 0 ; | |
12729 | PyObject * obj2 = 0 ; | |
12730 | char *kwnames[] = { | |
12731 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12737 | arg2 = (int) SWIG_AsInt(obj1); | |
12738 | if (PyErr_Occurred()) SWIG_fail; | |
12739 | arg3 = (int) SWIG_AsInt(obj2); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | (arg1)->SetRange(arg2,arg3); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
12748 | Py_INCREF(Py_None); resultobj = Py_None; | |
12749 | return resultobj; | |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12758 | bool arg2 ; | |
12759 | PyObject * obj0 = 0 ; | |
12760 | PyObject * obj1 = 0 ; | |
12761 | char *kwnames[] = { | |
12762 | (char *) "self",(char *) "showHelp", NULL | |
12763 | }; | |
12764 | ||
12765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
12766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12768 | arg2 = (bool) SWIG_AsBool(obj1); | |
12769 | if (PyErr_Occurred()) SWIG_fail; | |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | (arg1)->SetShowHelp(arg2); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
12777 | Py_INCREF(Py_None); resultobj = Py_None; | |
12778 | return resultobj; | |
12779 | fail: | |
12780 | return NULL; | |
12781 | } | |
12782 | ||
12783 | ||
12784 | static PyObject * FontData_swigregister(PyObject *, PyObject *args) { | |
12785 | PyObject *obj; | |
12786 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12787 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
12788 | Py_INCREF(obj); | |
12789 | return Py_BuildValue((char *)""); | |
12790 | } | |
12791 | static PyObject *_wrap_new_FontDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
12792 | PyObject *resultobj; | |
12793 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12794 | wxFontData *arg2 = 0 ; | |
12795 | wxFontDialog *result; | |
12796 | PyObject * obj0 = 0 ; | |
12797 | PyObject * obj1 = 0 ; | |
12798 | char *kwnames[] = { | |
12799 | (char *) "parent",(char *) "data", NULL | |
12800 | }; | |
12801 | ||
12802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
12803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
12806 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12807 | SWIG_fail; | |
12808 | if (arg2 == NULL) { | |
12809 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12810 | SWIG_fail; | |
12811 | } | |
12812 | { | |
12813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12814 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
12815 | ||
12816 | wxPyEndAllowThreads(__tstate); | |
12817 | if (PyErr_Occurred()) SWIG_fail; | |
12818 | } | |
12819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
12820 | return resultobj; | |
12821 | fail: | |
12822 | return NULL; | |
12823 | } | |
12824 | ||
12825 | ||
12826 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *, PyObject *args, PyObject *kwargs) { | |
12827 | PyObject *resultobj; | |
12828 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
12829 | wxFontData *result; | |
12830 | PyObject * obj0 = 0 ; | |
12831 | char *kwnames[] = { | |
12832 | (char *) "self", NULL | |
12833 | }; | |
12834 | ||
12835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
12836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
12837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12838 | { | |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12840 | { | |
12841 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
12842 | result = (wxFontData *) &_result_ref; | |
12843 | } | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
12849 | return resultobj; | |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
12855 | static PyObject * FontDialog_swigregister(PyObject *, PyObject *args) { | |
12856 | PyObject *obj; | |
12857 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12858 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
12859 | Py_INCREF(obj); | |
12860 | return Py_BuildValue((char *)""); | |
12861 | } | |
12862 | static PyObject *_wrap_new_MessageDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
12863 | PyObject *resultobj; | |
12864 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12865 | wxString *arg2 = 0 ; | |
12866 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
12867 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12868 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12869 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12870 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12871 | wxMessageDialog *result; | |
12872 | bool temp2 = False ; | |
12873 | bool temp3 = False ; | |
12874 | wxPoint temp5 ; | |
12875 | PyObject * obj0 = 0 ; | |
12876 | PyObject * obj1 = 0 ; | |
12877 | PyObject * obj2 = 0 ; | |
12878 | PyObject * obj3 = 0 ; | |
12879 | PyObject * obj4 = 0 ; | |
12880 | char *kwnames[] = { | |
12881 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
12882 | }; | |
12883 | ||
12884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12887 | { | |
12888 | arg2 = wxString_in_helper(obj1); | |
12889 | if (arg2 == NULL) SWIG_fail; | |
12890 | temp2 = True; | |
12891 | } | |
12892 | if (obj2) { | |
12893 | { | |
12894 | arg3 = wxString_in_helper(obj2); | |
12895 | if (arg3 == NULL) SWIG_fail; | |
12896 | temp3 = True; | |
12897 | } | |
12898 | } | |
12899 | if (obj3) { | |
12900 | arg4 = (long) SWIG_AsLong(obj3); | |
12901 | if (PyErr_Occurred()) SWIG_fail; | |
12902 | } | |
12903 | if (obj4) { | |
12904 | { | |
12905 | arg5 = &temp5; | |
12906 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12907 | } | |
12908 | } | |
12909 | { | |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
12916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
12917 | { | |
12918 | if (temp2) | |
12919 | delete arg2; | |
12920 | } | |
12921 | { | |
12922 | if (temp3) | |
12923 | delete arg3; | |
12924 | } | |
12925 | return resultobj; | |
12926 | fail: | |
12927 | { | |
12928 | if (temp2) | |
12929 | delete arg2; | |
12930 | } | |
12931 | { | |
12932 | if (temp3) | |
12933 | delete arg3; | |
12934 | } | |
12935 | return NULL; | |
12936 | } | |
12937 | ||
12938 | ||
12939 | static PyObject * MessageDialog_swigregister(PyObject *, PyObject *args) { | |
12940 | PyObject *obj; | |
12941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12942 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
12943 | Py_INCREF(obj); | |
12944 | return Py_BuildValue((char *)""); | |
12945 | } | |
12946 | static PyObject *_wrap_new_ProgressDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
12947 | PyObject *resultobj; | |
12948 | wxString *arg1 = 0 ; | |
12949 | wxString *arg2 = 0 ; | |
12950 | int arg3 = (int) 100 ; | |
12951 | wxWindow *arg4 = (wxWindow *) NULL ; | |
12952 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
12953 | wxProgressDialog *result; | |
12954 | bool temp1 = False ; | |
12955 | bool temp2 = False ; | |
12956 | PyObject * obj0 = 0 ; | |
12957 | PyObject * obj1 = 0 ; | |
12958 | PyObject * obj2 = 0 ; | |
12959 | PyObject * obj3 = 0 ; | |
12960 | PyObject * obj4 = 0 ; | |
12961 | char *kwnames[] = { | |
12962 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
12963 | }; | |
12964 | ||
12965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12966 | { | |
12967 | arg1 = wxString_in_helper(obj0); | |
12968 | if (arg1 == NULL) SWIG_fail; | |
12969 | temp1 = True; | |
12970 | } | |
12971 | { | |
12972 | arg2 = wxString_in_helper(obj1); | |
12973 | if (arg2 == NULL) SWIG_fail; | |
12974 | temp2 = True; | |
12975 | } | |
12976 | if (obj2) { | |
12977 | arg3 = (int) SWIG_AsInt(obj2); | |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
12979 | } | |
12980 | if (obj3) { | |
12981 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
12982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12983 | } | |
12984 | if (obj4) { | |
12985 | arg5 = (int) SWIG_AsInt(obj4); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
12987 | } | |
12988 | { | |
12989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12990 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
12991 | ||
12992 | wxPyEndAllowThreads(__tstate); | |
12993 | if (PyErr_Occurred()) SWIG_fail; | |
12994 | } | |
12995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
12996 | { | |
12997 | if (temp1) | |
12998 | delete arg1; | |
12999 | } | |
13000 | { | |
13001 | if (temp2) | |
13002 | delete arg2; | |
13003 | } | |
13004 | return resultobj; | |
13005 | fail: | |
13006 | { | |
13007 | if (temp1) | |
13008 | delete arg1; | |
13009 | } | |
13010 | { | |
13011 | if (temp2) | |
13012 | delete arg2; | |
13013 | } | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
13018 | static PyObject *_wrap_ProgressDialog_Update(PyObject *, PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj; | |
13020 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13021 | int arg2 ; | |
13022 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13023 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13024 | bool result; | |
13025 | bool temp3 = False ; | |
13026 | PyObject * obj0 = 0 ; | |
13027 | PyObject * obj1 = 0 ; | |
13028 | PyObject * obj2 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13036 | arg2 = (int) SWIG_AsInt(obj1); | |
13037 | if (PyErr_Occurred()) SWIG_fail; | |
13038 | if (obj2) { | |
13039 | { | |
13040 | arg3 = wxString_in_helper(obj2); | |
13041 | if (arg3 == NULL) SWIG_fail; | |
13042 | temp3 = True; | |
13043 | } | |
13044 | } | |
13045 | { | |
13046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13047 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13048 | ||
13049 | wxPyEndAllowThreads(__tstate); | |
13050 | if (PyErr_Occurred()) SWIG_fail; | |
13051 | } | |
13052 | { | |
13053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13054 | } | |
13055 | { | |
13056 | if (temp3) | |
13057 | delete arg3; | |
13058 | } | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | { | |
13062 | if (temp3) | |
13063 | delete arg3; | |
13064 | } | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject *resultobj; | |
13071 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13072 | PyObject * obj0 = 0 ; | |
13073 | char *kwnames[] = { | |
13074 | (char *) "self", NULL | |
13075 | }; | |
13076 | ||
13077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13080 | { | |
13081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13082 | (arg1)->Resume(); | |
13083 | ||
13084 | wxPyEndAllowThreads(__tstate); | |
13085 | if (PyErr_Occurred()) SWIG_fail; | |
13086 | } | |
13087 | Py_INCREF(Py_None); resultobj = Py_None; | |
13088 | return resultobj; | |
13089 | fail: | |
13090 | return NULL; | |
13091 | } | |
13092 | ||
13093 | ||
13094 | static PyObject * ProgressDialog_swigregister(PyObject *, PyObject *args) { | |
13095 | PyObject *obj; | |
13096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13097 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13098 | Py_INCREF(obj); | |
13099 | return Py_BuildValue((char *)""); | |
13100 | } | |
13101 | static PyObject *_wrap_new_FindDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
13102 | PyObject *resultobj; | |
13103 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13104 | int arg2 = (int) 0 ; | |
13105 | wxFindDialogEvent *result; | |
13106 | PyObject * obj0 = 0 ; | |
13107 | PyObject * obj1 = 0 ; | |
13108 | char *kwnames[] = { | |
13109 | (char *) "commandType",(char *) "id", NULL | |
13110 | }; | |
13111 | ||
13112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13113 | if (obj0) { | |
13114 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13115 | if (PyErr_Occurred()) SWIG_fail; | |
13116 | } | |
13117 | if (obj1) { | |
13118 | arg2 = (int) SWIG_AsInt(obj1); | |
13119 | if (PyErr_Occurred()) SWIG_fail; | |
13120 | } | |
13121 | { | |
13122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13123 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13124 | ||
13125 | wxPyEndAllowThreads(__tstate); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | } | |
13128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13129 | return resultobj; | |
13130 | fail: | |
13131 | return NULL; | |
13132 | } | |
13133 | ||
13134 | ||
13135 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
13136 | PyObject *resultobj; | |
13137 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13138 | int result; | |
13139 | PyObject * obj0 = 0 ; | |
13140 | char *kwnames[] = { | |
13141 | (char *) "self", NULL | |
13142 | }; | |
13143 | ||
13144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | result = (int)(arg1)->GetFlags(); | |
13150 | ||
13151 | wxPyEndAllowThreads(__tstate); | |
13152 | if (PyErr_Occurred()) SWIG_fail; | |
13153 | } | |
13154 | resultobj = SWIG_FromInt((int)result); | |
13155 | return resultobj; | |
13156 | fail: | |
13157 | return NULL; | |
13158 | } | |
13159 | ||
13160 | ||
13161 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13162 | PyObject *resultobj; | |
13163 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13164 | wxString *result; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13173 | { | |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | { | |
13176 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13177 | result = (wxString *) &_result_ref; | |
13178 | } | |
13179 | ||
13180 | wxPyEndAllowThreads(__tstate); | |
13181 | if (PyErr_Occurred()) SWIG_fail; | |
13182 | } | |
13183 | { | |
13184 | #if wxUSE_UNICODE | |
13185 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13186 | #else | |
13187 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13188 | #endif | |
13189 | } | |
13190 | return resultobj; | |
13191 | fail: | |
13192 | return NULL; | |
13193 | } | |
13194 | ||
13195 | ||
13196 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13197 | PyObject *resultobj; | |
13198 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13199 | wxString *result; | |
13200 | PyObject * obj0 = 0 ; | |
13201 | char *kwnames[] = { | |
13202 | (char *) "self", NULL | |
13203 | }; | |
13204 | ||
13205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13208 | { | |
13209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13210 | { | |
13211 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13212 | result = (wxString *) &_result_ref; | |
13213 | } | |
13214 | ||
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | { | |
13219 | #if wxUSE_UNICODE | |
13220 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13221 | #else | |
13222 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13223 | #endif | |
13224 | } | |
13225 | return resultobj; | |
13226 | fail: | |
13227 | return NULL; | |
13228 | } | |
13229 | ||
13230 | ||
13231 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
13232 | PyObject *resultobj; | |
13233 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13234 | wxFindReplaceDialog *result; | |
13235 | PyObject * obj0 = 0 ; | |
13236 | char *kwnames[] = { | |
13237 | (char *) "self", NULL | |
13238 | }; | |
13239 | ||
13240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13243 | { | |
13244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13245 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13246 | ||
13247 | wxPyEndAllowThreads(__tstate); | |
13248 | if (PyErr_Occurred()) SWIG_fail; | |
13249 | } | |
13250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13251 | return resultobj; | |
13252 | fail: | |
13253 | return NULL; | |
13254 | } | |
13255 | ||
13256 | ||
13257 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
13258 | PyObject *resultobj; | |
13259 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13260 | int arg2 ; | |
13261 | PyObject * obj0 = 0 ; | |
13262 | PyObject * obj1 = 0 ; | |
13263 | char *kwnames[] = { | |
13264 | (char *) "self",(char *) "flags", NULL | |
13265 | }; | |
13266 | ||
13267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13270 | arg2 = (int) SWIG_AsInt(obj1); | |
13271 | if (PyErr_Occurred()) SWIG_fail; | |
13272 | { | |
13273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13274 | (arg1)->SetFlags(arg2); | |
13275 | ||
13276 | wxPyEndAllowThreads(__tstate); | |
13277 | if (PyErr_Occurred()) SWIG_fail; | |
13278 | } | |
13279 | Py_INCREF(Py_None); resultobj = Py_None; | |
13280 | return resultobj; | |
13281 | fail: | |
13282 | return NULL; | |
13283 | } | |
13284 | ||
13285 | ||
13286 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13287 | PyObject *resultobj; | |
13288 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13289 | wxString *arg2 = 0 ; | |
13290 | bool temp2 = False ; | |
13291 | PyObject * obj0 = 0 ; | |
13292 | PyObject * obj1 = 0 ; | |
13293 | char *kwnames[] = { | |
13294 | (char *) "self",(char *) "str", NULL | |
13295 | }; | |
13296 | ||
13297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13300 | { | |
13301 | arg2 = wxString_in_helper(obj1); | |
13302 | if (arg2 == NULL) SWIG_fail; | |
13303 | temp2 = True; | |
13304 | } | |
13305 | { | |
13306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13307 | (arg1)->SetFindString((wxString const &)*arg2); | |
13308 | ||
13309 | wxPyEndAllowThreads(__tstate); | |
13310 | if (PyErr_Occurred()) SWIG_fail; | |
13311 | } | |
13312 | Py_INCREF(Py_None); resultobj = Py_None; | |
13313 | { | |
13314 | if (temp2) | |
13315 | delete arg2; | |
13316 | } | |
13317 | return resultobj; | |
13318 | fail: | |
13319 | { | |
13320 | if (temp2) | |
13321 | delete arg2; | |
13322 | } | |
13323 | return NULL; | |
13324 | } | |
13325 | ||
13326 | ||
13327 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13328 | PyObject *resultobj; | |
13329 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13330 | wxString *arg2 = 0 ; | |
13331 | bool temp2 = False ; | |
13332 | PyObject * obj0 = 0 ; | |
13333 | PyObject * obj1 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self",(char *) "str", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13341 | { | |
13342 | arg2 = wxString_in_helper(obj1); | |
13343 | if (arg2 == NULL) SWIG_fail; | |
13344 | temp2 = True; | |
13345 | } | |
13346 | { | |
13347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13348 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13349 | ||
13350 | wxPyEndAllowThreads(__tstate); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
13352 | } | |
13353 | Py_INCREF(Py_None); resultobj = Py_None; | |
13354 | { | |
13355 | if (temp2) | |
13356 | delete arg2; | |
13357 | } | |
13358 | return resultobj; | |
13359 | fail: | |
13360 | { | |
13361 | if (temp2) | |
13362 | delete arg2; | |
13363 | } | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
13368 | static PyObject * FindDialogEvent_swigregister(PyObject *, PyObject *args) { | |
13369 | PyObject *obj; | |
13370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13371 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
13372 | Py_INCREF(obj); | |
13373 | return Py_BuildValue((char *)""); | |
13374 | } | |
13375 | static PyObject *_wrap_new_FindReplaceData(PyObject *, PyObject *args, PyObject *kwargs) { | |
13376 | PyObject *resultobj; | |
13377 | int arg1 = (int) 0 ; | |
13378 | wxFindReplaceData *result; | |
13379 | PyObject * obj0 = 0 ; | |
13380 | char *kwnames[] = { | |
13381 | (char *) "flags", NULL | |
13382 | }; | |
13383 | ||
13384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
13385 | if (obj0) { | |
13386 | arg1 = (int) SWIG_AsInt(obj0); | |
13387 | if (PyErr_Occurred()) SWIG_fail; | |
13388 | } | |
13389 | { | |
13390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13391 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
13392 | ||
13393 | wxPyEndAllowThreads(__tstate); | |
13394 | if (PyErr_Occurred()) SWIG_fail; | |
13395 | } | |
13396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
13397 | return resultobj; | |
13398 | fail: | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
13403 | static PyObject *_wrap_delete_FindReplaceData(PyObject *, PyObject *args, PyObject *kwargs) { | |
13404 | PyObject *resultobj; | |
13405 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13406 | PyObject * obj0 = 0 ; | |
13407 | char *kwnames[] = { | |
13408 | (char *) "self", NULL | |
13409 | }; | |
13410 | ||
13411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
13412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13414 | { | |
13415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13416 | delete arg1; | |
13417 | ||
13418 | wxPyEndAllowThreads(__tstate); | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | Py_INCREF(Py_None); resultobj = Py_None; | |
13422 | return resultobj; | |
13423 | fail: | |
13424 | return NULL; | |
13425 | } | |
13426 | ||
13427 | ||
13428 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13429 | PyObject *resultobj; | |
13430 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13431 | wxString *result; | |
13432 | PyObject * obj0 = 0 ; | |
13433 | char *kwnames[] = { | |
13434 | (char *) "self", NULL | |
13435 | }; | |
13436 | ||
13437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
13438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13440 | { | |
13441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13442 | { | |
13443 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13444 | result = (wxString *) &_result_ref; | |
13445 | } | |
13446 | ||
13447 | wxPyEndAllowThreads(__tstate); | |
13448 | if (PyErr_Occurred()) SWIG_fail; | |
13449 | } | |
13450 | { | |
13451 | #if wxUSE_UNICODE | |
13452 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13453 | #else | |
13454 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13455 | #endif | |
13456 | } | |
13457 | return resultobj; | |
13458 | fail: | |
13459 | return NULL; | |
13460 | } | |
13461 | ||
13462 | ||
13463 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13464 | PyObject *resultobj; | |
13465 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13466 | wxString *result; | |
13467 | PyObject * obj0 = 0 ; | |
13468 | char *kwnames[] = { | |
13469 | (char *) "self", NULL | |
13470 | }; | |
13471 | ||
13472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
13473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13475 | { | |
13476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13477 | { | |
13478 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13479 | result = (wxString *) &_result_ref; | |
13480 | } | |
13481 | ||
13482 | wxPyEndAllowThreads(__tstate); | |
13483 | if (PyErr_Occurred()) SWIG_fail; | |
13484 | } | |
13485 | { | |
13486 | #if wxUSE_UNICODE | |
13487 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13488 | #else | |
13489 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13490 | #endif | |
13491 | } | |
13492 | return resultobj; | |
13493 | fail: | |
13494 | return NULL; | |
13495 | } | |
13496 | ||
13497 | ||
13498 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13501 | int result; | |
13502 | PyObject * obj0 = 0 ; | |
13503 | char *kwnames[] = { | |
13504 | (char *) "self", NULL | |
13505 | }; | |
13506 | ||
13507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
13508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | result = (int)(arg1)->GetFlags(); | |
13513 | ||
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
13517 | resultobj = SWIG_FromInt((int)result); | |
13518 | return resultobj; | |
13519 | fail: | |
13520 | return NULL; | |
13521 | } | |
13522 | ||
13523 | ||
13524 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
13525 | PyObject *resultobj; | |
13526 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13527 | int arg2 ; | |
13528 | PyObject * obj0 = 0 ; | |
13529 | PyObject * obj1 = 0 ; | |
13530 | char *kwnames[] = { | |
13531 | (char *) "self",(char *) "flags", NULL | |
13532 | }; | |
13533 | ||
13534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13537 | arg2 = (int) SWIG_AsInt(obj1); | |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
13539 | { | |
13540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13541 | (arg1)->SetFlags(arg2); | |
13542 | ||
13543 | wxPyEndAllowThreads(__tstate); | |
13544 | if (PyErr_Occurred()) SWIG_fail; | |
13545 | } | |
13546 | Py_INCREF(Py_None); resultobj = Py_None; | |
13547 | return resultobj; | |
13548 | fail: | |
13549 | return NULL; | |
13550 | } | |
13551 | ||
13552 | ||
13553 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13554 | PyObject *resultobj; | |
13555 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13556 | wxString *arg2 = 0 ; | |
13557 | bool temp2 = False ; | |
13558 | PyObject * obj0 = 0 ; | |
13559 | PyObject * obj1 = 0 ; | |
13560 | char *kwnames[] = { | |
13561 | (char *) "self",(char *) "str", NULL | |
13562 | }; | |
13563 | ||
13564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13567 | { | |
13568 | arg2 = wxString_in_helper(obj1); | |
13569 | if (arg2 == NULL) SWIG_fail; | |
13570 | temp2 = True; | |
13571 | } | |
13572 | { | |
13573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13574 | (arg1)->SetFindString((wxString const &)*arg2); | |
13575 | ||
13576 | wxPyEndAllowThreads(__tstate); | |
13577 | if (PyErr_Occurred()) SWIG_fail; | |
13578 | } | |
13579 | Py_INCREF(Py_None); resultobj = Py_None; | |
13580 | { | |
13581 | if (temp2) | |
13582 | delete arg2; | |
13583 | } | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | { | |
13587 | if (temp2) | |
13588 | delete arg2; | |
13589 | } | |
13590 | return NULL; | |
13591 | } | |
13592 | ||
13593 | ||
13594 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13595 | PyObject *resultobj; | |
13596 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13597 | wxString *arg2 = 0 ; | |
13598 | bool temp2 = False ; | |
13599 | PyObject * obj0 = 0 ; | |
13600 | PyObject * obj1 = 0 ; | |
13601 | char *kwnames[] = { | |
13602 | (char *) "self",(char *) "str", NULL | |
13603 | }; | |
13604 | ||
13605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13608 | { | |
13609 | arg2 = wxString_in_helper(obj1); | |
13610 | if (arg2 == NULL) SWIG_fail; | |
13611 | temp2 = True; | |
13612 | } | |
13613 | { | |
13614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13615 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13616 | ||
13617 | wxPyEndAllowThreads(__tstate); | |
13618 | if (PyErr_Occurred()) SWIG_fail; | |
13619 | } | |
13620 | Py_INCREF(Py_None); resultobj = Py_None; | |
13621 | { | |
13622 | if (temp2) | |
13623 | delete arg2; | |
13624 | } | |
13625 | return resultobj; | |
13626 | fail: | |
13627 | { | |
13628 | if (temp2) | |
13629 | delete arg2; | |
13630 | } | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject * FindReplaceData_swigregister(PyObject *, PyObject *args) { | |
13636 | PyObject *obj; | |
13637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13638 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
13639 | Py_INCREF(obj); | |
13640 | return Py_BuildValue((char *)""); | |
13641 | } | |
13642 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
13643 | PyObject *resultobj; | |
13644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13645 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
13646 | wxString *arg3 = 0 ; | |
13647 | int arg4 = (int) 0 ; | |
13648 | wxFindReplaceDialog *result; | |
13649 | bool temp3 = False ; | |
13650 | PyObject * obj0 = 0 ; | |
13651 | PyObject * obj1 = 0 ; | |
13652 | PyObject * obj2 = 0 ; | |
13653 | PyObject * obj3 = 0 ; | |
13654 | char *kwnames[] = { | |
13655 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
13656 | }; | |
13657 | ||
13658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
13662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13663 | { | |
13664 | arg3 = wxString_in_helper(obj2); | |
13665 | if (arg3 == NULL) SWIG_fail; | |
13666 | temp3 = True; | |
13667 | } | |
13668 | if (obj3) { | |
13669 | arg4 = (int) SWIG_AsInt(obj3); | |
13670 | if (PyErr_Occurred()) SWIG_fail; | |
13671 | } | |
13672 | { | |
13673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13674 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
13675 | ||
13676 | wxPyEndAllowThreads(__tstate); | |
13677 | if (PyErr_Occurred()) SWIG_fail; | |
13678 | } | |
13679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
13680 | { | |
13681 | if (temp3) | |
13682 | delete arg3; | |
13683 | } | |
13684 | return resultobj; | |
13685 | fail: | |
13686 | { | |
13687 | if (temp3) | |
13688 | delete arg3; | |
13689 | } | |
13690 | return NULL; | |
13691 | } | |
13692 | ||
13693 | ||
13694 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
13695 | PyObject *resultobj; | |
13696 | wxFindReplaceDialog *result; | |
13697 | char *kwnames[] = { | |
13698 | NULL | |
13699 | }; | |
13700 | ||
13701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
13702 | { | |
13703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13704 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
13705 | ||
13706 | wxPyEndAllowThreads(__tstate); | |
13707 | if (PyErr_Occurred()) SWIG_fail; | |
13708 | } | |
13709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
13710 | return resultobj; | |
13711 | fail: | |
13712 | return NULL; | |
13713 | } | |
13714 | ||
13715 | ||
13716 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
13717 | PyObject *resultobj; | |
13718 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
13719 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13720 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
13721 | wxString *arg4 = 0 ; | |
13722 | int arg5 = (int) 0 ; | |
13723 | bool result; | |
13724 | bool temp4 = False ; | |
13725 | PyObject * obj0 = 0 ; | |
13726 | PyObject * obj1 = 0 ; | |
13727 | PyObject * obj2 = 0 ; | |
13728 | PyObject * obj3 = 0 ; | |
13729 | PyObject * obj4 = 0 ; | |
13730 | char *kwnames[] = { | |
13731 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
13732 | }; | |
13733 | ||
13734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
13736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13739 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
13740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13741 | { | |
13742 | arg4 = wxString_in_helper(obj3); | |
13743 | if (arg4 == NULL) SWIG_fail; | |
13744 | temp4 = True; | |
13745 | } | |
13746 | if (obj4) { | |
13747 | arg5 = (int) SWIG_AsInt(obj4); | |
13748 | if (PyErr_Occurred()) SWIG_fail; | |
13749 | } | |
13750 | { | |
13751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13752 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
13753 | ||
13754 | wxPyEndAllowThreads(__tstate); | |
13755 | if (PyErr_Occurred()) SWIG_fail; | |
13756 | } | |
13757 | { | |
13758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13759 | } | |
13760 | { | |
13761 | if (temp4) | |
13762 | delete arg4; | |
13763 | } | |
13764 | return resultobj; | |
13765 | fail: | |
13766 | { | |
13767 | if (temp4) | |
13768 | delete arg4; | |
13769 | } | |
13770 | return NULL; | |
13771 | } | |
13772 | ||
13773 | ||
13774 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
13775 | PyObject *resultobj; | |
13776 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
13777 | wxFindReplaceData *result; | |
13778 | PyObject * obj0 = 0 ; | |
13779 | char *kwnames[] = { | |
13780 | (char *) "self", NULL | |
13781 | }; | |
13782 | ||
13783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
13784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
13785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13786 | { | |
13787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13788 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
13789 | ||
13790 | wxPyEndAllowThreads(__tstate); | |
13791 | if (PyErr_Occurred()) SWIG_fail; | |
13792 | } | |
13793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
13794 | return resultobj; | |
13795 | fail: | |
13796 | return NULL; | |
13797 | } | |
13798 | ||
13799 | ||
13800 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
13801 | PyObject *resultobj; | |
13802 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
13803 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
13804 | PyObject * obj0 = 0 ; | |
13805 | PyObject * obj1 = 0 ; | |
13806 | char *kwnames[] = { | |
13807 | (char *) "self",(char *) "data", NULL | |
13808 | }; | |
13809 | ||
13810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
13811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
13812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13813 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
13814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13815 | { | |
13816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13817 | (arg1)->SetData(arg2); | |
13818 | ||
13819 | wxPyEndAllowThreads(__tstate); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
13822 | Py_INCREF(Py_None); resultobj = Py_None; | |
13823 | return resultobj; | |
13824 | fail: | |
13825 | return NULL; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static PyObject * FindReplaceDialog_swigregister(PyObject *, PyObject *args) { | |
13830 | PyObject *obj; | |
13831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13832 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
13833 | Py_INCREF(obj); | |
13834 | return Py_BuildValue((char *)""); | |
13835 | } | |
13836 | static PyObject *_wrap_new_MDIParentFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
13837 | PyObject *resultobj; | |
13838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13839 | int arg2 ; | |
13840 | wxString *arg3 = 0 ; | |
13841 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13842 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13843 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13844 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13845 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
13846 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
13847 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13848 | wxMDIParentFrame *result; | |
13849 | bool temp3 = False ; | |
13850 | wxPoint temp4 ; | |
13851 | wxSize temp5 ; | |
13852 | bool temp7 = False ; | |
13853 | PyObject * obj0 = 0 ; | |
13854 | PyObject * obj1 = 0 ; | |
13855 | PyObject * obj2 = 0 ; | |
13856 | PyObject * obj3 = 0 ; | |
13857 | PyObject * obj4 = 0 ; | |
13858 | PyObject * obj5 = 0 ; | |
13859 | PyObject * obj6 = 0 ; | |
13860 | char *kwnames[] = { | |
13861 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13862 | }; | |
13863 | ||
13864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
13865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13867 | arg2 = (int const) SWIG_AsInt(obj1); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | { | |
13870 | arg3 = wxString_in_helper(obj2); | |
13871 | if (arg3 == NULL) SWIG_fail; | |
13872 | temp3 = True; | |
13873 | } | |
13874 | if (obj3) { | |
13875 | { | |
13876 | arg4 = &temp4; | |
13877 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13878 | } | |
13879 | } | |
13880 | if (obj4) { | |
13881 | { | |
13882 | arg5 = &temp5; | |
13883 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13884 | } | |
13885 | } | |
13886 | if (obj5) { | |
13887 | arg6 = (long) SWIG_AsLong(obj5); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | if (obj6) { | |
13891 | { | |
13892 | arg7 = wxString_in_helper(obj6); | |
13893 | if (arg7 == NULL) SWIG_fail; | |
13894 | temp7 = True; | |
13895 | } | |
13896 | } | |
13897 | { | |
13898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13899 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
13900 | ||
13901 | wxPyEndAllowThreads(__tstate); | |
13902 | if (PyErr_Occurred()) SWIG_fail; | |
13903 | } | |
13904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
13905 | { | |
13906 | if (temp3) | |
13907 | delete arg3; | |
13908 | } | |
13909 | { | |
13910 | if (temp7) | |
13911 | delete arg7; | |
13912 | } | |
13913 | return resultobj; | |
13914 | fail: | |
13915 | { | |
13916 | if (temp3) | |
13917 | delete arg3; | |
13918 | } | |
13919 | { | |
13920 | if (temp7) | |
13921 | delete arg7; | |
13922 | } | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
13928 | PyObject *resultobj; | |
13929 | wxMDIParentFrame *result; | |
13930 | char *kwnames[] = { | |
13931 | NULL | |
13932 | }; | |
13933 | ||
13934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
13935 | { | |
13936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13937 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
13938 | ||
13939 | wxPyEndAllowThreads(__tstate); | |
13940 | if (PyErr_Occurred()) SWIG_fail; | |
13941 | } | |
13942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
13943 | return resultobj; | |
13944 | fail: | |
13945 | return NULL; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
13950 | PyObject *resultobj; | |
13951 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
13952 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13953 | int arg3 ; | |
13954 | wxString *arg4 = 0 ; | |
13955 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13956 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13957 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13958 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13959 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
13960 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
13961 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13962 | bool result; | |
13963 | bool temp4 = False ; | |
13964 | wxPoint temp5 ; | |
13965 | wxSize temp6 ; | |
13966 | bool temp8 = False ; | |
13967 | PyObject * obj0 = 0 ; | |
13968 | PyObject * obj1 = 0 ; | |
13969 | PyObject * obj2 = 0 ; | |
13970 | PyObject * obj3 = 0 ; | |
13971 | PyObject * obj4 = 0 ; | |
13972 | PyObject * obj5 = 0 ; | |
13973 | PyObject * obj6 = 0 ; | |
13974 | PyObject * obj7 = 0 ; | |
13975 | char *kwnames[] = { | |
13976 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
13977 | }; | |
13978 | ||
13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
13980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
13981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13984 | arg3 = (int const) SWIG_AsInt(obj2); | |
13985 | if (PyErr_Occurred()) SWIG_fail; | |
13986 | { | |
13987 | arg4 = wxString_in_helper(obj3); | |
13988 | if (arg4 == NULL) SWIG_fail; | |
13989 | temp4 = True; | |
13990 | } | |
13991 | if (obj4) { | |
13992 | { | |
13993 | arg5 = &temp5; | |
13994 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13995 | } | |
13996 | } | |
13997 | if (obj5) { | |
13998 | { | |
13999 | arg6 = &temp6; | |
14000 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14001 | } | |
14002 | } | |
14003 | if (obj6) { | |
14004 | arg7 = (long) SWIG_AsLong(obj6); | |
14005 | if (PyErr_Occurred()) SWIG_fail; | |
14006 | } | |
14007 | if (obj7) { | |
14008 | { | |
14009 | arg8 = wxString_in_helper(obj7); | |
14010 | if (arg8 == NULL) SWIG_fail; | |
14011 | temp8 = True; | |
14012 | } | |
14013 | } | |
14014 | { | |
14015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14016 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14017 | ||
14018 | wxPyEndAllowThreads(__tstate); | |
14019 | if (PyErr_Occurred()) SWIG_fail; | |
14020 | } | |
14021 | { | |
14022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14023 | } | |
14024 | { | |
14025 | if (temp4) | |
14026 | delete arg4; | |
14027 | } | |
14028 | { | |
14029 | if (temp8) | |
14030 | delete arg8; | |
14031 | } | |
14032 | return resultobj; | |
14033 | fail: | |
14034 | { | |
14035 | if (temp4) | |
14036 | delete arg4; | |
14037 | } | |
14038 | { | |
14039 | if (temp8) | |
14040 | delete arg8; | |
14041 | } | |
14042 | return NULL; | |
14043 | } | |
14044 | ||
14045 | ||
14046 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *, PyObject *args, PyObject *kwargs) { | |
14047 | PyObject *resultobj; | |
14048 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14049 | PyObject * obj0 = 0 ; | |
14050 | char *kwnames[] = { | |
14051 | (char *) "self", NULL | |
14052 | }; | |
14053 | ||
14054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14057 | { | |
14058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14059 | (arg1)->ActivateNext(); | |
14060 | ||
14061 | wxPyEndAllowThreads(__tstate); | |
14062 | if (PyErr_Occurred()) SWIG_fail; | |
14063 | } | |
14064 | Py_INCREF(Py_None); resultobj = Py_None; | |
14065 | return resultobj; | |
14066 | fail: | |
14067 | return NULL; | |
14068 | } | |
14069 | ||
14070 | ||
14071 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *, PyObject *args, PyObject *kwargs) { | |
14072 | PyObject *resultobj; | |
14073 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14074 | PyObject * obj0 = 0 ; | |
14075 | char *kwnames[] = { | |
14076 | (char *) "self", NULL | |
14077 | }; | |
14078 | ||
14079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14082 | { | |
14083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14084 | (arg1)->ActivatePrevious(); | |
14085 | ||
14086 | wxPyEndAllowThreads(__tstate); | |
14087 | if (PyErr_Occurred()) SWIG_fail; | |
14088 | } | |
14089 | Py_INCREF(Py_None); resultobj = Py_None; | |
14090 | return resultobj; | |
14091 | fail: | |
14092 | return NULL; | |
14093 | } | |
14094 | ||
14095 | ||
14096 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *, PyObject *args, PyObject *kwargs) { | |
14097 | PyObject *resultobj; | |
14098 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14099 | PyObject * obj0 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14107 | { | |
14108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14109 | (arg1)->ArrangeIcons(); | |
14110 | ||
14111 | wxPyEndAllowThreads(__tstate); | |
14112 | if (PyErr_Occurred()) SWIG_fail; | |
14113 | } | |
14114 | Py_INCREF(Py_None); resultobj = Py_None; | |
14115 | return resultobj; | |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *, PyObject *args, PyObject *kwargs) { | |
14122 | PyObject *resultobj; | |
14123 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14124 | PyObject * obj0 = 0 ; | |
14125 | char *kwnames[] = { | |
14126 | (char *) "self", NULL | |
14127 | }; | |
14128 | ||
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14132 | { | |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | (arg1)->Cascade(); | |
14135 | ||
14136 | wxPyEndAllowThreads(__tstate); | |
14137 | if (PyErr_Occurred()) SWIG_fail; | |
14138 | } | |
14139 | Py_INCREF(Py_None); resultobj = Py_None; | |
14140 | return resultobj; | |
14141 | fail: | |
14142 | return NULL; | |
14143 | } | |
14144 | ||
14145 | ||
14146 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
14147 | PyObject *resultobj; | |
14148 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14149 | wxMDIChildFrame *result; | |
14150 | PyObject * obj0 = 0 ; | |
14151 | char *kwnames[] = { | |
14152 | (char *) "self", NULL | |
14153 | }; | |
14154 | ||
14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14158 | { | |
14159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14160 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14161 | ||
14162 | wxPyEndAllowThreads(__tstate); | |
14163 | if (PyErr_Occurred()) SWIG_fail; | |
14164 | } | |
14165 | { | |
14166 | resultobj = wxPyMake_wxObject(result); | |
14167 | } | |
14168 | return resultobj; | |
14169 | fail: | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
14175 | PyObject *resultobj; | |
14176 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14177 | wxMDIClientWindow *result; | |
14178 | PyObject * obj0 = 0 ; | |
14179 | char *kwnames[] = { | |
14180 | (char *) "self", NULL | |
14181 | }; | |
14182 | ||
14183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14186 | { | |
14187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14188 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14189 | ||
14190 | wxPyEndAllowThreads(__tstate); | |
14191 | if (PyErr_Occurred()) SWIG_fail; | |
14192 | } | |
14193 | { | |
14194 | resultobj = wxPyMake_wxObject(result); | |
14195 | } | |
14196 | return resultobj; | |
14197 | fail: | |
14198 | return NULL; | |
14199 | } | |
14200 | ||
14201 | ||
14202 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
14203 | PyObject *resultobj; | |
14204 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14205 | wxWindow *result; | |
14206 | PyObject * obj0 = 0 ; | |
14207 | char *kwnames[] = { | |
14208 | (char *) "self", NULL | |
14209 | }; | |
14210 | ||
14211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14214 | { | |
14215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14216 | result = (wxWindow *)(arg1)->GetToolBar(); | |
14217 | ||
14218 | wxPyEndAllowThreads(__tstate); | |
14219 | if (PyErr_Occurred()) SWIG_fail; | |
14220 | } | |
14221 | { | |
14222 | resultobj = wxPyMake_wxObject(result); | |
14223 | } | |
14224 | return resultobj; | |
14225 | fail: | |
14226 | return NULL; | |
14227 | } | |
14228 | ||
14229 | ||
14230 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *, PyObject *args, PyObject *kwargs) { | |
14231 | PyObject *resultobj; | |
14232 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14233 | PyObject * obj0 = 0 ; | |
14234 | char *kwnames[] = { | |
14235 | (char *) "self", NULL | |
14236 | }; | |
14237 | ||
14238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14241 | { | |
14242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14243 | (arg1)->Tile(); | |
14244 | ||
14245 | wxPyEndAllowThreads(__tstate); | |
14246 | if (PyErr_Occurred()) SWIG_fail; | |
14247 | } | |
14248 | Py_INCREF(Py_None); resultobj = Py_None; | |
14249 | return resultobj; | |
14250 | fail: | |
14251 | return NULL; | |
14252 | } | |
14253 | ||
14254 | ||
14255 | static PyObject * MDIParentFrame_swigregister(PyObject *, PyObject *args) { | |
14256 | PyObject *obj; | |
14257 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14258 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14259 | Py_INCREF(obj); | |
14260 | return Py_BuildValue((char *)""); | |
14261 | } | |
14262 | static PyObject *_wrap_new_MDIChildFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
14263 | PyObject *resultobj; | |
14264 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14265 | int arg2 ; | |
14266 | wxString *arg3 = 0 ; | |
14267 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14268 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14269 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14270 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14271 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
14272 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14273 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14274 | wxMDIChildFrame *result; | |
14275 | bool temp3 = False ; | |
14276 | wxPoint temp4 ; | |
14277 | wxSize temp5 ; | |
14278 | bool temp7 = False ; | |
14279 | PyObject * obj0 = 0 ; | |
14280 | PyObject * obj1 = 0 ; | |
14281 | PyObject * obj2 = 0 ; | |
14282 | PyObject * obj3 = 0 ; | |
14283 | PyObject * obj4 = 0 ; | |
14284 | PyObject * obj5 = 0 ; | |
14285 | PyObject * obj6 = 0 ; | |
14286 | char *kwnames[] = { | |
14287 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14288 | }; | |
14289 | ||
14290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14293 | arg2 = (int const) SWIG_AsInt(obj1); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | { | |
14296 | arg3 = wxString_in_helper(obj2); | |
14297 | if (arg3 == NULL) SWIG_fail; | |
14298 | temp3 = True; | |
14299 | } | |
14300 | if (obj3) { | |
14301 | { | |
14302 | arg4 = &temp4; | |
14303 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14304 | } | |
14305 | } | |
14306 | if (obj4) { | |
14307 | { | |
14308 | arg5 = &temp5; | |
14309 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14310 | } | |
14311 | } | |
14312 | if (obj5) { | |
14313 | arg6 = (long) SWIG_AsLong(obj5); | |
14314 | if (PyErr_Occurred()) SWIG_fail; | |
14315 | } | |
14316 | if (obj6) { | |
14317 | { | |
14318 | arg7 = wxString_in_helper(obj6); | |
14319 | if (arg7 == NULL) SWIG_fail; | |
14320 | temp7 = True; | |
14321 | } | |
14322 | } | |
14323 | { | |
14324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14325 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14326 | ||
14327 | wxPyEndAllowThreads(__tstate); | |
14328 | if (PyErr_Occurred()) SWIG_fail; | |
14329 | } | |
14330 | { | |
14331 | resultobj = wxPyMake_wxObject(result); | |
14332 | } | |
14333 | { | |
14334 | if (temp3) | |
14335 | delete arg3; | |
14336 | } | |
14337 | { | |
14338 | if (temp7) | |
14339 | delete arg7; | |
14340 | } | |
14341 | return resultobj; | |
14342 | fail: | |
14343 | { | |
14344 | if (temp3) | |
14345 | delete arg3; | |
14346 | } | |
14347 | { | |
14348 | if (temp7) | |
14349 | delete arg7; | |
14350 | } | |
14351 | return NULL; | |
14352 | } | |
14353 | ||
14354 | ||
14355 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
14356 | PyObject *resultobj; | |
14357 | wxMDIChildFrame *result; | |
14358 | char *kwnames[] = { | |
14359 | NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
14363 | { | |
14364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14365 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
14366 | ||
14367 | wxPyEndAllowThreads(__tstate); | |
14368 | if (PyErr_Occurred()) SWIG_fail; | |
14369 | } | |
14370 | { | |
14371 | resultobj = wxPyMake_wxObject(result); | |
14372 | } | |
14373 | return resultobj; | |
14374 | fail: | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
14379 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
14380 | PyObject *resultobj; | |
14381 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14382 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14383 | int arg3 ; | |
14384 | wxString *arg4 = 0 ; | |
14385 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14386 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14387 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14388 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14389 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
14390 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14391 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14392 | bool result; | |
14393 | bool temp4 = False ; | |
14394 | wxPoint temp5 ; | |
14395 | wxSize temp6 ; | |
14396 | bool temp8 = False ; | |
14397 | PyObject * obj0 = 0 ; | |
14398 | PyObject * obj1 = 0 ; | |
14399 | PyObject * obj2 = 0 ; | |
14400 | PyObject * obj3 = 0 ; | |
14401 | PyObject * obj4 = 0 ; | |
14402 | PyObject * obj5 = 0 ; | |
14403 | PyObject * obj6 = 0 ; | |
14404 | PyObject * obj7 = 0 ; | |
14405 | char *kwnames[] = { | |
14406 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14407 | }; | |
14408 | ||
14409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
14413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14414 | arg3 = (int const) SWIG_AsInt(obj2); | |
14415 | if (PyErr_Occurred()) SWIG_fail; | |
14416 | { | |
14417 | arg4 = wxString_in_helper(obj3); | |
14418 | if (arg4 == NULL) SWIG_fail; | |
14419 | temp4 = True; | |
14420 | } | |
14421 | if (obj4) { | |
14422 | { | |
14423 | arg5 = &temp5; | |
14424 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14425 | } | |
14426 | } | |
14427 | if (obj5) { | |
14428 | { | |
14429 | arg6 = &temp6; | |
14430 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14431 | } | |
14432 | } | |
14433 | if (obj6) { | |
14434 | arg7 = (long) SWIG_AsLong(obj6); | |
14435 | if (PyErr_Occurred()) SWIG_fail; | |
14436 | } | |
14437 | if (obj7) { | |
14438 | { | |
14439 | arg8 = wxString_in_helper(obj7); | |
14440 | if (arg8 == NULL) SWIG_fail; | |
14441 | temp8 = True; | |
14442 | } | |
14443 | } | |
14444 | { | |
14445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14446 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14447 | ||
14448 | wxPyEndAllowThreads(__tstate); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | } | |
14451 | { | |
14452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14453 | } | |
14454 | { | |
14455 | if (temp4) | |
14456 | delete arg4; | |
14457 | } | |
14458 | { | |
14459 | if (temp8) | |
14460 | delete arg8; | |
14461 | } | |
14462 | return resultobj; | |
14463 | fail: | |
14464 | { | |
14465 | if (temp4) | |
14466 | delete arg4; | |
14467 | } | |
14468 | { | |
14469 | if (temp8) | |
14470 | delete arg8; | |
14471 | } | |
14472 | return NULL; | |
14473 | } | |
14474 | ||
14475 | ||
14476 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *, PyObject *args, PyObject *kwargs) { | |
14477 | PyObject *resultobj; | |
14478 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14479 | PyObject * obj0 = 0 ; | |
14480 | char *kwnames[] = { | |
14481 | (char *) "self", NULL | |
14482 | }; | |
14483 | ||
14484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
14485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14487 | { | |
14488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14489 | (arg1)->Activate(); | |
14490 | ||
14491 | wxPyEndAllowThreads(__tstate); | |
14492 | if (PyErr_Occurred()) SWIG_fail; | |
14493 | } | |
14494 | Py_INCREF(Py_None); resultobj = Py_None; | |
14495 | return resultobj; | |
14496 | fail: | |
14497 | return NULL; | |
14498 | } | |
14499 | ||
14500 | ||
14501 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14502 | PyObject *resultobj; | |
14503 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14504 | bool arg2 ; | |
14505 | PyObject * obj0 = 0 ; | |
14506 | PyObject * obj1 = 0 ; | |
14507 | char *kwnames[] = { | |
14508 | (char *) "self",(char *) "maximize", NULL | |
14509 | }; | |
14510 | ||
14511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
14512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14514 | arg2 = (bool) SWIG_AsBool(obj1); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | { | |
14517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14518 | (arg1)->Maximize(arg2); | |
14519 | ||
14520 | wxPyEndAllowThreads(__tstate); | |
14521 | if (PyErr_Occurred()) SWIG_fail; | |
14522 | } | |
14523 | Py_INCREF(Py_None); resultobj = Py_None; | |
14524 | return resultobj; | |
14525 | fail: | |
14526 | return NULL; | |
14527 | } | |
14528 | ||
14529 | ||
14530 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *, PyObject *args, PyObject *kwargs) { | |
14531 | PyObject *resultobj; | |
14532 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14533 | PyObject * obj0 = 0 ; | |
14534 | char *kwnames[] = { | |
14535 | (char *) "self", NULL | |
14536 | }; | |
14537 | ||
14538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
14539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14541 | { | |
14542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14543 | (arg1)->Restore(); | |
14544 | ||
14545 | wxPyEndAllowThreads(__tstate); | |
14546 | if (PyErr_Occurred()) SWIG_fail; | |
14547 | } | |
14548 | Py_INCREF(Py_None); resultobj = Py_None; | |
14549 | return resultobj; | |
14550 | fail: | |
14551 | return NULL; | |
14552 | } | |
14553 | ||
14554 | ||
14555 | static PyObject * MDIChildFrame_swigregister(PyObject *, PyObject *args) { | |
14556 | PyObject *obj; | |
14557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14558 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
14559 | Py_INCREF(obj); | |
14560 | return Py_BuildValue((char *)""); | |
14561 | } | |
14562 | static PyObject *_wrap_new_MDIClientWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
14563 | PyObject *resultobj; | |
14564 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14565 | long arg2 = (long) 0 ; | |
14566 | wxMDIClientWindow *result; | |
14567 | PyObject * obj0 = 0 ; | |
14568 | PyObject * obj1 = 0 ; | |
14569 | char *kwnames[] = { | |
14570 | (char *) "parent",(char *) "style", NULL | |
14571 | }; | |
14572 | ||
14573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
14574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14576 | if (obj1) { | |
14577 | arg2 = (long) SWIG_AsLong(obj1); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
14580 | { | |
14581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14582 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
14583 | ||
14584 | wxPyEndAllowThreads(__tstate); | |
14585 | if (PyErr_Occurred()) SWIG_fail; | |
14586 | } | |
14587 | { | |
14588 | resultobj = wxPyMake_wxObject(result); | |
14589 | } | |
14590 | return resultobj; | |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxMDIClientWindow *result; | |
14599 | char *kwnames[] = { | |
14600 | NULL | |
14601 | }; | |
14602 | ||
14603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
14604 | { | |
14605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14606 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
14607 | ||
14608 | wxPyEndAllowThreads(__tstate); | |
14609 | if (PyErr_Occurred()) SWIG_fail; | |
14610 | } | |
14611 | { | |
14612 | resultobj = wxPyMake_wxObject(result); | |
14613 | } | |
14614 | return resultobj; | |
14615 | fail: | |
14616 | return NULL; | |
14617 | } | |
14618 | ||
14619 | ||
14620 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
14621 | PyObject *resultobj; | |
14622 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
14623 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14624 | long arg3 = (long) 0 ; | |
14625 | bool result; | |
14626 | PyObject * obj0 = 0 ; | |
14627 | PyObject * obj1 = 0 ; | |
14628 | PyObject * obj2 = 0 ; | |
14629 | char *kwnames[] = { | |
14630 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
14631 | }; | |
14632 | ||
14633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
14635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
14637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14638 | if (obj2) { | |
14639 | arg3 = (long) SWIG_AsLong(obj2); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
14642 | { | |
14643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14644 | result = (bool)(arg1)->Create(arg2,arg3); | |
14645 | ||
14646 | wxPyEndAllowThreads(__tstate); | |
14647 | if (PyErr_Occurred()) SWIG_fail; | |
14648 | } | |
14649 | { | |
14650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14651 | } | |
14652 | return resultobj; | |
14653 | fail: | |
14654 | return NULL; | |
14655 | } | |
14656 | ||
14657 | ||
14658 | static PyObject * MDIClientWindow_swigregister(PyObject *, PyObject *args) { | |
14659 | PyObject *obj; | |
14660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14661 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
14662 | Py_INCREF(obj); | |
14663 | return Py_BuildValue((char *)""); | |
14664 | } | |
14665 | static PyObject *_wrap_new_PyWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
14666 | PyObject *resultobj; | |
14667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14668 | int arg2 ; | |
14669 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14670 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14671 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14672 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14673 | long arg5 = (long) 0 ; | |
14674 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
14675 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14676 | wxPyWindow *result; | |
14677 | wxPoint temp3 ; | |
14678 | wxSize temp4 ; | |
14679 | bool temp6 = False ; | |
14680 | PyObject * obj0 = 0 ; | |
14681 | PyObject * obj1 = 0 ; | |
14682 | PyObject * obj2 = 0 ; | |
14683 | PyObject * obj3 = 0 ; | |
14684 | PyObject * obj4 = 0 ; | |
14685 | PyObject * obj5 = 0 ; | |
14686 | char *kwnames[] = { | |
14687 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14688 | }; | |
14689 | ||
14690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14693 | arg2 = (int const) SWIG_AsInt(obj1); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | if (obj2) { | |
14696 | { | |
14697 | arg3 = &temp3; | |
14698 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14699 | } | |
14700 | } | |
14701 | if (obj3) { | |
14702 | { | |
14703 | arg4 = &temp4; | |
14704 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14705 | } | |
14706 | } | |
14707 | if (obj4) { | |
14708 | arg5 = (long) SWIG_AsLong(obj4); | |
14709 | if (PyErr_Occurred()) SWIG_fail; | |
14710 | } | |
14711 | if (obj5) { | |
14712 | { | |
14713 | arg6 = wxString_in_helper(obj5); | |
14714 | if (arg6 == NULL) SWIG_fail; | |
14715 | temp6 = True; | |
14716 | } | |
14717 | } | |
14718 | { | |
14719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14720 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14721 | ||
14722 | wxPyEndAllowThreads(__tstate); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | } | |
14725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
14726 | { | |
14727 | if (temp6) | |
14728 | delete arg6; | |
14729 | } | |
14730 | return resultobj; | |
14731 | fail: | |
14732 | { | |
14733 | if (temp6) | |
14734 | delete arg6; | |
14735 | } | |
14736 | return NULL; | |
14737 | } | |
14738 | ||
14739 | ||
14740 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
14741 | PyObject *resultobj; | |
14742 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14743 | PyObject *arg2 = (PyObject *) 0 ; | |
14744 | PyObject *arg3 = (PyObject *) 0 ; | |
14745 | PyObject * obj0 = 0 ; | |
14746 | PyObject * obj1 = 0 ; | |
14747 | PyObject * obj2 = 0 ; | |
14748 | char *kwnames[] = { | |
14749 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14750 | }; | |
14751 | ||
14752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14755 | arg2 = obj1; | |
14756 | arg3 = obj2; | |
14757 | { | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | } | |
14764 | Py_INCREF(Py_None); resultobj = Py_None; | |
14765 | return resultobj; | |
14766 | fail: | |
14767 | return NULL; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
14772 | PyObject *resultobj; | |
14773 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14774 | int arg2 ; | |
14775 | int arg3 ; | |
14776 | int arg4 ; | |
14777 | int arg5 ; | |
14778 | PyObject * obj0 = 0 ; | |
14779 | PyObject * obj1 = 0 ; | |
14780 | PyObject * obj2 = 0 ; | |
14781 | PyObject * obj3 = 0 ; | |
14782 | PyObject * obj4 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14790 | arg2 = (int) SWIG_AsInt(obj1); | |
14791 | if (PyErr_Occurred()) SWIG_fail; | |
14792 | arg3 = (int) SWIG_AsInt(obj2); | |
14793 | if (PyErr_Occurred()) SWIG_fail; | |
14794 | arg4 = (int) SWIG_AsInt(obj3); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | arg5 = (int) SWIG_AsInt(obj4); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | { | |
14799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14800 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
14801 | ||
14802 | wxPyEndAllowThreads(__tstate); | |
14803 | if (PyErr_Occurred()) SWIG_fail; | |
14804 | } | |
14805 | Py_INCREF(Py_None); resultobj = Py_None; | |
14806 | return resultobj; | |
14807 | fail: | |
14808 | return NULL; | |
14809 | } | |
14810 | ||
14811 | ||
14812 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14813 | PyObject *resultobj; | |
14814 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14815 | int arg2 ; | |
14816 | int arg3 ; | |
14817 | int arg4 ; | |
14818 | int arg5 ; | |
14819 | int arg6 = (int) wxSIZE_AUTO ; | |
14820 | PyObject * obj0 = 0 ; | |
14821 | PyObject * obj1 = 0 ; | |
14822 | PyObject * obj2 = 0 ; | |
14823 | PyObject * obj3 = 0 ; | |
14824 | PyObject * obj4 = 0 ; | |
14825 | PyObject * obj5 = 0 ; | |
14826 | char *kwnames[] = { | |
14827 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
14828 | }; | |
14829 | ||
14830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14833 | arg2 = (int) SWIG_AsInt(obj1); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | arg3 = (int) SWIG_AsInt(obj2); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | arg4 = (int) SWIG_AsInt(obj3); | |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
14839 | arg5 = (int) SWIG_AsInt(obj4); | |
14840 | if (PyErr_Occurred()) SWIG_fail; | |
14841 | if (obj5) { | |
14842 | arg6 = (int) SWIG_AsInt(obj5); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
14845 | { | |
14846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14847 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
14848 | ||
14849 | wxPyEndAllowThreads(__tstate); | |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | } | |
14852 | Py_INCREF(Py_None); resultobj = Py_None; | |
14853 | return resultobj; | |
14854 | fail: | |
14855 | return NULL; | |
14856 | } | |
14857 | ||
14858 | ||
14859 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj; | |
14861 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14862 | int arg2 ; | |
14863 | int arg3 ; | |
14864 | PyObject * obj0 = 0 ; | |
14865 | PyObject * obj1 = 0 ; | |
14866 | PyObject * obj2 = 0 ; | |
14867 | char *kwnames[] = { | |
14868 | (char *) "self",(char *) "width",(char *) "height", NULL | |
14869 | }; | |
14870 | ||
14871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14874 | arg2 = (int) SWIG_AsInt(obj1); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | arg3 = (int) SWIG_AsInt(obj2); | |
14877 | if (PyErr_Occurred()) SWIG_fail; | |
14878 | { | |
14879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14880 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
14881 | ||
14882 | wxPyEndAllowThreads(__tstate); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
14885 | Py_INCREF(Py_None); resultobj = Py_None; | |
14886 | return resultobj; | |
14887 | fail: | |
14888 | return NULL; | |
14889 | } | |
14890 | ||
14891 | ||
14892 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14893 | PyObject *resultobj; | |
14894 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14895 | int arg2 ; | |
14896 | int arg3 ; | |
14897 | PyObject * obj0 = 0 ; | |
14898 | PyObject * obj1 = 0 ; | |
14899 | PyObject * obj2 = 0 ; | |
14900 | char *kwnames[] = { | |
14901 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14902 | }; | |
14903 | ||
14904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14907 | arg2 = (int) SWIG_AsInt(obj1); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
14909 | arg3 = (int) SWIG_AsInt(obj2); | |
14910 | if (PyErr_Occurred()) SWIG_fail; | |
14911 | { | |
14912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14913 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
14914 | ||
14915 | wxPyEndAllowThreads(__tstate); | |
14916 | if (PyErr_Occurred()) SWIG_fail; | |
14917 | } | |
14918 | Py_INCREF(Py_None); resultobj = Py_None; | |
14919 | return resultobj; | |
14920 | fail: | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
14925 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14926 | PyObject *resultobj; | |
14927 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14928 | int *arg2 = (int *) 0 ; | |
14929 | int *arg3 = (int *) 0 ; | |
14930 | int temp2 ; | |
14931 | int temp3 ; | |
14932 | PyObject * obj0 = 0 ; | |
14933 | char *kwnames[] = { | |
14934 | (char *) "self", NULL | |
14935 | }; | |
14936 | ||
14937 | arg2 = &temp2; | |
14938 | arg3 = &temp3; | |
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
14940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14942 | { | |
14943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14944 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
14945 | ||
14946 | wxPyEndAllowThreads(__tstate); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
14948 | } | |
14949 | Py_INCREF(Py_None); resultobj = Py_None; | |
14950 | { | |
14951 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14952 | resultobj = t_output_helper(resultobj,o); | |
14953 | } | |
14954 | { | |
14955 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14956 | resultobj = t_output_helper(resultobj,o); | |
14957 | } | |
14958 | return resultobj; | |
14959 | fail: | |
14960 | return NULL; | |
14961 | } | |
14962 | ||
14963 | ||
14964 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
14965 | PyObject *resultobj; | |
14966 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14967 | int *arg2 = (int *) 0 ; | |
14968 | int *arg3 = (int *) 0 ; | |
14969 | int temp2 ; | |
14970 | int temp3 ; | |
14971 | PyObject * obj0 = 0 ; | |
14972 | char *kwnames[] = { | |
14973 | (char *) "self", NULL | |
14974 | }; | |
14975 | ||
14976 | arg2 = &temp2; | |
14977 | arg3 = &temp3; | |
14978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
14979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
14980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14981 | { | |
14982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14983 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
14984 | ||
14985 | wxPyEndAllowThreads(__tstate); | |
14986 | if (PyErr_Occurred()) SWIG_fail; | |
14987 | } | |
14988 | Py_INCREF(Py_None); resultobj = Py_None; | |
14989 | { | |
14990 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14991 | resultobj = t_output_helper(resultobj,o); | |
14992 | } | |
14993 | { | |
14994 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14995 | resultobj = t_output_helper(resultobj,o); | |
14996 | } | |
14997 | return resultobj; | |
14998 | fail: | |
14999 | return NULL; | |
15000 | } | |
15001 | ||
15002 | ||
15003 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
15004 | PyObject *resultobj; | |
15005 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15006 | int *arg2 = (int *) 0 ; | |
15007 | int *arg3 = (int *) 0 ; | |
15008 | int temp2 ; | |
15009 | int temp3 ; | |
15010 | PyObject * obj0 = 0 ; | |
15011 | char *kwnames[] = { | |
15012 | (char *) "self", NULL | |
15013 | }; | |
15014 | ||
15015 | arg2 = &temp2; | |
15016 | arg3 = &temp3; | |
15017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15020 | { | |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15022 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15023 | ||
15024 | wxPyEndAllowThreads(__tstate); | |
15025 | if (PyErr_Occurred()) SWIG_fail; | |
15026 | } | |
15027 | Py_INCREF(Py_None); resultobj = Py_None; | |
15028 | { | |
15029 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15030 | resultobj = t_output_helper(resultobj,o); | |
15031 | } | |
15032 | { | |
15033 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15034 | resultobj = t_output_helper(resultobj,o); | |
15035 | } | |
15036 | return resultobj; | |
15037 | fail: | |
15038 | return NULL; | |
15039 | } | |
15040 | ||
15041 | ||
15042 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15043 | PyObject *resultobj; | |
15044 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15045 | wxSize result; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | char *kwnames[] = { | |
15048 | (char *) "self", NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15054 | { | |
15055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15056 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15057 | ||
15058 | wxPyEndAllowThreads(__tstate); | |
15059 | if (PyErr_Occurred()) SWIG_fail; | |
15060 | } | |
15061 | { | |
15062 | wxSize * resultptr; | |
15063 | resultptr = new wxSize((wxSize &) result); | |
15064 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15065 | } | |
15066 | return resultobj; | |
15067 | fail: | |
15068 | return NULL; | |
15069 | } | |
15070 | ||
15071 | ||
15072 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15073 | PyObject *resultobj; | |
15074 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15075 | wxSize result; | |
15076 | PyObject * obj0 = 0 ; | |
15077 | char *kwnames[] = { | |
15078 | (char *) "self", NULL | |
15079 | }; | |
15080 | ||
15081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15084 | { | |
15085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15086 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15087 | ||
15088 | wxPyEndAllowThreads(__tstate); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
15090 | } | |
15091 | { | |
15092 | wxSize * resultptr; | |
15093 | resultptr = new wxSize((wxSize &) result); | |
15094 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15095 | } | |
15096 | return resultobj; | |
15097 | fail: | |
15098 | return NULL; | |
15099 | } | |
15100 | ||
15101 | ||
15102 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
15103 | PyObject *resultobj; | |
15104 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15105 | PyObject * obj0 = 0 ; | |
15106 | char *kwnames[] = { | |
15107 | (char *) "self", NULL | |
15108 | }; | |
15109 | ||
15110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15113 | { | |
15114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15115 | (arg1)->base_InitDialog(); | |
15116 | ||
15117 | wxPyEndAllowThreads(__tstate); | |
15118 | if (PyErr_Occurred()) SWIG_fail; | |
15119 | } | |
15120 | Py_INCREF(Py_None); resultobj = Py_None; | |
15121 | return resultobj; | |
15122 | fail: | |
15123 | return NULL; | |
15124 | } | |
15125 | ||
15126 | ||
15127 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
15128 | PyObject *resultobj; | |
15129 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15130 | bool result; | |
15131 | PyObject * obj0 = 0 ; | |
15132 | char *kwnames[] = { | |
15133 | (char *) "self", NULL | |
15134 | }; | |
15135 | ||
15136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15139 | { | |
15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15141 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15142 | ||
15143 | wxPyEndAllowThreads(__tstate); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
15146 | { | |
15147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15148 | } | |
15149 | return resultobj; | |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj; | |
15157 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15158 | bool result; | |
15159 | PyObject * obj0 = 0 ; | |
15160 | char *kwnames[] = { | |
15161 | (char *) "self", NULL | |
15162 | }; | |
15163 | ||
15164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15167 | { | |
15168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15169 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15170 | ||
15171 | wxPyEndAllowThreads(__tstate); | |
15172 | if (PyErr_Occurred()) SWIG_fail; | |
15173 | } | |
15174 | { | |
15175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15176 | } | |
15177 | return resultobj; | |
15178 | fail: | |
15179 | return NULL; | |
15180 | } | |
15181 | ||
15182 | ||
15183 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { | |
15184 | PyObject *resultobj; | |
15185 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15186 | bool result; | |
15187 | PyObject * obj0 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "self", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | result = (bool)(arg1)->base_Validate(); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | { | |
15203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15204 | } | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
15211 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { | |
15212 | PyObject *resultobj; | |
15213 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15214 | bool result; | |
15215 | PyObject * obj0 = 0 ; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "self", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15226 | ||
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | { | |
15231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15232 | } | |
15233 | return resultobj; | |
15234 | fail: | |
15235 | return NULL; | |
15236 | } | |
15237 | ||
15238 | ||
15239 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { | |
15240 | PyObject *resultobj; | |
15241 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15242 | bool result; | |
15243 | PyObject * obj0 = 0 ; | |
15244 | char *kwnames[] = { | |
15245 | (char *) "self", NULL | |
15246 | }; | |
15247 | ||
15248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
15257 | } | |
15258 | { | |
15259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15260 | } | |
15261 | return resultobj; | |
15262 | fail: | |
15263 | return NULL; | |
15264 | } | |
15265 | ||
15266 | ||
15267 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15268 | PyObject *resultobj; | |
15269 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15270 | wxSize result; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
15286 | { | |
15287 | wxSize * resultptr; | |
15288 | resultptr = new wxSize((wxSize &) result); | |
15289 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15290 | } | |
15291 | return resultobj; | |
15292 | fail: | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
15297 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
15298 | PyObject *resultobj; | |
15299 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15300 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | PyObject * obj1 = 0 ; | |
15303 | char *kwnames[] = { | |
15304 | (char *) "self",(char *) "child", NULL | |
15305 | }; | |
15306 | ||
15307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15312 | { | |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | (arg1)->base_AddChild(arg2); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
15319 | Py_INCREF(Py_None); resultobj = Py_None; | |
15320 | return resultobj; | |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
15326 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
15327 | PyObject *resultobj; | |
15328 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15329 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15330 | PyObject * obj0 = 0 ; | |
15331 | PyObject * obj1 = 0 ; | |
15332 | char *kwnames[] = { | |
15333 | (char *) "self",(char *) "child", NULL | |
15334 | }; | |
15335 | ||
15336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15341 | { | |
15342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15343 | (arg1)->base_RemoveChild(arg2); | |
15344 | ||
15345 | wxPyEndAllowThreads(__tstate); | |
15346 | if (PyErr_Occurred()) SWIG_fail; | |
15347 | } | |
15348 | Py_INCREF(Py_None); resultobj = Py_None; | |
15349 | return resultobj; | |
15350 | fail: | |
15351 | return NULL; | |
15352 | } | |
15353 | ||
15354 | ||
15355 | static PyObject * PyWindow_swigregister(PyObject *, PyObject *args) { | |
15356 | PyObject *obj; | |
15357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15358 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
15359 | Py_INCREF(obj); | |
15360 | return Py_BuildValue((char *)""); | |
15361 | } | |
15362 | static PyObject *_wrap_new_PyPanel(PyObject *, PyObject *args, PyObject *kwargs) { | |
15363 | PyObject *resultobj; | |
15364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15365 | int arg2 ; | |
15366 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15367 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15368 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15369 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15370 | long arg5 = (long) 0 ; | |
15371 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15372 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15373 | wxPyPanel *result; | |
15374 | wxPoint temp3 ; | |
15375 | wxSize temp4 ; | |
15376 | bool temp6 = False ; | |
15377 | PyObject * obj0 = 0 ; | |
15378 | PyObject * obj1 = 0 ; | |
15379 | PyObject * obj2 = 0 ; | |
15380 | PyObject * obj3 = 0 ; | |
15381 | PyObject * obj4 = 0 ; | |
15382 | PyObject * obj5 = 0 ; | |
15383 | char *kwnames[] = { | |
15384 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15385 | }; | |
15386 | ||
15387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15390 | arg2 = (int const) SWIG_AsInt(obj1); | |
15391 | if (PyErr_Occurred()) SWIG_fail; | |
15392 | if (obj2) { | |
15393 | { | |
15394 | arg3 = &temp3; | |
15395 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15396 | } | |
15397 | } | |
15398 | if (obj3) { | |
15399 | { | |
15400 | arg4 = &temp4; | |
15401 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15402 | } | |
15403 | } | |
15404 | if (obj4) { | |
15405 | arg5 = (long) SWIG_AsLong(obj4); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | } | |
15408 | if (obj5) { | |
15409 | { | |
15410 | arg6 = wxString_in_helper(obj5); | |
15411 | if (arg6 == NULL) SWIG_fail; | |
15412 | temp6 = True; | |
15413 | } | |
15414 | } | |
15415 | { | |
15416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15417 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15418 | ||
15419 | wxPyEndAllowThreads(__tstate); | |
15420 | if (PyErr_Occurred()) SWIG_fail; | |
15421 | } | |
15422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
15423 | { | |
15424 | if (temp6) | |
15425 | delete arg6; | |
15426 | } | |
15427 | return resultobj; | |
15428 | fail: | |
15429 | { | |
15430 | if (temp6) | |
15431 | delete arg6; | |
15432 | } | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
15437 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
15438 | PyObject *resultobj; | |
15439 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15440 | PyObject *arg2 = (PyObject *) 0 ; | |
15441 | PyObject *arg3 = (PyObject *) 0 ; | |
15442 | PyObject * obj0 = 0 ; | |
15443 | PyObject * obj1 = 0 ; | |
15444 | PyObject * obj2 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15452 | arg2 = obj1; | |
15453 | arg3 = obj2; | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15457 | ||
15458 | wxPyEndAllowThreads(__tstate); | |
15459 | if (PyErr_Occurred()) SWIG_fail; | |
15460 | } | |
15461 | Py_INCREF(Py_None); resultobj = Py_None; | |
15462 | return resultobj; | |
15463 | fail: | |
15464 | return NULL; | |
15465 | } | |
15466 | ||
15467 | ||
15468 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
15469 | PyObject *resultobj; | |
15470 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15471 | int arg2 ; | |
15472 | int arg3 ; | |
15473 | int arg4 ; | |
15474 | int arg5 ; | |
15475 | PyObject * obj0 = 0 ; | |
15476 | PyObject * obj1 = 0 ; | |
15477 | PyObject * obj2 = 0 ; | |
15478 | PyObject * obj3 = 0 ; | |
15479 | PyObject * obj4 = 0 ; | |
15480 | char *kwnames[] = { | |
15481 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15487 | arg2 = (int) SWIG_AsInt(obj1); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | arg3 = (int) SWIG_AsInt(obj2); | |
15490 | if (PyErr_Occurred()) SWIG_fail; | |
15491 | arg4 = (int) SWIG_AsInt(obj3); | |
15492 | if (PyErr_Occurred()) SWIG_fail; | |
15493 | arg5 = (int) SWIG_AsInt(obj4); | |
15494 | if (PyErr_Occurred()) SWIG_fail; | |
15495 | { | |
15496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15497 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15498 | ||
15499 | wxPyEndAllowThreads(__tstate); | |
15500 | if (PyErr_Occurred()) SWIG_fail; | |
15501 | } | |
15502 | Py_INCREF(Py_None); resultobj = Py_None; | |
15503 | return resultobj; | |
15504 | fail: | |
15505 | return NULL; | |
15506 | } | |
15507 | ||
15508 | ||
15509 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15510 | PyObject *resultobj; | |
15511 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15512 | int arg2 ; | |
15513 | int arg3 ; | |
15514 | int arg4 ; | |
15515 | int arg5 ; | |
15516 | int arg6 = (int) wxSIZE_AUTO ; | |
15517 | PyObject * obj0 = 0 ; | |
15518 | PyObject * obj1 = 0 ; | |
15519 | PyObject * obj2 = 0 ; | |
15520 | PyObject * obj3 = 0 ; | |
15521 | PyObject * obj4 = 0 ; | |
15522 | PyObject * obj5 = 0 ; | |
15523 | char *kwnames[] = { | |
15524 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15525 | }; | |
15526 | ||
15527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15530 | arg2 = (int) SWIG_AsInt(obj1); | |
15531 | if (PyErr_Occurred()) SWIG_fail; | |
15532 | arg3 = (int) SWIG_AsInt(obj2); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | arg4 = (int) SWIG_AsInt(obj3); | |
15535 | if (PyErr_Occurred()) SWIG_fail; | |
15536 | arg5 = (int) SWIG_AsInt(obj4); | |
15537 | if (PyErr_Occurred()) SWIG_fail; | |
15538 | if (obj5) { | |
15539 | arg6 = (int) SWIG_AsInt(obj5); | |
15540 | if (PyErr_Occurred()) SWIG_fail; | |
15541 | } | |
15542 | { | |
15543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15544 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15545 | ||
15546 | wxPyEndAllowThreads(__tstate); | |
15547 | if (PyErr_Occurred()) SWIG_fail; | |
15548 | } | |
15549 | Py_INCREF(Py_None); resultobj = Py_None; | |
15550 | return resultobj; | |
15551 | fail: | |
15552 | return NULL; | |
15553 | } | |
15554 | ||
15555 | ||
15556 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15557 | PyObject *resultobj; | |
15558 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15559 | int arg2 ; | |
15560 | int arg3 ; | |
15561 | PyObject * obj0 = 0 ; | |
15562 | PyObject * obj1 = 0 ; | |
15563 | PyObject * obj2 = 0 ; | |
15564 | char *kwnames[] = { | |
15565 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15566 | }; | |
15567 | ||
15568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15571 | arg2 = (int) SWIG_AsInt(obj1); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | arg3 = (int) SWIG_AsInt(obj2); | |
15574 | if (PyErr_Occurred()) SWIG_fail; | |
15575 | { | |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15577 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15578 | ||
15579 | wxPyEndAllowThreads(__tstate); | |
15580 | if (PyErr_Occurred()) SWIG_fail; | |
15581 | } | |
15582 | Py_INCREF(Py_None); resultobj = Py_None; | |
15583 | return resultobj; | |
15584 | fail: | |
15585 | return NULL; | |
15586 | } | |
15587 | ||
15588 | ||
15589 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15590 | PyObject *resultobj; | |
15591 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15592 | int arg2 ; | |
15593 | int arg3 ; | |
15594 | PyObject * obj0 = 0 ; | |
15595 | PyObject * obj1 = 0 ; | |
15596 | PyObject * obj2 = 0 ; | |
15597 | char *kwnames[] = { | |
15598 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15599 | }; | |
15600 | ||
15601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15604 | arg2 = (int) SWIG_AsInt(obj1); | |
15605 | if (PyErr_Occurred()) SWIG_fail; | |
15606 | arg3 = (int) SWIG_AsInt(obj2); | |
15607 | if (PyErr_Occurred()) SWIG_fail; | |
15608 | { | |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
15615 | Py_INCREF(Py_None); resultobj = Py_None; | |
15616 | return resultobj; | |
15617 | fail: | |
15618 | return NULL; | |
15619 | } | |
15620 | ||
15621 | ||
15622 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15623 | PyObject *resultobj; | |
15624 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15625 | int *arg2 = (int *) 0 ; | |
15626 | int *arg3 = (int *) 0 ; | |
15627 | int temp2 ; | |
15628 | int temp3 ; | |
15629 | PyObject * obj0 = 0 ; | |
15630 | char *kwnames[] = { | |
15631 | (char *) "self", NULL | |
15632 | }; | |
15633 | ||
15634 | arg2 = &temp2; | |
15635 | arg3 = &temp3; | |
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15639 | { | |
15640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15641 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
15642 | ||
15643 | wxPyEndAllowThreads(__tstate); | |
15644 | if (PyErr_Occurred()) SWIG_fail; | |
15645 | } | |
15646 | Py_INCREF(Py_None); resultobj = Py_None; | |
15647 | { | |
15648 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15649 | resultobj = t_output_helper(resultobj,o); | |
15650 | } | |
15651 | { | |
15652 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15653 | resultobj = t_output_helper(resultobj,o); | |
15654 | } | |
15655 | return resultobj; | |
15656 | fail: | |
15657 | return NULL; | |
15658 | } | |
15659 | ||
15660 | ||
15661 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15662 | PyObject *resultobj; | |
15663 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15664 | int *arg2 = (int *) 0 ; | |
15665 | int *arg3 = (int *) 0 ; | |
15666 | int temp2 ; | |
15667 | int temp3 ; | |
15668 | PyObject * obj0 = 0 ; | |
15669 | char *kwnames[] = { | |
15670 | (char *) "self", NULL | |
15671 | }; | |
15672 | ||
15673 | arg2 = &temp2; | |
15674 | arg3 = &temp3; | |
15675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15678 | { | |
15679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15680 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15681 | ||
15682 | wxPyEndAllowThreads(__tstate); | |
15683 | if (PyErr_Occurred()) SWIG_fail; | |
15684 | } | |
15685 | Py_INCREF(Py_None); resultobj = Py_None; | |
15686 | { | |
15687 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15688 | resultobj = t_output_helper(resultobj,o); | |
15689 | } | |
15690 | { | |
15691 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15692 | resultobj = t_output_helper(resultobj,o); | |
15693 | } | |
15694 | return resultobj; | |
15695 | fail: | |
15696 | return NULL; | |
15697 | } | |
15698 | ||
15699 | ||
15700 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
15701 | PyObject *resultobj; | |
15702 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15703 | int *arg2 = (int *) 0 ; | |
15704 | int *arg3 = (int *) 0 ; | |
15705 | int temp2 ; | |
15706 | int temp3 ; | |
15707 | PyObject * obj0 = 0 ; | |
15708 | char *kwnames[] = { | |
15709 | (char *) "self", NULL | |
15710 | }; | |
15711 | ||
15712 | arg2 = &temp2; | |
15713 | arg3 = &temp3; | |
15714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15717 | { | |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15719 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15720 | ||
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | Py_INCREF(Py_None); resultobj = Py_None; | |
15725 | { | |
15726 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15727 | resultobj = t_output_helper(resultobj,o); | |
15728 | } | |
15729 | { | |
15730 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15731 | resultobj = t_output_helper(resultobj,o); | |
15732 | } | |
15733 | return resultobj; | |
15734 | fail: | |
15735 | return NULL; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15740 | PyObject *resultobj; | |
15741 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15742 | wxSize result; | |
15743 | PyObject * obj0 = 0 ; | |
15744 | char *kwnames[] = { | |
15745 | (char *) "self", NULL | |
15746 | }; | |
15747 | ||
15748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15751 | { | |
15752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15753 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
15754 | ||
15755 | wxPyEndAllowThreads(__tstate); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
15757 | } | |
15758 | { | |
15759 | wxSize * resultptr; | |
15760 | resultptr = new wxSize((wxSize &) result); | |
15761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15762 | } | |
15763 | return resultobj; | |
15764 | fail: | |
15765 | return NULL; | |
15766 | } | |
15767 | ||
15768 | ||
15769 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15770 | PyObject *resultobj; | |
15771 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15772 | wxSize result; | |
15773 | PyObject * obj0 = 0 ; | |
15774 | char *kwnames[] = { | |
15775 | (char *) "self", NULL | |
15776 | }; | |
15777 | ||
15778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15781 | { | |
15782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15783 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
15784 | ||
15785 | wxPyEndAllowThreads(__tstate); | |
15786 | if (PyErr_Occurred()) SWIG_fail; | |
15787 | } | |
15788 | { | |
15789 | wxSize * resultptr; | |
15790 | resultptr = new wxSize((wxSize &) result); | |
15791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15792 | } | |
15793 | return resultobj; | |
15794 | fail: | |
15795 | return NULL; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
15800 | PyObject *resultobj; | |
15801 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15802 | PyObject * obj0 = 0 ; | |
15803 | char *kwnames[] = { | |
15804 | (char *) "self", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
15808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15810 | { | |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | (arg1)->base_InitDialog(); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
15817 | Py_INCREF(Py_None); resultobj = Py_None; | |
15818 | return resultobj; | |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
15824 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
15825 | PyObject *resultobj; | |
15826 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15827 | bool result; | |
15828 | PyObject * obj0 = 0 ; | |
15829 | char *kwnames[] = { | |
15830 | (char *) "self", NULL | |
15831 | }; | |
15832 | ||
15833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15836 | { | |
15837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15838 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15839 | ||
15840 | wxPyEndAllowThreads(__tstate); | |
15841 | if (PyErr_Occurred()) SWIG_fail; | |
15842 | } | |
15843 | { | |
15844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15845 | } | |
15846 | return resultobj; | |
15847 | fail: | |
15848 | return NULL; | |
15849 | } | |
15850 | ||
15851 | ||
15852 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
15853 | PyObject *resultobj; | |
15854 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15855 | bool result; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | char *kwnames[] = { | |
15858 | (char *) "self", NULL | |
15859 | }; | |
15860 | ||
15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15864 | { | |
15865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15866 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15867 | ||
15868 | wxPyEndAllowThreads(__tstate); | |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
15870 | } | |
15871 | { | |
15872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15873 | } | |
15874 | return resultobj; | |
15875 | fail: | |
15876 | return NULL; | |
15877 | } | |
15878 | ||
15879 | ||
15880 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { | |
15881 | PyObject *resultobj; | |
15882 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15883 | bool result; | |
15884 | PyObject * obj0 = 0 ; | |
15885 | char *kwnames[] = { | |
15886 | (char *) "self", NULL | |
15887 | }; | |
15888 | ||
15889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
15890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15892 | { | |
15893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15894 | result = (bool)(arg1)->base_Validate(); | |
15895 | ||
15896 | wxPyEndAllowThreads(__tstate); | |
15897 | if (PyErr_Occurred()) SWIG_fail; | |
15898 | } | |
15899 | { | |
15900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15901 | } | |
15902 | return resultobj; | |
15903 | fail: | |
15904 | return NULL; | |
15905 | } | |
15906 | ||
15907 | ||
15908 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { | |
15909 | PyObject *resultobj; | |
15910 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15911 | bool result; | |
15912 | PyObject * obj0 = 0 ; | |
15913 | char *kwnames[] = { | |
15914 | (char *) "self", NULL | |
15915 | }; | |
15916 | ||
15917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15920 | { | |
15921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15922 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
15923 | ||
15924 | wxPyEndAllowThreads(__tstate); | |
15925 | if (PyErr_Occurred()) SWIG_fail; | |
15926 | } | |
15927 | { | |
15928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15929 | } | |
15930 | return resultobj; | |
15931 | fail: | |
15932 | return NULL; | |
15933 | } | |
15934 | ||
15935 | ||
15936 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { | |
15937 | PyObject *resultobj; | |
15938 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15939 | bool result; | |
15940 | PyObject * obj0 = 0 ; | |
15941 | char *kwnames[] = { | |
15942 | (char *) "self", NULL | |
15943 | }; | |
15944 | ||
15945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15948 | { | |
15949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15950 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15951 | ||
15952 | wxPyEndAllowThreads(__tstate); | |
15953 | if (PyErr_Occurred()) SWIG_fail; | |
15954 | } | |
15955 | { | |
15956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15957 | } | |
15958 | return resultobj; | |
15959 | fail: | |
15960 | return NULL; | |
15961 | } | |
15962 | ||
15963 | ||
15964 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15965 | PyObject *resultobj; | |
15966 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15967 | wxSize result; | |
15968 | PyObject * obj0 = 0 ; | |
15969 | char *kwnames[] = { | |
15970 | (char *) "self", NULL | |
15971 | }; | |
15972 | ||
15973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15976 | { | |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
15983 | { | |
15984 | wxSize * resultptr; | |
15985 | resultptr = new wxSize((wxSize &) result); | |
15986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15987 | } | |
15988 | return resultobj; | |
15989 | fail: | |
15990 | return NULL; | |
15991 | } | |
15992 | ||
15993 | ||
15994 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
15995 | PyObject *resultobj; | |
15996 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15997 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15998 | PyObject * obj0 = 0 ; | |
15999 | PyObject * obj1 = 0 ; | |
16000 | char *kwnames[] = { | |
16001 | (char *) "self",(char *) "child", NULL | |
16002 | }; | |
16003 | ||
16004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16009 | { | |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | (arg1)->base_AddChild(arg2); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
16016 | Py_INCREF(Py_None); resultobj = Py_None; | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj; | |
16025 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16026 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16027 | PyObject * obj0 = 0 ; | |
16028 | PyObject * obj1 = 0 ; | |
16029 | char *kwnames[] = { | |
16030 | (char *) "self",(char *) "child", NULL | |
16031 | }; | |
16032 | ||
16033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16036 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16038 | { | |
16039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16040 | (arg1)->base_RemoveChild(arg2); | |
16041 | ||
16042 | wxPyEndAllowThreads(__tstate); | |
16043 | if (PyErr_Occurred()) SWIG_fail; | |
16044 | } | |
16045 | Py_INCREF(Py_None); resultobj = Py_None; | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
16052 | static PyObject * PyPanel_swigregister(PyObject *, PyObject *args) { | |
16053 | PyObject *obj; | |
16054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16055 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16056 | Py_INCREF(obj); | |
16057 | return Py_BuildValue((char *)""); | |
16058 | } | |
16059 | static int _wrap_PrintoutTitleStr_set(PyObject *) { | |
16060 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
16061 | return 1; | |
16062 | } | |
16063 | ||
16064 | ||
16065 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
16066 | PyObject *pyobj; | |
16067 | ||
16068 | { | |
16069 | #if wxUSE_UNICODE | |
16070 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
16071 | #else | |
16072 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
16073 | #endif | |
16074 | } | |
16075 | return pyobj; | |
16076 | } | |
16077 | ||
16078 | ||
16079 | static int _wrap_PreviewCanvasNameStr_set(PyObject *) { | |
16080 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
16081 | return 1; | |
16082 | } | |
16083 | ||
16084 | ||
16085 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
16086 | PyObject *pyobj; | |
16087 | ||
16088 | { | |
16089 | #if wxUSE_UNICODE | |
16090 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
16091 | #else | |
16092 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
16093 | #endif | |
16094 | } | |
16095 | return pyobj; | |
16096 | } | |
16097 | ||
16098 | ||
16099 | static PyObject *_wrap_new_PrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
16100 | PyObject *resultobj; | |
16101 | wxPrintData *result; | |
16102 | char *kwnames[] = { | |
16103 | NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
16107 | { | |
16108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16109 | result = (wxPrintData *)new wxPrintData(); | |
16110 | ||
16111 | wxPyEndAllowThreads(__tstate); | |
16112 | if (PyErr_Occurred()) SWIG_fail; | |
16113 | } | |
16114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | return NULL; | |
16118 | } | |
16119 | ||
16120 | ||
16121 | static PyObject *_wrap_delete_PrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
16122 | PyObject *resultobj; | |
16123 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16124 | PyObject * obj0 = 0 ; | |
16125 | char *kwnames[] = { | |
16126 | (char *) "self", NULL | |
16127 | }; | |
16128 | ||
16129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
16130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16132 | { | |
16133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16134 | delete arg1; | |
16135 | ||
16136 | wxPyEndAllowThreads(__tstate); | |
16137 | if (PyErr_Occurred()) SWIG_fail; | |
16138 | } | |
16139 | Py_INCREF(Py_None); resultobj = Py_None; | |
16140 | return resultobj; | |
16141 | fail: | |
16142 | return NULL; | |
16143 | } | |
16144 | ||
16145 | ||
16146 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *, PyObject *args, PyObject *kwargs) { | |
16147 | PyObject *resultobj; | |
16148 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16149 | int result; | |
16150 | PyObject * obj0 = 0 ; | |
16151 | char *kwnames[] = { | |
16152 | (char *) "self", NULL | |
16153 | }; | |
16154 | ||
16155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
16156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16158 | { | |
16159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16160 | result = (int)(arg1)->GetNoCopies(); | |
16161 | ||
16162 | wxPyEndAllowThreads(__tstate); | |
16163 | if (PyErr_Occurred()) SWIG_fail; | |
16164 | } | |
16165 | resultobj = SWIG_FromInt((int)result); | |
16166 | return resultobj; | |
16167 | fail: | |
16168 | return NULL; | |
16169 | } | |
16170 | ||
16171 | ||
16172 | static PyObject *_wrap_PrintData_GetCollate(PyObject *, PyObject *args, PyObject *kwargs) { | |
16173 | PyObject *resultobj; | |
16174 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16175 | bool result; | |
16176 | PyObject * obj0 = 0 ; | |
16177 | char *kwnames[] = { | |
16178 | (char *) "self", NULL | |
16179 | }; | |
16180 | ||
16181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
16182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16184 | { | |
16185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16186 | result = (bool)(arg1)->GetCollate(); | |
16187 | ||
16188 | wxPyEndAllowThreads(__tstate); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | } | |
16191 | { | |
16192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16193 | } | |
16194 | return resultobj; | |
16195 | fail: | |
16196 | return NULL; | |
16197 | } | |
16198 | ||
16199 | ||
16200 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
16201 | PyObject *resultobj; | |
16202 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16203 | int result; | |
16204 | PyObject * obj0 = 0 ; | |
16205 | char *kwnames[] = { | |
16206 | (char *) "self", NULL | |
16207 | }; | |
16208 | ||
16209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
16210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16212 | { | |
16213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16214 | result = (int)(arg1)->GetOrientation(); | |
16215 | ||
16216 | wxPyEndAllowThreads(__tstate); | |
16217 | if (PyErr_Occurred()) SWIG_fail; | |
16218 | } | |
16219 | resultobj = SWIG_FromInt((int)result); | |
16220 | return resultobj; | |
16221 | fail: | |
16222 | return NULL; | |
16223 | } | |
16224 | ||
16225 | ||
16226 | static PyObject *_wrap_PrintData_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
16227 | PyObject *resultobj; | |
16228 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16229 | bool result; | |
16230 | PyObject * obj0 = 0 ; | |
16231 | char *kwnames[] = { | |
16232 | (char *) "self", NULL | |
16233 | }; | |
16234 | ||
16235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
16236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16238 | { | |
16239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16240 | result = (bool)(arg1)->Ok(); | |
16241 | ||
16242 | wxPyEndAllowThreads(__tstate); | |
16243 | if (PyErr_Occurred()) SWIG_fail; | |
16244 | } | |
16245 | { | |
16246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16247 | } | |
16248 | return resultobj; | |
16249 | fail: | |
16250 | return NULL; | |
16251 | } | |
16252 | ||
16253 | ||
16254 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *, PyObject *args, PyObject *kwargs) { | |
16255 | PyObject *resultobj; | |
16256 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16257 | wxString *result; | |
16258 | PyObject * obj0 = 0 ; | |
16259 | char *kwnames[] = { | |
16260 | (char *) "self", NULL | |
16261 | }; | |
16262 | ||
16263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
16264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16266 | { | |
16267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16268 | { | |
16269 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
16270 | result = (wxString *) &_result_ref; | |
16271 | } | |
16272 | ||
16273 | wxPyEndAllowThreads(__tstate); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | { | |
16277 | #if wxUSE_UNICODE | |
16278 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16279 | #else | |
16280 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16281 | #endif | |
16282 | } | |
16283 | return resultobj; | |
16284 | fail: | |
16285 | return NULL; | |
16286 | } | |
16287 | ||
16288 | ||
16289 | static PyObject *_wrap_PrintData_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
16290 | PyObject *resultobj; | |
16291 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16292 | bool result; | |
16293 | PyObject * obj0 = 0 ; | |
16294 | char *kwnames[] = { | |
16295 | (char *) "self", NULL | |
16296 | }; | |
16297 | ||
16298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
16299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16301 | { | |
16302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16303 | result = (bool)(arg1)->GetColour(); | |
16304 | ||
16305 | wxPyEndAllowThreads(__tstate); | |
16306 | if (PyErr_Occurred()) SWIG_fail; | |
16307 | } | |
16308 | { | |
16309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16310 | } | |
16311 | return resultobj; | |
16312 | fail: | |
16313 | return NULL; | |
16314 | } | |
16315 | ||
16316 | ||
16317 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *, PyObject *args, PyObject *kwargs) { | |
16318 | PyObject *resultobj; | |
16319 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16320 | int result; | |
16321 | PyObject * obj0 = 0 ; | |
16322 | char *kwnames[] = { | |
16323 | (char *) "self", NULL | |
16324 | }; | |
16325 | ||
16326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
16327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16329 | { | |
16330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16331 | result = (int)(arg1)->GetDuplex(); | |
16332 | ||
16333 | wxPyEndAllowThreads(__tstate); | |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | } | |
16336 | resultobj = SWIG_FromInt((int)result); | |
16337 | return resultobj; | |
16338 | fail: | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
16343 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *, PyObject *args, PyObject *kwargs) { | |
16344 | PyObject *resultobj; | |
16345 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16346 | int result; | |
16347 | PyObject * obj0 = 0 ; | |
16348 | char *kwnames[] = { | |
16349 | (char *) "self", NULL | |
16350 | }; | |
16351 | ||
16352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
16353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16355 | { | |
16356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16357 | result = (int)(arg1)->GetPaperId(); | |
16358 | ||
16359 | wxPyEndAllowThreads(__tstate); | |
16360 | if (PyErr_Occurred()) SWIG_fail; | |
16361 | } | |
16362 | resultobj = SWIG_FromInt((int)result); | |
16363 | return resultobj; | |
16364 | fail: | |
16365 | return NULL; | |
16366 | } | |
16367 | ||
16368 | ||
16369 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
16370 | PyObject *resultobj; | |
16371 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16372 | wxSize *result; | |
16373 | PyObject * obj0 = 0 ; | |
16374 | char *kwnames[] = { | |
16375 | (char *) "self", NULL | |
16376 | }; | |
16377 | ||
16378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
16379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16381 | { | |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | { | |
16384 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
16385 | result = (wxSize *) &_result_ref; | |
16386 | } | |
16387 | ||
16388 | wxPyEndAllowThreads(__tstate); | |
16389 | if (PyErr_Occurred()) SWIG_fail; | |
16390 | } | |
16391 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16392 | return resultobj; | |
16393 | fail: | |
16394 | return NULL; | |
16395 | } | |
16396 | ||
16397 | ||
16398 | static PyObject *_wrap_PrintData_GetQuality(PyObject *, PyObject *args, PyObject *kwargs) { | |
16399 | PyObject *resultobj; | |
16400 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16401 | int result; | |
16402 | PyObject * obj0 = 0 ; | |
16403 | char *kwnames[] = { | |
16404 | (char *) "self", NULL | |
16405 | }; | |
16406 | ||
16407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
16408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16410 | { | |
16411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16412 | result = (int)(arg1)->GetQuality(); | |
16413 | ||
16414 | wxPyEndAllowThreads(__tstate); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
16417 | resultobj = SWIG_FromInt((int)result); | |
16418 | return resultobj; | |
16419 | fail: | |
16420 | return NULL; | |
16421 | } | |
16422 | ||
16423 | ||
16424 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *, PyObject *args, PyObject *kwargs) { | |
16425 | PyObject *resultobj; | |
16426 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16427 | int arg2 ; | |
16428 | PyObject * obj0 = 0 ; | |
16429 | PyObject * obj1 = 0 ; | |
16430 | char *kwnames[] = { | |
16431 | (char *) "self",(char *) "v", NULL | |
16432 | }; | |
16433 | ||
16434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
16435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16437 | arg2 = (int) SWIG_AsInt(obj1); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | { | |
16440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16441 | (arg1)->SetNoCopies(arg2); | |
16442 | ||
16443 | wxPyEndAllowThreads(__tstate); | |
16444 | if (PyErr_Occurred()) SWIG_fail; | |
16445 | } | |
16446 | Py_INCREF(Py_None); resultobj = Py_None; | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
16453 | static PyObject *_wrap_PrintData_SetCollate(PyObject *, PyObject *args, PyObject *kwargs) { | |
16454 | PyObject *resultobj; | |
16455 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16456 | bool arg2 ; | |
16457 | PyObject * obj0 = 0 ; | |
16458 | PyObject * obj1 = 0 ; | |
16459 | char *kwnames[] = { | |
16460 | (char *) "self",(char *) "flag", NULL | |
16461 | }; | |
16462 | ||
16463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
16464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16466 | arg2 = (bool) SWIG_AsBool(obj1); | |
16467 | if (PyErr_Occurred()) SWIG_fail; | |
16468 | { | |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16470 | (arg1)->SetCollate(arg2); | |
16471 | ||
16472 | wxPyEndAllowThreads(__tstate); | |
16473 | if (PyErr_Occurred()) SWIG_fail; | |
16474 | } | |
16475 | Py_INCREF(Py_None); resultobj = Py_None; | |
16476 | return resultobj; | |
16477 | fail: | |
16478 | return NULL; | |
16479 | } | |
16480 | ||
16481 | ||
16482 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
16483 | PyObject *resultobj; | |
16484 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16485 | int arg2 ; | |
16486 | PyObject * obj0 = 0 ; | |
16487 | PyObject * obj1 = 0 ; | |
16488 | char *kwnames[] = { | |
16489 | (char *) "self",(char *) "orient", NULL | |
16490 | }; | |
16491 | ||
16492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
16493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16495 | arg2 = (int) SWIG_AsInt(obj1); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | { | |
16498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16499 | (arg1)->SetOrientation(arg2); | |
16500 | ||
16501 | wxPyEndAllowThreads(__tstate); | |
16502 | if (PyErr_Occurred()) SWIG_fail; | |
16503 | } | |
16504 | Py_INCREF(Py_None); resultobj = Py_None; | |
16505 | return resultobj; | |
16506 | fail: | |
16507 | return NULL; | |
16508 | } | |
16509 | ||
16510 | ||
16511 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *, PyObject *args, PyObject *kwargs) { | |
16512 | PyObject *resultobj; | |
16513 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16514 | wxString *arg2 = 0 ; | |
16515 | bool temp2 = False ; | |
16516 | PyObject * obj0 = 0 ; | |
16517 | PyObject * obj1 = 0 ; | |
16518 | char *kwnames[] = { | |
16519 | (char *) "self",(char *) "name", NULL | |
16520 | }; | |
16521 | ||
16522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
16523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16525 | { | |
16526 | arg2 = wxString_in_helper(obj1); | |
16527 | if (arg2 == NULL) SWIG_fail; | |
16528 | temp2 = True; | |
16529 | } | |
16530 | { | |
16531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16532 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
16533 | ||
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
16537 | Py_INCREF(Py_None); resultobj = Py_None; | |
16538 | { | |
16539 | if (temp2) | |
16540 | delete arg2; | |
16541 | } | |
16542 | return resultobj; | |
16543 | fail: | |
16544 | { | |
16545 | if (temp2) | |
16546 | delete arg2; | |
16547 | } | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
16552 | static PyObject *_wrap_PrintData_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
16553 | PyObject *resultobj; | |
16554 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16555 | bool arg2 ; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | PyObject * obj1 = 0 ; | |
16558 | char *kwnames[] = { | |
16559 | (char *) "self",(char *) "colour", NULL | |
16560 | }; | |
16561 | ||
16562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
16563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16565 | arg2 = (bool) SWIG_AsBool(obj1); | |
16566 | if (PyErr_Occurred()) SWIG_fail; | |
16567 | { | |
16568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16569 | (arg1)->SetColour(arg2); | |
16570 | ||
16571 | wxPyEndAllowThreads(__tstate); | |
16572 | if (PyErr_Occurred()) SWIG_fail; | |
16573 | } | |
16574 | Py_INCREF(Py_None); resultobj = Py_None; | |
16575 | return resultobj; | |
16576 | fail: | |
16577 | return NULL; | |
16578 | } | |
16579 | ||
16580 | ||
16581 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *, PyObject *args, PyObject *kwargs) { | |
16582 | PyObject *resultobj; | |
16583 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16584 | int arg2 ; | |
16585 | PyObject * obj0 = 0 ; | |
16586 | PyObject * obj1 = 0 ; | |
16587 | char *kwnames[] = { | |
16588 | (char *) "self",(char *) "duplex", NULL | |
16589 | }; | |
16590 | ||
16591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
16592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16594 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | { | |
16597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16598 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
16599 | ||
16600 | wxPyEndAllowThreads(__tstate); | |
16601 | if (PyErr_Occurred()) SWIG_fail; | |
16602 | } | |
16603 | Py_INCREF(Py_None); resultobj = Py_None; | |
16604 | return resultobj; | |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
16610 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *, PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj; | |
16612 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16613 | int arg2 ; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | PyObject * obj1 = 0 ; | |
16616 | char *kwnames[] = { | |
16617 | (char *) "self",(char *) "sizeId", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
16621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16623 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
16624 | if (PyErr_Occurred()) SWIG_fail; | |
16625 | { | |
16626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16627 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
16628 | ||
16629 | wxPyEndAllowThreads(__tstate); | |
16630 | if (PyErr_Occurred()) SWIG_fail; | |
16631 | } | |
16632 | Py_INCREF(Py_None); resultobj = Py_None; | |
16633 | return resultobj; | |
16634 | fail: | |
16635 | return NULL; | |
16636 | } | |
16637 | ||
16638 | ||
16639 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
16640 | PyObject *resultobj; | |
16641 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16642 | wxSize *arg2 = 0 ; | |
16643 | wxSize temp2 ; | |
16644 | PyObject * obj0 = 0 ; | |
16645 | PyObject * obj1 = 0 ; | |
16646 | char *kwnames[] = { | |
16647 | (char *) "self",(char *) "sz", NULL | |
16648 | }; | |
16649 | ||
16650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
16651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16653 | { | |
16654 | arg2 = &temp2; | |
16655 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16656 | } | |
16657 | { | |
16658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16659 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
16660 | ||
16661 | wxPyEndAllowThreads(__tstate); | |
16662 | if (PyErr_Occurred()) SWIG_fail; | |
16663 | } | |
16664 | Py_INCREF(Py_None); resultobj = Py_None; | |
16665 | return resultobj; | |
16666 | fail: | |
16667 | return NULL; | |
16668 | } | |
16669 | ||
16670 | ||
16671 | static PyObject *_wrap_PrintData_SetQuality(PyObject *, PyObject *args, PyObject *kwargs) { | |
16672 | PyObject *resultobj; | |
16673 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16674 | int arg2 ; | |
16675 | PyObject * obj0 = 0 ; | |
16676 | PyObject * obj1 = 0 ; | |
16677 | char *kwnames[] = { | |
16678 | (char *) "self",(char *) "quality", NULL | |
16679 | }; | |
16680 | ||
16681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
16682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16684 | arg2 = (int) SWIG_AsInt(obj1); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | { | |
16687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16688 | (arg1)->SetQuality(arg2); | |
16689 | ||
16690 | wxPyEndAllowThreads(__tstate); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
16692 | } | |
16693 | Py_INCREF(Py_None); resultobj = Py_None; | |
16694 | return resultobj; | |
16695 | fail: | |
16696 | return NULL; | |
16697 | } | |
16698 | ||
16699 | ||
16700 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
16701 | PyObject *resultobj; | |
16702 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16703 | wxString *result; | |
16704 | PyObject * obj0 = 0 ; | |
16705 | char *kwnames[] = { | |
16706 | (char *) "self", NULL | |
16707 | }; | |
16708 | ||
16709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
16710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16712 | { | |
16713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16714 | { | |
16715 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
16716 | result = (wxString *) &_result_ref; | |
16717 | } | |
16718 | ||
16719 | wxPyEndAllowThreads(__tstate); | |
16720 | if (PyErr_Occurred()) SWIG_fail; | |
16721 | } | |
16722 | { | |
16723 | #if wxUSE_UNICODE | |
16724 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16725 | #else | |
16726 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16727 | #endif | |
16728 | } | |
16729 | return resultobj; | |
16730 | fail: | |
16731 | return NULL; | |
16732 | } | |
16733 | ||
16734 | ||
16735 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *, PyObject *args, PyObject *kwargs) { | |
16736 | PyObject *resultobj; | |
16737 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16738 | wxString *result; | |
16739 | PyObject * obj0 = 0 ; | |
16740 | char *kwnames[] = { | |
16741 | (char *) "self", NULL | |
16742 | }; | |
16743 | ||
16744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
16745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16747 | { | |
16748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16749 | { | |
16750 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
16751 | result = (wxString *) &_result_ref; | |
16752 | } | |
16753 | ||
16754 | wxPyEndAllowThreads(__tstate); | |
16755 | if (PyErr_Occurred()) SWIG_fail; | |
16756 | } | |
16757 | { | |
16758 | #if wxUSE_UNICODE | |
16759 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16760 | #else | |
16761 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16762 | #endif | |
16763 | } | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj; | |
16772 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16773 | wxString *result; | |
16774 | PyObject * obj0 = 0 ; | |
16775 | char *kwnames[] = { | |
16776 | (char *) "self", NULL | |
16777 | }; | |
16778 | ||
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
16780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16782 | { | |
16783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16784 | { | |
16785 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
16786 | result = (wxString *) &_result_ref; | |
16787 | } | |
16788 | ||
16789 | wxPyEndAllowThreads(__tstate); | |
16790 | if (PyErr_Occurred()) SWIG_fail; | |
16791 | } | |
16792 | { | |
16793 | #if wxUSE_UNICODE | |
16794 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16795 | #else | |
16796 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16797 | #endif | |
16798 | } | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
16805 | static PyObject *_wrap_PrintData_GetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
16806 | PyObject *resultobj; | |
16807 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16808 | wxString *result; | |
16809 | PyObject * obj0 = 0 ; | |
16810 | char *kwnames[] = { | |
16811 | (char *) "self", NULL | |
16812 | }; | |
16813 | ||
16814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
16815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16817 | { | |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | { | |
16820 | wxString const &_result_ref = (arg1)->GetFilename(); | |
16821 | result = (wxString *) &_result_ref; | |
16822 | } | |
16823 | ||
16824 | wxPyEndAllowThreads(__tstate); | |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
16826 | } | |
16827 | { | |
16828 | #if wxUSE_UNICODE | |
16829 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16830 | #else | |
16831 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16832 | #endif | |
16833 | } | |
16834 | return resultobj; | |
16835 | fail: | |
16836 | return NULL; | |
16837 | } | |
16838 | ||
16839 | ||
16840 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
16841 | PyObject *resultobj; | |
16842 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16843 | wxString *result; | |
16844 | PyObject * obj0 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
16850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16852 | { | |
16853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16854 | { | |
16855 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
16856 | result = (wxString *) &_result_ref; | |
16857 | } | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | { | |
16863 | #if wxUSE_UNICODE | |
16864 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16865 | #else | |
16866 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16867 | #endif | |
16868 | } | |
16869 | return resultobj; | |
16870 | fail: | |
16871 | return NULL; | |
16872 | } | |
16873 | ||
16874 | ||
16875 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *, PyObject *args, PyObject *kwargs) { | |
16876 | PyObject *resultobj; | |
16877 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16878 | double result; | |
16879 | PyObject * obj0 = 0 ; | |
16880 | char *kwnames[] = { | |
16881 | (char *) "self", NULL | |
16882 | }; | |
16883 | ||
16884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
16885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | result = (double)(arg1)->GetPrinterScaleX(); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | resultobj = SWIG_FromDouble((double)result); | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16904 | double result; | |
16905 | PyObject * obj0 = 0 ; | |
16906 | char *kwnames[] = { | |
16907 | (char *) "self", NULL | |
16908 | }; | |
16909 | ||
16910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
16911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16913 | { | |
16914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16915 | result = (double)(arg1)->GetPrinterScaleY(); | |
16916 | ||
16917 | wxPyEndAllowThreads(__tstate); | |
16918 | if (PyErr_Occurred()) SWIG_fail; | |
16919 | } | |
16920 | resultobj = SWIG_FromDouble((double)result); | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | return NULL; | |
16924 | } | |
16925 | ||
16926 | ||
16927 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *, PyObject *args, PyObject *kwargs) { | |
16928 | PyObject *resultobj; | |
16929 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16930 | long result; | |
16931 | PyObject * obj0 = 0 ; | |
16932 | char *kwnames[] = { | |
16933 | (char *) "self", NULL | |
16934 | }; | |
16935 | ||
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
16937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16939 | { | |
16940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16941 | result = (long)(arg1)->GetPrinterTranslateX(); | |
16942 | ||
16943 | wxPyEndAllowThreads(__tstate); | |
16944 | if (PyErr_Occurred()) SWIG_fail; | |
16945 | } | |
16946 | resultobj = SWIG_FromLong((long)result); | |
16947 | return resultobj; | |
16948 | fail: | |
16949 | return NULL; | |
16950 | } | |
16951 | ||
16952 | ||
16953 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *, PyObject *args, PyObject *kwargs) { | |
16954 | PyObject *resultobj; | |
16955 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16956 | long result; | |
16957 | PyObject * obj0 = 0 ; | |
16958 | char *kwnames[] = { | |
16959 | (char *) "self", NULL | |
16960 | }; | |
16961 | ||
16962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
16963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16965 | { | |
16966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16967 | result = (long)(arg1)->GetPrinterTranslateY(); | |
16968 | ||
16969 | wxPyEndAllowThreads(__tstate); | |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
16971 | } | |
16972 | resultobj = SWIG_FromLong((long)result); | |
16973 | return resultobj; | |
16974 | fail: | |
16975 | return NULL; | |
16976 | } | |
16977 | ||
16978 | ||
16979 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
16980 | PyObject *resultobj; | |
16981 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16982 | int result; | |
16983 | PyObject * obj0 = 0 ; | |
16984 | char *kwnames[] = { | |
16985 | (char *) "self", NULL | |
16986 | }; | |
16987 | ||
16988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
16989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16991 | { | |
16992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16993 | result = (int)(arg1)->GetPrintMode(); | |
16994 | ||
16995 | wxPyEndAllowThreads(__tstate); | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | } | |
16998 | resultobj = SWIG_FromInt((int)result); | |
16999 | return resultobj; | |
17000 | fail: | |
17001 | return NULL; | |
17002 | } | |
17003 | ||
17004 | ||
17005 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
17006 | PyObject *resultobj; | |
17007 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17008 | wxString *arg2 = 0 ; | |
17009 | bool temp2 = False ; | |
17010 | PyObject * obj0 = 0 ; | |
17011 | PyObject * obj1 = 0 ; | |
17012 | char *kwnames[] = { | |
17013 | (char *) "self",(char *) "command", NULL | |
17014 | }; | |
17015 | ||
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
17017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17019 | { | |
17020 | arg2 = wxString_in_helper(obj1); | |
17021 | if (arg2 == NULL) SWIG_fail; | |
17022 | temp2 = True; | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | Py_INCREF(Py_None); resultobj = Py_None; | |
17032 | { | |
17033 | if (temp2) | |
17034 | delete arg2; | |
17035 | } | |
17036 | return resultobj; | |
17037 | fail: | |
17038 | { | |
17039 | if (temp2) | |
17040 | delete arg2; | |
17041 | } | |
17042 | return NULL; | |
17043 | } | |
17044 | ||
17045 | ||
17046 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *, PyObject *args, PyObject *kwargs) { | |
17047 | PyObject *resultobj; | |
17048 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17049 | wxString *arg2 = 0 ; | |
17050 | bool temp2 = False ; | |
17051 | PyObject * obj0 = 0 ; | |
17052 | PyObject * obj1 = 0 ; | |
17053 | char *kwnames[] = { | |
17054 | (char *) "self",(char *) "options", NULL | |
17055 | }; | |
17056 | ||
17057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
17058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17060 | { | |
17061 | arg2 = wxString_in_helper(obj1); | |
17062 | if (arg2 == NULL) SWIG_fail; | |
17063 | temp2 = True; | |
17064 | } | |
17065 | { | |
17066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17067 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
17068 | ||
17069 | wxPyEndAllowThreads(__tstate); | |
17070 | if (PyErr_Occurred()) SWIG_fail; | |
17071 | } | |
17072 | Py_INCREF(Py_None); resultobj = Py_None; | |
17073 | { | |
17074 | if (temp2) | |
17075 | delete arg2; | |
17076 | } | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | { | |
17080 | if (temp2) | |
17081 | delete arg2; | |
17082 | } | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
17087 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
17088 | PyObject *resultobj; | |
17089 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17090 | wxString *arg2 = 0 ; | |
17091 | bool temp2 = False ; | |
17092 | PyObject * obj0 = 0 ; | |
17093 | PyObject * obj1 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self",(char *) "command", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17101 | { | |
17102 | arg2 = wxString_in_helper(obj1); | |
17103 | if (arg2 == NULL) SWIG_fail; | |
17104 | temp2 = True; | |
17105 | } | |
17106 | { | |
17107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17108 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
17109 | ||
17110 | wxPyEndAllowThreads(__tstate); | |
17111 | if (PyErr_Occurred()) SWIG_fail; | |
17112 | } | |
17113 | Py_INCREF(Py_None); resultobj = Py_None; | |
17114 | { | |
17115 | if (temp2) | |
17116 | delete arg2; | |
17117 | } | |
17118 | return resultobj; | |
17119 | fail: | |
17120 | { | |
17121 | if (temp2) | |
17122 | delete arg2; | |
17123 | } | |
17124 | return NULL; | |
17125 | } | |
17126 | ||
17127 | ||
17128 | static PyObject *_wrap_PrintData_SetFilename(PyObject *, PyObject *args, PyObject *kwargs) { | |
17129 | PyObject *resultobj; | |
17130 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17131 | wxString *arg2 = 0 ; | |
17132 | bool temp2 = False ; | |
17133 | PyObject * obj0 = 0 ; | |
17134 | PyObject * obj1 = 0 ; | |
17135 | char *kwnames[] = { | |
17136 | (char *) "self",(char *) "filename", NULL | |
17137 | }; | |
17138 | ||
17139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
17140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17142 | { | |
17143 | arg2 = wxString_in_helper(obj1); | |
17144 | if (arg2 == NULL) SWIG_fail; | |
17145 | temp2 = True; | |
17146 | } | |
17147 | { | |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | (arg1)->SetFilename((wxString const &)*arg2); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | Py_INCREF(Py_None); resultobj = Py_None; | |
17155 | { | |
17156 | if (temp2) | |
17157 | delete arg2; | |
17158 | } | |
17159 | return resultobj; | |
17160 | fail: | |
17161 | { | |
17162 | if (temp2) | |
17163 | delete arg2; | |
17164 | } | |
17165 | return NULL; | |
17166 | } | |
17167 | ||
17168 | ||
17169 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
17170 | PyObject *resultobj; | |
17171 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17172 | wxString *arg2 = 0 ; | |
17173 | bool temp2 = False ; | |
17174 | PyObject * obj0 = 0 ; | |
17175 | PyObject * obj1 = 0 ; | |
17176 | char *kwnames[] = { | |
17177 | (char *) "self",(char *) "path", NULL | |
17178 | }; | |
17179 | ||
17180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
17181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17183 | { | |
17184 | arg2 = wxString_in_helper(obj1); | |
17185 | if (arg2 == NULL) SWIG_fail; | |
17186 | temp2 = True; | |
17187 | } | |
17188 | { | |
17189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17190 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
17191 | ||
17192 | wxPyEndAllowThreads(__tstate); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | } | |
17195 | Py_INCREF(Py_None); resultobj = Py_None; | |
17196 | { | |
17197 | if (temp2) | |
17198 | delete arg2; | |
17199 | } | |
17200 | return resultobj; | |
17201 | fail: | |
17202 | { | |
17203 | if (temp2) | |
17204 | delete arg2; | |
17205 | } | |
17206 | return NULL; | |
17207 | } | |
17208 | ||
17209 | ||
17210 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *, PyObject *args, PyObject *kwargs) { | |
17211 | PyObject *resultobj; | |
17212 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17213 | double arg2 ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | PyObject * obj1 = 0 ; | |
17216 | char *kwnames[] = { | |
17217 | (char *) "self",(char *) "x", NULL | |
17218 | }; | |
17219 | ||
17220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
17221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17223 | arg2 = (double) SWIG_AsDouble(obj1); | |
17224 | if (PyErr_Occurred()) SWIG_fail; | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | (arg1)->SetPrinterScaleX(arg2); | |
17228 | ||
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
17232 | Py_INCREF(Py_None); resultobj = Py_None; | |
17233 | return resultobj; | |
17234 | fail: | |
17235 | return NULL; | |
17236 | } | |
17237 | ||
17238 | ||
17239 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *, PyObject *args, PyObject *kwargs) { | |
17240 | PyObject *resultobj; | |
17241 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17242 | double arg2 ; | |
17243 | PyObject * obj0 = 0 ; | |
17244 | PyObject * obj1 = 0 ; | |
17245 | char *kwnames[] = { | |
17246 | (char *) "self",(char *) "y", NULL | |
17247 | }; | |
17248 | ||
17249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
17250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17252 | arg2 = (double) SWIG_AsDouble(obj1); | |
17253 | if (PyErr_Occurred()) SWIG_fail; | |
17254 | { | |
17255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17256 | (arg1)->SetPrinterScaleY(arg2); | |
17257 | ||
17258 | wxPyEndAllowThreads(__tstate); | |
17259 | if (PyErr_Occurred()) SWIG_fail; | |
17260 | } | |
17261 | Py_INCREF(Py_None); resultobj = Py_None; | |
17262 | return resultobj; | |
17263 | fail: | |
17264 | return NULL; | |
17265 | } | |
17266 | ||
17267 | ||
17268 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *, PyObject *args, PyObject *kwargs) { | |
17269 | PyObject *resultobj; | |
17270 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17271 | double arg2 ; | |
17272 | double arg3 ; | |
17273 | PyObject * obj0 = 0 ; | |
17274 | PyObject * obj1 = 0 ; | |
17275 | PyObject * obj2 = 0 ; | |
17276 | char *kwnames[] = { | |
17277 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17278 | }; | |
17279 | ||
17280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17283 | arg2 = (double) SWIG_AsDouble(obj1); | |
17284 | if (PyErr_Occurred()) SWIG_fail; | |
17285 | arg3 = (double) SWIG_AsDouble(obj2); | |
17286 | if (PyErr_Occurred()) SWIG_fail; | |
17287 | { | |
17288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17289 | (arg1)->SetPrinterScaling(arg2,arg3); | |
17290 | ||
17291 | wxPyEndAllowThreads(__tstate); | |
17292 | if (PyErr_Occurred()) SWIG_fail; | |
17293 | } | |
17294 | Py_INCREF(Py_None); resultobj = Py_None; | |
17295 | return resultobj; | |
17296 | fail: | |
17297 | return NULL; | |
17298 | } | |
17299 | ||
17300 | ||
17301 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *, PyObject *args, PyObject *kwargs) { | |
17302 | PyObject *resultobj; | |
17303 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17304 | long arg2 ; | |
17305 | PyObject * obj0 = 0 ; | |
17306 | PyObject * obj1 = 0 ; | |
17307 | char *kwnames[] = { | |
17308 | (char *) "self",(char *) "x", NULL | |
17309 | }; | |
17310 | ||
17311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
17312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17314 | arg2 = (long) SWIG_AsLong(obj1); | |
17315 | if (PyErr_Occurred()) SWIG_fail; | |
17316 | { | |
17317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17318 | (arg1)->SetPrinterTranslateX(arg2); | |
17319 | ||
17320 | wxPyEndAllowThreads(__tstate); | |
17321 | if (PyErr_Occurred()) SWIG_fail; | |
17322 | } | |
17323 | Py_INCREF(Py_None); resultobj = Py_None; | |
17324 | return resultobj; | |
17325 | fail: | |
17326 | return NULL; | |
17327 | } | |
17328 | ||
17329 | ||
17330 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *, PyObject *args, PyObject *kwargs) { | |
17331 | PyObject *resultobj; | |
17332 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17333 | long arg2 ; | |
17334 | PyObject * obj0 = 0 ; | |
17335 | PyObject * obj1 = 0 ; | |
17336 | char *kwnames[] = { | |
17337 | (char *) "self",(char *) "y", NULL | |
17338 | }; | |
17339 | ||
17340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
17341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17343 | arg2 = (long) SWIG_AsLong(obj1); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | { | |
17346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17347 | (arg1)->SetPrinterTranslateY(arg2); | |
17348 | ||
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | Py_INCREF(Py_None); resultobj = Py_None; | |
17353 | return resultobj; | |
17354 | fail: | |
17355 | return NULL; | |
17356 | } | |
17357 | ||
17358 | ||
17359 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *, PyObject *args, PyObject *kwargs) { | |
17360 | PyObject *resultobj; | |
17361 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17362 | long arg2 ; | |
17363 | long arg3 ; | |
17364 | PyObject * obj0 = 0 ; | |
17365 | PyObject * obj1 = 0 ; | |
17366 | PyObject * obj2 = 0 ; | |
17367 | char *kwnames[] = { | |
17368 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17369 | }; | |
17370 | ||
17371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17374 | arg2 = (long) SWIG_AsLong(obj1); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | arg3 = (long) SWIG_AsLong(obj2); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | { | |
17379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17380 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
17381 | ||
17382 | wxPyEndAllowThreads(__tstate); | |
17383 | if (PyErr_Occurred()) SWIG_fail; | |
17384 | } | |
17385 | Py_INCREF(Py_None); resultobj = Py_None; | |
17386 | return resultobj; | |
17387 | fail: | |
17388 | return NULL; | |
17389 | } | |
17390 | ||
17391 | ||
17392 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
17393 | PyObject *resultobj; | |
17394 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17395 | int arg2 ; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | PyObject * obj1 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "self",(char *) "printMode", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
17403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17405 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
17406 | if (PyErr_Occurred()) SWIG_fail; | |
17407 | { | |
17408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17409 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
17410 | ||
17411 | wxPyEndAllowThreads(__tstate); | |
17412 | if (PyErr_Occurred()) SWIG_fail; | |
17413 | } | |
17414 | Py_INCREF(Py_None); resultobj = Py_None; | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
17418 | } | |
17419 | ||
17420 | ||
17421 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
17422 | PyObject *resultobj; | |
17423 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17424 | wxOutputStream *result; | |
17425 | PyObject * obj0 = 0 ; | |
17426 | char *kwnames[] = { | |
17427 | (char *) "self", NULL | |
17428 | }; | |
17429 | ||
17430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
17431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17433 | { | |
17434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17435 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
17436 | ||
17437 | wxPyEndAllowThreads(__tstate); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | } | |
17440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
17441 | return resultobj; | |
17442 | fail: | |
17443 | return NULL; | |
17444 | } | |
17445 | ||
17446 | ||
17447 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
17448 | PyObject *resultobj; | |
17449 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17450 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
17451 | PyObject * obj0 = 0 ; | |
17452 | PyObject * obj1 = 0 ; | |
17453 | char *kwnames[] = { | |
17454 | (char *) "self",(char *) "outputstream", NULL | |
17455 | }; | |
17456 | ||
17457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
17458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
17461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17462 | { | |
17463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17464 | (arg1)->SetOutputStream(arg2); | |
17465 | ||
17466 | wxPyEndAllowThreads(__tstate); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | } | |
17469 | Py_INCREF(Py_None); resultobj = Py_None; | |
17470 | return resultobj; | |
17471 | fail: | |
17472 | return NULL; | |
17473 | } | |
17474 | ||
17475 | ||
17476 | static PyObject * PrintData_swigregister(PyObject *, PyObject *args) { | |
17477 | PyObject *obj; | |
17478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17479 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
17480 | Py_INCREF(obj); | |
17481 | return Py_BuildValue((char *)""); | |
17482 | } | |
17483 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxPageSetupDialogData *result; | |
17486 | char *kwnames[] = { | |
17487 | NULL | |
17488 | }; | |
17489 | ||
17490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
17491 | { | |
17492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17493 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
17494 | ||
17495 | wxPyEndAllowThreads(__tstate); | |
17496 | if (PyErr_Occurred()) SWIG_fail; | |
17497 | } | |
17498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
17499 | return resultobj; | |
17500 | fail: | |
17501 | return NULL; | |
17502 | } | |
17503 | ||
17504 | ||
17505 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *, PyObject *args, PyObject *kwargs) { | |
17506 | PyObject *resultobj; | |
17507 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17508 | PyObject * obj0 = 0 ; | |
17509 | char *kwnames[] = { | |
17510 | (char *) "self", NULL | |
17511 | }; | |
17512 | ||
17513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
17514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17516 | { | |
17517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17518 | delete arg1; | |
17519 | ||
17520 | wxPyEndAllowThreads(__tstate); | |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
17522 | } | |
17523 | Py_INCREF(Py_None); resultobj = Py_None; | |
17524 | return resultobj; | |
17525 | fail: | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
17531 | PyObject *resultobj; | |
17532 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17533 | bool arg2 ; | |
17534 | PyObject * obj0 = 0 ; | |
17535 | PyObject * obj1 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self",(char *) "flag", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
17541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17543 | arg2 = (bool) SWIG_AsBool(obj1); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | (arg1)->EnableHelp(arg2); | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | Py_INCREF(Py_None); resultobj = Py_None; | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17562 | bool arg2 ; | |
17563 | PyObject * obj0 = 0 ; | |
17564 | PyObject * obj1 = 0 ; | |
17565 | char *kwnames[] = { | |
17566 | (char *) "self",(char *) "flag", NULL | |
17567 | }; | |
17568 | ||
17569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
17570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17572 | arg2 = (bool) SWIG_AsBool(obj1); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | { | |
17575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17576 | (arg1)->EnableMargins(arg2); | |
17577 | ||
17578 | wxPyEndAllowThreads(__tstate); | |
17579 | if (PyErr_Occurred()) SWIG_fail; | |
17580 | } | |
17581 | Py_INCREF(Py_None); resultobj = Py_None; | |
17582 | return resultobj; | |
17583 | fail: | |
17584 | return NULL; | |
17585 | } | |
17586 | ||
17587 | ||
17588 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
17589 | PyObject *resultobj; | |
17590 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17591 | bool arg2 ; | |
17592 | PyObject * obj0 = 0 ; | |
17593 | PyObject * obj1 = 0 ; | |
17594 | char *kwnames[] = { | |
17595 | (char *) "self",(char *) "flag", NULL | |
17596 | }; | |
17597 | ||
17598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
17599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17601 | arg2 = (bool) SWIG_AsBool(obj1); | |
17602 | if (PyErr_Occurred()) SWIG_fail; | |
17603 | { | |
17604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17605 | (arg1)->EnableOrientation(arg2); | |
17606 | ||
17607 | wxPyEndAllowThreads(__tstate); | |
17608 | if (PyErr_Occurred()) SWIG_fail; | |
17609 | } | |
17610 | Py_INCREF(Py_None); resultobj = Py_None; | |
17611 | return resultobj; | |
17612 | fail: | |
17613 | return NULL; | |
17614 | } | |
17615 | ||
17616 | ||
17617 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *, PyObject *args, PyObject *kwargs) { | |
17618 | PyObject *resultobj; | |
17619 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17620 | bool arg2 ; | |
17621 | PyObject * obj0 = 0 ; | |
17622 | PyObject * obj1 = 0 ; | |
17623 | char *kwnames[] = { | |
17624 | (char *) "self",(char *) "flag", NULL | |
17625 | }; | |
17626 | ||
17627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
17628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17630 | arg2 = (bool) SWIG_AsBool(obj1); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | { | |
17633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17634 | (arg1)->EnablePaper(arg2); | |
17635 | ||
17636 | wxPyEndAllowThreads(__tstate); | |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
17638 | } | |
17639 | Py_INCREF(Py_None); resultobj = Py_None; | |
17640 | return resultobj; | |
17641 | fail: | |
17642 | return NULL; | |
17643 | } | |
17644 | ||
17645 | ||
17646 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *, PyObject *args, PyObject *kwargs) { | |
17647 | PyObject *resultobj; | |
17648 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17649 | bool arg2 ; | |
17650 | PyObject * obj0 = 0 ; | |
17651 | PyObject * obj1 = 0 ; | |
17652 | char *kwnames[] = { | |
17653 | (char *) "self",(char *) "flag", NULL | |
17654 | }; | |
17655 | ||
17656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
17657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17659 | arg2 = (bool) SWIG_AsBool(obj1); | |
17660 | if (PyErr_Occurred()) SWIG_fail; | |
17661 | { | |
17662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17663 | (arg1)->EnablePrinter(arg2); | |
17664 | ||
17665 | wxPyEndAllowThreads(__tstate); | |
17666 | if (PyErr_Occurred()) SWIG_fail; | |
17667 | } | |
17668 | Py_INCREF(Py_None); resultobj = Py_None; | |
17669 | return resultobj; | |
17670 | fail: | |
17671 | return NULL; | |
17672 | } | |
17673 | ||
17674 | ||
17675 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
17676 | PyObject *resultobj; | |
17677 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17678 | bool result; | |
17679 | PyObject * obj0 = 0 ; | |
17680 | char *kwnames[] = { | |
17681 | (char *) "self", NULL | |
17682 | }; | |
17683 | ||
17684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
17685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17687 | { | |
17688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17689 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
17690 | ||
17691 | wxPyEndAllowThreads(__tstate); | |
17692 | if (PyErr_Occurred()) SWIG_fail; | |
17693 | } | |
17694 | { | |
17695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17696 | } | |
17697 | return resultobj; | |
17698 | fail: | |
17699 | return NULL; | |
17700 | } | |
17701 | ||
17702 | ||
17703 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
17704 | PyObject *resultobj; | |
17705 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17706 | bool result; | |
17707 | PyObject * obj0 = 0 ; | |
17708 | char *kwnames[] = { | |
17709 | (char *) "self", NULL | |
17710 | }; | |
17711 | ||
17712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
17713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17715 | { | |
17716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17717 | result = (bool)(arg1)->GetEnableMargins(); | |
17718 | ||
17719 | wxPyEndAllowThreads(__tstate); | |
17720 | if (PyErr_Occurred()) SWIG_fail; | |
17721 | } | |
17722 | { | |
17723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17724 | } | |
17725 | return resultobj; | |
17726 | fail: | |
17727 | return NULL; | |
17728 | } | |
17729 | ||
17730 | ||
17731 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
17732 | PyObject *resultobj; | |
17733 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17734 | bool result; | |
17735 | PyObject * obj0 = 0 ; | |
17736 | char *kwnames[] = { | |
17737 | (char *) "self", NULL | |
17738 | }; | |
17739 | ||
17740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
17741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17743 | { | |
17744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17745 | result = (bool)(arg1)->GetEnableOrientation(); | |
17746 | ||
17747 | wxPyEndAllowThreads(__tstate); | |
17748 | if (PyErr_Occurred()) SWIG_fail; | |
17749 | } | |
17750 | { | |
17751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17752 | } | |
17753 | return resultobj; | |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
17759 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *, PyObject *args, PyObject *kwargs) { | |
17760 | PyObject *resultobj; | |
17761 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17762 | bool result; | |
17763 | PyObject * obj0 = 0 ; | |
17764 | char *kwnames[] = { | |
17765 | (char *) "self", NULL | |
17766 | }; | |
17767 | ||
17768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
17769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17771 | { | |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | result = (bool)(arg1)->GetEnablePaper(); | |
17774 | ||
17775 | wxPyEndAllowThreads(__tstate); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | } | |
17778 | { | |
17779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17780 | } | |
17781 | return resultobj; | |
17782 | fail: | |
17783 | return NULL; | |
17784 | } | |
17785 | ||
17786 | ||
17787 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *, PyObject *args, PyObject *kwargs) { | |
17788 | PyObject *resultobj; | |
17789 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17790 | bool result; | |
17791 | PyObject * obj0 = 0 ; | |
17792 | char *kwnames[] = { | |
17793 | (char *) "self", NULL | |
17794 | }; | |
17795 | ||
17796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
17797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17799 | { | |
17800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17801 | result = (bool)(arg1)->GetEnablePrinter(); | |
17802 | ||
17803 | wxPyEndAllowThreads(__tstate); | |
17804 | if (PyErr_Occurred()) SWIG_fail; | |
17805 | } | |
17806 | { | |
17807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17808 | } | |
17809 | return resultobj; | |
17810 | fail: | |
17811 | return NULL; | |
17812 | } | |
17813 | ||
17814 | ||
17815 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
17816 | PyObject *resultobj; | |
17817 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17818 | bool result; | |
17819 | PyObject * obj0 = 0 ; | |
17820 | char *kwnames[] = { | |
17821 | (char *) "self", NULL | |
17822 | }; | |
17823 | ||
17824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
17825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17827 | { | |
17828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17829 | result = (bool)(arg1)->GetEnableHelp(); | |
17830 | ||
17831 | wxPyEndAllowThreads(__tstate); | |
17832 | if (PyErr_Occurred()) SWIG_fail; | |
17833 | } | |
17834 | { | |
17835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17836 | } | |
17837 | return resultobj; | |
17838 | fail: | |
17839 | return NULL; | |
17840 | } | |
17841 | ||
17842 | ||
17843 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
17844 | PyObject *resultobj; | |
17845 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17846 | bool result; | |
17847 | PyObject * obj0 = 0 ; | |
17848 | char *kwnames[] = { | |
17849 | (char *) "self", NULL | |
17850 | }; | |
17851 | ||
17852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
17853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17855 | { | |
17856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17857 | result = (bool)(arg1)->GetDefaultInfo(); | |
17858 | ||
17859 | wxPyEndAllowThreads(__tstate); | |
17860 | if (PyErr_Occurred()) SWIG_fail; | |
17861 | } | |
17862 | { | |
17863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17864 | } | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17874 | wxPoint result; | |
17875 | PyObject * obj0 = 0 ; | |
17876 | char *kwnames[] = { | |
17877 | (char *) "self", NULL | |
17878 | }; | |
17879 | ||
17880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
17881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17883 | { | |
17884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17885 | result = (arg1)->GetMarginTopLeft(); | |
17886 | ||
17887 | wxPyEndAllowThreads(__tstate); | |
17888 | if (PyErr_Occurred()) SWIG_fail; | |
17889 | } | |
17890 | { | |
17891 | wxPoint * resultptr; | |
17892 | resultptr = new wxPoint((wxPoint &) result); | |
17893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17894 | } | |
17895 | return resultobj; | |
17896 | fail: | |
17897 | return NULL; | |
17898 | } | |
17899 | ||
17900 | ||
17901 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
17902 | PyObject *resultobj; | |
17903 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17904 | wxPoint result; | |
17905 | PyObject * obj0 = 0 ; | |
17906 | char *kwnames[] = { | |
17907 | (char *) "self", NULL | |
17908 | }; | |
17909 | ||
17910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
17911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17913 | { | |
17914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17915 | result = (arg1)->GetMarginBottomRight(); | |
17916 | ||
17917 | wxPyEndAllowThreads(__tstate); | |
17918 | if (PyErr_Occurred()) SWIG_fail; | |
17919 | } | |
17920 | { | |
17921 | wxPoint * resultptr; | |
17922 | resultptr = new wxPoint((wxPoint &) result); | |
17923 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17924 | } | |
17925 | return resultobj; | |
17926 | fail: | |
17927 | return NULL; | |
17928 | } | |
17929 | ||
17930 | ||
17931 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
17932 | PyObject *resultobj; | |
17933 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17934 | wxPoint result; | |
17935 | PyObject * obj0 = 0 ; | |
17936 | char *kwnames[] = { | |
17937 | (char *) "self", NULL | |
17938 | }; | |
17939 | ||
17940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
17941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17943 | { | |
17944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17945 | result = (arg1)->GetMinMarginTopLeft(); | |
17946 | ||
17947 | wxPyEndAllowThreads(__tstate); | |
17948 | if (PyErr_Occurred()) SWIG_fail; | |
17949 | } | |
17950 | { | |
17951 | wxPoint * resultptr; | |
17952 | resultptr = new wxPoint((wxPoint &) result); | |
17953 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17954 | } | |
17955 | return resultobj; | |
17956 | fail: | |
17957 | return NULL; | |
17958 | } | |
17959 | ||
17960 | ||
17961 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
17962 | PyObject *resultobj; | |
17963 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17964 | wxPoint result; | |
17965 | PyObject * obj0 = 0 ; | |
17966 | char *kwnames[] = { | |
17967 | (char *) "self", NULL | |
17968 | }; | |
17969 | ||
17970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
17971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
17972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17973 | { | |
17974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17975 | result = (arg1)->GetMinMarginBottomRight(); | |
17976 | ||
17977 | wxPyEndAllowThreads(__tstate); | |
17978 | if (PyErr_Occurred()) SWIG_fail; | |
17979 | } | |
17980 | { | |
17981 | wxPoint * resultptr; | |
17982 | resultptr = new wxPoint((wxPoint &) result); | |
17983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17984 | } | |
17985 | return resultobj; | |
17986 | fail: | |
17987 | return NULL; | |
17988 | } | |
17989 | ||
17990 | ||
17991 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *, PyObject *args, PyObject *kwargs) { | |
17992 | PyObject *resultobj; | |
17993 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17994 | int result; | |
17995 | PyObject * obj0 = 0 ; | |
17996 | char *kwnames[] = { | |
17997 | (char *) "self", NULL | |
17998 | }; | |
17999 | ||
18000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
18001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | result = (int)(arg1)->GetPaperId(); | |
18006 | ||
18007 | wxPyEndAllowThreads(__tstate); | |
18008 | if (PyErr_Occurred()) SWIG_fail; | |
18009 | } | |
18010 | resultobj = SWIG_FromInt((int)result); | |
18011 | return resultobj; | |
18012 | fail: | |
18013 | return NULL; | |
18014 | } | |
18015 | ||
18016 | ||
18017 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
18018 | PyObject *resultobj; | |
18019 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18020 | wxSize result; | |
18021 | PyObject * obj0 = 0 ; | |
18022 | char *kwnames[] = { | |
18023 | (char *) "self", NULL | |
18024 | }; | |
18025 | ||
18026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18029 | { | |
18030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18031 | result = (arg1)->GetPaperSize(); | |
18032 | ||
18033 | wxPyEndAllowThreads(__tstate); | |
18034 | if (PyErr_Occurred()) SWIG_fail; | |
18035 | } | |
18036 | { | |
18037 | wxSize * resultptr; | |
18038 | resultptr = new wxSize((wxSize &) result); | |
18039 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18040 | } | |
18041 | return resultobj; | |
18042 | fail: | |
18043 | return NULL; | |
18044 | } | |
18045 | ||
18046 | ||
18047 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
18048 | PyObject *resultobj; | |
18049 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18050 | wxPrintData *result; | |
18051 | PyObject * obj0 = 0 ; | |
18052 | char *kwnames[] = { | |
18053 | (char *) "self", NULL | |
18054 | }; | |
18055 | ||
18056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
18057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18059 | { | |
18060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18061 | { | |
18062 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
18063 | result = (wxPrintData *) &_result_ref; | |
18064 | } | |
18065 | ||
18066 | wxPyEndAllowThreads(__tstate); | |
18067 | if (PyErr_Occurred()) SWIG_fail; | |
18068 | } | |
18069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
18070 | return resultobj; | |
18071 | fail: | |
18072 | return NULL; | |
18073 | } | |
18074 | ||
18075 | ||
18076 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
18077 | PyObject *resultobj; | |
18078 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18079 | bool result; | |
18080 | PyObject * obj0 = 0 ; | |
18081 | char *kwnames[] = { | |
18082 | (char *) "self", NULL | |
18083 | }; | |
18084 | ||
18085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
18086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18088 | { | |
18089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18090 | result = (bool)(arg1)->Ok(); | |
18091 | ||
18092 | wxPyEndAllowThreads(__tstate); | |
18093 | if (PyErr_Occurred()) SWIG_fail; | |
18094 | } | |
18095 | { | |
18096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18097 | } | |
18098 | return resultobj; | |
18099 | fail: | |
18100 | return NULL; | |
18101 | } | |
18102 | ||
18103 | ||
18104 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
18105 | PyObject *resultobj; | |
18106 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18107 | bool arg2 ; | |
18108 | PyObject * obj0 = 0 ; | |
18109 | PyObject * obj1 = 0 ; | |
18110 | char *kwnames[] = { | |
18111 | (char *) "self",(char *) "flag", NULL | |
18112 | }; | |
18113 | ||
18114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
18115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18117 | arg2 = (bool) SWIG_AsBool(obj1); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | { | |
18120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18121 | (arg1)->SetDefaultInfo(arg2); | |
18122 | ||
18123 | wxPyEndAllowThreads(__tstate); | |
18124 | if (PyErr_Occurred()) SWIG_fail; | |
18125 | } | |
18126 | Py_INCREF(Py_None); resultobj = Py_None; | |
18127 | return resultobj; | |
18128 | fail: | |
18129 | return NULL; | |
18130 | } | |
18131 | ||
18132 | ||
18133 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
18134 | PyObject *resultobj; | |
18135 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18136 | bool arg2 ; | |
18137 | PyObject * obj0 = 0 ; | |
18138 | PyObject * obj1 = 0 ; | |
18139 | char *kwnames[] = { | |
18140 | (char *) "self",(char *) "flag", NULL | |
18141 | }; | |
18142 | ||
18143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
18144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18146 | arg2 = (bool) SWIG_AsBool(obj1); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
18148 | { | |
18149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18150 | (arg1)->SetDefaultMinMargins(arg2); | |
18151 | ||
18152 | wxPyEndAllowThreads(__tstate); | |
18153 | if (PyErr_Occurred()) SWIG_fail; | |
18154 | } | |
18155 | Py_INCREF(Py_None); resultobj = Py_None; | |
18156 | return resultobj; | |
18157 | fail: | |
18158 | return NULL; | |
18159 | } | |
18160 | ||
18161 | ||
18162 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18163 | PyObject *resultobj; | |
18164 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18165 | wxPoint *arg2 = 0 ; | |
18166 | wxPoint temp2 ; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | PyObject * obj1 = 0 ; | |
18169 | char *kwnames[] = { | |
18170 | (char *) "self",(char *) "pt", NULL | |
18171 | }; | |
18172 | ||
18173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
18174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18176 | { | |
18177 | arg2 = &temp2; | |
18178 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18179 | } | |
18180 | { | |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
18186 | } | |
18187 | Py_INCREF(Py_None); resultobj = Py_None; | |
18188 | return resultobj; | |
18189 | fail: | |
18190 | return NULL; | |
18191 | } | |
18192 | ||
18193 | ||
18194 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
18195 | PyObject *resultobj; | |
18196 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18197 | wxPoint *arg2 = 0 ; | |
18198 | wxPoint temp2 ; | |
18199 | PyObject * obj0 = 0 ; | |
18200 | PyObject * obj1 = 0 ; | |
18201 | char *kwnames[] = { | |
18202 | (char *) "self",(char *) "pt", NULL | |
18203 | }; | |
18204 | ||
18205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
18206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18208 | { | |
18209 | arg2 = &temp2; | |
18210 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18211 | } | |
18212 | { | |
18213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18214 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
18215 | ||
18216 | wxPyEndAllowThreads(__tstate); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | } | |
18219 | Py_INCREF(Py_None); resultobj = Py_None; | |
18220 | return resultobj; | |
18221 | fail: | |
18222 | return NULL; | |
18223 | } | |
18224 | ||
18225 | ||
18226 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { | |
18227 | PyObject *resultobj; | |
18228 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18229 | wxPoint *arg2 = 0 ; | |
18230 | wxPoint temp2 ; | |
18231 | PyObject * obj0 = 0 ; | |
18232 | PyObject * obj1 = 0 ; | |
18233 | char *kwnames[] = { | |
18234 | (char *) "self",(char *) "pt", NULL | |
18235 | }; | |
18236 | ||
18237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
18238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18240 | { | |
18241 | arg2 = &temp2; | |
18242 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18243 | } | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | Py_INCREF(Py_None); resultobj = Py_None; | |
18252 | return resultobj; | |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
18258 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { | |
18259 | PyObject *resultobj; | |
18260 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18261 | wxPoint *arg2 = 0 ; | |
18262 | wxPoint temp2 ; | |
18263 | PyObject * obj0 = 0 ; | |
18264 | PyObject * obj1 = 0 ; | |
18265 | char *kwnames[] = { | |
18266 | (char *) "self",(char *) "pt", NULL | |
18267 | }; | |
18268 | ||
18269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
18270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18272 | { | |
18273 | arg2 = &temp2; | |
18274 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18275 | } | |
18276 | { | |
18277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18278 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
18279 | ||
18280 | wxPyEndAllowThreads(__tstate); | |
18281 | if (PyErr_Occurred()) SWIG_fail; | |
18282 | } | |
18283 | Py_INCREF(Py_None); resultobj = Py_None; | |
18284 | return resultobj; | |
18285 | fail: | |
18286 | return NULL; | |
18287 | } | |
18288 | ||
18289 | ||
18290 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *, PyObject *args, PyObject *kwargs) { | |
18291 | PyObject *resultobj; | |
18292 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18293 | int arg2 ; | |
18294 | PyObject * obj0 = 0 ; | |
18295 | PyObject * obj1 = 0 ; | |
18296 | char *kwnames[] = { | |
18297 | (char *) "self",(char *) "id", NULL | |
18298 | }; | |
18299 | ||
18300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18303 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18304 | if (PyErr_Occurred()) SWIG_fail; | |
18305 | { | |
18306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18307 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18308 | ||
18309 | wxPyEndAllowThreads(__tstate); | |
18310 | if (PyErr_Occurred()) SWIG_fail; | |
18311 | } | |
18312 | Py_INCREF(Py_None); resultobj = Py_None; | |
18313 | return resultobj; | |
18314 | fail: | |
18315 | return NULL; | |
18316 | } | |
18317 | ||
18318 | ||
18319 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
18320 | PyObject *resultobj; | |
18321 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18322 | wxSize *arg2 = 0 ; | |
18323 | wxSize temp2 ; | |
18324 | PyObject * obj0 = 0 ; | |
18325 | PyObject * obj1 = 0 ; | |
18326 | char *kwnames[] = { | |
18327 | (char *) "self",(char *) "size", NULL | |
18328 | }; | |
18329 | ||
18330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18333 | { | |
18334 | arg2 = &temp2; | |
18335 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18336 | } | |
18337 | { | |
18338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18339 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18340 | ||
18341 | wxPyEndAllowThreads(__tstate); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
18343 | } | |
18344 | Py_INCREF(Py_None); resultobj = Py_None; | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18354 | wxPrintData *arg2 = 0 ; | |
18355 | PyObject * obj0 = 0 ; | |
18356 | PyObject * obj1 = 0 ; | |
18357 | char *kwnames[] = { | |
18358 | (char *) "self",(char *) "printData", NULL | |
18359 | }; | |
18360 | ||
18361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
18362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
18365 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18366 | SWIG_fail; | |
18367 | if (arg2 == NULL) { | |
18368 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18369 | SWIG_fail; | |
18370 | } | |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
18378 | Py_INCREF(Py_None); resultobj = Py_None; | |
18379 | return resultobj; | |
18380 | fail: | |
18381 | return NULL; | |
18382 | } | |
18383 | ||
18384 | ||
18385 | static PyObject * PageSetupDialogData_swigregister(PyObject *, PyObject *args) { | |
18386 | PyObject *obj; | |
18387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18388 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
18389 | Py_INCREF(obj); | |
18390 | return Py_BuildValue((char *)""); | |
18391 | } | |
18392 | static PyObject *_wrap_new_PageSetupDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
18393 | PyObject *resultobj; | |
18394 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18395 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
18396 | wxPageSetupDialog *result; | |
18397 | PyObject * obj0 = 0 ; | |
18398 | PyObject * obj1 = 0 ; | |
18399 | char *kwnames[] = { | |
18400 | (char *) "parent",(char *) "data", NULL | |
18401 | }; | |
18402 | ||
18403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
18404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18406 | if (obj1) { | |
18407 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
18408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18409 | } | |
18410 | { | |
18411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18412 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
18413 | ||
18414 | wxPyEndAllowThreads(__tstate); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
18417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
18418 | return resultobj; | |
18419 | fail: | |
18420 | return NULL; | |
18421 | } | |
18422 | ||
18423 | ||
18424 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *, PyObject *args, PyObject *kwargs) { | |
18425 | PyObject *resultobj; | |
18426 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
18427 | wxPageSetupDialogData *result; | |
18428 | PyObject * obj0 = 0 ; | |
18429 | char *kwnames[] = { | |
18430 | (char *) "self", NULL | |
18431 | }; | |
18432 | ||
18433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
18434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
18435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18436 | { | |
18437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18438 | { | |
18439 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
18440 | result = (wxPageSetupDialogData *) &_result_ref; | |
18441 | } | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
18446 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
18447 | return resultobj; | |
18448 | fail: | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
18453 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *, PyObject *args, PyObject *kwargs) { | |
18454 | PyObject *resultobj; | |
18455 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
18456 | int result; | |
18457 | PyObject * obj0 = 0 ; | |
18458 | char *kwnames[] = { | |
18459 | (char *) "self", NULL | |
18460 | }; | |
18461 | ||
18462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
18463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
18464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18465 | { | |
18466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18467 | result = (int)(arg1)->ShowModal(); | |
18468 | ||
18469 | wxPyEndAllowThreads(__tstate); | |
18470 | if (PyErr_Occurred()) SWIG_fail; | |
18471 | } | |
18472 | resultobj = SWIG_FromInt((int)result); | |
18473 | return resultobj; | |
18474 | fail: | |
18475 | return NULL; | |
18476 | } | |
18477 | ||
18478 | ||
18479 | static PyObject * PageSetupDialog_swigregister(PyObject *, PyObject *args) { | |
18480 | PyObject *obj; | |
18481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18482 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
18483 | Py_INCREF(obj); | |
18484 | return Py_BuildValue((char *)""); | |
18485 | } | |
18486 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *, PyObject *args) { | |
18487 | PyObject *resultobj; | |
18488 | wxPrintDialogData *result; | |
18489 | ||
18490 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
18491 | { | |
18492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18493 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
18494 | ||
18495 | wxPyEndAllowThreads(__tstate); | |
18496 | if (PyErr_Occurred()) SWIG_fail; | |
18497 | } | |
18498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
18499 | return resultobj; | |
18500 | fail: | |
18501 | return NULL; | |
18502 | } | |
18503 | ||
18504 | ||
18505 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *, PyObject *args) { | |
18506 | PyObject *resultobj; | |
18507 | wxPrintData *arg1 = 0 ; | |
18508 | wxPrintDialogData *result; | |
18509 | PyObject * obj0 = 0 ; | |
18510 | ||
18511 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
18512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18514 | SWIG_fail; | |
18515 | if (arg1 == NULL) { | |
18516 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18517 | SWIG_fail; | |
18518 | } | |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
18526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
18527 | return resultobj; | |
18528 | fail: | |
18529 | return NULL; | |
18530 | } | |
18531 | ||
18532 | ||
18533 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
18534 | int argc; | |
18535 | PyObject *argv[2]; | |
18536 | int ii; | |
18537 | ||
18538 | argc = PyObject_Length(args); | |
18539 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
18540 | argv[ii] = PyTuple_GetItem(args,ii); | |
18541 | } | |
18542 | if (argc == 0) { | |
18543 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
18544 | } | |
18545 | if (argc == 1) { | |
18546 | int _v; | |
18547 | { | |
18548 | void *ptr; | |
18549 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
18550 | _v = 0; | |
18551 | PyErr_Clear(); | |
18552 | } else { | |
18553 | _v = 1; | |
18554 | } | |
18555 | } | |
18556 | if (_v) { | |
18557 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
18558 | } | |
18559 | } | |
18560 | ||
18561 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
18562 | return NULL; | |
18563 | } | |
18564 | ||
18565 | ||
18566 | static PyObject *_wrap_delete_PrintDialogData(PyObject *, PyObject *args, PyObject *kwargs) { | |
18567 | PyObject *resultobj; | |
18568 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18569 | PyObject * obj0 = 0 ; | |
18570 | char *kwnames[] = { | |
18571 | (char *) "self", NULL | |
18572 | }; | |
18573 | ||
18574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
18575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18577 | { | |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | delete arg1; | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | Py_INCREF(Py_None); resultobj = Py_None; | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | return NULL; | |
18588 | } | |
18589 | ||
18590 | ||
18591 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18592 | PyObject *resultobj; | |
18593 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18594 | int result; | |
18595 | PyObject * obj0 = 0 ; | |
18596 | char *kwnames[] = { | |
18597 | (char *) "self", NULL | |
18598 | }; | |
18599 | ||
18600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
18601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18603 | { | |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
18610 | resultobj = SWIG_FromInt((int)result); | |
18611 | return resultobj; | |
18612 | fail: | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
18617 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18618 | PyObject *resultobj; | |
18619 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18620 | int result; | |
18621 | PyObject * obj0 = 0 ; | |
18622 | char *kwnames[] = { | |
18623 | (char *) "self", NULL | |
18624 | }; | |
18625 | ||
18626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
18627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18629 | { | |
18630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18631 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
18632 | ||
18633 | wxPyEndAllowThreads(__tstate); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | } | |
18636 | resultobj = SWIG_FromInt((int)result); | |
18637 | return resultobj; | |
18638 | fail: | |
18639 | return NULL; | |
18640 | } | |
18641 | ||
18642 | ||
18643 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18644 | PyObject *resultobj; | |
18645 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18646 | int result; | |
18647 | PyObject * obj0 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "self", NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
18653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18655 | { | |
18656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18657 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
18658 | ||
18659 | wxPyEndAllowThreads(__tstate); | |
18660 | if (PyErr_Occurred()) SWIG_fail; | |
18661 | } | |
18662 | resultobj = SWIG_FromInt((int)result); | |
18663 | return resultobj; | |
18664 | fail: | |
18665 | return NULL; | |
18666 | } | |
18667 | ||
18668 | ||
18669 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18670 | PyObject *resultobj; | |
18671 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18672 | int result; | |
18673 | PyObject * obj0 = 0 ; | |
18674 | char *kwnames[] = { | |
18675 | (char *) "self", NULL | |
18676 | }; | |
18677 | ||
18678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
18679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18681 | { | |
18682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18683 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
18684 | ||
18685 | wxPyEndAllowThreads(__tstate); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | resultobj = SWIG_FromInt((int)result); | |
18689 | return resultobj; | |
18690 | fail: | |
18691 | return NULL; | |
18692 | } | |
18693 | ||
18694 | ||
18695 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *, PyObject *args, PyObject *kwargs) { | |
18696 | PyObject *resultobj; | |
18697 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18698 | int result; | |
18699 | PyObject * obj0 = 0 ; | |
18700 | char *kwnames[] = { | |
18701 | (char *) "self", NULL | |
18702 | }; | |
18703 | ||
18704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
18705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
18710 | ||
18711 | wxPyEndAllowThreads(__tstate); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | } | |
18714 | resultobj = SWIG_FromInt((int)result); | |
18715 | return resultobj; | |
18716 | fail: | |
18717 | return NULL; | |
18718 | } | |
18719 | ||
18720 | ||
18721 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
18722 | PyObject *resultobj; | |
18723 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18724 | bool result; | |
18725 | PyObject * obj0 = 0 ; | |
18726 | char *kwnames[] = { | |
18727 | (char *) "self", NULL | |
18728 | }; | |
18729 | ||
18730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
18731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | { | |
18741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18742 | } | |
18743 | return resultobj; | |
18744 | fail: | |
18745 | return NULL; | |
18746 | } | |
18747 | ||
18748 | ||
18749 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
18750 | PyObject *resultobj; | |
18751 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18752 | bool result; | |
18753 | PyObject * obj0 = 0 ; | |
18754 | char *kwnames[] = { | |
18755 | (char *) "self", NULL | |
18756 | }; | |
18757 | ||
18758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
18759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18761 | { | |
18762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18763 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
18764 | ||
18765 | wxPyEndAllowThreads(__tstate); | |
18766 | if (PyErr_Occurred()) SWIG_fail; | |
18767 | } | |
18768 | { | |
18769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18770 | } | |
18771 | return resultobj; | |
18772 | fail: | |
18773 | return NULL; | |
18774 | } | |
18775 | ||
18776 | ||
18777 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *, PyObject *args, PyObject *kwargs) { | |
18778 | PyObject *resultobj; | |
18779 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18780 | bool result; | |
18781 | PyObject * obj0 = 0 ; | |
18782 | char *kwnames[] = { | |
18783 | (char *) "self", NULL | |
18784 | }; | |
18785 | ||
18786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
18787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18789 | { | |
18790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18791 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
18792 | ||
18793 | wxPyEndAllowThreads(__tstate); | |
18794 | if (PyErr_Occurred()) SWIG_fail; | |
18795 | } | |
18796 | { | |
18797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18798 | } | |
18799 | return resultobj; | |
18800 | fail: | |
18801 | return NULL; | |
18802 | } | |
18803 | ||
18804 | ||
18805 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
18806 | PyObject *resultobj; | |
18807 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18808 | bool result; | |
18809 | PyObject * obj0 = 0 ; | |
18810 | char *kwnames[] = { | |
18811 | (char *) "self", NULL | |
18812 | }; | |
18813 | ||
18814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
18815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18817 | { | |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
18820 | ||
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
18824 | { | |
18825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18826 | } | |
18827 | return resultobj; | |
18828 | fail: | |
18829 | return NULL; | |
18830 | } | |
18831 | ||
18832 | ||
18833 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
18834 | PyObject *resultobj; | |
18835 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18836 | bool result; | |
18837 | PyObject * obj0 = 0 ; | |
18838 | char *kwnames[] = { | |
18839 | (char *) "self", NULL | |
18840 | }; | |
18841 | ||
18842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
18843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18845 | { | |
18846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18847 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
18848 | ||
18849 | wxPyEndAllowThreads(__tstate); | |
18850 | if (PyErr_Occurred()) SWIG_fail; | |
18851 | } | |
18852 | { | |
18853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18854 | } | |
18855 | return resultobj; | |
18856 | fail: | |
18857 | return NULL; | |
18858 | } | |
18859 | ||
18860 | ||
18861 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18862 | PyObject *resultobj; | |
18863 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18864 | int arg2 ; | |
18865 | PyObject * obj0 = 0 ; | |
18866 | PyObject * obj1 = 0 ; | |
18867 | char *kwnames[] = { | |
18868 | (char *) "self",(char *) "v", NULL | |
18869 | }; | |
18870 | ||
18871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
18872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18874 | arg2 = (int) SWIG_AsInt(obj1); | |
18875 | if (PyErr_Occurred()) SWIG_fail; | |
18876 | { | |
18877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18878 | (arg1)->SetFromPage(arg2); | |
18879 | ||
18880 | wxPyEndAllowThreads(__tstate); | |
18881 | if (PyErr_Occurred()) SWIG_fail; | |
18882 | } | |
18883 | Py_INCREF(Py_None); resultobj = Py_None; | |
18884 | return resultobj; | |
18885 | fail: | |
18886 | return NULL; | |
18887 | } | |
18888 | ||
18889 | ||
18890 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18891 | PyObject *resultobj; | |
18892 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18893 | int arg2 ; | |
18894 | PyObject * obj0 = 0 ; | |
18895 | PyObject * obj1 = 0 ; | |
18896 | char *kwnames[] = { | |
18897 | (char *) "self",(char *) "v", NULL | |
18898 | }; | |
18899 | ||
18900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
18901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18903 | arg2 = (int) SWIG_AsInt(obj1); | |
18904 | if (PyErr_Occurred()) SWIG_fail; | |
18905 | { | |
18906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18907 | (arg1)->SetToPage(arg2); | |
18908 | ||
18909 | wxPyEndAllowThreads(__tstate); | |
18910 | if (PyErr_Occurred()) SWIG_fail; | |
18911 | } | |
18912 | Py_INCREF(Py_None); resultobj = Py_None; | |
18913 | return resultobj; | |
18914 | fail: | |
18915 | return NULL; | |
18916 | } | |
18917 | ||
18918 | ||
18919 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18920 | PyObject *resultobj; | |
18921 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18922 | int arg2 ; | |
18923 | PyObject * obj0 = 0 ; | |
18924 | PyObject * obj1 = 0 ; | |
18925 | char *kwnames[] = { | |
18926 | (char *) "self",(char *) "v", NULL | |
18927 | }; | |
18928 | ||
18929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
18930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18932 | arg2 = (int) SWIG_AsInt(obj1); | |
18933 | if (PyErr_Occurred()) SWIG_fail; | |
18934 | { | |
18935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18936 | (arg1)->SetMinPage(arg2); | |
18937 | ||
18938 | wxPyEndAllowThreads(__tstate); | |
18939 | if (PyErr_Occurred()) SWIG_fail; | |
18940 | } | |
18941 | Py_INCREF(Py_None); resultobj = Py_None; | |
18942 | return resultobj; | |
18943 | fail: | |
18944 | return NULL; | |
18945 | } | |
18946 | ||
18947 | ||
18948 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18949 | PyObject *resultobj; | |
18950 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18951 | int arg2 ; | |
18952 | PyObject * obj0 = 0 ; | |
18953 | PyObject * obj1 = 0 ; | |
18954 | char *kwnames[] = { | |
18955 | (char *) "self",(char *) "v", NULL | |
18956 | }; | |
18957 | ||
18958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
18959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18961 | arg2 = (int) SWIG_AsInt(obj1); | |
18962 | if (PyErr_Occurred()) SWIG_fail; | |
18963 | { | |
18964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18965 | (arg1)->SetMaxPage(arg2); | |
18966 | ||
18967 | wxPyEndAllowThreads(__tstate); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
18970 | Py_INCREF(Py_None); resultobj = Py_None; | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
18977 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *, PyObject *args, PyObject *kwargs) { | |
18978 | PyObject *resultobj; | |
18979 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18980 | int arg2 ; | |
18981 | PyObject * obj0 = 0 ; | |
18982 | PyObject * obj1 = 0 ; | |
18983 | char *kwnames[] = { | |
18984 | (char *) "self",(char *) "v", NULL | |
18985 | }; | |
18986 | ||
18987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
18988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
18989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18990 | arg2 = (int) SWIG_AsInt(obj1); | |
18991 | if (PyErr_Occurred()) SWIG_fail; | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18994 | (arg1)->SetNoCopies(arg2); | |
18995 | ||
18996 | wxPyEndAllowThreads(__tstate); | |
18997 | if (PyErr_Occurred()) SWIG_fail; | |
18998 | } | |
18999 | Py_INCREF(Py_None); resultobj = Py_None; | |
19000 | return resultobj; | |
19001 | fail: | |
19002 | return NULL; | |
19003 | } | |
19004 | ||
19005 | ||
19006 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
19007 | PyObject *resultobj; | |
19008 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19009 | bool arg2 ; | |
19010 | PyObject * obj0 = 0 ; | |
19011 | PyObject * obj1 = 0 ; | |
19012 | char *kwnames[] = { | |
19013 | (char *) "self",(char *) "flag", NULL | |
19014 | }; | |
19015 | ||
19016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
19017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19019 | arg2 = (bool) SWIG_AsBool(obj1); | |
19020 | if (PyErr_Occurred()) SWIG_fail; | |
19021 | { | |
19022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19023 | (arg1)->SetAllPages(arg2); | |
19024 | ||
19025 | wxPyEndAllowThreads(__tstate); | |
19026 | if (PyErr_Occurred()) SWIG_fail; | |
19027 | } | |
19028 | Py_INCREF(Py_None); resultobj = Py_None; | |
19029 | return resultobj; | |
19030 | fail: | |
19031 | return NULL; | |
19032 | } | |
19033 | ||
19034 | ||
19035 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
19036 | PyObject *resultobj; | |
19037 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19038 | bool arg2 ; | |
19039 | PyObject * obj0 = 0 ; | |
19040 | PyObject * obj1 = 0 ; | |
19041 | char *kwnames[] = { | |
19042 | (char *) "self",(char *) "flag", NULL | |
19043 | }; | |
19044 | ||
19045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
19046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19048 | arg2 = (bool) SWIG_AsBool(obj1); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
19050 | { | |
19051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19052 | (arg1)->SetSelection(arg2); | |
19053 | ||
19054 | wxPyEndAllowThreads(__tstate); | |
19055 | if (PyErr_Occurred()) SWIG_fail; | |
19056 | } | |
19057 | Py_INCREF(Py_None); resultobj = Py_None; | |
19058 | return resultobj; | |
19059 | fail: | |
19060 | return NULL; | |
19061 | } | |
19062 | ||
19063 | ||
19064 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *, PyObject *args, PyObject *kwargs) { | |
19065 | PyObject *resultobj; | |
19066 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19067 | bool arg2 ; | |
19068 | PyObject * obj0 = 0 ; | |
19069 | PyObject * obj1 = 0 ; | |
19070 | char *kwnames[] = { | |
19071 | (char *) "self",(char *) "flag", NULL | |
19072 | }; | |
19073 | ||
19074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
19075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19077 | arg2 = (bool) SWIG_AsBool(obj1); | |
19078 | if (PyErr_Occurred()) SWIG_fail; | |
19079 | { | |
19080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19081 | (arg1)->SetCollate(arg2); | |
19082 | ||
19083 | wxPyEndAllowThreads(__tstate); | |
19084 | if (PyErr_Occurred()) SWIG_fail; | |
19085 | } | |
19086 | Py_INCREF(Py_None); resultobj = Py_None; | |
19087 | return resultobj; | |
19088 | fail: | |
19089 | return NULL; | |
19090 | } | |
19091 | ||
19092 | ||
19093 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
19094 | PyObject *resultobj; | |
19095 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19096 | bool arg2 ; | |
19097 | PyObject * obj0 = 0 ; | |
19098 | PyObject * obj1 = 0 ; | |
19099 | char *kwnames[] = { | |
19100 | (char *) "self",(char *) "flag", NULL | |
19101 | }; | |
19102 | ||
19103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
19104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19106 | arg2 = (bool) SWIG_AsBool(obj1); | |
19107 | if (PyErr_Occurred()) SWIG_fail; | |
19108 | { | |
19109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19110 | (arg1)->SetPrintToFile(arg2); | |
19111 | ||
19112 | wxPyEndAllowThreads(__tstate); | |
19113 | if (PyErr_Occurred()) SWIG_fail; | |
19114 | } | |
19115 | Py_INCREF(Py_None); resultobj = Py_None; | |
19116 | return resultobj; | |
19117 | fail: | |
19118 | return NULL; | |
19119 | } | |
19120 | ||
19121 | ||
19122 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
19123 | PyObject *resultobj; | |
19124 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19125 | bool arg2 ; | |
19126 | PyObject * obj0 = 0 ; | |
19127 | PyObject * obj1 = 0 ; | |
19128 | char *kwnames[] = { | |
19129 | (char *) "self",(char *) "flag", NULL | |
19130 | }; | |
19131 | ||
19132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
19133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19135 | arg2 = (bool) SWIG_AsBool(obj1); | |
19136 | if (PyErr_Occurred()) SWIG_fail; | |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | (arg1)->SetSetupDialog(arg2); | |
19140 | ||
19141 | wxPyEndAllowThreads(__tstate); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
19144 | Py_INCREF(Py_None); resultobj = Py_None; | |
19145 | return resultobj; | |
19146 | fail: | |
19147 | return NULL; | |
19148 | } | |
19149 | ||
19150 | ||
19151 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
19152 | PyObject *resultobj; | |
19153 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19154 | bool arg2 ; | |
19155 | PyObject * obj0 = 0 ; | |
19156 | PyObject * obj1 = 0 ; | |
19157 | char *kwnames[] = { | |
19158 | (char *) "self",(char *) "flag", NULL | |
19159 | }; | |
19160 | ||
19161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
19162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19164 | arg2 = (bool) SWIG_AsBool(obj1); | |
19165 | if (PyErr_Occurred()) SWIG_fail; | |
19166 | { | |
19167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19168 | (arg1)->EnablePrintToFile(arg2); | |
19169 | ||
19170 | wxPyEndAllowThreads(__tstate); | |
19171 | if (PyErr_Occurred()) SWIG_fail; | |
19172 | } | |
19173 | Py_INCREF(Py_None); resultobj = Py_None; | |
19174 | return resultobj; | |
19175 | fail: | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19183 | bool arg2 ; | |
19184 | PyObject * obj0 = 0 ; | |
19185 | PyObject * obj1 = 0 ; | |
19186 | char *kwnames[] = { | |
19187 | (char *) "self",(char *) "flag", NULL | |
19188 | }; | |
19189 | ||
19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
19191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19193 | arg2 = (bool) SWIG_AsBool(obj1); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
19195 | { | |
19196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19197 | (arg1)->EnableSelection(arg2); | |
19198 | ||
19199 | wxPyEndAllowThreads(__tstate); | |
19200 | if (PyErr_Occurred()) SWIG_fail; | |
19201 | } | |
19202 | Py_INCREF(Py_None); resultobj = Py_None; | |
19203 | return resultobj; | |
19204 | fail: | |
19205 | return NULL; | |
19206 | } | |
19207 | ||
19208 | ||
19209 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *, PyObject *args, PyObject *kwargs) { | |
19210 | PyObject *resultobj; | |
19211 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19212 | bool arg2 ; | |
19213 | PyObject * obj0 = 0 ; | |
19214 | PyObject * obj1 = 0 ; | |
19215 | char *kwnames[] = { | |
19216 | (char *) "self",(char *) "flag", NULL | |
19217 | }; | |
19218 | ||
19219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
19220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19222 | arg2 = (bool) SWIG_AsBool(obj1); | |
19223 | if (PyErr_Occurred()) SWIG_fail; | |
19224 | { | |
19225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19226 | (arg1)->EnablePageNumbers(arg2); | |
19227 | ||
19228 | wxPyEndAllowThreads(__tstate); | |
19229 | if (PyErr_Occurred()) SWIG_fail; | |
19230 | } | |
19231 | Py_INCREF(Py_None); resultobj = Py_None; | |
19232 | return resultobj; | |
19233 | fail: | |
19234 | return NULL; | |
19235 | } | |
19236 | ||
19237 | ||
19238 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
19239 | PyObject *resultobj; | |
19240 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19241 | bool arg2 ; | |
19242 | PyObject * obj0 = 0 ; | |
19243 | PyObject * obj1 = 0 ; | |
19244 | char *kwnames[] = { | |
19245 | (char *) "self",(char *) "flag", NULL | |
19246 | }; | |
19247 | ||
19248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19251 | arg2 = (bool) SWIG_AsBool(obj1); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | { | |
19254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19255 | (arg1)->EnableHelp(arg2); | |
19256 | ||
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | Py_INCREF(Py_None); resultobj = Py_None; | |
19261 | return resultobj; | |
19262 | fail: | |
19263 | return NULL; | |
19264 | } | |
19265 | ||
19266 | ||
19267 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
19268 | PyObject *resultobj; | |
19269 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19270 | bool result; | |
19271 | PyObject * obj0 = 0 ; | |
19272 | char *kwnames[] = { | |
19273 | (char *) "self", NULL | |
19274 | }; | |
19275 | ||
19276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
19277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19279 | { | |
19280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19281 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
19282 | ||
19283 | wxPyEndAllowThreads(__tstate); | |
19284 | if (PyErr_Occurred()) SWIG_fail; | |
19285 | } | |
19286 | { | |
19287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19288 | } | |
19289 | return resultobj; | |
19290 | fail: | |
19291 | return NULL; | |
19292 | } | |
19293 | ||
19294 | ||
19295 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
19296 | PyObject *resultobj; | |
19297 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19298 | bool result; | |
19299 | PyObject * obj0 = 0 ; | |
19300 | char *kwnames[] = { | |
19301 | (char *) "self", NULL | |
19302 | }; | |
19303 | ||
19304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
19305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19307 | { | |
19308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19309 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
19310 | ||
19311 | wxPyEndAllowThreads(__tstate); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | } | |
19314 | { | |
19315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19316 | } | |
19317 | return resultobj; | |
19318 | fail: | |
19319 | return NULL; | |
19320 | } | |
19321 | ||
19322 | ||
19323 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *, PyObject *args, PyObject *kwargs) { | |
19324 | PyObject *resultobj; | |
19325 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19326 | bool result; | |
19327 | PyObject * obj0 = 0 ; | |
19328 | char *kwnames[] = { | |
19329 | (char *) "self", NULL | |
19330 | }; | |
19331 | ||
19332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
19333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19335 | { | |
19336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19337 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
19338 | ||
19339 | wxPyEndAllowThreads(__tstate); | |
19340 | if (PyErr_Occurred()) SWIG_fail; | |
19341 | } | |
19342 | { | |
19343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19344 | } | |
19345 | return resultobj; | |
19346 | fail: | |
19347 | return NULL; | |
19348 | } | |
19349 | ||
19350 | ||
19351 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
19352 | PyObject *resultobj; | |
19353 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19354 | bool result; | |
19355 | PyObject * obj0 = 0 ; | |
19356 | char *kwnames[] = { | |
19357 | (char *) "self", NULL | |
19358 | }; | |
19359 | ||
19360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19363 | { | |
19364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19365 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
19366 | ||
19367 | wxPyEndAllowThreads(__tstate); | |
19368 | if (PyErr_Occurred()) SWIG_fail; | |
19369 | } | |
19370 | { | |
19371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19372 | } | |
19373 | return resultobj; | |
19374 | fail: | |
19375 | return NULL; | |
19376 | } | |
19377 | ||
19378 | ||
19379 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
19380 | PyObject *resultobj; | |
19381 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19382 | bool result; | |
19383 | PyObject * obj0 = 0 ; | |
19384 | char *kwnames[] = { | |
19385 | (char *) "self", NULL | |
19386 | }; | |
19387 | ||
19388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
19389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19391 | { | |
19392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19393 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
19394 | ||
19395 | wxPyEndAllowThreads(__tstate); | |
19396 | if (PyErr_Occurred()) SWIG_fail; | |
19397 | } | |
19398 | { | |
19399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19400 | } | |
19401 | return resultobj; | |
19402 | fail: | |
19403 | return NULL; | |
19404 | } | |
19405 | ||
19406 | ||
19407 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
19408 | PyObject *resultobj; | |
19409 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19410 | wxPrintData *result; | |
19411 | PyObject * obj0 = 0 ; | |
19412 | char *kwnames[] = { | |
19413 | (char *) "self", NULL | |
19414 | }; | |
19415 | ||
19416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19419 | { | |
19420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19421 | { | |
19422 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19423 | result = (wxPrintData *) &_result_ref; | |
19424 | } | |
19425 | ||
19426 | wxPyEndAllowThreads(__tstate); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
19428 | } | |
19429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
19430 | return resultobj; | |
19431 | fail: | |
19432 | return NULL; | |
19433 | } | |
19434 | ||
19435 | ||
19436 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
19437 | PyObject *resultobj; | |
19438 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19439 | wxPrintData *arg2 = 0 ; | |
19440 | PyObject * obj0 = 0 ; | |
19441 | PyObject * obj1 = 0 ; | |
19442 | char *kwnames[] = { | |
19443 | (char *) "self",(char *) "printData", NULL | |
19444 | }; | |
19445 | ||
19446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
19447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
19450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19451 | SWIG_fail; | |
19452 | if (arg2 == NULL) { | |
19453 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19454 | SWIG_fail; | |
19455 | } | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19458 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
19459 | ||
19460 | wxPyEndAllowThreads(__tstate); | |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
19463 | Py_INCREF(Py_None); resultobj = Py_None; | |
19464 | return resultobj; | |
19465 | fail: | |
19466 | return NULL; | |
19467 | } | |
19468 | ||
19469 | ||
19470 | static PyObject * PrintDialogData_swigregister(PyObject *, PyObject *args) { | |
19471 | PyObject *obj; | |
19472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19473 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
19474 | Py_INCREF(obj); | |
19475 | return Py_BuildValue((char *)""); | |
19476 | } | |
19477 | static PyObject *_wrap_new_PrintDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
19478 | PyObject *resultobj; | |
19479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19480 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
19481 | wxPrintDialog *result; | |
19482 | PyObject * obj0 = 0 ; | |
19483 | PyObject * obj1 = 0 ; | |
19484 | char *kwnames[] = { | |
19485 | (char *) "parent",(char *) "data", NULL | |
19486 | }; | |
19487 | ||
19488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
19489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19491 | if (obj1) { | |
19492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
19493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19494 | } | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
19502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19512 | wxPrintDialogData *result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
19519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
19520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19521 | { | |
19522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19523 | { | |
19524 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
19525 | result = (wxPrintDialogData *) &_result_ref; | |
19526 | } | |
19527 | ||
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
19532 | return resultobj; | |
19533 | fail: | |
19534 | return NULL; | |
19535 | } | |
19536 | ||
19537 | ||
19538 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
19539 | PyObject *resultobj; | |
19540 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19541 | wxDC *result; | |
19542 | PyObject * obj0 = 0 ; | |
19543 | char *kwnames[] = { | |
19544 | (char *) "self", NULL | |
19545 | }; | |
19546 | ||
19547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
19548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
19549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | result = (wxDC *)(arg1)->GetPrintDC(); | |
19553 | ||
19554 | wxPyEndAllowThreads(__tstate); | |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
19556 | } | |
19557 | { | |
19558 | resultobj = wxPyMake_wxObject(result); | |
19559 | } | |
19560 | return resultobj; | |
19561 | fail: | |
19562 | return NULL; | |
19563 | } | |
19564 | ||
19565 | ||
19566 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *, PyObject *args, PyObject *kwargs) { | |
19567 | PyObject *resultobj; | |
19568 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19569 | int result; | |
19570 | PyObject * obj0 = 0 ; | |
19571 | char *kwnames[] = { | |
19572 | (char *) "self", NULL | |
19573 | }; | |
19574 | ||
19575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
19576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
19577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19578 | { | |
19579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19580 | result = (int)(arg1)->ShowModal(); | |
19581 | ||
19582 | wxPyEndAllowThreads(__tstate); | |
19583 | if (PyErr_Occurred()) SWIG_fail; | |
19584 | } | |
19585 | resultobj = SWIG_FromInt((int)result); | |
19586 | return resultobj; | |
19587 | fail: | |
19588 | return NULL; | |
19589 | } | |
19590 | ||
19591 | ||
19592 | static PyObject * PrintDialog_swigregister(PyObject *, PyObject *args) { | |
19593 | PyObject *obj; | |
19594 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19595 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
19596 | Py_INCREF(obj); | |
19597 | return Py_BuildValue((char *)""); | |
19598 | } | |
19599 | static PyObject *_wrap_new_Printer(PyObject *, PyObject *args, PyObject *kwargs) { | |
19600 | PyObject *resultobj; | |
19601 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
19602 | wxPrinter *result; | |
19603 | PyObject * obj0 = 0 ; | |
19604 | char *kwnames[] = { | |
19605 | (char *) "data", NULL | |
19606 | }; | |
19607 | ||
19608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
19609 | if (obj0) { | |
19610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19612 | } | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | result = (wxPrinter *)new wxPrinter(arg1); | |
19616 | ||
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
19621 | return resultobj; | |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_delete_Printer(PyObject *, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19630 | PyObject * obj0 = 0 ; | |
19631 | char *kwnames[] = { | |
19632 | (char *) "self", NULL | |
19633 | }; | |
19634 | ||
19635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
19636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19638 | { | |
19639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19640 | delete arg1; | |
19641 | ||
19642 | wxPyEndAllowThreads(__tstate); | |
19643 | if (PyErr_Occurred()) SWIG_fail; | |
19644 | } | |
19645 | Py_INCREF(Py_None); resultobj = Py_None; | |
19646 | return resultobj; | |
19647 | fail: | |
19648 | return NULL; | |
19649 | } | |
19650 | ||
19651 | ||
19652 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
19653 | PyObject *resultobj; | |
19654 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19655 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19656 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19657 | PyObject * obj0 = 0 ; | |
19658 | PyObject * obj1 = 0 ; | |
19659 | PyObject * obj2 = 0 ; | |
19660 | char *kwnames[] = { | |
19661 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
19662 | }; | |
19663 | ||
19664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19669 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
19670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19671 | { | |
19672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19673 | (arg1)->CreateAbortWindow(arg2,arg3); | |
19674 | ||
19675 | wxPyEndAllowThreads(__tstate); | |
19676 | if (PyErr_Occurred()) SWIG_fail; | |
19677 | } | |
19678 | Py_INCREF(Py_None); resultobj = Py_None; | |
19679 | return resultobj; | |
19680 | fail: | |
19681 | return NULL; | |
19682 | } | |
19683 | ||
19684 | ||
19685 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *, PyObject *args, PyObject *kwargs) { | |
19686 | PyObject *resultobj; | |
19687 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19688 | wxPrintDialogData *result; | |
19689 | PyObject * obj0 = 0 ; | |
19690 | char *kwnames[] = { | |
19691 | (char *) "self", NULL | |
19692 | }; | |
19693 | ||
19694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
19695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19697 | { | |
19698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19699 | { | |
19700 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
19701 | result = (wxPrintDialogData *) &_result_ref; | |
19702 | } | |
19703 | ||
19704 | wxPyEndAllowThreads(__tstate); | |
19705 | if (PyErr_Occurred()) SWIG_fail; | |
19706 | } | |
19707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
19708 | return resultobj; | |
19709 | fail: | |
19710 | return NULL; | |
19711 | } | |
19712 | ||
19713 | ||
19714 | static PyObject *_wrap_Printer_Print(PyObject *, PyObject *args, PyObject *kwargs) { | |
19715 | PyObject *resultobj; | |
19716 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19717 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19718 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19719 | int arg4 = (int) True ; | |
19720 | bool result; | |
19721 | PyObject * obj0 = 0 ; | |
19722 | PyObject * obj1 = 0 ; | |
19723 | PyObject * obj2 = 0 ; | |
19724 | PyObject * obj3 = 0 ; | |
19725 | char *kwnames[] = { | |
19726 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
19727 | }; | |
19728 | ||
19729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19732 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19734 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
19735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19736 | if (obj3) { | |
19737 | arg4 = (int) SWIG_AsInt(obj3); | |
19738 | if (PyErr_Occurred()) SWIG_fail; | |
19739 | } | |
19740 | { | |
19741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19742 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
19743 | ||
19744 | wxPyEndAllowThreads(__tstate); | |
19745 | if (PyErr_Occurred()) SWIG_fail; | |
19746 | } | |
19747 | { | |
19748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19749 | } | |
19750 | return resultobj; | |
19751 | fail: | |
19752 | return NULL; | |
19753 | } | |
19754 | ||
19755 | ||
19756 | static PyObject *_wrap_Printer_PrintDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
19757 | PyObject *resultobj; | |
19758 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19759 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19760 | wxDC *result; | |
19761 | PyObject * obj0 = 0 ; | |
19762 | PyObject * obj1 = 0 ; | |
19763 | char *kwnames[] = { | |
19764 | (char *) "self",(char *) "parent", NULL | |
19765 | }; | |
19766 | ||
19767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
19768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19770 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19772 | { | |
19773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19774 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
19775 | ||
19776 | wxPyEndAllowThreads(__tstate); | |
19777 | if (PyErr_Occurred()) SWIG_fail; | |
19778 | } | |
19779 | { | |
19780 | resultobj = wxPyMake_wxObject(result); | |
19781 | } | |
19782 | return resultobj; | |
19783 | fail: | |
19784 | return NULL; | |
19785 | } | |
19786 | ||
19787 | ||
19788 | static PyObject *_wrap_Printer_ReportError(PyObject *, PyObject *args, PyObject *kwargs) { | |
19789 | PyObject *resultobj; | |
19790 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19791 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19792 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19793 | wxString *arg4 = 0 ; | |
19794 | bool temp4 = False ; | |
19795 | PyObject * obj0 = 0 ; | |
19796 | PyObject * obj1 = 0 ; | |
19797 | PyObject * obj2 = 0 ; | |
19798 | PyObject * obj3 = 0 ; | |
19799 | char *kwnames[] = { | |
19800 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
19801 | }; | |
19802 | ||
19803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19808 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
19809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19810 | { | |
19811 | arg4 = wxString_in_helper(obj3); | |
19812 | if (arg4 == NULL) SWIG_fail; | |
19813 | temp4 = True; | |
19814 | } | |
19815 | { | |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
19818 | ||
19819 | wxPyEndAllowThreads(__tstate); | |
19820 | if (PyErr_Occurred()) SWIG_fail; | |
19821 | } | |
19822 | Py_INCREF(Py_None); resultobj = Py_None; | |
19823 | { | |
19824 | if (temp4) | |
19825 | delete arg4; | |
19826 | } | |
19827 | return resultobj; | |
19828 | fail: | |
19829 | { | |
19830 | if (temp4) | |
19831 | delete arg4; | |
19832 | } | |
19833 | return NULL; | |
19834 | } | |
19835 | ||
19836 | ||
19837 | static PyObject *_wrap_Printer_Setup(PyObject *, PyObject *args, PyObject *kwargs) { | |
19838 | PyObject *resultobj; | |
19839 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19840 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19841 | bool result; | |
19842 | PyObject * obj0 = 0 ; | |
19843 | PyObject * obj1 = 0 ; | |
19844 | char *kwnames[] = { | |
19845 | (char *) "self",(char *) "parent", NULL | |
19846 | }; | |
19847 | ||
19848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
19849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19853 | { | |
19854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19855 | result = (bool)(arg1)->Setup(arg2); | |
19856 | ||
19857 | wxPyEndAllowThreads(__tstate); | |
19858 | if (PyErr_Occurred()) SWIG_fail; | |
19859 | } | |
19860 | { | |
19861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19862 | } | |
19863 | return resultobj; | |
19864 | fail: | |
19865 | return NULL; | |
19866 | } | |
19867 | ||
19868 | ||
19869 | static PyObject *_wrap_Printer_GetAbort(PyObject *, PyObject *args, PyObject *kwargs) { | |
19870 | PyObject *resultobj; | |
19871 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19872 | bool result; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | char *kwnames[] = { | |
19875 | (char *) "self", NULL | |
19876 | }; | |
19877 | ||
19878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
19879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
19880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19881 | { | |
19882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19883 | result = (bool)(arg1)->GetAbort(); | |
19884 | ||
19885 | wxPyEndAllowThreads(__tstate); | |
19886 | if (PyErr_Occurred()) SWIG_fail; | |
19887 | } | |
19888 | { | |
19889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19890 | } | |
19891 | return resultobj; | |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
19897 | static PyObject *_wrap_Printer_GetLastError(PyObject *, PyObject *args, PyObject *kwargs) { | |
19898 | PyObject *resultobj; | |
19899 | int result; | |
19900 | char *kwnames[] = { | |
19901 | NULL | |
19902 | }; | |
19903 | ||
19904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
19905 | { | |
19906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19907 | result = (int)wxPrinter::GetLastError(); | |
19908 | ||
19909 | wxPyEndAllowThreads(__tstate); | |
19910 | if (PyErr_Occurred()) SWIG_fail; | |
19911 | } | |
19912 | resultobj = SWIG_FromInt((int)result); | |
19913 | return resultobj; | |
19914 | fail: | |
19915 | return NULL; | |
19916 | } | |
19917 | ||
19918 | ||
19919 | static PyObject * Printer_swigregister(PyObject *, PyObject *args) { | |
19920 | PyObject *obj; | |
19921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19922 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
19923 | Py_INCREF(obj); | |
19924 | return Py_BuildValue((char *)""); | |
19925 | } | |
19926 | static PyObject *_wrap_new_Printout(PyObject *, PyObject *args, PyObject *kwargs) { | |
19927 | PyObject *resultobj; | |
19928 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
19929 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
19930 | wxPyPrintout *result; | |
19931 | bool temp1 = False ; | |
19932 | PyObject * obj0 = 0 ; | |
19933 | char *kwnames[] = { | |
19934 | (char *) "title", NULL | |
19935 | }; | |
19936 | ||
19937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
19938 | if (obj0) { | |
19939 | { | |
19940 | arg1 = wxString_in_helper(obj0); | |
19941 | if (arg1 == NULL) SWIG_fail; | |
19942 | temp1 = True; | |
19943 | } | |
19944 | } | |
19945 | { | |
19946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19947 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
19948 | ||
19949 | wxPyEndAllowThreads(__tstate); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | { | |
19953 | resultobj = wxPyMake_wxObject(result); | |
19954 | } | |
19955 | { | |
19956 | if (temp1) | |
19957 | delete arg1; | |
19958 | } | |
19959 | return resultobj; | |
19960 | fail: | |
19961 | { | |
19962 | if (temp1) | |
19963 | delete arg1; | |
19964 | } | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
19969 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
19970 | PyObject *resultobj; | |
19971 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
19972 | PyObject *arg2 = (PyObject *) 0 ; | |
19973 | PyObject *arg3 = (PyObject *) 0 ; | |
19974 | PyObject * obj0 = 0 ; | |
19975 | PyObject * obj1 = 0 ; | |
19976 | PyObject * obj2 = 0 ; | |
19977 | char *kwnames[] = { | |
19978 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19979 | }; | |
19980 | ||
19981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
19983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19984 | arg2 = obj1; | |
19985 | arg3 = obj2; | |
19986 | { | |
19987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19988 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19989 | ||
19990 | wxPyEndAllowThreads(__tstate); | |
19991 | if (PyErr_Occurred()) SWIG_fail; | |
19992 | } | |
19993 | Py_INCREF(Py_None); resultobj = Py_None; | |
19994 | return resultobj; | |
19995 | fail: | |
19996 | return NULL; | |
19997 | } | |
19998 | ||
19999 | ||
20000 | static PyObject *_wrap_Printout_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { | |
20001 | PyObject *resultobj; | |
20002 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20003 | wxString result; | |
20004 | PyObject * obj0 = 0 ; | |
20005 | char *kwnames[] = { | |
20006 | (char *) "self", NULL | |
20007 | }; | |
20008 | ||
20009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
20010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20012 | { | |
20013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20014 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
20015 | ||
20016 | wxPyEndAllowThreads(__tstate); | |
20017 | if (PyErr_Occurred()) SWIG_fail; | |
20018 | } | |
20019 | { | |
20020 | #if wxUSE_UNICODE | |
20021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20022 | #else | |
20023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20024 | #endif | |
20025 | } | |
20026 | return resultobj; | |
20027 | fail: | |
20028 | return NULL; | |
20029 | } | |
20030 | ||
20031 | ||
20032 | static PyObject *_wrap_Printout_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
20033 | PyObject *resultobj; | |
20034 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20035 | wxDC *result; | |
20036 | PyObject * obj0 = 0 ; | |
20037 | char *kwnames[] = { | |
20038 | (char *) "self", NULL | |
20039 | }; | |
20040 | ||
20041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
20042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20044 | { | |
20045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20046 | result = (wxDC *)(arg1)->GetDC(); | |
20047 | ||
20048 | wxPyEndAllowThreads(__tstate); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | } | |
20051 | { | |
20052 | resultobj = wxPyMake_wxObject(result); | |
20053 | } | |
20054 | return resultobj; | |
20055 | fail: | |
20056 | return NULL; | |
20057 | } | |
20058 | ||
20059 | ||
20060 | static PyObject *_wrap_Printout_SetDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
20061 | PyObject *resultobj; | |
20062 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20063 | wxDC *arg2 = (wxDC *) 0 ; | |
20064 | PyObject * obj0 = 0 ; | |
20065 | PyObject * obj1 = 0 ; | |
20066 | char *kwnames[] = { | |
20067 | (char *) "self",(char *) "dc", NULL | |
20068 | }; | |
20069 | ||
20070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
20071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
20074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20075 | { | |
20076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20077 | (arg1)->SetDC(arg2); | |
20078 | ||
20079 | wxPyEndAllowThreads(__tstate); | |
20080 | if (PyErr_Occurred()) SWIG_fail; | |
20081 | } | |
20082 | Py_INCREF(Py_None); resultobj = Py_None; | |
20083 | return resultobj; | |
20084 | fail: | |
20085 | return NULL; | |
20086 | } | |
20087 | ||
20088 | ||
20089 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
20090 | PyObject *resultobj; | |
20091 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20092 | int arg2 ; | |
20093 | int arg3 ; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | PyObject * obj1 = 0 ; | |
20096 | PyObject * obj2 = 0 ; | |
20097 | char *kwnames[] = { | |
20098 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20099 | }; | |
20100 | ||
20101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20104 | arg2 = (int) SWIG_AsInt(obj1); | |
20105 | if (PyErr_Occurred()) SWIG_fail; | |
20106 | arg3 = (int) SWIG_AsInt(obj2); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | { | |
20109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20110 | (arg1)->SetPageSizePixels(arg2,arg3); | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
20115 | Py_INCREF(Py_None); resultobj = Py_None; | |
20116 | return resultobj; | |
20117 | fail: | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
20122 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
20123 | PyObject *resultobj; | |
20124 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20125 | int *arg2 = (int *) 0 ; | |
20126 | int *arg3 = (int *) 0 ; | |
20127 | int temp2 ; | |
20128 | int temp3 ; | |
20129 | PyObject * obj0 = 0 ; | |
20130 | char *kwnames[] = { | |
20131 | (char *) "self", NULL | |
20132 | }; | |
20133 | ||
20134 | arg2 = &temp2; | |
20135 | arg3 = &temp3; | |
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
20137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20139 | { | |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | (arg1)->GetPageSizePixels(arg2,arg3); | |
20142 | ||
20143 | wxPyEndAllowThreads(__tstate); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
20146 | Py_INCREF(Py_None); resultobj = Py_None; | |
20147 | { | |
20148 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20149 | resultobj = t_output_helper(resultobj,o); | |
20150 | } | |
20151 | { | |
20152 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20153 | resultobj = t_output_helper(resultobj,o); | |
20154 | } | |
20155 | return resultobj; | |
20156 | fail: | |
20157 | return NULL; | |
20158 | } | |
20159 | ||
20160 | ||
20161 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
20162 | PyObject *resultobj; | |
20163 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20164 | int arg2 ; | |
20165 | int arg3 ; | |
20166 | PyObject * obj0 = 0 ; | |
20167 | PyObject * obj1 = 0 ; | |
20168 | PyObject * obj2 = 0 ; | |
20169 | char *kwnames[] = { | |
20170 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20171 | }; | |
20172 | ||
20173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20176 | arg2 = (int) SWIG_AsInt(obj1); | |
20177 | if (PyErr_Occurred()) SWIG_fail; | |
20178 | arg3 = (int) SWIG_AsInt(obj2); | |
20179 | if (PyErr_Occurred()) SWIG_fail; | |
20180 | { | |
20181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20182 | (arg1)->SetPageSizeMM(arg2,arg3); | |
20183 | ||
20184 | wxPyEndAllowThreads(__tstate); | |
20185 | if (PyErr_Occurred()) SWIG_fail; | |
20186 | } | |
20187 | Py_INCREF(Py_None); resultobj = Py_None; | |
20188 | return resultobj; | |
20189 | fail: | |
20190 | return NULL; | |
20191 | } | |
20192 | ||
20193 | ||
20194 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
20195 | PyObject *resultobj; | |
20196 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20197 | int *arg2 = (int *) 0 ; | |
20198 | int *arg3 = (int *) 0 ; | |
20199 | int temp2 ; | |
20200 | int temp3 ; | |
20201 | PyObject * obj0 = 0 ; | |
20202 | char *kwnames[] = { | |
20203 | (char *) "self", NULL | |
20204 | }; | |
20205 | ||
20206 | arg2 = &temp2; | |
20207 | arg3 = &temp3; | |
20208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
20209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20211 | { | |
20212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20213 | (arg1)->GetPageSizeMM(arg2,arg3); | |
20214 | ||
20215 | wxPyEndAllowThreads(__tstate); | |
20216 | if (PyErr_Occurred()) SWIG_fail; | |
20217 | } | |
20218 | Py_INCREF(Py_None); resultobj = Py_None; | |
20219 | { | |
20220 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20221 | resultobj = t_output_helper(resultobj,o); | |
20222 | } | |
20223 | { | |
20224 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20225 | resultobj = t_output_helper(resultobj,o); | |
20226 | } | |
20227 | return resultobj; | |
20228 | fail: | |
20229 | return NULL; | |
20230 | } | |
20231 | ||
20232 | ||
20233 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *, PyObject *args, PyObject *kwargs) { | |
20234 | PyObject *resultobj; | |
20235 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20236 | int arg2 ; | |
20237 | int arg3 ; | |
20238 | PyObject * obj0 = 0 ; | |
20239 | PyObject * obj1 = 0 ; | |
20240 | PyObject * obj2 = 0 ; | |
20241 | char *kwnames[] = { | |
20242 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20243 | }; | |
20244 | ||
20245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20248 | arg2 = (int) SWIG_AsInt(obj1); | |
20249 | if (PyErr_Occurred()) SWIG_fail; | |
20250 | arg3 = (int) SWIG_AsInt(obj2); | |
20251 | if (PyErr_Occurred()) SWIG_fail; | |
20252 | { | |
20253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20254 | (arg1)->SetPPIScreen(arg2,arg3); | |
20255 | ||
20256 | wxPyEndAllowThreads(__tstate); | |
20257 | if (PyErr_Occurred()) SWIG_fail; | |
20258 | } | |
20259 | Py_INCREF(Py_None); resultobj = Py_None; | |
20260 | return resultobj; | |
20261 | fail: | |
20262 | return NULL; | |
20263 | } | |
20264 | ||
20265 | ||
20266 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *, PyObject *args, PyObject *kwargs) { | |
20267 | PyObject *resultobj; | |
20268 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20269 | int *arg2 = (int *) 0 ; | |
20270 | int *arg3 = (int *) 0 ; | |
20271 | int temp2 ; | |
20272 | int temp3 ; | |
20273 | PyObject * obj0 = 0 ; | |
20274 | char *kwnames[] = { | |
20275 | (char *) "self", NULL | |
20276 | }; | |
20277 | ||
20278 | arg2 = &temp2; | |
20279 | arg3 = &temp3; | |
20280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
20281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20283 | { | |
20284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20285 | (arg1)->GetPPIScreen(arg2,arg3); | |
20286 | ||
20287 | wxPyEndAllowThreads(__tstate); | |
20288 | if (PyErr_Occurred()) SWIG_fail; | |
20289 | } | |
20290 | Py_INCREF(Py_None); resultobj = Py_None; | |
20291 | { | |
20292 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20293 | resultobj = t_output_helper(resultobj,o); | |
20294 | } | |
20295 | { | |
20296 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20297 | resultobj = t_output_helper(resultobj,o); | |
20298 | } | |
20299 | return resultobj; | |
20300 | fail: | |
20301 | return NULL; | |
20302 | } | |
20303 | ||
20304 | ||
20305 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *, PyObject *args, PyObject *kwargs) { | |
20306 | PyObject *resultobj; | |
20307 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20308 | int arg2 ; | |
20309 | int arg3 ; | |
20310 | PyObject * obj0 = 0 ; | |
20311 | PyObject * obj1 = 0 ; | |
20312 | PyObject * obj2 = 0 ; | |
20313 | char *kwnames[] = { | |
20314 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20315 | }; | |
20316 | ||
20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20320 | arg2 = (int) SWIG_AsInt(obj1); | |
20321 | if (PyErr_Occurred()) SWIG_fail; | |
20322 | arg3 = (int) SWIG_AsInt(obj2); | |
20323 | if (PyErr_Occurred()) SWIG_fail; | |
20324 | { | |
20325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20326 | (arg1)->SetPPIPrinter(arg2,arg3); | |
20327 | ||
20328 | wxPyEndAllowThreads(__tstate); | |
20329 | if (PyErr_Occurred()) SWIG_fail; | |
20330 | } | |
20331 | Py_INCREF(Py_None); resultobj = Py_None; | |
20332 | return resultobj; | |
20333 | fail: | |
20334 | return NULL; | |
20335 | } | |
20336 | ||
20337 | ||
20338 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *, PyObject *args, PyObject *kwargs) { | |
20339 | PyObject *resultobj; | |
20340 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20341 | int *arg2 = (int *) 0 ; | |
20342 | int *arg3 = (int *) 0 ; | |
20343 | int temp2 ; | |
20344 | int temp3 ; | |
20345 | PyObject * obj0 = 0 ; | |
20346 | char *kwnames[] = { | |
20347 | (char *) "self", NULL | |
20348 | }; | |
20349 | ||
20350 | arg2 = &temp2; | |
20351 | arg3 = &temp3; | |
20352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
20353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20355 | { | |
20356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20357 | (arg1)->GetPPIPrinter(arg2,arg3); | |
20358 | ||
20359 | wxPyEndAllowThreads(__tstate); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
20361 | } | |
20362 | Py_INCREF(Py_None); resultobj = Py_None; | |
20363 | { | |
20364 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20365 | resultobj = t_output_helper(resultobj,o); | |
20366 | } | |
20367 | { | |
20368 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20369 | resultobj = t_output_helper(resultobj,o); | |
20370 | } | |
20371 | return resultobj; | |
20372 | fail: | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
20377 | static PyObject *_wrap_Printout_IsPreview(PyObject *, PyObject *args, PyObject *kwargs) { | |
20378 | PyObject *resultobj; | |
20379 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20380 | bool result; | |
20381 | PyObject * obj0 = 0 ; | |
20382 | char *kwnames[] = { | |
20383 | (char *) "self", NULL | |
20384 | }; | |
20385 | ||
20386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
20387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20389 | { | |
20390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20391 | result = (bool)(arg1)->IsPreview(); | |
20392 | ||
20393 | wxPyEndAllowThreads(__tstate); | |
20394 | if (PyErr_Occurred()) SWIG_fail; | |
20395 | } | |
20396 | { | |
20397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20398 | } | |
20399 | return resultobj; | |
20400 | fail: | |
20401 | return NULL; | |
20402 | } | |
20403 | ||
20404 | ||
20405 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *, PyObject *args, PyObject *kwargs) { | |
20406 | PyObject *resultobj; | |
20407 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20408 | bool arg2 ; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | PyObject * obj1 = 0 ; | |
20411 | char *kwnames[] = { | |
20412 | (char *) "self",(char *) "p", NULL | |
20413 | }; | |
20414 | ||
20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
20416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20418 | arg2 = (bool) SWIG_AsBool(obj1); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | { | |
20421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20422 | (arg1)->SetIsPreview(arg2); | |
20423 | ||
20424 | wxPyEndAllowThreads(__tstate); | |
20425 | if (PyErr_Occurred()) SWIG_fail; | |
20426 | } | |
20427 | Py_INCREF(Py_None); resultobj = Py_None; | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *, PyObject *args, PyObject *kwargs) { | |
20435 | PyObject *resultobj; | |
20436 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20437 | int arg2 ; | |
20438 | int arg3 ; | |
20439 | bool result; | |
20440 | PyObject * obj0 = 0 ; | |
20441 | PyObject * obj1 = 0 ; | |
20442 | PyObject * obj2 = 0 ; | |
20443 | char *kwnames[] = { | |
20444 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
20445 | }; | |
20446 | ||
20447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20450 | arg2 = (int) SWIG_AsInt(obj1); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | arg3 = (int) SWIG_AsInt(obj2); | |
20453 | if (PyErr_Occurred()) SWIG_fail; | |
20454 | { | |
20455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20456 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
20457 | ||
20458 | wxPyEndAllowThreads(__tstate); | |
20459 | if (PyErr_Occurred()) SWIG_fail; | |
20460 | } | |
20461 | { | |
20462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20463 | } | |
20464 | return resultobj; | |
20465 | fail: | |
20466 | return NULL; | |
20467 | } | |
20468 | ||
20469 | ||
20470 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *, PyObject *args, PyObject *kwargs) { | |
20471 | PyObject *resultobj; | |
20472 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20473 | PyObject * obj0 = 0 ; | |
20474 | char *kwnames[] = { | |
20475 | (char *) "self", NULL | |
20476 | }; | |
20477 | ||
20478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
20479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20481 | { | |
20482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20483 | (arg1)->base_OnEndDocument(); | |
20484 | ||
20485 | wxPyEndAllowThreads(__tstate); | |
20486 | if (PyErr_Occurred()) SWIG_fail; | |
20487 | } | |
20488 | Py_INCREF(Py_None); resultobj = Py_None; | |
20489 | return resultobj; | |
20490 | fail: | |
20491 | return NULL; | |
20492 | } | |
20493 | ||
20494 | ||
20495 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *, PyObject *args, PyObject *kwargs) { | |
20496 | PyObject *resultobj; | |
20497 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20498 | PyObject * obj0 = 0 ; | |
20499 | char *kwnames[] = { | |
20500 | (char *) "self", NULL | |
20501 | }; | |
20502 | ||
20503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
20504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20506 | { | |
20507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20508 | (arg1)->base_OnBeginPrinting(); | |
20509 | ||
20510 | wxPyEndAllowThreads(__tstate); | |
20511 | if (PyErr_Occurred()) SWIG_fail; | |
20512 | } | |
20513 | Py_INCREF(Py_None); resultobj = Py_None; | |
20514 | return resultobj; | |
20515 | fail: | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *, PyObject *args, PyObject *kwargs) { | |
20521 | PyObject *resultobj; | |
20522 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20523 | PyObject * obj0 = 0 ; | |
20524 | char *kwnames[] = { | |
20525 | (char *) "self", NULL | |
20526 | }; | |
20527 | ||
20528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
20529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20531 | { | |
20532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20533 | (arg1)->base_OnEndPrinting(); | |
20534 | ||
20535 | wxPyEndAllowThreads(__tstate); | |
20536 | if (PyErr_Occurred()) SWIG_fail; | |
20537 | } | |
20538 | Py_INCREF(Py_None); resultobj = Py_None; | |
20539 | return resultobj; | |
20540 | fail: | |
20541 | return NULL; | |
20542 | } | |
20543 | ||
20544 | ||
20545 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *, PyObject *args, PyObject *kwargs) { | |
20546 | PyObject *resultobj; | |
20547 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20548 | PyObject * obj0 = 0 ; | |
20549 | char *kwnames[] = { | |
20550 | (char *) "self", NULL | |
20551 | }; | |
20552 | ||
20553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
20554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20556 | { | |
20557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20558 | (arg1)->base_OnPreparePrinting(); | |
20559 | ||
20560 | wxPyEndAllowThreads(__tstate); | |
20561 | if (PyErr_Occurred()) SWIG_fail; | |
20562 | } | |
20563 | Py_INCREF(Py_None); resultobj = Py_None; | |
20564 | return resultobj; | |
20565 | fail: | |
20566 | return NULL; | |
20567 | } | |
20568 | ||
20569 | ||
20570 | static PyObject *_wrap_Printout_base_HasPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
20571 | PyObject *resultobj; | |
20572 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20573 | int arg2 ; | |
20574 | bool result; | |
20575 | PyObject * obj0 = 0 ; | |
20576 | PyObject * obj1 = 0 ; | |
20577 | char *kwnames[] = { | |
20578 | (char *) "self",(char *) "page", NULL | |
20579 | }; | |
20580 | ||
20581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
20582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20584 | arg2 = (int) SWIG_AsInt(obj1); | |
20585 | if (PyErr_Occurred()) SWIG_fail; | |
20586 | { | |
20587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20588 | result = (bool)(arg1)->base_HasPage(arg2); | |
20589 | ||
20590 | wxPyEndAllowThreads(__tstate); | |
20591 | if (PyErr_Occurred()) SWIG_fail; | |
20592 | } | |
20593 | { | |
20594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20595 | } | |
20596 | return resultobj; | |
20597 | fail: | |
20598 | return NULL; | |
20599 | } | |
20600 | ||
20601 | ||
20602 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
20603 | PyObject *resultobj; | |
20604 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20605 | int *arg2 = (int *) 0 ; | |
20606 | int *arg3 = (int *) 0 ; | |
20607 | int *arg4 = (int *) 0 ; | |
20608 | int *arg5 = (int *) 0 ; | |
20609 | int temp2 ; | |
20610 | int temp3 ; | |
20611 | int temp4 ; | |
20612 | int temp5 ; | |
20613 | PyObject * obj0 = 0 ; | |
20614 | char *kwnames[] = { | |
20615 | (char *) "self", NULL | |
20616 | }; | |
20617 | ||
20618 | arg2 = &temp2; | |
20619 | arg3 = &temp3; | |
20620 | arg4 = &temp4; | |
20621 | arg5 = &temp5; | |
20622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
20623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
20624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20625 | { | |
20626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20627 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
20628 | ||
20629 | wxPyEndAllowThreads(__tstate); | |
20630 | if (PyErr_Occurred()) SWIG_fail; | |
20631 | } | |
20632 | Py_INCREF(Py_None); resultobj = Py_None; | |
20633 | { | |
20634 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20635 | resultobj = t_output_helper(resultobj,o); | |
20636 | } | |
20637 | { | |
20638 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20639 | resultobj = t_output_helper(resultobj,o); | |
20640 | } | |
20641 | { | |
20642 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
20643 | resultobj = t_output_helper(resultobj,o); | |
20644 | } | |
20645 | { | |
20646 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
20647 | resultobj = t_output_helper(resultobj,o); | |
20648 | } | |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject * Printout_swigregister(PyObject *, PyObject *args) { | |
20656 | PyObject *obj; | |
20657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20658 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
20659 | Py_INCREF(obj); | |
20660 | return Py_BuildValue((char *)""); | |
20661 | } | |
20662 | static PyObject *_wrap_new_PreviewCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
20663 | PyObject *resultobj; | |
20664 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20666 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20667 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20668 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20669 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20670 | long arg5 = (long) 0 ; | |
20671 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
20672 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20673 | wxPreviewCanvas *result; | |
20674 | wxPoint temp3 ; | |
20675 | wxSize temp4 ; | |
20676 | bool temp6 = False ; | |
20677 | PyObject * obj0 = 0 ; | |
20678 | PyObject * obj1 = 0 ; | |
20679 | PyObject * obj2 = 0 ; | |
20680 | PyObject * obj3 = 0 ; | |
20681 | PyObject * obj4 = 0 ; | |
20682 | PyObject * obj5 = 0 ; | |
20683 | char *kwnames[] = { | |
20684 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20685 | }; | |
20686 | ||
20687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
20688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
20689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20692 | if (obj2) { | |
20693 | { | |
20694 | arg3 = &temp3; | |
20695 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20696 | } | |
20697 | } | |
20698 | if (obj3) { | |
20699 | { | |
20700 | arg4 = &temp4; | |
20701 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20702 | } | |
20703 | } | |
20704 | if (obj4) { | |
20705 | arg5 = (long) SWIG_AsLong(obj4); | |
20706 | if (PyErr_Occurred()) SWIG_fail; | |
20707 | } | |
20708 | if (obj5) { | |
20709 | { | |
20710 | arg6 = wxString_in_helper(obj5); | |
20711 | if (arg6 == NULL) SWIG_fail; | |
20712 | temp6 = True; | |
20713 | } | |
20714 | } | |
20715 | { | |
20716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20717 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20718 | ||
20719 | wxPyEndAllowThreads(__tstate); | |
20720 | if (PyErr_Occurred()) SWIG_fail; | |
20721 | } | |
20722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
20723 | { | |
20724 | if (temp6) | |
20725 | delete arg6; | |
20726 | } | |
20727 | return resultobj; | |
20728 | fail: | |
20729 | { | |
20730 | if (temp6) | |
20731 | delete arg6; | |
20732 | } | |
20733 | return NULL; | |
20734 | } | |
20735 | ||
20736 | ||
20737 | static PyObject * PreviewCanvas_swigregister(PyObject *, PyObject *args) { | |
20738 | PyObject *obj; | |
20739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20740 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
20741 | Py_INCREF(obj); | |
20742 | return Py_BuildValue((char *)""); | |
20743 | } | |
20744 | static PyObject *_wrap_new_PreviewFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
20745 | PyObject *resultobj; | |
20746 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20747 | wxFrame *arg2 = (wxFrame *) 0 ; | |
20748 | wxString *arg3 = 0 ; | |
20749 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20750 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20751 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20752 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20753 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20754 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20755 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20756 | wxPreviewFrame *result; | |
20757 | bool temp3 = False ; | |
20758 | wxPoint temp4 ; | |
20759 | wxSize temp5 ; | |
20760 | bool temp7 = False ; | |
20761 | PyObject * obj0 = 0 ; | |
20762 | PyObject * obj1 = 0 ; | |
20763 | PyObject * obj2 = 0 ; | |
20764 | PyObject * obj3 = 0 ; | |
20765 | PyObject * obj4 = 0 ; | |
20766 | PyObject * obj5 = 0 ; | |
20767 | PyObject * obj6 = 0 ; | |
20768 | char *kwnames[] = { | |
20769 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20770 | }; | |
20771 | ||
20772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
20773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
20774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
20776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20777 | { | |
20778 | arg3 = wxString_in_helper(obj2); | |
20779 | if (arg3 == NULL) SWIG_fail; | |
20780 | temp3 = True; | |
20781 | } | |
20782 | if (obj3) { | |
20783 | { | |
20784 | arg4 = &temp4; | |
20785 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20786 | } | |
20787 | } | |
20788 | if (obj4) { | |
20789 | { | |
20790 | arg5 = &temp5; | |
20791 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20792 | } | |
20793 | } | |
20794 | if (obj5) { | |
20795 | arg6 = (long) SWIG_AsLong(obj5); | |
20796 | if (PyErr_Occurred()) SWIG_fail; | |
20797 | } | |
20798 | if (obj6) { | |
20799 | { | |
20800 | arg7 = wxString_in_helper(obj6); | |
20801 | if (arg7 == NULL) SWIG_fail; | |
20802 | temp7 = True; | |
20803 | } | |
20804 | } | |
20805 | { | |
20806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20807 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20808 | ||
20809 | wxPyEndAllowThreads(__tstate); | |
20810 | if (PyErr_Occurred()) SWIG_fail; | |
20811 | } | |
20812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
20813 | { | |
20814 | if (temp3) | |
20815 | delete arg3; | |
20816 | } | |
20817 | { | |
20818 | if (temp7) | |
20819 | delete arg7; | |
20820 | } | |
20821 | return resultobj; | |
20822 | fail: | |
20823 | { | |
20824 | if (temp3) | |
20825 | delete arg3; | |
20826 | } | |
20827 | { | |
20828 | if (temp7) | |
20829 | delete arg7; | |
20830 | } | |
20831 | return NULL; | |
20832 | } | |
20833 | ||
20834 | ||
20835 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { | |
20836 | PyObject *resultobj; | |
20837 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20838 | PyObject * obj0 = 0 ; | |
20839 | char *kwnames[] = { | |
20840 | (char *) "self", NULL | |
20841 | }; | |
20842 | ||
20843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
20844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
20845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20846 | { | |
20847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20848 | (arg1)->Initialize(); | |
20849 | ||
20850 | wxPyEndAllowThreads(__tstate); | |
20851 | if (PyErr_Occurred()) SWIG_fail; | |
20852 | } | |
20853 | Py_INCREF(Py_None); resultobj = Py_None; | |
20854 | return resultobj; | |
20855 | fail: | |
20856 | return NULL; | |
20857 | } | |
20858 | ||
20859 | ||
20860 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
20861 | PyObject *resultobj; | |
20862 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20863 | PyObject * obj0 = 0 ; | |
20864 | char *kwnames[] = { | |
20865 | (char *) "self", NULL | |
20866 | }; | |
20867 | ||
20868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
20869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
20870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20871 | { | |
20872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20873 | (arg1)->CreateControlBar(); | |
20874 | ||
20875 | wxPyEndAllowThreads(__tstate); | |
20876 | if (PyErr_Occurred()) SWIG_fail; | |
20877 | } | |
20878 | Py_INCREF(Py_None); resultobj = Py_None; | |
20879 | return resultobj; | |
20880 | fail: | |
20881 | return NULL; | |
20882 | } | |
20883 | ||
20884 | ||
20885 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
20886 | PyObject *resultobj; | |
20887 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | char *kwnames[] = { | |
20890 | (char *) "self", NULL | |
20891 | }; | |
20892 | ||
20893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
20894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
20895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20896 | { | |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | (arg1)->CreateCanvas(); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | Py_INCREF(Py_None); resultobj = Py_None; | |
20904 | return resultobj; | |
20905 | fail: | |
20906 | return NULL; | |
20907 | } | |
20908 | ||
20909 | ||
20910 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
20911 | PyObject *resultobj; | |
20912 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20913 | wxPreviewControlBar *result; | |
20914 | PyObject * obj0 = 0 ; | |
20915 | char *kwnames[] = { | |
20916 | (char *) "self", NULL | |
20917 | }; | |
20918 | ||
20919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
20920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
20921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20922 | { | |
20923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20924 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
20925 | ||
20926 | wxPyEndAllowThreads(__tstate); | |
20927 | if (PyErr_Occurred()) SWIG_fail; | |
20928 | } | |
20929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
20930 | return resultobj; | |
20931 | fail: | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject * PreviewFrame_swigregister(PyObject *, PyObject *args) { | |
20937 | PyObject *obj; | |
20938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20939 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
20940 | Py_INCREF(obj); | |
20941 | return Py_BuildValue((char *)""); | |
20942 | } | |
20943 | static PyObject *_wrap_new_PreviewControlBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
20944 | PyObject *resultobj; | |
20945 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20946 | long arg2 ; | |
20947 | wxWindow *arg3 = (wxWindow *) 0 ; | |
20948 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20949 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20950 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20951 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20952 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
20953 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20954 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20955 | wxPreviewControlBar *result; | |
20956 | wxPoint temp4 ; | |
20957 | wxSize temp5 ; | |
20958 | bool temp7 = False ; | |
20959 | PyObject * obj0 = 0 ; | |
20960 | PyObject * obj1 = 0 ; | |
20961 | PyObject * obj2 = 0 ; | |
20962 | PyObject * obj3 = 0 ; | |
20963 | PyObject * obj4 = 0 ; | |
20964 | PyObject * obj5 = 0 ; | |
20965 | PyObject * obj6 = 0 ; | |
20966 | char *kwnames[] = { | |
20967 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20968 | }; | |
20969 | ||
20970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
20971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
20972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20973 | arg2 = (long) SWIG_AsLong(obj1); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
20976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20977 | if (obj3) { | |
20978 | { | |
20979 | arg4 = &temp4; | |
20980 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20981 | } | |
20982 | } | |
20983 | if (obj4) { | |
20984 | { | |
20985 | arg5 = &temp5; | |
20986 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20987 | } | |
20988 | } | |
20989 | if (obj5) { | |
20990 | arg6 = (long) SWIG_AsLong(obj5); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
20993 | if (obj6) { | |
20994 | { | |
20995 | arg7 = wxString_in_helper(obj6); | |
20996 | if (arg7 == NULL) SWIG_fail; | |
20997 | temp7 = True; | |
20998 | } | |
20999 | } | |
21000 | { | |
21001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21002 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21003 | ||
21004 | wxPyEndAllowThreads(__tstate); | |
21005 | if (PyErr_Occurred()) SWIG_fail; | |
21006 | } | |
21007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
21008 | { | |
21009 | if (temp7) | |
21010 | delete arg7; | |
21011 | } | |
21012 | return resultobj; | |
21013 | fail: | |
21014 | { | |
21015 | if (temp7) | |
21016 | delete arg7; | |
21017 | } | |
21018 | return NULL; | |
21019 | } | |
21020 | ||
21021 | ||
21022 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
21023 | PyObject *resultobj; | |
21024 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21025 | int result; | |
21026 | PyObject * obj0 = 0 ; | |
21027 | char *kwnames[] = { | |
21028 | (char *) "self", NULL | |
21029 | }; | |
21030 | ||
21031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
21032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21034 | { | |
21035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21036 | result = (int)(arg1)->GetZoomControl(); | |
21037 | ||
21038 | wxPyEndAllowThreads(__tstate); | |
21039 | if (PyErr_Occurred()) SWIG_fail; | |
21040 | } | |
21041 | resultobj = SWIG_FromInt((int)result); | |
21042 | return resultobj; | |
21043 | fail: | |
21044 | return NULL; | |
21045 | } | |
21046 | ||
21047 | ||
21048 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
21049 | PyObject *resultobj; | |
21050 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21051 | int arg2 ; | |
21052 | PyObject * obj0 = 0 ; | |
21053 | PyObject * obj1 = 0 ; | |
21054 | char *kwnames[] = { | |
21055 | (char *) "self",(char *) "zoom", NULL | |
21056 | }; | |
21057 | ||
21058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
21059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21061 | arg2 = (int) SWIG_AsInt(obj1); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | { | |
21064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21065 | (arg1)->SetZoomControl(arg2); | |
21066 | ||
21067 | wxPyEndAllowThreads(__tstate); | |
21068 | if (PyErr_Occurred()) SWIG_fail; | |
21069 | } | |
21070 | Py_INCREF(Py_None); resultobj = Py_None; | |
21071 | return resultobj; | |
21072 | fail: | |
21073 | return NULL; | |
21074 | } | |
21075 | ||
21076 | ||
21077 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *, PyObject *args, PyObject *kwargs) { | |
21078 | PyObject *resultobj; | |
21079 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21080 | wxPrintPreview *result; | |
21081 | PyObject * obj0 = 0 ; | |
21082 | char *kwnames[] = { | |
21083 | (char *) "self", NULL | |
21084 | }; | |
21085 | ||
21086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
21087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21089 | { | |
21090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21091 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
21092 | ||
21093 | wxPyEndAllowThreads(__tstate); | |
21094 | if (PyErr_Occurred()) SWIG_fail; | |
21095 | } | |
21096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
21097 | return resultobj; | |
21098 | fail: | |
21099 | return NULL; | |
21100 | } | |
21101 | ||
21102 | ||
21103 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *, PyObject *args, PyObject *kwargs) { | |
21104 | PyObject *resultobj; | |
21105 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21106 | PyObject * obj0 = 0 ; | |
21107 | char *kwnames[] = { | |
21108 | (char *) "self", NULL | |
21109 | }; | |
21110 | ||
21111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
21112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | (arg1)->OnNext(); | |
21117 | ||
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
21121 | Py_INCREF(Py_None); resultobj = Py_None; | |
21122 | return resultobj; | |
21123 | fail: | |
21124 | return NULL; | |
21125 | } | |
21126 | ||
21127 | ||
21128 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *, PyObject *args, PyObject *kwargs) { | |
21129 | PyObject *resultobj; | |
21130 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21131 | PyObject * obj0 = 0 ; | |
21132 | char *kwnames[] = { | |
21133 | (char *) "self", NULL | |
21134 | }; | |
21135 | ||
21136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
21137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21139 | { | |
21140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21141 | (arg1)->OnPrevious(); | |
21142 | ||
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | Py_INCREF(Py_None); resultobj = Py_None; | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | return NULL; | |
21150 | } | |
21151 | ||
21152 | ||
21153 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *, PyObject *args, PyObject *kwargs) { | |
21154 | PyObject *resultobj; | |
21155 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21156 | PyObject * obj0 = 0 ; | |
21157 | char *kwnames[] = { | |
21158 | (char *) "self", NULL | |
21159 | }; | |
21160 | ||
21161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
21162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21164 | { | |
21165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21166 | (arg1)->OnFirst(); | |
21167 | ||
21168 | wxPyEndAllowThreads(__tstate); | |
21169 | if (PyErr_Occurred()) SWIG_fail; | |
21170 | } | |
21171 | Py_INCREF(Py_None); resultobj = Py_None; | |
21172 | return resultobj; | |
21173 | fail: | |
21174 | return NULL; | |
21175 | } | |
21176 | ||
21177 | ||
21178 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *, PyObject *args, PyObject *kwargs) { | |
21179 | PyObject *resultobj; | |
21180 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21181 | PyObject * obj0 = 0 ; | |
21182 | char *kwnames[] = { | |
21183 | (char *) "self", NULL | |
21184 | }; | |
21185 | ||
21186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
21187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21189 | { | |
21190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21191 | (arg1)->OnLast(); | |
21192 | ||
21193 | wxPyEndAllowThreads(__tstate); | |
21194 | if (PyErr_Occurred()) SWIG_fail; | |
21195 | } | |
21196 | Py_INCREF(Py_None); resultobj = Py_None; | |
21197 | return resultobj; | |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
21203 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *, PyObject *args, PyObject *kwargs) { | |
21204 | PyObject *resultobj; | |
21205 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21206 | PyObject * obj0 = 0 ; | |
21207 | char *kwnames[] = { | |
21208 | (char *) "self", NULL | |
21209 | }; | |
21210 | ||
21211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
21212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
21213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21214 | { | |
21215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21216 | (arg1)->OnGoto(); | |
21217 | ||
21218 | wxPyEndAllowThreads(__tstate); | |
21219 | if (PyErr_Occurred()) SWIG_fail; | |
21220 | } | |
21221 | Py_INCREF(Py_None); resultobj = Py_None; | |
21222 | return resultobj; | |
21223 | fail: | |
21224 | return NULL; | |
21225 | } | |
21226 | ||
21227 | ||
21228 | static PyObject * PreviewControlBar_swigregister(PyObject *, PyObject *args) { | |
21229 | PyObject *obj; | |
21230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21231 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
21232 | Py_INCREF(obj); | |
21233 | return Py_BuildValue((char *)""); | |
21234 | } | |
21235 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *, PyObject *args) { | |
21236 | PyObject *resultobj; | |
21237 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21238 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21239 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
21240 | wxPrintPreview *result; | |
21241 | PyObject * obj0 = 0 ; | |
21242 | PyObject * obj1 = 0 ; | |
21243 | PyObject * obj2 = 0 ; | |
21244 | ||
21245 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
21246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
21249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21250 | if (obj2) { | |
21251 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
21252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21253 | } | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
21268 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *, PyObject *args) { | |
21269 | PyObject *resultobj; | |
21270 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21271 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21272 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
21273 | wxPrintPreview *result; | |
21274 | PyObject * obj0 = 0 ; | |
21275 | PyObject * obj1 = 0 ; | |
21276 | PyObject * obj2 = 0 ; | |
21277 | ||
21278 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
21279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
21282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21283 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
21284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21285 | { | |
21286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21287 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
21288 | ||
21289 | wxPyEndAllowThreads(__tstate); | |
21290 | if (PyErr_Occurred()) SWIG_fail; | |
21291 | } | |
21292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
21293 | return resultobj; | |
21294 | fail: | |
21295 | return NULL; | |
21296 | } | |
21297 | ||
21298 | ||
21299 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
21300 | int argc; | |
21301 | PyObject *argv[4]; | |
21302 | int ii; | |
21303 | ||
21304 | argc = PyObject_Length(args); | |
21305 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
21306 | argv[ii] = PyTuple_GetItem(args,ii); | |
21307 | } | |
21308 | if ((argc >= 2) && (argc <= 3)) { | |
21309 | int _v; | |
21310 | { | |
21311 | void *ptr; | |
21312 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
21313 | _v = 0; | |
21314 | PyErr_Clear(); | |
21315 | } else { | |
21316 | _v = 1; | |
21317 | } | |
21318 | } | |
21319 | if (_v) { | |
21320 | { | |
21321 | void *ptr; | |
21322 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
21323 | _v = 0; | |
21324 | PyErr_Clear(); | |
21325 | } else { | |
21326 | _v = 1; | |
21327 | } | |
21328 | } | |
21329 | if (_v) { | |
21330 | if (argc <= 2) { | |
21331 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
21332 | } | |
21333 | { | |
21334 | void *ptr; | |
21335 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
21336 | _v = 0; | |
21337 | PyErr_Clear(); | |
21338 | } else { | |
21339 | _v = 1; | |
21340 | } | |
21341 | } | |
21342 | if (_v) { | |
21343 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
21344 | } | |
21345 | } | |
21346 | } | |
21347 | } | |
21348 | if (argc == 3) { | |
21349 | int _v; | |
21350 | { | |
21351 | void *ptr; | |
21352 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
21353 | _v = 0; | |
21354 | PyErr_Clear(); | |
21355 | } else { | |
21356 | _v = 1; | |
21357 | } | |
21358 | } | |
21359 | if (_v) { | |
21360 | { | |
21361 | void *ptr; | |
21362 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
21363 | _v = 0; | |
21364 | PyErr_Clear(); | |
21365 | } else { | |
21366 | _v = 1; | |
21367 | } | |
21368 | } | |
21369 | if (_v) { | |
21370 | { | |
21371 | void *ptr; | |
21372 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
21373 | _v = 0; | |
21374 | PyErr_Clear(); | |
21375 | } else { | |
21376 | _v = 1; | |
21377 | } | |
21378 | } | |
21379 | if (_v) { | |
21380 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
21381 | } | |
21382 | } | |
21383 | } | |
21384 | } | |
21385 | ||
21386 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
21387 | return NULL; | |
21388 | } | |
21389 | ||
21390 | ||
21391 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21392 | PyObject *resultobj; | |
21393 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21394 | int arg2 ; | |
21395 | bool result; | |
21396 | PyObject * obj0 = 0 ; | |
21397 | PyObject * obj1 = 0 ; | |
21398 | char *kwnames[] = { | |
21399 | (char *) "self",(char *) "pageNum", NULL | |
21400 | }; | |
21401 | ||
21402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
21403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21405 | arg2 = (int) SWIG_AsInt(obj1); | |
21406 | if (PyErr_Occurred()) SWIG_fail; | |
21407 | { | |
21408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21409 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
21410 | ||
21411 | wxPyEndAllowThreads(__tstate); | |
21412 | if (PyErr_Occurred()) SWIG_fail; | |
21413 | } | |
21414 | { | |
21415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21416 | } | |
21417 | return resultobj; | |
21418 | fail: | |
21419 | return NULL; | |
21420 | } | |
21421 | ||
21422 | ||
21423 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21424 | PyObject *resultobj; | |
21425 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21426 | int result; | |
21427 | PyObject * obj0 = 0 ; | |
21428 | char *kwnames[] = { | |
21429 | (char *) "self", NULL | |
21430 | }; | |
21431 | ||
21432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
21433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21435 | { | |
21436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21437 | result = (int)(arg1)->GetCurrentPage(); | |
21438 | ||
21439 | wxPyEndAllowThreads(__tstate); | |
21440 | if (PyErr_Occurred()) SWIG_fail; | |
21441 | } | |
21442 | resultobj = SWIG_FromInt((int)result); | |
21443 | return resultobj; | |
21444 | fail: | |
21445 | return NULL; | |
21446 | } | |
21447 | ||
21448 | ||
21449 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *, PyObject *args, PyObject *kwargs) { | |
21450 | PyObject *resultobj; | |
21451 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21452 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | PyObject * obj1 = 0 ; | |
21455 | char *kwnames[] = { | |
21456 | (char *) "self",(char *) "printout", NULL | |
21457 | }; | |
21458 | ||
21459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
21460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
21463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21464 | { | |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21466 | (arg1)->SetPrintout(arg2); | |
21467 | ||
21468 | wxPyEndAllowThreads(__tstate); | |
21469 | if (PyErr_Occurred()) SWIG_fail; | |
21470 | } | |
21471 | Py_INCREF(Py_None); resultobj = Py_None; | |
21472 | return resultobj; | |
21473 | fail: | |
21474 | return NULL; | |
21475 | } | |
21476 | ||
21477 | ||
21478 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *, PyObject *args, PyObject *kwargs) { | |
21479 | PyObject *resultobj; | |
21480 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21481 | wxPyPrintout *result; | |
21482 | PyObject * obj0 = 0 ; | |
21483 | char *kwnames[] = { | |
21484 | (char *) "self", NULL | |
21485 | }; | |
21486 | ||
21487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
21488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21490 | { | |
21491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21492 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
21493 | ||
21494 | wxPyEndAllowThreads(__tstate); | |
21495 | if (PyErr_Occurred()) SWIG_fail; | |
21496 | } | |
21497 | { | |
21498 | resultobj = wxPyMake_wxObject(result); | |
21499 | } | |
21500 | return resultobj; | |
21501 | fail: | |
21502 | return NULL; | |
21503 | } | |
21504 | ||
21505 | ||
21506 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *, PyObject *args, PyObject *kwargs) { | |
21507 | PyObject *resultobj; | |
21508 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21509 | wxPyPrintout *result; | |
21510 | PyObject * obj0 = 0 ; | |
21511 | char *kwnames[] = { | |
21512 | (char *) "self", NULL | |
21513 | }; | |
21514 | ||
21515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
21516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21518 | { | |
21519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21520 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
21521 | ||
21522 | wxPyEndAllowThreads(__tstate); | |
21523 | if (PyErr_Occurred()) SWIG_fail; | |
21524 | } | |
21525 | { | |
21526 | resultobj = wxPyMake_wxObject(result); | |
21527 | } | |
21528 | return resultobj; | |
21529 | fail: | |
21530 | return NULL; | |
21531 | } | |
21532 | ||
21533 | ||
21534 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
21535 | PyObject *resultobj; | |
21536 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21537 | wxFrame *arg2 = (wxFrame *) 0 ; | |
21538 | PyObject * obj0 = 0 ; | |
21539 | PyObject * obj1 = 0 ; | |
21540 | char *kwnames[] = { | |
21541 | (char *) "self",(char *) "frame", NULL | |
21542 | }; | |
21543 | ||
21544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
21545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
21548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21549 | { | |
21550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21551 | (arg1)->SetFrame(arg2); | |
21552 | ||
21553 | wxPyEndAllowThreads(__tstate); | |
21554 | if (PyErr_Occurred()) SWIG_fail; | |
21555 | } | |
21556 | Py_INCREF(Py_None); resultobj = Py_None; | |
21557 | return resultobj; | |
21558 | fail: | |
21559 | return NULL; | |
21560 | } | |
21561 | ||
21562 | ||
21563 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj; | |
21565 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21566 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21567 | PyObject * obj0 = 0 ; | |
21568 | PyObject * obj1 = 0 ; | |
21569 | char *kwnames[] = { | |
21570 | (char *) "self",(char *) "canvas", NULL | |
21571 | }; | |
21572 | ||
21573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
21574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
21577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21578 | { | |
21579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21580 | (arg1)->SetCanvas(arg2); | |
21581 | ||
21582 | wxPyEndAllowThreads(__tstate); | |
21583 | if (PyErr_Occurred()) SWIG_fail; | |
21584 | } | |
21585 | Py_INCREF(Py_None); resultobj = Py_None; | |
21586 | return resultobj; | |
21587 | fail: | |
21588 | return NULL; | |
21589 | } | |
21590 | ||
21591 | ||
21592 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
21593 | PyObject *resultobj; | |
21594 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21595 | wxFrame *result; | |
21596 | PyObject * obj0 = 0 ; | |
21597 | char *kwnames[] = { | |
21598 | (char *) "self", NULL | |
21599 | }; | |
21600 | ||
21601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
21602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21604 | { | |
21605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21606 | result = (wxFrame *)(arg1)->GetFrame(); | |
21607 | ||
21608 | wxPyEndAllowThreads(__tstate); | |
21609 | if (PyErr_Occurred()) SWIG_fail; | |
21610 | } | |
21611 | { | |
21612 | resultobj = wxPyMake_wxObject(result); | |
21613 | } | |
21614 | return resultobj; | |
21615 | fail: | |
21616 | return NULL; | |
21617 | } | |
21618 | ||
21619 | ||
21620 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
21621 | PyObject *resultobj; | |
21622 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21623 | wxPreviewCanvas *result; | |
21624 | PyObject * obj0 = 0 ; | |
21625 | char *kwnames[] = { | |
21626 | (char *) "self", NULL | |
21627 | }; | |
21628 | ||
21629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
21630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21632 | { | |
21633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21634 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
21635 | ||
21636 | wxPyEndAllowThreads(__tstate); | |
21637 | if (PyErr_Occurred()) SWIG_fail; | |
21638 | } | |
21639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
21640 | return resultobj; | |
21641 | fail: | |
21642 | return NULL; | |
21643 | } | |
21644 | ||
21645 | ||
21646 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21647 | PyObject *resultobj; | |
21648 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21649 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21650 | wxDC *arg3 = 0 ; | |
21651 | bool result; | |
21652 | PyObject * obj0 = 0 ; | |
21653 | PyObject * obj1 = 0 ; | |
21654 | PyObject * obj2 = 0 ; | |
21655 | char *kwnames[] = { | |
21656 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21657 | }; | |
21658 | ||
21659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
21663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21664 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
21665 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21666 | SWIG_fail; | |
21667 | if (arg3 == NULL) { | |
21668 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21669 | SWIG_fail; | |
21670 | } | |
21671 | { | |
21672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21673 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
21674 | ||
21675 | wxPyEndAllowThreads(__tstate); | |
21676 | if (PyErr_Occurred()) SWIG_fail; | |
21677 | } | |
21678 | { | |
21679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21680 | } | |
21681 | return resultobj; | |
21682 | fail: | |
21683 | return NULL; | |
21684 | } | |
21685 | ||
21686 | ||
21687 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21688 | PyObject *resultobj; | |
21689 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21690 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21691 | wxDC *arg3 = 0 ; | |
21692 | bool result; | |
21693 | PyObject * obj0 = 0 ; | |
21694 | PyObject * obj1 = 0 ; | |
21695 | PyObject * obj2 = 0 ; | |
21696 | char *kwnames[] = { | |
21697 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21698 | }; | |
21699 | ||
21700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
21704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21705 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
21706 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21707 | SWIG_fail; | |
21708 | if (arg3 == NULL) { | |
21709 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21710 | SWIG_fail; | |
21711 | } | |
21712 | { | |
21713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21714 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
21715 | ||
21716 | wxPyEndAllowThreads(__tstate); | |
21717 | if (PyErr_Occurred()) SWIG_fail; | |
21718 | } | |
21719 | { | |
21720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21721 | } | |
21722 | return resultobj; | |
21723 | fail: | |
21724 | return NULL; | |
21725 | } | |
21726 | ||
21727 | ||
21728 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21729 | PyObject *resultobj; | |
21730 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21731 | int arg2 ; | |
21732 | bool result; | |
21733 | PyObject * obj0 = 0 ; | |
21734 | PyObject * obj1 = 0 ; | |
21735 | char *kwnames[] = { | |
21736 | (char *) "self",(char *) "pageNum", NULL | |
21737 | }; | |
21738 | ||
21739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
21740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21742 | arg2 = (int) SWIG_AsInt(obj1); | |
21743 | if (PyErr_Occurred()) SWIG_fail; | |
21744 | { | |
21745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21746 | result = (bool)(arg1)->RenderPage(arg2); | |
21747 | ||
21748 | wxPyEndAllowThreads(__tstate); | |
21749 | if (PyErr_Occurred()) SWIG_fail; | |
21750 | } | |
21751 | { | |
21752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21753 | } | |
21754 | return resultobj; | |
21755 | fail: | |
21756 | return NULL; | |
21757 | } | |
21758 | ||
21759 | ||
21760 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *, PyObject *args, PyObject *kwargs) { | |
21761 | PyObject *resultobj; | |
21762 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21763 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21764 | PyObject * obj0 = 0 ; | |
21765 | PyObject * obj1 = 0 ; | |
21766 | char *kwnames[] = { | |
21767 | (char *) "self",(char *) "canvas", NULL | |
21768 | }; | |
21769 | ||
21770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
21771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21773 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
21774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21775 | { | |
21776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21777 | (arg1)->AdjustScrollbars(arg2); | |
21778 | ||
21779 | wxPyEndAllowThreads(__tstate); | |
21780 | if (PyErr_Occurred()) SWIG_fail; | |
21781 | } | |
21782 | Py_INCREF(Py_None); resultobj = Py_None; | |
21783 | return resultobj; | |
21784 | fail: | |
21785 | return NULL; | |
21786 | } | |
21787 | ||
21788 | ||
21789 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *, PyObject *args, PyObject *kwargs) { | |
21790 | PyObject *resultobj; | |
21791 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21792 | wxPrintDialogData *result; | |
21793 | PyObject * obj0 = 0 ; | |
21794 | char *kwnames[] = { | |
21795 | (char *) "self", NULL | |
21796 | }; | |
21797 | ||
21798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21801 | { | |
21802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21803 | { | |
21804 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21805 | result = (wxPrintDialogData *) &_result_ref; | |
21806 | } | |
21807 | ||
21808 | wxPyEndAllowThreads(__tstate); | |
21809 | if (PyErr_Occurred()) SWIG_fail; | |
21810 | } | |
21811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21812 | return resultobj; | |
21813 | fail: | |
21814 | return NULL; | |
21815 | } | |
21816 | ||
21817 | ||
21818 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *, PyObject *args, PyObject *kwargs) { | |
21819 | PyObject *resultobj; | |
21820 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21821 | int arg2 ; | |
21822 | PyObject * obj0 = 0 ; | |
21823 | PyObject * obj1 = 0 ; | |
21824 | char *kwnames[] = { | |
21825 | (char *) "self",(char *) "percent", NULL | |
21826 | }; | |
21827 | ||
21828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
21829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21831 | arg2 = (int) SWIG_AsInt(obj1); | |
21832 | if (PyErr_Occurred()) SWIG_fail; | |
21833 | { | |
21834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21835 | (arg1)->SetZoom(arg2); | |
21836 | ||
21837 | wxPyEndAllowThreads(__tstate); | |
21838 | if (PyErr_Occurred()) SWIG_fail; | |
21839 | } | |
21840 | Py_INCREF(Py_None); resultobj = Py_None; | |
21841 | return resultobj; | |
21842 | fail: | |
21843 | return NULL; | |
21844 | } | |
21845 | ||
21846 | ||
21847 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *, PyObject *args, PyObject *kwargs) { | |
21848 | PyObject *resultobj; | |
21849 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21850 | int result; | |
21851 | PyObject * obj0 = 0 ; | |
21852 | char *kwnames[] = { | |
21853 | (char *) "self", NULL | |
21854 | }; | |
21855 | ||
21856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
21857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21859 | { | |
21860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21861 | result = (int)(arg1)->GetZoom(); | |
21862 | ||
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
21866 | resultobj = SWIG_FromInt((int)result); | |
21867 | return resultobj; | |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21876 | int result; | |
21877 | PyObject * obj0 = 0 ; | |
21878 | char *kwnames[] = { | |
21879 | (char *) "self", NULL | |
21880 | }; | |
21881 | ||
21882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
21883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21885 | { | |
21886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21887 | result = (int)(arg1)->GetMaxPage(); | |
21888 | ||
21889 | wxPyEndAllowThreads(__tstate); | |
21890 | if (PyErr_Occurred()) SWIG_fail; | |
21891 | } | |
21892 | resultobj = SWIG_FromInt((int)result); | |
21893 | return resultobj; | |
21894 | fail: | |
21895 | return NULL; | |
21896 | } | |
21897 | ||
21898 | ||
21899 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21900 | PyObject *resultobj; | |
21901 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21902 | int result; | |
21903 | PyObject * obj0 = 0 ; | |
21904 | char *kwnames[] = { | |
21905 | (char *) "self", NULL | |
21906 | }; | |
21907 | ||
21908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
21909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21911 | { | |
21912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21913 | result = (int)(arg1)->GetMinPage(); | |
21914 | ||
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
21918 | resultobj = SWIG_FromInt((int)result); | |
21919 | return resultobj; | |
21920 | fail: | |
21921 | return NULL; | |
21922 | } | |
21923 | ||
21924 | ||
21925 | static PyObject *_wrap_PrintPreview_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
21926 | PyObject *resultobj; | |
21927 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21928 | bool result; | |
21929 | PyObject * obj0 = 0 ; | |
21930 | char *kwnames[] = { | |
21931 | (char *) "self", NULL | |
21932 | }; | |
21933 | ||
21934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
21935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21937 | { | |
21938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21939 | result = (bool)(arg1)->Ok(); | |
21940 | ||
21941 | wxPyEndAllowThreads(__tstate); | |
21942 | if (PyErr_Occurred()) SWIG_fail; | |
21943 | } | |
21944 | { | |
21945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21946 | } | |
21947 | return resultobj; | |
21948 | fail: | |
21949 | return NULL; | |
21950 | } | |
21951 | ||
21952 | ||
21953 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
21954 | PyObject *resultobj; | |
21955 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21956 | bool arg2 ; | |
21957 | PyObject * obj0 = 0 ; | |
21958 | PyObject * obj1 = 0 ; | |
21959 | char *kwnames[] = { | |
21960 | (char *) "self",(char *) "ok", NULL | |
21961 | }; | |
21962 | ||
21963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
21964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21966 | arg2 = (bool) SWIG_AsBool(obj1); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | { | |
21969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21970 | (arg1)->SetOk(arg2); | |
21971 | ||
21972 | wxPyEndAllowThreads(__tstate); | |
21973 | if (PyErr_Occurred()) SWIG_fail; | |
21974 | } | |
21975 | Py_INCREF(Py_None); resultobj = Py_None; | |
21976 | return resultobj; | |
21977 | fail: | |
21978 | return NULL; | |
21979 | } | |
21980 | ||
21981 | ||
21982 | static PyObject *_wrap_PrintPreview_Print(PyObject *, PyObject *args, PyObject *kwargs) { | |
21983 | PyObject *resultobj; | |
21984 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21985 | bool arg2 ; | |
21986 | bool result; | |
21987 | PyObject * obj0 = 0 ; | |
21988 | PyObject * obj1 = 0 ; | |
21989 | char *kwnames[] = { | |
21990 | (char *) "self",(char *) "interactive", NULL | |
21991 | }; | |
21992 | ||
21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
21994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21996 | arg2 = (bool) SWIG_AsBool(obj1); | |
21997 | if (PyErr_Occurred()) SWIG_fail; | |
21998 | { | |
21999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22000 | result = (bool)(arg1)->Print(arg2); | |
22001 | ||
22002 | wxPyEndAllowThreads(__tstate); | |
22003 | if (PyErr_Occurred()) SWIG_fail; | |
22004 | } | |
22005 | { | |
22006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22007 | } | |
22008 | return resultobj; | |
22009 | fail: | |
22010 | return NULL; | |
22011 | } | |
22012 | ||
22013 | ||
22014 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *, PyObject *args, PyObject *kwargs) { | |
22015 | PyObject *resultobj; | |
22016 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22017 | PyObject * obj0 = 0 ; | |
22018 | char *kwnames[] = { | |
22019 | (char *) "self", NULL | |
22020 | }; | |
22021 | ||
22022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
22023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22025 | { | |
22026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22027 | (arg1)->DetermineScaling(); | |
22028 | ||
22029 | wxPyEndAllowThreads(__tstate); | |
22030 | if (PyErr_Occurred()) SWIG_fail; | |
22031 | } | |
22032 | Py_INCREF(Py_None); resultobj = Py_None; | |
22033 | return resultobj; | |
22034 | fail: | |
22035 | return NULL; | |
22036 | } | |
22037 | ||
22038 | ||
22039 | static PyObject * PrintPreview_swigregister(PyObject *, PyObject *args) { | |
22040 | PyObject *obj; | |
22041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22042 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
22043 | Py_INCREF(obj); | |
22044 | return Py_BuildValue((char *)""); | |
22045 | } | |
22046 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *, PyObject *args) { | |
22047 | PyObject *resultobj; | |
22048 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22049 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22050 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
22051 | wxPyPrintPreview *result; | |
22052 | PyObject * obj0 = 0 ; | |
22053 | PyObject * obj1 = 0 ; | |
22054 | PyObject * obj2 = 0 ; | |
22055 | ||
22056 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22061 | if (obj2) { | |
22062 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
22063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22064 | } | |
22065 | { | |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *, PyObject *args) { | |
22080 | PyObject *resultobj; | |
22081 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22082 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22083 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
22084 | wxPyPrintPreview *result; | |
22085 | PyObject * obj0 = 0 ; | |
22086 | PyObject * obj1 = 0 ; | |
22087 | PyObject * obj2 = 0 ; | |
22088 | ||
22089 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22094 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
22095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
22104 | return resultobj; | |
22105 | fail: | |
22106 | return NULL; | |
22107 | } | |
22108 | ||
22109 | ||
22110 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
22111 | int argc; | |
22112 | PyObject *argv[4]; | |
22113 | int ii; | |
22114 | ||
22115 | argc = PyObject_Length(args); | |
22116 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
22117 | argv[ii] = PyTuple_GetItem(args,ii); | |
22118 | } | |
22119 | if ((argc >= 2) && (argc <= 3)) { | |
22120 | int _v; | |
22121 | { | |
22122 | void *ptr; | |
22123 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22124 | _v = 0; | |
22125 | PyErr_Clear(); | |
22126 | } else { | |
22127 | _v = 1; | |
22128 | } | |
22129 | } | |
22130 | if (_v) { | |
22131 | { | |
22132 | void *ptr; | |
22133 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22134 | _v = 0; | |
22135 | PyErr_Clear(); | |
22136 | } else { | |
22137 | _v = 1; | |
22138 | } | |
22139 | } | |
22140 | if (_v) { | |
22141 | if (argc <= 2) { | |
22142 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
22143 | } | |
22144 | { | |
22145 | void *ptr; | |
22146 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
22147 | _v = 0; | |
22148 | PyErr_Clear(); | |
22149 | } else { | |
22150 | _v = 1; | |
22151 | } | |
22152 | } | |
22153 | if (_v) { | |
22154 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
22155 | } | |
22156 | } | |
22157 | } | |
22158 | } | |
22159 | if (argc == 3) { | |
22160 | int _v; | |
22161 | { | |
22162 | void *ptr; | |
22163 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22164 | _v = 0; | |
22165 | PyErr_Clear(); | |
22166 | } else { | |
22167 | _v = 1; | |
22168 | } | |
22169 | } | |
22170 | if (_v) { | |
22171 | { | |
22172 | void *ptr; | |
22173 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22174 | _v = 0; | |
22175 | PyErr_Clear(); | |
22176 | } else { | |
22177 | _v = 1; | |
22178 | } | |
22179 | } | |
22180 | if (_v) { | |
22181 | { | |
22182 | void *ptr; | |
22183 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
22184 | _v = 0; | |
22185 | PyErr_Clear(); | |
22186 | } else { | |
22187 | _v = 1; | |
22188 | } | |
22189 | } | |
22190 | if (_v) { | |
22191 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
22192 | } | |
22193 | } | |
22194 | } | |
22195 | } | |
22196 | ||
22197 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
22198 | return NULL; | |
22199 | } | |
22200 | ||
22201 | ||
22202 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
22203 | PyObject *resultobj; | |
22204 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22205 | PyObject *arg2 = (PyObject *) 0 ; | |
22206 | PyObject *arg3 = (PyObject *) 0 ; | |
22207 | PyObject * obj0 = 0 ; | |
22208 | PyObject * obj1 = 0 ; | |
22209 | PyObject * obj2 = 0 ; | |
22210 | char *kwnames[] = { | |
22211 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22212 | }; | |
22213 | ||
22214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22217 | arg2 = obj1; | |
22218 | arg3 = obj2; | |
22219 | { | |
22220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22221 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22222 | ||
22223 | wxPyEndAllowThreads(__tstate); | |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
22225 | } | |
22226 | Py_INCREF(Py_None); resultobj = Py_None; | |
22227 | return resultobj; | |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
22233 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
22234 | PyObject *resultobj; | |
22235 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22236 | int arg2 ; | |
22237 | bool result; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | PyObject * obj1 = 0 ; | |
22240 | char *kwnames[] = { | |
22241 | (char *) "self",(char *) "pageNum", NULL | |
22242 | }; | |
22243 | ||
22244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
22245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22247 | arg2 = (int) SWIG_AsInt(obj1); | |
22248 | if (PyErr_Occurred()) SWIG_fail; | |
22249 | { | |
22250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22251 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
22252 | ||
22253 | wxPyEndAllowThreads(__tstate); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | } | |
22256 | { | |
22257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22258 | } | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
22265 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
22266 | PyObject *resultobj; | |
22267 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22268 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22269 | wxDC *arg3 = 0 ; | |
22270 | bool result; | |
22271 | PyObject * obj0 = 0 ; | |
22272 | PyObject * obj1 = 0 ; | |
22273 | PyObject * obj2 = 0 ; | |
22274 | char *kwnames[] = { | |
22275 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
22276 | }; | |
22277 | ||
22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
22282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22283 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
22284 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22285 | SWIG_fail; | |
22286 | if (arg3 == NULL) { | |
22287 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22288 | SWIG_fail; | |
22289 | } | |
22290 | { | |
22291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22292 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
22293 | ||
22294 | wxPyEndAllowThreads(__tstate); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | } | |
22297 | { | |
22298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22299 | } | |
22300 | return resultobj; | |
22301 | fail: | |
22302 | return NULL; | |
22303 | } | |
22304 | ||
22305 | ||
22306 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
22307 | PyObject *resultobj; | |
22308 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22309 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22310 | wxDC *arg3 = 0 ; | |
22311 | bool result; | |
22312 | PyObject * obj0 = 0 ; | |
22313 | PyObject * obj1 = 0 ; | |
22314 | PyObject * obj2 = 0 ; | |
22315 | char *kwnames[] = { | |
22316 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
22317 | }; | |
22318 | ||
22319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22322 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
22323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22324 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
22325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22326 | SWIG_fail; | |
22327 | if (arg3 == NULL) { | |
22328 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22329 | SWIG_fail; | |
22330 | } | |
22331 | { | |
22332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22333 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
22334 | ||
22335 | wxPyEndAllowThreads(__tstate); | |
22336 | if (PyErr_Occurred()) SWIG_fail; | |
22337 | } | |
22338 | { | |
22339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22340 | } | |
22341 | return resultobj; | |
22342 | fail: | |
22343 | return NULL; | |
22344 | } | |
22345 | ||
22346 | ||
22347 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
22348 | PyObject *resultobj; | |
22349 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22350 | int arg2 ; | |
22351 | bool result; | |
22352 | PyObject * obj0 = 0 ; | |
22353 | PyObject * obj1 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self",(char *) "pageNum", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22361 | arg2 = (int) SWIG_AsInt(obj1); | |
22362 | if (PyErr_Occurred()) SWIG_fail; | |
22363 | { | |
22364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22365 | result = (bool)(arg1)->base_RenderPage(arg2); | |
22366 | ||
22367 | wxPyEndAllowThreads(__tstate); | |
22368 | if (PyErr_Occurred()) SWIG_fail; | |
22369 | } | |
22370 | { | |
22371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22372 | } | |
22373 | return resultobj; | |
22374 | fail: | |
22375 | return NULL; | |
22376 | } | |
22377 | ||
22378 | ||
22379 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *, PyObject *args, PyObject *kwargs) { | |
22380 | PyObject *resultobj; | |
22381 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22382 | int arg2 ; | |
22383 | PyObject * obj0 = 0 ; | |
22384 | PyObject * obj1 = 0 ; | |
22385 | char *kwnames[] = { | |
22386 | (char *) "self",(char *) "percent", NULL | |
22387 | }; | |
22388 | ||
22389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
22390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22392 | arg2 = (int) SWIG_AsInt(obj1); | |
22393 | if (PyErr_Occurred()) SWIG_fail; | |
22394 | { | |
22395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22396 | (arg1)->base_SetZoom(arg2); | |
22397 | ||
22398 | wxPyEndAllowThreads(__tstate); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | } | |
22401 | Py_INCREF(Py_None); resultobj = Py_None; | |
22402 | return resultobj; | |
22403 | fail: | |
22404 | return NULL; | |
22405 | } | |
22406 | ||
22407 | ||
22408 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *, PyObject *args, PyObject *kwargs) { | |
22409 | PyObject *resultobj; | |
22410 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22411 | bool arg2 ; | |
22412 | bool result; | |
22413 | PyObject * obj0 = 0 ; | |
22414 | PyObject * obj1 = 0 ; | |
22415 | char *kwnames[] = { | |
22416 | (char *) "self",(char *) "interactive", NULL | |
22417 | }; | |
22418 | ||
22419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
22420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22422 | arg2 = (bool) SWIG_AsBool(obj1); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | { | |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22426 | result = (bool)(arg1)->base_Print(arg2); | |
22427 | ||
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
22431 | { | |
22432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22433 | } | |
22434 | return resultobj; | |
22435 | fail: | |
22436 | return NULL; | |
22437 | } | |
22438 | ||
22439 | ||
22440 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *, PyObject *args, PyObject *kwargs) { | |
22441 | PyObject *resultobj; | |
22442 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22443 | PyObject * obj0 = 0 ; | |
22444 | char *kwnames[] = { | |
22445 | (char *) "self", NULL | |
22446 | }; | |
22447 | ||
22448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
22449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
22450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22451 | { | |
22452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22453 | (arg1)->base_DetermineScaling(); | |
22454 | ||
22455 | wxPyEndAllowThreads(__tstate); | |
22456 | if (PyErr_Occurred()) SWIG_fail; | |
22457 | } | |
22458 | Py_INCREF(Py_None); resultobj = Py_None; | |
22459 | return resultobj; | |
22460 | fail: | |
22461 | return NULL; | |
22462 | } | |
22463 | ||
22464 | ||
22465 | static PyObject * PyPrintPreview_swigregister(PyObject *, PyObject *args) { | |
22466 | PyObject *obj; | |
22467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22468 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
22469 | Py_INCREF(obj); | |
22470 | return Py_BuildValue((char *)""); | |
22471 | } | |
22472 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
22473 | PyObject *resultobj; | |
22474 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22475 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22476 | wxString *arg3 = 0 ; | |
22477 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22478 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22479 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22480 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22481 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22482 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22483 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22484 | wxPyPreviewFrame *result; | |
22485 | bool temp3 = False ; | |
22486 | wxPoint temp4 ; | |
22487 | wxSize temp5 ; | |
22488 | bool temp7 = False ; | |
22489 | PyObject * obj0 = 0 ; | |
22490 | PyObject * obj1 = 0 ; | |
22491 | PyObject * obj2 = 0 ; | |
22492 | PyObject * obj3 = 0 ; | |
22493 | PyObject * obj4 = 0 ; | |
22494 | PyObject * obj5 = 0 ; | |
22495 | PyObject * obj6 = 0 ; | |
22496 | char *kwnames[] = { | |
22497 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22498 | }; | |
22499 | ||
22500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22505 | { | |
22506 | arg3 = wxString_in_helper(obj2); | |
22507 | if (arg3 == NULL) SWIG_fail; | |
22508 | temp3 = True; | |
22509 | } | |
22510 | if (obj3) { | |
22511 | { | |
22512 | arg4 = &temp4; | |
22513 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22514 | } | |
22515 | } | |
22516 | if (obj4) { | |
22517 | { | |
22518 | arg5 = &temp5; | |
22519 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22520 | } | |
22521 | } | |
22522 | if (obj5) { | |
22523 | arg6 = (long) SWIG_AsLong(obj5); | |
22524 | if (PyErr_Occurred()) SWIG_fail; | |
22525 | } | |
22526 | if (obj6) { | |
22527 | { | |
22528 | arg7 = wxString_in_helper(obj6); | |
22529 | if (arg7 == NULL) SWIG_fail; | |
22530 | temp7 = True; | |
22531 | } | |
22532 | } | |
22533 | { | |
22534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22535 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22536 | ||
22537 | wxPyEndAllowThreads(__tstate); | |
22538 | if (PyErr_Occurred()) SWIG_fail; | |
22539 | } | |
22540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
22541 | { | |
22542 | if (temp3) | |
22543 | delete arg3; | |
22544 | } | |
22545 | { | |
22546 | if (temp7) | |
22547 | delete arg7; | |
22548 | } | |
22549 | return resultobj; | |
22550 | fail: | |
22551 | { | |
22552 | if (temp3) | |
22553 | delete arg3; | |
22554 | } | |
22555 | { | |
22556 | if (temp7) | |
22557 | delete arg7; | |
22558 | } | |
22559 | return NULL; | |
22560 | } | |
22561 | ||
22562 | ||
22563 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
22564 | PyObject *resultobj; | |
22565 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22566 | PyObject *arg2 = (PyObject *) 0 ; | |
22567 | PyObject *arg3 = (PyObject *) 0 ; | |
22568 | PyObject * obj0 = 0 ; | |
22569 | PyObject * obj1 = 0 ; | |
22570 | PyObject * obj2 = 0 ; | |
22571 | char *kwnames[] = { | |
22572 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22573 | }; | |
22574 | ||
22575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
22577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22578 | arg2 = obj1; | |
22579 | arg3 = obj2; | |
22580 | { | |
22581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22582 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22583 | ||
22584 | wxPyEndAllowThreads(__tstate); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
22587 | Py_INCREF(Py_None); resultobj = Py_None; | |
22588 | return resultobj; | |
22589 | fail: | |
22590 | return NULL; | |
22591 | } | |
22592 | ||
22593 | ||
22594 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
22595 | PyObject *resultobj; | |
22596 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22597 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22598 | PyObject * obj0 = 0 ; | |
22599 | PyObject * obj1 = 0 ; | |
22600 | char *kwnames[] = { | |
22601 | (char *) "self",(char *) "canvas", NULL | |
22602 | }; | |
22603 | ||
22604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
22605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
22606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
22608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22609 | { | |
22610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22611 | (arg1)->SetPreviewCanvas(arg2); | |
22612 | ||
22613 | wxPyEndAllowThreads(__tstate); | |
22614 | if (PyErr_Occurred()) SWIG_fail; | |
22615 | } | |
22616 | Py_INCREF(Py_None); resultobj = Py_None; | |
22617 | return resultobj; | |
22618 | fail: | |
22619 | return NULL; | |
22620 | } | |
22621 | ||
22622 | ||
22623 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
22624 | PyObject *resultobj; | |
22625 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22626 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
22627 | PyObject * obj0 = 0 ; | |
22628 | PyObject * obj1 = 0 ; | |
22629 | char *kwnames[] = { | |
22630 | (char *) "self",(char *) "bar", NULL | |
22631 | }; | |
22632 | ||
22633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
22634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
22635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
22637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22638 | { | |
22639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22640 | (arg1)->SetControlBar(arg2); | |
22641 | ||
22642 | wxPyEndAllowThreads(__tstate); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | } | |
22645 | Py_INCREF(Py_None); resultobj = Py_None; | |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
22652 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { | |
22653 | PyObject *resultobj; | |
22654 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22655 | PyObject * obj0 = 0 ; | |
22656 | char *kwnames[] = { | |
22657 | (char *) "self", NULL | |
22658 | }; | |
22659 | ||
22660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
22661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
22662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22663 | { | |
22664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22665 | (arg1)->base_Initialize(); | |
22666 | ||
22667 | wxPyEndAllowThreads(__tstate); | |
22668 | if (PyErr_Occurred()) SWIG_fail; | |
22669 | } | |
22670 | Py_INCREF(Py_None); resultobj = Py_None; | |
22671 | return resultobj; | |
22672 | fail: | |
22673 | return NULL; | |
22674 | } | |
22675 | ||
22676 | ||
22677 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *, PyObject *args, PyObject *kwargs) { | |
22678 | PyObject *resultobj; | |
22679 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22680 | PyObject * obj0 = 0 ; | |
22681 | char *kwnames[] = { | |
22682 | (char *) "self", NULL | |
22683 | }; | |
22684 | ||
22685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
22686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
22687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22688 | { | |
22689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22690 | (arg1)->base_CreateCanvas(); | |
22691 | ||
22692 | wxPyEndAllowThreads(__tstate); | |
22693 | if (PyErr_Occurred()) SWIG_fail; | |
22694 | } | |
22695 | Py_INCREF(Py_None); resultobj = Py_None; | |
22696 | return resultobj; | |
22697 | fail: | |
22698 | return NULL; | |
22699 | } | |
22700 | ||
22701 | ||
22702 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
22703 | PyObject *resultobj; | |
22704 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | char *kwnames[] = { | |
22707 | (char *) "self", NULL | |
22708 | }; | |
22709 | ||
22710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
22711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
22712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22713 | { | |
22714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22715 | (arg1)->base_CreateControlBar(); | |
22716 | ||
22717 | wxPyEndAllowThreads(__tstate); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
22720 | Py_INCREF(Py_None); resultobj = Py_None; | |
22721 | return resultobj; | |
22722 | fail: | |
22723 | return NULL; | |
22724 | } | |
22725 | ||
22726 | ||
22727 | static PyObject * PyPreviewFrame_swigregister(PyObject *, PyObject *args) { | |
22728 | PyObject *obj; | |
22729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22730 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
22731 | Py_INCREF(obj); | |
22732 | return Py_BuildValue((char *)""); | |
22733 | } | |
22734 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
22735 | PyObject *resultobj; | |
22736 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22737 | long arg2 ; | |
22738 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22739 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22740 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22741 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22742 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22743 | long arg6 = (long) 0 ; | |
22744 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22745 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22746 | wxPyPreviewControlBar *result; | |
22747 | wxPoint temp4 ; | |
22748 | wxSize temp5 ; | |
22749 | bool temp7 = False ; | |
22750 | PyObject * obj0 = 0 ; | |
22751 | PyObject * obj1 = 0 ; | |
22752 | PyObject * obj2 = 0 ; | |
22753 | PyObject * obj3 = 0 ; | |
22754 | PyObject * obj4 = 0 ; | |
22755 | PyObject * obj5 = 0 ; | |
22756 | PyObject * obj6 = 0 ; | |
22757 | char *kwnames[] = { | |
22758 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22759 | }; | |
22760 | ||
22761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22764 | arg2 = (long) SWIG_AsLong(obj1); | |
22765 | if (PyErr_Occurred()) SWIG_fail; | |
22766 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | if (obj3) { | |
22769 | { | |
22770 | arg4 = &temp4; | |
22771 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22772 | } | |
22773 | } | |
22774 | if (obj4) { | |
22775 | { | |
22776 | arg5 = &temp5; | |
22777 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22778 | } | |
22779 | } | |
22780 | if (obj5) { | |
22781 | arg6 = (long) SWIG_AsLong(obj5); | |
22782 | if (PyErr_Occurred()) SWIG_fail; | |
22783 | } | |
22784 | if (obj6) { | |
22785 | { | |
22786 | arg7 = wxString_in_helper(obj6); | |
22787 | if (arg7 == NULL) SWIG_fail; | |
22788 | temp7 = True; | |
22789 | } | |
22790 | } | |
22791 | { | |
22792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22793 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22794 | ||
22795 | wxPyEndAllowThreads(__tstate); | |
22796 | if (PyErr_Occurred()) SWIG_fail; | |
22797 | } | |
22798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
22799 | { | |
22800 | if (temp7) | |
22801 | delete arg7; | |
22802 | } | |
22803 | return resultobj; | |
22804 | fail: | |
22805 | { | |
22806 | if (temp7) | |
22807 | delete arg7; | |
22808 | } | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
22813 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
22814 | PyObject *resultobj; | |
22815 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22816 | PyObject *arg2 = (PyObject *) 0 ; | |
22817 | PyObject *arg3 = (PyObject *) 0 ; | |
22818 | PyObject * obj0 = 0 ; | |
22819 | PyObject * obj1 = 0 ; | |
22820 | PyObject * obj2 = 0 ; | |
22821 | char *kwnames[] = { | |
22822 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22823 | }; | |
22824 | ||
22825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
22827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22828 | arg2 = obj1; | |
22829 | arg3 = obj2; | |
22830 | { | |
22831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22832 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22833 | ||
22834 | wxPyEndAllowThreads(__tstate); | |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
22836 | } | |
22837 | Py_INCREF(Py_None); resultobj = Py_None; | |
22838 | return resultobj; | |
22839 | fail: | |
22840 | return NULL; | |
22841 | } | |
22842 | ||
22843 | ||
22844 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *, PyObject *args, PyObject *kwargs) { | |
22845 | PyObject *resultobj; | |
22846 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22847 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
22848 | PyObject * obj0 = 0 ; | |
22849 | PyObject * obj1 = 0 ; | |
22850 | char *kwnames[] = { | |
22851 | (char *) "self",(char *) "preview", NULL | |
22852 | }; | |
22853 | ||
22854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
22855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
22856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
22858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22859 | { | |
22860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22861 | (arg1)->SetPrintPreview(arg2); | |
22862 | ||
22863 | wxPyEndAllowThreads(__tstate); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
22866 | Py_INCREF(Py_None); resultobj = Py_None; | |
22867 | return resultobj; | |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
22873 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *, PyObject *args, PyObject *kwargs) { | |
22874 | PyObject *resultobj; | |
22875 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22876 | PyObject * obj0 = 0 ; | |
22877 | char *kwnames[] = { | |
22878 | (char *) "self", NULL | |
22879 | }; | |
22880 | ||
22881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
22882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
22883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22884 | { | |
22885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22886 | (arg1)->base_CreateButtons(); | |
22887 | ||
22888 | wxPyEndAllowThreads(__tstate); | |
22889 | if (PyErr_Occurred()) SWIG_fail; | |
22890 | } | |
22891 | Py_INCREF(Py_None); resultobj = Py_None; | |
22892 | return resultobj; | |
22893 | fail: | |
22894 | return NULL; | |
22895 | } | |
22896 | ||
22897 | ||
22898 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
22899 | PyObject *resultobj; | |
22900 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22901 | int arg2 ; | |
22902 | PyObject * obj0 = 0 ; | |
22903 | PyObject * obj1 = 0 ; | |
22904 | char *kwnames[] = { | |
22905 | (char *) "self",(char *) "zoom", NULL | |
22906 | }; | |
22907 | ||
22908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
22909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
22910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22911 | arg2 = (int) SWIG_AsInt(obj1); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | { | |
22914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22915 | (arg1)->base_SetZoomControl(arg2); | |
22916 | ||
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
22920 | Py_INCREF(Py_None); resultobj = Py_None; | |
22921 | return resultobj; | |
22922 | fail: | |
22923 | return NULL; | |
22924 | } | |
22925 | ||
22926 | ||
22927 | static PyObject * PyPreviewControlBar_swigregister(PyObject *, PyObject *args) { | |
22928 | PyObject *obj; | |
22929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22930 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
22931 | Py_INCREF(obj); | |
22932 | return Py_BuildValue((char *)""); | |
22933 | } | |
22934 | static PyMethodDef SwigMethods[] = { | |
22935 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22936 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22937 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22938 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22939 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS, NULL }, | |
22940 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22941 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22942 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22943 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22944 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22945 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22946 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22947 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22948 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22949 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22950 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22951 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22952 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22953 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22954 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS, NULL }, | |
22955 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS, NULL }, | |
22956 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22957 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22958 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22959 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22960 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22961 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22962 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS, NULL }, | |
22963 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22964 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22965 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22966 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22967 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22968 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22969 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22970 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22971 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22972 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22973 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22974 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22975 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22976 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS, NULL }, | |
22977 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22978 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22979 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22980 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22981 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22982 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22983 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22984 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22985 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22986 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22987 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22988 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22989 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22990 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22991 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22992 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22993 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22994 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22995 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22996 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22997 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22998 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS, NULL }, | |
22999 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS, NULL }, | |
23000 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23001 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23002 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23003 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23004 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23005 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23006 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23007 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23008 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23009 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23010 | { (char *)"Dialog_IsModalShowing", (PyCFunction) _wrap_Dialog_IsModalShowing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23011 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS, NULL }, | |
23012 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23013 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23014 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23015 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS, NULL }, | |
23016 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23017 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23018 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23019 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS, NULL }, | |
23020 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23021 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23022 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23023 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23024 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS, NULL }, | |
23025 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23026 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23027 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23028 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23029 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23030 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23031 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23032 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23033 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23034 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23035 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23036 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23037 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23038 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23039 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS, NULL }, | |
23040 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23041 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23042 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23043 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23044 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23045 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23046 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23047 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23048 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23049 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23050 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23051 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23052 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23053 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23054 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23055 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23056 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23057 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23058 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23059 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23060 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23061 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23062 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23063 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23064 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23065 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23066 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS, NULL }, | |
23067 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23068 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23069 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23070 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23071 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23072 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23073 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS, NULL }, | |
23074 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23075 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23076 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23077 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23078 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23079 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23080 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23081 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23082 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23083 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23084 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23085 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23086 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23087 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23088 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23089 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23090 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23091 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23092 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23093 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23094 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23095 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23096 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS, NULL }, | |
23097 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23098 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23099 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23100 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23101 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23102 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23103 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23104 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS, NULL }, | |
23105 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23106 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23107 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23108 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23109 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23110 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23111 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23112 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23113 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23114 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23115 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23116 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS, NULL }, | |
23117 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23118 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23119 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23120 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23121 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23122 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS, NULL }, | |
23123 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23124 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23125 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23126 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23127 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23128 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23129 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23130 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23131 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS, NULL }, | |
23132 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23133 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23134 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23135 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23136 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23137 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS, NULL }, | |
23138 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23139 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23140 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS, NULL }, | |
23141 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23142 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23143 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS, NULL }, | |
23144 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23145 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23146 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23147 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS, NULL }, | |
23148 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23149 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23150 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23151 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23152 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23153 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23154 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23155 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23156 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23157 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23158 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23159 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23160 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23161 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23162 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23163 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23164 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23165 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS, NULL }, | |
23166 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23167 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23168 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23169 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23170 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23171 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23172 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23173 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23174 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23175 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23176 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23177 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23178 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23179 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23180 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23181 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23182 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23183 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23184 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23185 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23186 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23187 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23188 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23189 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23190 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23191 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL }, | |
23192 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23193 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23194 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23195 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23196 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23197 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23198 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL }, | |
23199 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23200 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23201 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS, NULL }, | |
23202 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23203 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS, NULL }, | |
23204 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23205 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23206 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23207 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23208 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23209 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23210 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23211 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23212 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS, NULL }, | |
23213 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23214 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23215 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS, NULL }, | |
23216 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23217 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23218 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23219 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23220 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23221 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23222 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS, NULL }, | |
23223 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23224 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23225 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23226 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23227 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23228 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23229 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23230 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23231 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23232 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23233 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23234 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23235 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23236 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23237 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23238 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23239 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23240 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS, NULL }, | |
23241 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23242 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23243 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23244 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS, NULL }, | |
23245 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23246 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23247 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23248 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23249 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS, NULL }, | |
23250 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23251 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23252 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23253 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS, NULL }, | |
23254 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23255 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23256 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23257 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23258 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23259 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23260 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23261 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23262 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23263 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23264 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23265 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23266 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23267 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23268 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23269 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS, NULL }, | |
23270 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23271 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23272 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS, NULL }, | |
23273 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23274 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS, NULL }, | |
23275 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23276 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23277 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23278 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS, NULL }, | |
23279 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23280 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23281 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23282 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23283 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23284 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23285 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23286 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23287 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS, NULL }, | |
23288 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23289 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23290 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23291 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23292 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23293 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23294 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23295 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23296 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS, NULL }, | |
23297 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23298 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23299 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23300 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23301 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23302 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS, NULL }, | |
23303 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23304 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23305 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23306 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23307 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23308 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23309 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23310 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23311 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23312 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23313 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23314 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS, NULL }, | |
23315 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23316 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23317 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23318 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23319 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23320 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23321 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS, NULL }, | |
23322 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23323 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23324 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23325 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS, NULL }, | |
23326 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23327 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23328 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23329 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23330 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23331 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23332 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23333 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23334 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23335 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23336 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23337 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23338 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23339 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23340 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23341 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23342 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23343 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23344 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23345 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23346 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS, NULL }, | |
23347 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23348 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23349 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23350 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23351 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23352 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23353 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23354 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23355 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23356 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23357 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23358 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23359 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23360 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23361 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23362 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23363 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23364 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23365 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23366 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23367 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS, NULL }, | |
23368 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23369 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23370 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23371 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23372 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23373 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23374 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23375 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23376 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23377 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23378 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23379 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23380 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23381 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23382 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23383 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23384 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23385 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23386 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23387 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23388 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23389 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23390 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23391 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23392 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23393 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23394 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23395 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23396 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23397 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23398 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23399 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23400 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23401 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23402 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23403 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23404 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23405 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23406 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23407 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23408 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23409 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23410 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23411 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23412 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23413 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS, NULL }, | |
23414 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23415 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23416 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23417 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23418 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23419 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23420 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23421 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23422 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23423 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23424 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23425 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23426 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23427 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23428 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23429 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23430 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23431 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23432 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23433 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23434 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23435 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23436 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23437 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23438 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23439 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23440 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23441 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23442 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23443 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23444 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23445 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS, NULL }, | |
23446 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23447 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23448 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23449 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS, NULL }, | |
23450 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS, NULL }, | |
23451 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23452 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23453 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23454 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23455 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23456 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23457 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23458 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23459 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23460 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23461 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23462 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23463 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23464 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23465 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23466 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23467 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23468 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23469 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23470 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23471 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23472 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23473 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23474 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23475 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23476 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23477 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23478 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23479 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23480 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23481 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23482 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23483 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS, NULL }, | |
23484 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23485 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23486 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23487 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23488 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS, NULL }, | |
23489 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23490 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23491 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23492 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23493 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23494 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23495 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23496 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23497 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23498 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23499 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS, NULL }, | |
23500 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23501 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23502 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23503 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23504 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23505 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23506 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23507 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23508 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23509 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23510 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23511 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23512 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23513 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23514 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23515 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23516 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23517 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23518 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23519 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23520 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23521 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23522 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS, NULL }, | |
23523 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23524 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS, NULL }, | |
23525 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23526 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23527 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23528 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23529 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23530 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS, NULL }, | |
23531 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23532 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23533 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23534 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23535 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23536 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23537 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23538 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23539 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23540 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS, NULL }, | |
23541 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS, NULL }, | |
23542 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23543 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23544 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23545 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23546 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23547 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23548 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23549 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23550 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23551 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23552 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23553 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23554 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23555 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23556 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23557 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23558 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23559 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23560 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23561 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23562 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23563 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23564 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS, NULL }, | |
23565 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS, NULL }, | |
23566 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23567 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23568 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23569 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23570 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23571 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23572 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23573 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23574 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS, NULL }, | |
23575 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23576 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23577 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23578 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23579 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23580 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23581 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23582 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS, NULL }, | |
23583 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23584 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23585 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23586 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23587 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
23588 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS, NULL }, | |
23589 | { NULL, NULL, 0, NULL } | |
23590 | }; | |
23591 | ||
23592 | ||
23593 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
23594 | ||
23595 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
23596 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23597 | } | |
23598 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
23599 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
23600 | } | |
23601 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
23602 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
23603 | } | |
23604 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
23605 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
23606 | } | |
23607 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
23608 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
23609 | } | |
23610 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
23611 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
23612 | } | |
23613 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
23614 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
23615 | } | |
23616 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
23617 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23618 | } | |
23619 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
23620 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
23621 | } | |
23622 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
23623 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
23624 | } | |
23625 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
23626 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
23627 | } | |
23628 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
23629 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
23630 | } | |
23631 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
23632 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
23633 | } | |
23634 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
23635 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
23636 | } | |
23637 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
23638 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
23639 | } | |
23640 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
23641 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
23642 | } | |
23643 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
23644 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
23645 | } | |
23646 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
23647 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
23648 | } | |
23649 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
23650 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
23651 | } | |
23652 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
23653 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
23654 | } | |
23655 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
23656 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
23657 | } | |
23658 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
23659 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
23660 | } | |
23661 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
23662 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
23663 | } | |
23664 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
23665 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
23666 | } | |
23667 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
23668 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
23669 | } | |
23670 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
23671 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
23672 | } | |
23673 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
23674 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
23675 | } | |
23676 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
23677 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
23678 | } | |
23679 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
23680 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
23681 | } | |
23682 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
23683 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
23684 | } | |
23685 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
23686 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
23687 | } | |
23688 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
23689 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
23690 | } | |
23691 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
23692 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
23693 | } | |
23694 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
23695 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
23696 | } | |
23697 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
23698 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
23699 | } | |
23700 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
23701 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
23702 | } | |
23703 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
23704 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
23705 | } | |
23706 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
23707 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
23708 | } | |
23709 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
23710 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
23711 | } | |
23712 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
23713 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
23714 | } | |
23715 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
23716 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
23717 | } | |
23718 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
23719 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
23720 | } | |
23721 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
23722 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23723 | } | |
23724 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
23725 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
23726 | } | |
23727 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
23728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
23729 | } | |
23730 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
23731 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
23732 | } | |
23733 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
23734 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
23735 | } | |
23736 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
23737 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
23738 | } | |
23739 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
23740 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
23741 | } | |
23742 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
23743 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
23744 | } | |
23745 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
23746 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
23747 | } | |
23748 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
23749 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
23750 | } | |
23751 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
23752 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
23753 | } | |
23754 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
23755 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
23756 | } | |
23757 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
23758 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
23759 | } | |
23760 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
23761 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
23762 | } | |
23763 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
23764 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
23765 | } | |
23766 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
23767 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
23768 | } | |
23769 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
23770 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
23771 | } | |
23772 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
23773 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
23774 | } | |
23775 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
23776 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
23777 | } | |
23778 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
23779 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
23780 | } | |
23781 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
23782 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
23783 | } | |
23784 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
23785 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
23786 | } | |
23787 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
23788 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
23789 | } | |
23790 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
23791 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
23792 | } | |
23793 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
23794 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
23795 | } | |
23796 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
23797 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
23798 | } | |
23799 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
23800 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
23801 | } | |
23802 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
23803 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
23804 | } | |
23805 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
23806 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
23807 | } | |
23808 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
23809 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
23810 | } | |
23811 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
23812 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
23813 | } | |
23814 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
23815 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23816 | } | |
23817 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
23818 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
23819 | } | |
23820 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
23821 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
23822 | } | |
23823 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
23824 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
23825 | } | |
23826 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
23827 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
23828 | } | |
23829 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
23830 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
23831 | } | |
23832 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
23833 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23834 | } | |
23835 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
23836 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
23837 | } | |
23838 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
23839 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
23840 | } | |
23841 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
23842 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
23843 | } | |
23844 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
23845 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
23846 | } | |
23847 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
23848 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
23849 | } | |
23850 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
23851 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
23852 | } | |
23853 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
23854 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
23855 | } | |
23856 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
23857 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
23858 | } | |
23859 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
23860 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
23861 | } | |
23862 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
23863 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
23864 | } | |
23865 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
23866 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
23867 | } | |
23868 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
23869 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
23870 | } | |
23871 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
23872 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23873 | } | |
23874 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
23875 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
23876 | } | |
23877 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
23878 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
23879 | } | |
23880 | static void *_p_wxTipWindowTo_p_wxFrame(void *x) { | |
23881 | return (void *)((wxFrame *) ((wxTipWindow *) x)); | |
23882 | } | |
23883 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
23884 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
23885 | } | |
23886 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
23887 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23888 | } | |
23889 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
23890 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
23891 | } | |
23892 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
23893 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
23894 | } | |
23895 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
23896 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
23897 | } | |
23898 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
23899 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
23900 | } | |
23901 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
23902 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
23903 | } | |
23904 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
23905 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
23906 | } | |
23907 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
23908 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23909 | } | |
23910 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
23911 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
23912 | } | |
23913 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
23914 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
23915 | } | |
23916 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
23917 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
23918 | } | |
23919 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
23920 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
23921 | } | |
23922 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
23923 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
23924 | } | |
23925 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
23926 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
23927 | } | |
23928 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
23929 | return (void *)((wxObject *) ((wxSizer *) x)); | |
23930 | } | |
23931 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
23932 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
23933 | } | |
23934 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
23935 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
23936 | } | |
23937 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
23938 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
23939 | } | |
23940 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
23941 | return (void *)((wxObject *) ((wxEvent *) x)); | |
23942 | } | |
23943 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
23944 | return (void *)((wxObject *) ((wxFontData *) x)); | |
23945 | } | |
23946 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
23947 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
23948 | } | |
23949 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
23950 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
23951 | } | |
23952 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
23953 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
23954 | } | |
23955 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
23956 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
23957 | } | |
23958 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
23959 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
23960 | } | |
23961 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
23962 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
23963 | } | |
23964 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
23965 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
23966 | } | |
23967 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
23968 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
23969 | } | |
23970 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
23971 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
23972 | } | |
23973 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
23974 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
23975 | } | |
23976 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
23977 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
23978 | } | |
23979 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
23980 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
23981 | } | |
23982 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
23983 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
23984 | } | |
23985 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
23986 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
23987 | } | |
23988 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
23989 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
23990 | } | |
23991 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
23992 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
23993 | } | |
23994 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
23995 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23996 | } | |
23997 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
23998 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
23999 | } | |
24000 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
24001 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
24002 | } | |
24003 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
24004 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
24005 | } | |
24006 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
24007 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
24008 | } | |
24009 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
24010 | return (void *)((wxObject *) ((wxColourData *) x)); | |
24011 | } | |
24012 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
24013 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
24014 | } | |
24015 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
24016 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
24017 | } | |
24018 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
24019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
24020 | } | |
24021 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
24022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
24023 | } | |
24024 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
24025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
24026 | } | |
24027 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
24028 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24029 | } | |
24030 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
24031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24032 | } | |
24033 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
24034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
24035 | } | |
24036 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
24037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
24038 | } | |
24039 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
24040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
24041 | } | |
24042 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
24043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
24044 | } | |
24045 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
24046 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
24047 | } | |
24048 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
24049 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
24050 | } | |
24051 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
24052 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
24053 | } | |
24054 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
24055 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
24056 | } | |
24057 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
24058 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
24059 | } | |
24060 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
24061 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
24062 | } | |
24063 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
24064 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
24065 | } | |
24066 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
24067 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
24068 | } | |
24069 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
24070 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
24071 | } | |
24072 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
24073 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
24074 | } | |
24075 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
24076 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
24077 | } | |
24078 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
24079 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
24080 | } | |
24081 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
24082 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
24083 | } | |
24084 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
24085 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
24086 | } | |
24087 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
24088 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
24089 | } | |
24090 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
24091 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
24092 | } | |
24093 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
24094 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
24095 | } | |
24096 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
24097 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
24098 | } | |
24099 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
24100 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
24101 | } | |
24102 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
24103 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
24104 | } | |
24105 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
24106 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
24107 | } | |
24108 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
24109 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
24110 | } | |
24111 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
24112 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
24113 | } | |
24114 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
24115 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
24116 | } | |
24117 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
24118 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
24119 | } | |
24120 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
24121 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24122 | } | |
24123 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
24124 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24125 | } | |
24126 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
24127 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
24128 | } | |
24129 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
24130 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
24131 | } | |
24132 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
24133 | return (void *)((wxObject *) ((wxImage *) x)); | |
24134 | } | |
24135 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
24136 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
24137 | } | |
24138 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
24139 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
24140 | } | |
24141 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
24142 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
24143 | } | |
24144 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
24145 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
24146 | } | |
24147 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
24148 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
24149 | } | |
24150 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
24151 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
24152 | } | |
24153 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
24154 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
24155 | } | |
24156 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
24157 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
24158 | } | |
24159 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
24160 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
24161 | } | |
24162 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
24163 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
24164 | } | |
24165 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
24166 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
24167 | } | |
24168 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
24169 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
24170 | } | |
24171 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
24172 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
24173 | } | |
24174 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
24175 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
24176 | } | |
24177 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
24178 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
24179 | } | |
24180 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
24181 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
24182 | } | |
24183 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
24184 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
24185 | } | |
24186 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
24187 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24188 | } | |
24189 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
24190 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
24191 | } | |
24192 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
24193 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24194 | } | |
24195 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
24196 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
24197 | } | |
24198 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
24199 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24200 | } | |
24201 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
24202 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
24203 | } | |
24204 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
24205 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
24206 | } | |
24207 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
24208 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
24209 | } | |
24210 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
24211 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
24212 | } | |
24213 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
24214 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
24215 | } | |
24216 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
24217 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
24218 | } | |
24219 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
24220 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
24221 | } | |
24222 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
24223 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
24224 | } | |
24225 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
24226 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
24227 | } | |
24228 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
24229 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
24230 | } | |
24231 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
24232 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
24233 | } | |
24234 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
24235 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
24236 | } | |
24237 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
24238 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
24239 | } | |
24240 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
24241 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
24242 | } | |
24243 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
24244 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
24245 | } | |
24246 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
24247 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
24248 | } | |
24249 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
24250 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
24251 | } | |
24252 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
24253 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
24254 | } | |
24255 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
24256 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
24257 | } | |
24258 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
24259 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
24260 | } | |
24261 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
24262 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
24263 | } | |
24264 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
24265 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24266 | } | |
24267 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
24268 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
24269 | } | |
24270 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
24271 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
24272 | } | |
24273 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
24274 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
24275 | } | |
24276 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
24277 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
24278 | } | |
24279 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
24280 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
24281 | } | |
24282 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
24283 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
24284 | } | |
24285 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
24286 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
24287 | } | |
24288 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
24289 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
24290 | } | |
24291 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
24292 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24293 | } | |
24294 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
24295 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24296 | } | |
24297 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
24298 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24299 | } | |
24300 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
24301 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24302 | } | |
24303 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
24304 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
24305 | } | |
24306 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
24307 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
24308 | } | |
24309 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
24310 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
24311 | } | |
24312 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
24313 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
24314 | } | |
24315 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
24316 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
24317 | } | |
24318 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
24319 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
24320 | } | |
24321 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
24322 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
24323 | } | |
24324 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
24325 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
24326 | } | |
24327 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
24328 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
24329 | } | |
24330 | static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { | |
24331 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); | |
24332 | } | |
24333 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
24334 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
24335 | } | |
24336 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
24337 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
24338 | } | |
24339 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
24340 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
24341 | } | |
24342 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
24343 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
24344 | } | |
24345 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
24346 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
24347 | } | |
24348 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
24349 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24350 | } | |
24351 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
24352 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24353 | } | |
24354 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
24355 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
24356 | } | |
24357 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
24358 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
24359 | } | |
24360 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
24361 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
24362 | } | |
24363 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
24364 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24365 | } | |
24366 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
24367 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
24368 | } | |
24369 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
24370 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
24371 | } | |
24372 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
24373 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
24374 | } | |
24375 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
24376 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
24377 | } | |
24378 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
24379 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
24380 | } | |
24381 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
24382 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
24383 | } | |
24384 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
24385 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
24386 | } | |
24387 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
24388 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
24389 | } | |
24390 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
24391 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24392 | } | |
24393 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
24394 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24395 | } | |
24396 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
24397 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
24398 | } | |
24399 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
24400 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
24401 | } | |
24402 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
24403 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
24404 | } | |
24405 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
24406 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
24407 | } | |
24408 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
24409 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24410 | } | |
24411 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
24412 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
24413 | } | |
24414 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
24415 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24416 | } | |
24417 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
24418 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
24419 | } | |
24420 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
24421 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24422 | } | |
24423 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
24424 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
24425 | } | |
24426 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
24427 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
24428 | } | |
24429 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
24430 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
24431 | } | |
24432 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
24433 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
24434 | } | |
24435 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
24436 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
24437 | } | |
24438 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
24439 | return (void *)((wxWindow *) ((wxControl *) x)); | |
24440 | } | |
24441 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
24442 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
24443 | } | |
24444 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
24445 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24446 | } | |
24447 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
24448 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
24449 | } | |
24450 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
24451 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
24452 | } | |
24453 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
24454 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
24455 | } | |
24456 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
24457 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24458 | } | |
24459 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
24460 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24461 | } | |
24462 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
24463 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24464 | } | |
24465 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
24466 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
24467 | } | |
24468 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
24469 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24470 | } | |
24471 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
24472 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
24473 | } | |
24474 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
24475 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
24476 | } | |
24477 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
24478 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
24479 | } | |
24480 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
24481 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
24482 | } | |
24483 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
24484 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
24485 | } | |
24486 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
24487 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
24488 | } | |
24489 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
24490 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
24491 | } | |
24492 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
24493 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
24494 | } | |
24495 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
24496 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24497 | } | |
24498 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
24499 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
24500 | } | |
24501 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
24502 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
24503 | } | |
24504 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
24505 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
24506 | } | |
24507 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
24508 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
24509 | } | |
24510 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
24511 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
24512 | } | |
24513 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
24514 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
24515 | } | |
24516 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
24517 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
24518 | } | |
24519 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
24520 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24521 | } | |
24522 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
24523 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24524 | } | |
24525 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
24526 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
24527 | } | |
24528 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
24529 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
24530 | } | |
24531 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
24532 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
24533 | } | |
24534 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
24535 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
24536 | } | |
24537 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
24538 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24539 | } | |
24540 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
24541 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24542 | } | |
24543 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
24544 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24545 | } | |
24546 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
24547 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
24548 | } | |
24549 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
24550 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24551 | } | |
24552 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
24553 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
24554 | } | |
24555 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
24556 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24557 | } | |
24558 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
24559 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
24560 | } | |
24561 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
24562 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
24563 | } | |
24564 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
24565 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
24566 | } | |
24567 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
24568 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
24569 | } | |
24570 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
24571 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
24572 | } | |
24573 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
24574 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
24575 | } | |
24576 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
24577 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
24578 | } | |
24579 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
24580 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
24581 | } | |
24582 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
24583 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
24584 | } | |
24585 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
24586 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
24587 | } | |
24588 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
24589 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
24590 | } | |
24591 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
24592 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24593 | } | |
24594 | 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}}; | |
24595 | 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}}; | |
24596 | 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}}; | |
24597 | 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}}; | |
24598 | 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}}; | |
24599 | 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}}; | |
24600 | 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}}; | |
24601 | 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}}; | |
24602 | 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}}; | |
24603 | 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}}; | |
24604 | 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}}; | |
24605 | 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}}; | |
24606 | 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}}; | |
24607 | 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}}; | |
24608 | 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}}; | |
24609 | 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}}; | |
24610 | 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}}; | |
24611 | 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}}; | |
24612 | 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}}; | |
24613 | 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}}; | |
24614 | 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}}; | |
24615 | 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}}; | |
24616 | 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}}; | |
24617 | 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}}; | |
24618 | 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}}; | |
24619 | 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}}; | |
24620 | 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}}; | |
24621 | 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}}; | |
24622 | 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}}; | |
24623 | 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}}; | |
24624 | 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}}; | |
24625 | 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}}; | |
24626 | 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}}; | |
24627 | 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}}; | |
24628 | 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}}; | |
24629 | 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_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_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_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}}; | |
24630 | 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}}; | |
24631 | 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}}; | |
24632 | 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}}; | |
24633 | 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}}; | |
24634 | 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}}; | |
24635 | 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}}; | |
24636 | 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}}; | |
24637 | 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}}; | |
24638 | 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}}; | |
24639 | 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}}; | |
24640 | 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}}; | |
24641 | 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}}; | |
24642 | 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}}; | |
24643 | 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_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}}; | |
24644 | 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}}; | |
24645 | 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}}; | |
24646 | 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}}; | |
24647 | 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}}; | |
24648 | 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}}; | |
24649 | 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}}; | |
24650 | 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}}; | |
24651 | 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}}; | |
24652 | 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}}; | |
24653 | 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}}; | |
24654 | 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}}; | |
24655 | 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_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_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_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}}; | |
24656 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
24657 | 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}}; | |
24658 | 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}}; | |
24659 | 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}}; | |
24660 | 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}}; | |
24661 | 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}}; | |
24662 | 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}}; | |
24663 | 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}}; | |
24664 | 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}}; | |
24665 | 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}}; | |
24666 | 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}}; | |
24667 | 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_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}}; | |
24668 | 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}}; | |
24669 | 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}}; | |
24670 | 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}}; | |
24671 | 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}}; | |
24672 | 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}}; | |
24673 | 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}}; | |
24674 | 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}}; | |
24675 | 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}}; | |
24676 | 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}}; | |
24677 | 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}}; | |
24678 | ||
24679 | static swig_type_info *swig_types_initial[] = { | |
24680 | _swigt__p_wxQueryLayoutInfoEvent, | |
24681 | _swigt__p_wxPreviewFrame, | |
24682 | _swigt__p_wxPyPreviewFrame, | |
24683 | _swigt__p_wxPyPanel, | |
24684 | _swigt__p_wxMenu, | |
24685 | _swigt__p_wxPrintData, | |
24686 | _swigt__p_wxFontData, | |
24687 | _swigt__p_wxEvent, | |
24688 | _swigt__p_wxTaskBarIcon, | |
24689 | _swigt__p_wxIconBundle, | |
24690 | _swigt__p_wxLayoutAlgorithm, | |
24691 | _swigt__p_wxFindDialogEvent, | |
24692 | _swigt__p_wxPreviewCanvas, | |
24693 | _swigt__p_wxFont, | |
24694 | _swigt__p_wxSplitterEvent, | |
24695 | _swigt__p_wxRegion, | |
24696 | _swigt__p_wxFindReplaceData, | |
24697 | _swigt__p_int, | |
24698 | _swigt__p_wxSize, | |
24699 | _swigt__p_wxDC, | |
24700 | _swigt__p_wxIcon, | |
24701 | _swigt__p_wxMDIChildFrame, | |
24702 | _swigt__p_wxColourData, | |
24703 | _swigt__p_wxNotifyEvent, | |
24704 | _swigt__p_wxPyWindow, | |
24705 | _swigt__p_wxSplashScreen, | |
24706 | _swigt__p_wxFindReplaceDialog, | |
24707 | _swigt__p_wxProgressDialog, | |
24708 | _swigt__p_wxMessageDialog, | |
24709 | _swigt__p_wxTextEntryDialog, | |
24710 | _swigt__p_wxSingleChoiceDialog, | |
24711 | _swigt__p_wxMultiChoiceDialog, | |
24712 | _swigt__p_wxFileDialog, | |
24713 | _swigt__p_wxPrinter, | |
24714 | _swigt__p_wxArrayInt, | |
24715 | _swigt__p_wxEvtHandler, | |
24716 | _swigt__p_wxCalculateLayoutEvent, | |
24717 | _swigt__p_wxPyHtmlListBox, | |
24718 | _swigt__p_wxPyVListBox, | |
24719 | _swigt__p_wxRect, | |
24720 | _swigt__p_char, | |
24721 | _swigt__p_wxMiniFrame, | |
24722 | _swigt__p_wxFrame, | |
24723 | _swigt__p_wxPyPrintout, | |
24724 | _swigt__p_wxTaskBarIconEvent, | |
24725 | _swigt__p_wxScrollWinEvent, | |
24726 | _swigt__p_wxStatusBar, | |
24727 | _swigt__p_wxMDIParentFrame, | |
24728 | _swigt__p_wxPoint, | |
24729 | _swigt__p_wxObject, | |
24730 | _swigt__p_wxOutputStream, | |
24731 | _swigt__p_unsigned_long, | |
24732 | _swigt__p_wxMDIClientWindow, | |
24733 | _swigt__p_wxTipWindow, | |
24734 | _swigt__p_wxPyPopupTransientWindow, | |
24735 | _swigt__p_wxSashLayoutWindow, | |
24736 | _swigt__p_wxSplitterWindow, | |
24737 | _swigt__p_wxPyVScrolledWindow, | |
24738 | _swigt__p_wxPopupWindow, | |
24739 | _swigt__p_wxSashWindow, | |
24740 | _swigt__p_wxTopLevelWindow, | |
24741 | _swigt__p_wxWindow, | |
24742 | _swigt__p_wxScrolledWindow, | |
24743 | _swigt__p_wxSplashScreenWindow, | |
24744 | _swigt__p_wxMenuBar, | |
24745 | _swigt__p_wxPrintPreview, | |
24746 | _swigt__p_wxSashEvent, | |
24747 | _swigt__p_wxString, | |
24748 | _swigt__p_wxPyPrintPreview, | |
24749 | _swigt__p_wxFontDialog, | |
24750 | _swigt__p_wxDirDialog, | |
24751 | _swigt__p_wxColourDialog, | |
24752 | _swigt__p_wxDialog, | |
24753 | _swigt__p_wxPanel, | |
24754 | _swigt__p_wxPageSetupDialog, | |
24755 | _swigt__p_wxPrintDialog, | |
24756 | _swigt__p_wxBitmap, | |
24757 | _swigt__p_wxCommandEvent, | |
24758 | _swigt__p_wxPreviewControlBar, | |
24759 | _swigt__p_wxPyPreviewControlBar, | |
24760 | _swigt__p_wxColour, | |
24761 | _swigt__p_wxToolBar, | |
24762 | _swigt__p_wxPageSetupDialogData, | |
24763 | _swigt__p_wxPrintDialogData, | |
24764 | 0 | |
24765 | }; | |
24766 | ||
24767 | ||
24768 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
24769 | ||
24770 | static swig_const_info swig_const_table[] = { | |
24771 | {0, 0, 0, 0.0, 0, 0}}; | |
24772 | ||
24773 | #ifdef __cplusplus | |
24774 | } | |
24775 | #endif | |
24776 | ||
24777 | #ifdef __cplusplus | |
24778 | extern "C" | |
24779 | #endif | |
24780 | SWIGEXPORT(void) SWIG_init(void) { | |
24781 | static PyObject *SWIG_globals = 0; | |
24782 | static int typeinit = 0; | |
24783 | PyObject *m, *d; | |
24784 | int i; | |
24785 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
24786 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
24787 | d = PyModule_GetDict(m); | |
24788 | ||
24789 | if (!typeinit) { | |
24790 | for (i = 0; swig_types_initial[i]; i++) { | |
24791 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
24792 | } | |
24793 | typeinit = 1; | |
24794 | } | |
24795 | SWIG_InstallConstants(d,swig_const_table); | |
24796 | ||
24797 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
24798 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
24799 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
24800 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
24801 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
24802 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
24803 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
24804 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
24805 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
24806 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
24807 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
24808 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
24809 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
24810 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
24811 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
24812 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
24813 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
24814 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
24815 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
24816 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
24817 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
24818 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
24819 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
24820 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
24821 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
24822 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
24823 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
24824 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
24825 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
24826 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
24827 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
24828 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
24829 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
24830 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
24831 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
24832 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
24833 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
24834 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
24835 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
24836 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
24837 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
24838 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
24839 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
24840 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
24841 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
24842 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
24843 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
24844 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
24845 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
24846 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
24847 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
24848 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
24849 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
24850 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
24851 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
24852 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
24853 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
24854 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
24855 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
24856 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
24857 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
24858 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
24859 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
24860 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
24861 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
24862 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
24863 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
24864 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
24865 | ||
24866 | // Map renamed classes back to their common name for OOR | |
24867 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
24868 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
24869 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
24870 | ||
24871 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
24872 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
24873 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
24874 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
24875 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
24876 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
24877 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
24878 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
24879 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
24880 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
24881 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
24882 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
24883 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
24884 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
24885 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
24886 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
24887 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
24888 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
24889 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
24890 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
24891 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
24892 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
24893 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
24894 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
24895 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
24896 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
24897 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
24898 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
24899 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
24900 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
24901 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
24902 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
24903 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
24904 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
24905 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
24906 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
24907 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
24908 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
24909 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
24910 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
24911 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
24912 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
24913 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
24914 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
24915 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
24916 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
24917 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
24918 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
24919 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
24920 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
24921 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
24922 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
24923 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
24924 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
24925 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
24926 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
24927 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
24928 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
24929 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
24930 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
24931 | ||
24932 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
24933 | ||
24934 | } | |
24935 |