]>
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_wxFontData swig_types[5] | |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxPrintData 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_wxVisualAttributes swig_types[21] | |
231 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[22] | |
232 | #define SWIGTYPE_p_wxColourData swig_types[23] | |
233 | #define SWIGTYPE_p_wxNotifyEvent swig_types[24] | |
234 | #define SWIGTYPE_p_wxPyWindow swig_types[25] | |
235 | #define SWIGTYPE_p_wxSplashScreen swig_types[26] | |
236 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[27] | |
237 | #define SWIGTYPE_p_wxProgressDialog swig_types[28] | |
238 | #define SWIGTYPE_p_wxMessageDialog swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[30] | |
240 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[31] | |
241 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[32] | |
242 | #define SWIGTYPE_p_wxFileDialog swig_types[33] | |
243 | #define SWIGTYPE_p_wxPrinter swig_types[34] | |
244 | #define SWIGTYPE_p_wxArrayInt swig_types[35] | |
245 | #define SWIGTYPE_p_wxEvtHandler swig_types[36] | |
246 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[38] | |
248 | #define SWIGTYPE_p_wxPyVListBox swig_types[39] | |
249 | #define SWIGTYPE_p_wxRect swig_types[40] | |
250 | #define SWIGTYPE_p_char swig_types[41] | |
251 | #define SWIGTYPE_p_wxMiniFrame swig_types[42] | |
252 | #define SWIGTYPE_p_wxFrame swig_types[43] | |
253 | #define SWIGTYPE_p_wxPyPrintout swig_types[44] | |
254 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxStatusBar swig_types[47] | |
257 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[48] | |
258 | #define SWIGTYPE_p_wxPoint swig_types[49] | |
259 | #define SWIGTYPE_p_wxObject swig_types[50] | |
260 | #define SWIGTYPE_p_wxOutputStream swig_types[51] | |
261 | #define SWIGTYPE_p_unsigned_long swig_types[52] | |
262 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[53] | |
263 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[54] | |
264 | #define SWIGTYPE_p_wxTipWindow swig_types[55] | |
265 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxSplitterWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxPopupWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxSashWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxScrolledWindow swig_types[64] | |
274 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[65] | |
275 | #define SWIGTYPE_p_wxMenuBar swig_types[66] | |
276 | #define SWIGTYPE_p_wxPrintPreview swig_types[67] | |
277 | #define SWIGTYPE_p_wxSashEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxString swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[70] | |
280 | #define SWIGTYPE_p_wxFontDialog swig_types[71] | |
281 | #define SWIGTYPE_p_wxDirDialog swig_types[72] | |
282 | #define SWIGTYPE_p_wxColourDialog swig_types[73] | |
283 | #define SWIGTYPE_p_wxDialog swig_types[74] | |
284 | #define SWIGTYPE_p_wxPanel swig_types[75] | |
285 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[76] | |
286 | #define SWIGTYPE_p_wxPrintDialog swig_types[77] | |
287 | #define SWIGTYPE_p_wxFileSystem swig_types[78] | |
288 | #define SWIGTYPE_p_wxBitmap swig_types[79] | |
289 | #define SWIGTYPE_p_wxCommandEvent swig_types[80] | |
290 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxColour swig_types[83] | |
293 | #define SWIGTYPE_p_wxToolBar swig_types[84] | |
294 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[85] | |
295 | #define SWIGTYPE_p_wxPrintDialogData swig_types[86] | |
296 | static swig_type_info *swig_types[88]; | |
297 | ||
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _windows_.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_windows_ | |
305 | ||
306 | #define SWIG_name "_windows_" | |
307 | ||
308 | /* Auxiliar swig macros */ | |
309 | ||
310 | #ifdef __cplusplus | |
311 | #define SWIGSTATICINLINE(a) static inline a | |
312 | #define SWIGSTATIC(a) static a | |
313 | #define swig_new_array(type, size) (new type[(size)]) | |
314 | #define swig_delete_array(cptr) delete[] cptr | |
315 | #define swig_const_cast(type,a) const_cast<type>(a) | |
316 | #define swig_static_cast(type,a) static_cast<type>(a) | |
317 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
318 | ||
319 | #ifdef HAVE_NUMERIC_CAST | |
320 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
321 | #else | |
322 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
323 | #endif | |
324 | ||
325 | #else /* C case */ | |
326 | ||
327 | #define SWIGSTATICINLINE(a) static a | |
328 | #define SWIGSTATIC(a) static a | |
329 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
330 | #define swig_delete_array(cptr) free((char*)cptr) | |
331 | #define swig_const_cast(type,a) (type)(a) | |
332 | #define swig_static_cast(type,a) (type)(a) | |
333 | #define swig_reinterpret_cast(type,a) (type)(a) | |
334 | #define swig_numeric_cast(type,a) (type)(a) | |
335 | ||
336 | #endif /* __cplusplus */ | |
337 | ||
338 | ||
339 | #define SWIG_FromSignedChar PyInt_FromLong | |
340 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
341 | #define SWIG_FromShort PyInt_FromLong | |
342 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
343 | #define SWIG_FromInt PyInt_FromLong | |
344 | #define SWIG_FromLong PyInt_FromLong | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | #define SWIG_FromFloat PyFloat_FromDouble | |
348 | #define SWIG_FromDouble PyFloat_FromDouble | |
349 | ||
350 | ||
351 | #include "wx/wxPython/wxPython.h" | |
352 | #include "wx/wxPython/pyclasses.h" | |
353 | ||
354 | ||
355 | static const wxString wxPyEmptyString(wxEmptyString); | |
356 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
357 | ||
358 | ||
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
438 | } | |
439 | ||
440 | ||
441 | SWIGSTATICINLINE(bool) | |
442 | SWIG_AsBool(PyObject *obj) | |
443 | { | |
444 | return PyObject_IsTrue(obj) ? true : false; | |
445 | } | |
446 | ||
447 | ||
448 | SWIGSTATICINLINE(int) | |
449 | SWIG_CheckBool(PyObject* obj) | |
450 | { | |
451 | SWIG_AsBool(obj); | |
452 | if (PyErr_Occurred()) { | |
453 | PyErr_Clear(); | |
454 | return 0; | |
455 | } else { | |
456 | return 1; | |
457 | } | |
458 | } | |
459 | ||
460 | ||
461 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
462 | PyObject* o2; | |
463 | PyObject* o3; | |
464 | ||
465 | if (!target) { | |
466 | target = o; | |
467 | } else if (target == Py_None) { | |
468 | Py_DECREF(Py_None); | |
469 | target = o; | |
470 | } else { | |
471 | if (!PyTuple_Check(target)) { | |
472 | o2 = target; | |
473 | target = PyTuple_New(1); | |
474 | PyTuple_SetItem(target, 0, o2); | |
475 | } | |
476 | o3 = PyTuple_New(1); | |
477 | PyTuple_SetItem(o3, 0, o); | |
478 | ||
479 | o2 = target; | |
480 | target = PySequence_Concat(o2, o3); | |
481 | Py_DECREF(o2); | |
482 | Py_DECREF(o3); | |
483 | } | |
484 | return target; | |
485 | } | |
486 | ||
487 | ||
488 | SWIGSTATICINLINE(double) | |
489 | SWIG_AsDouble(PyObject *obj) | |
490 | { | |
491 | if (PyNumber_Check(obj)) | |
492 | return PyFloat_AsDouble(obj); | |
493 | else { | |
494 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
495 | obj->ob_type->tp_name); | |
496 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
497 | Py_DECREF(errmsg); | |
498 | return 0; | |
499 | } | |
500 | } | |
501 | ||
502 | ||
503 | SWIGSTATICINLINE(int) | |
504 | SWIG_CheckDouble(PyObject* obj) | |
505 | { | |
506 | SWIG_AsDouble(obj); | |
507 | if (PyErr_Occurred()) { | |
508 | PyErr_Clear(); | |
509 | return 0; | |
510 | } else { | |
511 | return 1; | |
512 | } | |
513 | } | |
514 | ||
515 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
516 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
517 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
518 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
519 | ||
520 | ||
521 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ | |
522 | wxRect r; | |
523 | self->GetFieldRect(i, r); | |
524 | return r; | |
525 | } | |
526 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
527 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
528 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
529 | ||
530 | #include <wx/popupwin.h> | |
531 | ||
532 | ||
533 | class wxPopupWindow : public wxWindow { | |
534 | public: | |
535 | wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
536 | wxPopupWindow() { wxPyRaiseNotImplemented(); } | |
537 | }; | |
538 | ||
539 | class wxPyPopupTransientWindow : public wxPopupWindow | |
540 | { | |
541 | public: | |
542 | wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
543 | wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } | |
544 | }; | |
545 | ||
546 | ||
547 | #include <wx/tipwin.h> | |
548 | ||
549 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
550 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
551 | } | |
552 | ||
553 | #include <wx/tipwin.h> | |
554 | ||
555 | ||
556 | #include <wx/vscroll.h> | |
557 | ||
558 | ||
559 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
560 | { | |
561 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
562 | public: | |
563 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
564 | ||
565 | wxPyVScrolledWindow(wxWindow *parent, | |
566 | wxWindowID id = wxID_ANY, | |
567 | const wxPoint& pos = wxDefaultPosition, | |
568 | const wxSize& size = wxDefaultSize, | |
569 | long style = 0, | |
570 | const wxString& name = wxPyPanelNameStr) | |
571 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
572 | {} | |
573 | ||
574 | // Overridable virtuals | |
575 | ||
576 | // this function must be overridden in the derived class and it should | |
577 | // return the height of the given line in pixels | |
578 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
579 | ||
580 | ||
581 | // this function doesn't have to be overridden but it may be useful to do | |
582 | // it if calculating the lines heights is a relatively expensive operation | |
583 | // as it gives the user code a possibility to calculate several of them at | |
584 | // once | |
585 | // | |
586 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
587 | // shouldn't rely on the latter being called for all lines in the interval | |
588 | // specified here. It is also possible that OnGetLineHeight() will be | |
589 | // called for the lines outside of this interval, so this is really just a | |
590 | // hint, not a promise. | |
591 | // | |
592 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
593 | // usual | |
594 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
595 | ||
596 | ||
597 | // when the number of lines changes, we try to estimate the total height | |
598 | // of all lines which is a rather expensive operation in terms of lines | |
599 | // access, so if the user code may estimate the average height | |
600 | // better/faster than we do, it should override this function to implement | |
601 | // its own logic | |
602 | // | |
603 | // this function should return the best guess for the total height it may | |
604 | // make | |
605 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
606 | ||
607 | ||
608 | // Also expose some other interesting protected methods | |
609 | ||
610 | ||
611 | // find the index of the line we need to show at the top of the window such | |
612 | // that the last (fully or partially) visible line is the given one | |
613 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
614 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
615 | ||
616 | // get the total height of the lines between lineMin (inclusive) and | |
617 | // lineMax (exclusive) | |
618 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
619 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
620 | ||
621 | ||
622 | PYPRIVATE; | |
623 | }; | |
624 | ||
625 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
626 | ||
627 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
628 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
629 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
630 | ||
631 | ||
632 | SWIGSTATICINLINE(unsigned long) | |
633 | SWIG_AsUnsignedLong(PyObject * obj) | |
634 | { | |
635 | if (PyLong_Check(obj)) { | |
636 | return PyLong_AsUnsignedLong(obj); | |
637 | } else { | |
638 | long i = SWIG_AsLong(obj); | |
639 | if ( !PyErr_Occurred() && (i < 0)) { | |
640 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
641 | } | |
642 | return i; | |
643 | } | |
644 | } | |
645 | ||
646 | ||
647 | SWIGSTATICINLINE(int) | |
648 | SWIG_CheckUnsignedLong(PyObject* obj) | |
649 | { | |
650 | SWIG_AsUnsignedLong(obj); | |
651 | if (PyErr_Occurred()) { | |
652 | PyErr_Clear(); | |
653 | return 0; | |
654 | } else { | |
655 | return 1; | |
656 | } | |
657 | } | |
658 | ||
659 | ||
660 | SWIGSTATICINLINE(PyObject* ) | |
661 | SWIG_FromUnsignedLong(unsigned long value) | |
662 | { | |
663 | return (value > LONG_MAX) ? | |
664 | PyLong_FromUnsignedLong(value) | |
665 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
666 | } | |
667 | ||
668 | ||
669 | #include <wx/vlbox.h> | |
670 | ||
671 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
672 | ||
673 | class wxPyVListBox : public wxVListBox | |
674 | { | |
675 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
676 | public: | |
677 | wxPyVListBox() : wxVListBox() {} | |
678 | ||
679 | wxPyVListBox(wxWindow *parent, | |
680 | wxWindowID id = wxID_ANY, | |
681 | const wxPoint& pos = wxDefaultPosition, | |
682 | const wxSize& size = wxDefaultSize, | |
683 | long style = 0, | |
684 | const wxString& name = wxPyVListBoxNameStr) | |
685 | : wxVListBox(parent, id, pos, size, style, name) | |
686 | {} | |
687 | ||
688 | // Overridable virtuals | |
689 | ||
690 | // the derived class must implement this function to actually draw the item | |
691 | // with the given index on the provided DC | |
692 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
693 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
694 | ||
695 | ||
696 | // the derived class must implement this method to return the height of the | |
697 | // specified item | |
698 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
699 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
700 | ||
701 | ||
702 | // this method may be used to draw separators between the lines; note that | |
703 | // the rectangle may be modified, typically to deflate it a bit before | |
704 | // passing to OnDrawItem() | |
705 | // | |
706 | // the base class version doesn't do anything | |
707 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
708 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
709 | ||
710 | ||
711 | // this method is used to draw the items background and, maybe, a border | |
712 | // around it | |
713 | // | |
714 | // the base class version implements a reasonable default behaviour which | |
715 | // consists in drawing the selected item with the standard background | |
716 | // colour and drawing a border around the item if it is either selected or | |
717 | // current | |
718 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
719 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
720 | ||
721 | ||
722 | PYPRIVATE; | |
723 | }; | |
724 | ||
725 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
726 | ||
727 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
728 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
729 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
730 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
731 | ||
732 | ||
733 | ||
734 | #include <wx/htmllbox.h> | |
735 | ||
736 | ||
737 | class wxPyHtmlListBox : public wxHtmlListBox | |
738 | { | |
739 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
740 | public: | |
741 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
742 | ||
743 | wxPyHtmlListBox(wxWindow *parent, | |
744 | wxWindowID id = wxID_ANY, | |
745 | const wxPoint& pos = wxDefaultPosition, | |
746 | const wxSize& size = wxDefaultSize, | |
747 | long style = 0, | |
748 | const wxString& name = wxPyVListBoxNameStr) | |
749 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
750 | {} | |
751 | ||
752 | // Overridable virtuals | |
753 | ||
754 | // this method must be implemented in the derived class and should return | |
755 | // the body (i.e. without <html>) of the HTML for the given item | |
756 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
757 | ||
758 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
759 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
760 | ||
761 | // TODO: | |
762 | // // this method allows to customize the selection appearance: it may be used | |
763 | // // to specify the colour of the text which normally has the given colour | |
764 | // // colFg when it is inside the selection | |
765 | // // | |
766 | // // by default, the original colour is not used at all and all text has the | |
767 | // // same (default for this system) colour inside selection | |
768 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
769 | ||
770 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
771 | // // background colour -- this is even more rarely used as you can change it | |
772 | // // globally using SetSelectionBackground() | |
773 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
774 | ||
775 | ||
776 | PYPRIVATE; | |
777 | }; | |
778 | ||
779 | ||
780 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
781 | ||
782 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
783 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
784 | ||
785 | ||
786 | ||
787 | ||
788 | ||
789 | #ifdef __WXMAC__ | |
790 | // implement dummy classes and such for wxMac | |
791 | ||
792 | class wxTaskBarIcon : public wxEvtHandler | |
793 | { | |
794 | public: | |
795 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
796 | }; | |
797 | ||
798 | ||
799 | class wxTaskBarIconEvent : public wxEvent | |
800 | { | |
801 | public: | |
802 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
803 | { wxPyRaiseNotImplemented(); } | |
804 | virtual wxEvent* Clone() const { return NULL; } | |
805 | }; | |
806 | ||
807 | enum { | |
808 | wxEVT_TASKBAR_MOVE = 0, | |
809 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
810 | wxEVT_TASKBAR_LEFT_UP = 0, | |
811 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
812 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
813 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
814 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
815 | }; | |
816 | #endif | |
817 | ||
818 | void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ | |
819 | ||
820 | ||
821 | ||
822 | } | |
823 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
824 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
825 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
826 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
827 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
828 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
829 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
830 | wxArrayString arr; | |
831 | self->GetFilenames(arr); | |
832 | return wxArrayString2PyList_helper(arr); | |
833 | } | |
834 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
835 | wxArrayString arr; | |
836 | self->GetPaths(arr); | |
837 | return wxArrayString2PyList_helper(arr); | |
838 | } | |
839 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
840 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
841 | } | |
842 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
843 | return new wxSingleChoiceDialog(parent, message, caption, | |
844 | choices, choices_array, NULL, style, pos); | |
845 | } | |
846 | ||
847 | #include <wx/mdi.h> | |
848 | ||
849 | // C++ version of Python aware wxWindow | |
850 | class wxPyWindow : public wxWindow | |
851 | { | |
852 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
853 | public: | |
854 | wxPyWindow() : wxWindow() {} | |
855 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
856 | const wxPoint& pos = wxDefaultPosition, | |
857 | const wxSize& size = wxDefaultSize, | |
858 | long style = 0, | |
859 | const wxString& name = wxPyPanelNameStr) | |
860 | : wxWindow(parent, id, pos, size, style, name) {} | |
861 | ||
862 | ||
863 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
864 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
865 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
866 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
867 | ||
868 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
869 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
870 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
871 | ||
872 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
873 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
874 | ||
875 | DEC_PYCALLBACK__(InitDialog); | |
876 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
877 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
878 | DEC_PYCALLBACK_BOOL_(Validate); | |
879 | ||
880 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
881 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
882 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
883 | ||
884 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
885 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
886 | ||
887 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
888 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
889 | ||
890 | PYPRIVATE; | |
891 | }; | |
892 | ||
893 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
894 | ||
895 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
896 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
897 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
898 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
899 | ||
900 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
901 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
902 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
903 | ||
904 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
905 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
906 | ||
907 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
908 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
909 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
910 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
911 | ||
912 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
913 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
914 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
915 | ||
916 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
917 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
918 | ||
919 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, ShouldInheritColours); | |
920 | IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); | |
921 | ||
922 | ||
923 | // C++ version of Python aware wxPanel | |
924 | class wxPyPanel : public wxPanel | |
925 | { | |
926 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
927 | public: | |
928 | wxPyPanel() : wxPanel() {} | |
929 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
930 | const wxPoint& pos = wxDefaultPosition, | |
931 | const wxSize& size = wxDefaultSize, | |
932 | long style = 0, | |
933 | const wxString& name = wxPyPanelNameStr) | |
934 | : wxPanel(parent, id, pos, size, style, name) {} | |
935 | ||
936 | ||
937 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
938 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
939 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
940 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
941 | ||
942 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
943 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
944 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
945 | ||
946 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
947 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
948 | ||
949 | DEC_PYCALLBACK__(InitDialog); | |
950 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
951 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
952 | DEC_PYCALLBACK_BOOL_(Validate); | |
953 | ||
954 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
955 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
956 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
957 | ||
958 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
959 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
960 | ||
961 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
962 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
963 | ||
964 | PYPRIVATE; | |
965 | }; | |
966 | ||
967 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
968 | ||
969 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
970 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
971 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
972 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
973 | ||
974 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
975 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
976 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
977 | ||
978 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
979 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
980 | ||
981 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
982 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
983 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
984 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
985 | ||
986 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
987 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
988 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
989 | ||
990 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
991 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
992 | ||
993 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, ShouldInheritColours); | |
994 | IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); | |
995 | ||
996 | // C++ version of Python aware wxScrolledWindow | |
997 | class wxPyScrolledWindow : public wxScrolledWindow | |
998 | { | |
999 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
1000 | public: | |
1001 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
1002 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
1003 | const wxPoint& pos = wxDefaultPosition, | |
1004 | const wxSize& size = wxDefaultSize, | |
1005 | long style = 0, | |
1006 | const wxString& name = wxPyPanelNameStr) | |
1007 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
1008 | ||
1009 | ||
1010 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1011 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1012 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1013 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1014 | ||
1015 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1016 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1017 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1018 | ||
1019 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1020 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1021 | ||
1022 | DEC_PYCALLBACK__(InitDialog); | |
1023 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1024 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1025 | DEC_PYCALLBACK_BOOL_(Validate); | |
1026 | ||
1027 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1028 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1029 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1030 | ||
1031 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1032 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1033 | ||
1034 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
1035 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
1036 | ||
1037 | PYPRIVATE; | |
1038 | }; | |
1039 | ||
1040 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
1041 | ||
1042 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
1043 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
1044 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
1045 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
1046 | ||
1047 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
1048 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
1049 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
1050 | ||
1051 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
1052 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
1053 | ||
1054 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
1055 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
1056 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
1057 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
1058 | ||
1059 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
1060 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
1061 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
1062 | ||
1063 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
1064 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
1065 | ||
1066 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); | |
1067 | IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); | |
1068 | ||
1069 | ||
1070 | #include "wx/wxPython/printfw.h" | |
1071 | ||
1072 | ||
1073 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
1074 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1075 | ||
1076 | ||
1077 | ||
1078 | // Since this one would be tough and ugly to do with the Macros... | |
1079 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1080 | bool hadErr = False; | |
1081 | bool found; | |
1082 | ||
1083 | bool blocked = wxPyBeginBlockThreads(); | |
1084 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1085 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1086 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1087 | PyObject* val; | |
1088 | ||
1089 | val = PyTuple_GetItem(result, 0); | |
1090 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1091 | else hadErr = True; | |
1092 | ||
1093 | val = PyTuple_GetItem(result, 1); | |
1094 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1095 | else hadErr = True; | |
1096 | ||
1097 | val = PyTuple_GetItem(result, 2); | |
1098 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1099 | else hadErr = True; | |
1100 | ||
1101 | val = PyTuple_GetItem(result, 3); | |
1102 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1103 | else hadErr = True; | |
1104 | } | |
1105 | else | |
1106 | hadErr = True; | |
1107 | ||
1108 | if (hadErr) { | |
1109 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1110 | PyErr_Print(); | |
1111 | } | |
1112 | Py_DECREF(result); | |
1113 | } | |
1114 | wxPyEndBlockThreads(blocked); | |
1115 | if (! found) | |
1116 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1117 | } | |
1118 | ||
1119 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1120 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1121 | } | |
1122 | ||
1123 | ||
1124 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1125 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1126 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1127 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1128 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1129 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1130 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1131 | ||
1132 | ||
1133 | ||
1134 | ||
1135 | ||
1136 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1137 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1138 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1139 | ||
1140 | ||
1141 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1142 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1143 | bool rval=False; \ | |
1144 | bool found; \ | |
1145 | bool blocked = wxPyBeginBlockThreads(); \ | |
1146 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
1147 | PyObject* win = wxPyMake_wxObject(a); \ | |
1148 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
1149 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
1150 | Py_DECREF(win); \ | |
1151 | Py_DECREF(dc); \ | |
1152 | } \ | |
1153 | wxPyEndBlockThreads(blocked); \ | |
1154 | if (! found) \ | |
1155 | rval = PCLASS::CBNAME(a, b); \ | |
1156 | return rval; \ | |
1157 | } \ | |
1158 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1159 | return PCLASS::CBNAME(a, b); \ | |
1160 | } | |
1161 | ||
1162 | ||
1163 | ||
1164 | ||
1165 | class wxPyPrintPreview : public wxPrintPreview | |
1166 | { | |
1167 | DECLARE_CLASS(wxPyPrintPreview) | |
1168 | public: | |
1169 | wxPyPrintPreview(wxPyPrintout* printout, | |
1170 | wxPyPrintout* printoutForPrinting, | |
1171 | wxPrintDialogData* data=NULL) | |
1172 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1173 | {} | |
1174 | wxPyPrintPreview(wxPyPrintout* printout, | |
1175 | wxPyPrintout* printoutForPrinting, | |
1176 | wxPrintData* data=NULL) | |
1177 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1178 | {} | |
1179 | ||
1180 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1181 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1182 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1183 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1184 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1185 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1186 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1187 | ||
1188 | PYPRIVATE; | |
1189 | }; | |
1190 | ||
1191 | // Stupid renamed classes... Fix this in 2.5... | |
1192 | #if defined(__WXMSW__) | |
1193 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1194 | #elif defined(__WXMAC__) | |
1195 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1196 | #else | |
1197 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1198 | #endif | |
1199 | ||
1200 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1201 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1202 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1203 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1204 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1205 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1206 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1207 | ||
1208 | ||
1209 | class wxPyPreviewFrame : public wxPreviewFrame | |
1210 | { | |
1211 | DECLARE_CLASS(wxPyPreviewFrame); | |
1212 | public: | |
1213 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1214 | const wxString& title, | |
1215 | const wxPoint& pos = wxDefaultPosition, | |
1216 | const wxSize& size = wxDefaultSize, | |
1217 | long style = wxDEFAULT_FRAME_STYLE, | |
1218 | const wxString& name = wxPyFrameNameStr) | |
1219 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1220 | {} | |
1221 | ||
1222 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1223 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1224 | ||
1225 | DEC_PYCALLBACK_VOID_(Initialize); | |
1226 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1227 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1228 | ||
1229 | PYPRIVATE; | |
1230 | }; | |
1231 | ||
1232 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1233 | ||
1234 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1235 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1236 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1237 | ||
1238 | ||
1239 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1240 | { | |
1241 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1242 | public: | |
1243 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1244 | long buttons, | |
1245 | wxWindow *parent, | |
1246 | const wxPoint& pos = wxDefaultPosition, | |
1247 | const wxSize& size = wxDefaultSize, | |
1248 | long style = 0, | |
1249 | const wxString& name = wxPyPanelNameStr) | |
1250 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1251 | {} | |
1252 | ||
1253 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1254 | ||
1255 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1256 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1257 | ||
1258 | PYPRIVATE; | |
1259 | }; | |
1260 | ||
1261 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1262 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1263 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1264 | ||
1265 | #ifdef __cplusplus | |
1266 | extern "C" { | |
1267 | #endif | |
1268 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1269 | PyObject *resultobj; | |
1270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1271 | int arg2 = (int) (int)-1 ; | |
1272 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1273 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1274 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1275 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1276 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1277 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1278 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1279 | wxPanel *result; | |
1280 | wxPoint temp3 ; | |
1281 | wxSize temp4 ; | |
1282 | bool temp6 = False ; | |
1283 | PyObject * obj0 = 0 ; | |
1284 | PyObject * obj1 = 0 ; | |
1285 | PyObject * obj2 = 0 ; | |
1286 | PyObject * obj3 = 0 ; | |
1287 | PyObject * obj4 = 0 ; | |
1288 | PyObject * obj5 = 0 ; | |
1289 | char *kwnames[] = { | |
1290 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1291 | }; | |
1292 | ||
1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1296 | if (obj1) { | |
1297 | arg2 = (int const) SWIG_AsInt(obj1); | |
1298 | if (PyErr_Occurred()) SWIG_fail; | |
1299 | } | |
1300 | if (obj2) { | |
1301 | { | |
1302 | arg3 = &temp3; | |
1303 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1304 | } | |
1305 | } | |
1306 | if (obj3) { | |
1307 | { | |
1308 | arg4 = &temp4; | |
1309 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1310 | } | |
1311 | } | |
1312 | if (obj4) { | |
1313 | arg5 = (long) SWIG_AsLong(obj4); | |
1314 | if (PyErr_Occurred()) SWIG_fail; | |
1315 | } | |
1316 | if (obj5) { | |
1317 | { | |
1318 | arg6 = wxString_in_helper(obj5); | |
1319 | if (arg6 == NULL) SWIG_fail; | |
1320 | temp6 = True; | |
1321 | } | |
1322 | } | |
1323 | { | |
1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1325 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1326 | ||
1327 | wxPyEndAllowThreads(__tstate); | |
1328 | if (PyErr_Occurred()) SWIG_fail; | |
1329 | } | |
1330 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); | |
1331 | { | |
1332 | if (temp6) | |
1333 | delete arg6; | |
1334 | } | |
1335 | return resultobj; | |
1336 | fail: | |
1337 | { | |
1338 | if (temp6) | |
1339 | delete arg6; | |
1340 | } | |
1341 | return NULL; | |
1342 | } | |
1343 | ||
1344 | ||
1345 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject *resultobj; | |
1347 | wxPanel *result; | |
1348 | char *kwnames[] = { | |
1349 | NULL | |
1350 | }; | |
1351 | ||
1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1353 | { | |
1354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1355 | result = (wxPanel *)new wxPanel(); | |
1356 | ||
1357 | wxPyEndAllowThreads(__tstate); | |
1358 | if (PyErr_Occurred()) SWIG_fail; | |
1359 | } | |
1360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); | |
1361 | return resultobj; | |
1362 | fail: | |
1363 | return NULL; | |
1364 | } | |
1365 | ||
1366 | ||
1367 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject *resultobj; | |
1369 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1370 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1371 | int arg3 = (int) (int)-1 ; | |
1372 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1373 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1374 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1375 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1376 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1377 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1378 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1379 | bool result; | |
1380 | wxPoint temp4 ; | |
1381 | wxSize temp5 ; | |
1382 | bool temp7 = False ; | |
1383 | PyObject * obj0 = 0 ; | |
1384 | PyObject * obj1 = 0 ; | |
1385 | PyObject * obj2 = 0 ; | |
1386 | PyObject * obj3 = 0 ; | |
1387 | PyObject * obj4 = 0 ; | |
1388 | PyObject * obj5 = 0 ; | |
1389 | PyObject * obj6 = 0 ; | |
1390 | char *kwnames[] = { | |
1391 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1392 | }; | |
1393 | ||
1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1399 | if (obj2) { | |
1400 | arg3 = (int const) SWIG_AsInt(obj2); | |
1401 | if (PyErr_Occurred()) SWIG_fail; | |
1402 | } | |
1403 | if (obj3) { | |
1404 | { | |
1405 | arg4 = &temp4; | |
1406 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1407 | } | |
1408 | } | |
1409 | if (obj4) { | |
1410 | { | |
1411 | arg5 = &temp5; | |
1412 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1413 | } | |
1414 | } | |
1415 | if (obj5) { | |
1416 | arg6 = (long) SWIG_AsLong(obj5); | |
1417 | if (PyErr_Occurred()) SWIG_fail; | |
1418 | } | |
1419 | if (obj6) { | |
1420 | { | |
1421 | arg7 = wxString_in_helper(obj6); | |
1422 | if (arg7 == NULL) SWIG_fail; | |
1423 | temp7 = True; | |
1424 | } | |
1425 | } | |
1426 | { | |
1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1428 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1429 | ||
1430 | wxPyEndAllowThreads(__tstate); | |
1431 | if (PyErr_Occurred()) SWIG_fail; | |
1432 | } | |
1433 | { | |
1434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1435 | } | |
1436 | { | |
1437 | if (temp7) | |
1438 | delete arg7; | |
1439 | } | |
1440 | return resultobj; | |
1441 | fail: | |
1442 | { | |
1443 | if (temp7) | |
1444 | delete arg7; | |
1445 | } | |
1446 | return NULL; | |
1447 | } | |
1448 | ||
1449 | ||
1450 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1451 | PyObject *resultobj; | |
1452 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1453 | PyObject * obj0 = 0 ; | |
1454 | char *kwnames[] = { | |
1455 | (char *) "self", NULL | |
1456 | }; | |
1457 | ||
1458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1461 | { | |
1462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1463 | (arg1)->InitDialog(); | |
1464 | ||
1465 | wxPyEndAllowThreads(__tstate); | |
1466 | if (PyErr_Occurred()) SWIG_fail; | |
1467 | } | |
1468 | Py_INCREF(Py_None); resultobj = Py_None; | |
1469 | return resultobj; | |
1470 | fail: | |
1471 | return NULL; | |
1472 | } | |
1473 | ||
1474 | ||
1475 | static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1476 | PyObject *resultobj; | |
1477 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1478 | wxVisualAttributes result; | |
1479 | PyObject * obj0 = 0 ; | |
1480 | char *kwnames[] = { | |
1481 | (char *) "variant", NULL | |
1482 | }; | |
1483 | ||
1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1485 | if (obj0) { | |
1486 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1487 | if (PyErr_Occurred()) SWIG_fail; | |
1488 | } | |
1489 | { | |
1490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1491 | result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1492 | ||
1493 | wxPyEndAllowThreads(__tstate); | |
1494 | if (PyErr_Occurred()) SWIG_fail; | |
1495 | } | |
1496 | { | |
1497 | wxVisualAttributes * resultptr; | |
1498 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1500 | } | |
1501 | return resultobj; | |
1502 | fail: | |
1503 | return NULL; | |
1504 | } | |
1505 | ||
1506 | ||
1507 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { | |
1508 | PyObject *obj; | |
1509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1510 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1511 | Py_INCREF(obj); | |
1512 | return Py_BuildValue((char *)""); | |
1513 | } | |
1514 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1515 | PyObject *resultobj; | |
1516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1517 | int arg2 = (int) (int)-1 ; | |
1518 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1519 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1520 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1521 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1522 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1523 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1524 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1525 | wxScrolledWindow *result; | |
1526 | wxPoint temp3 ; | |
1527 | wxSize temp4 ; | |
1528 | bool temp6 = False ; | |
1529 | PyObject * obj0 = 0 ; | |
1530 | PyObject * obj1 = 0 ; | |
1531 | PyObject * obj2 = 0 ; | |
1532 | PyObject * obj3 = 0 ; | |
1533 | PyObject * obj4 = 0 ; | |
1534 | PyObject * obj5 = 0 ; | |
1535 | char *kwnames[] = { | |
1536 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1537 | }; | |
1538 | ||
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1542 | if (obj1) { | |
1543 | arg2 = (int const) SWIG_AsInt(obj1); | |
1544 | if (PyErr_Occurred()) SWIG_fail; | |
1545 | } | |
1546 | if (obj2) { | |
1547 | { | |
1548 | arg3 = &temp3; | |
1549 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1550 | } | |
1551 | } | |
1552 | if (obj3) { | |
1553 | { | |
1554 | arg4 = &temp4; | |
1555 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1556 | } | |
1557 | } | |
1558 | if (obj4) { | |
1559 | arg5 = (long) SWIG_AsLong(obj4); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
1562 | if (obj5) { | |
1563 | { | |
1564 | arg6 = wxString_in_helper(obj5); | |
1565 | if (arg6 == NULL) SWIG_fail; | |
1566 | temp6 = True; | |
1567 | } | |
1568 | } | |
1569 | { | |
1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1571 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1572 | ||
1573 | wxPyEndAllowThreads(__tstate); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1577 | { | |
1578 | if (temp6) | |
1579 | delete arg6; | |
1580 | } | |
1581 | return resultobj; | |
1582 | fail: | |
1583 | { | |
1584 | if (temp6) | |
1585 | delete arg6; | |
1586 | } | |
1587 | return NULL; | |
1588 | } | |
1589 | ||
1590 | ||
1591 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject *resultobj; | |
1593 | wxScrolledWindow *result; | |
1594 | char *kwnames[] = { | |
1595 | NULL | |
1596 | }; | |
1597 | ||
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1599 | { | |
1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1601 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1602 | ||
1603 | wxPyEndAllowThreads(__tstate); | |
1604 | if (PyErr_Occurred()) SWIG_fail; | |
1605 | } | |
1606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1607 | return resultobj; | |
1608 | fail: | |
1609 | return NULL; | |
1610 | } | |
1611 | ||
1612 | ||
1613 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject *resultobj; | |
1615 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1616 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1617 | int arg3 = (int) (int)-1 ; | |
1618 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1619 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1620 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1621 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1622 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1623 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1624 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1625 | bool result; | |
1626 | wxPoint temp4 ; | |
1627 | wxSize temp5 ; | |
1628 | bool temp7 = False ; | |
1629 | PyObject * obj0 = 0 ; | |
1630 | PyObject * obj1 = 0 ; | |
1631 | PyObject * obj2 = 0 ; | |
1632 | PyObject * obj3 = 0 ; | |
1633 | PyObject * obj4 = 0 ; | |
1634 | PyObject * obj5 = 0 ; | |
1635 | PyObject * obj6 = 0 ; | |
1636 | char *kwnames[] = { | |
1637 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1638 | }; | |
1639 | ||
1640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1645 | if (obj2) { | |
1646 | arg3 = (int const) SWIG_AsInt(obj2); | |
1647 | if (PyErr_Occurred()) SWIG_fail; | |
1648 | } | |
1649 | if (obj3) { | |
1650 | { | |
1651 | arg4 = &temp4; | |
1652 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1653 | } | |
1654 | } | |
1655 | if (obj4) { | |
1656 | { | |
1657 | arg5 = &temp5; | |
1658 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1659 | } | |
1660 | } | |
1661 | if (obj5) { | |
1662 | arg6 = (long) SWIG_AsLong(obj5); | |
1663 | if (PyErr_Occurred()) SWIG_fail; | |
1664 | } | |
1665 | if (obj6) { | |
1666 | { | |
1667 | arg7 = wxString_in_helper(obj6); | |
1668 | if (arg7 == NULL) SWIG_fail; | |
1669 | temp7 = True; | |
1670 | } | |
1671 | } | |
1672 | { | |
1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1674 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1675 | ||
1676 | wxPyEndAllowThreads(__tstate); | |
1677 | if (PyErr_Occurred()) SWIG_fail; | |
1678 | } | |
1679 | { | |
1680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1681 | } | |
1682 | { | |
1683 | if (temp7) | |
1684 | delete arg7; | |
1685 | } | |
1686 | return resultobj; | |
1687 | fail: | |
1688 | { | |
1689 | if (temp7) | |
1690 | delete arg7; | |
1691 | } | |
1692 | return NULL; | |
1693 | } | |
1694 | ||
1695 | ||
1696 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1697 | PyObject *resultobj; | |
1698 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1699 | int arg2 ; | |
1700 | int arg3 ; | |
1701 | int arg4 ; | |
1702 | int arg5 ; | |
1703 | int arg6 = (int) 0 ; | |
1704 | int arg7 = (int) 0 ; | |
1705 | bool arg8 = (bool) False ; | |
1706 | PyObject * obj0 = 0 ; | |
1707 | PyObject * obj1 = 0 ; | |
1708 | PyObject * obj2 = 0 ; | |
1709 | PyObject * obj3 = 0 ; | |
1710 | PyObject * obj4 = 0 ; | |
1711 | PyObject * obj5 = 0 ; | |
1712 | PyObject * obj6 = 0 ; | |
1713 | PyObject * obj7 = 0 ; | |
1714 | char *kwnames[] = { | |
1715 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1716 | }; | |
1717 | ||
1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1721 | arg2 = (int) SWIG_AsInt(obj1); | |
1722 | if (PyErr_Occurred()) SWIG_fail; | |
1723 | arg3 = (int) SWIG_AsInt(obj2); | |
1724 | if (PyErr_Occurred()) SWIG_fail; | |
1725 | arg4 = (int) SWIG_AsInt(obj3); | |
1726 | if (PyErr_Occurred()) SWIG_fail; | |
1727 | arg5 = (int) SWIG_AsInt(obj4); | |
1728 | if (PyErr_Occurred()) SWIG_fail; | |
1729 | if (obj5) { | |
1730 | arg6 = (int) SWIG_AsInt(obj5); | |
1731 | if (PyErr_Occurred()) SWIG_fail; | |
1732 | } | |
1733 | if (obj6) { | |
1734 | arg7 = (int) SWIG_AsInt(obj6); | |
1735 | if (PyErr_Occurred()) SWIG_fail; | |
1736 | } | |
1737 | if (obj7) { | |
1738 | arg8 = (bool) SWIG_AsBool(obj7); | |
1739 | if (PyErr_Occurred()) SWIG_fail; | |
1740 | } | |
1741 | { | |
1742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1743 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1744 | ||
1745 | wxPyEndAllowThreads(__tstate); | |
1746 | if (PyErr_Occurred()) SWIG_fail; | |
1747 | } | |
1748 | Py_INCREF(Py_None); resultobj = Py_None; | |
1749 | return resultobj; | |
1750 | fail: | |
1751 | return NULL; | |
1752 | } | |
1753 | ||
1754 | ||
1755 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1756 | PyObject *resultobj; | |
1757 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1758 | int arg2 ; | |
1759 | int arg3 ; | |
1760 | PyObject * obj0 = 0 ; | |
1761 | PyObject * obj1 = 0 ; | |
1762 | PyObject * obj2 = 0 ; | |
1763 | char *kwnames[] = { | |
1764 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1765 | }; | |
1766 | ||
1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1770 | arg2 = (int) SWIG_AsInt(obj1); | |
1771 | if (PyErr_Occurred()) SWIG_fail; | |
1772 | arg3 = (int) SWIG_AsInt(obj2); | |
1773 | if (PyErr_Occurred()) SWIG_fail; | |
1774 | { | |
1775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1776 | (arg1)->Scroll(arg2,arg3); | |
1777 | ||
1778 | wxPyEndAllowThreads(__tstate); | |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
1780 | } | |
1781 | Py_INCREF(Py_None); resultobj = Py_None; | |
1782 | return resultobj; | |
1783 | fail: | |
1784 | return NULL; | |
1785 | } | |
1786 | ||
1787 | ||
1788 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject *resultobj; | |
1790 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1791 | int arg2 ; | |
1792 | int result; | |
1793 | PyObject * obj0 = 0 ; | |
1794 | PyObject * obj1 = 0 ; | |
1795 | char *kwnames[] = { | |
1796 | (char *) "self",(char *) "orient", NULL | |
1797 | }; | |
1798 | ||
1799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1802 | arg2 = (int) SWIG_AsInt(obj1); | |
1803 | if (PyErr_Occurred()) SWIG_fail; | |
1804 | { | |
1805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1806 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1807 | ||
1808 | wxPyEndAllowThreads(__tstate); | |
1809 | if (PyErr_Occurred()) SWIG_fail; | |
1810 | } | |
1811 | resultobj = SWIG_FromInt((int)result); | |
1812 | return resultobj; | |
1813 | fail: | |
1814 | return NULL; | |
1815 | } | |
1816 | ||
1817 | ||
1818 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject *resultobj; | |
1820 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1821 | int arg2 ; | |
1822 | int arg3 ; | |
1823 | PyObject * obj0 = 0 ; | |
1824 | PyObject * obj1 = 0 ; | |
1825 | PyObject * obj2 = 0 ; | |
1826 | char *kwnames[] = { | |
1827 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1828 | }; | |
1829 | ||
1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1833 | arg2 = (int) SWIG_AsInt(obj1); | |
1834 | if (PyErr_Occurred()) SWIG_fail; | |
1835 | arg3 = (int) SWIG_AsInt(obj2); | |
1836 | if (PyErr_Occurred()) SWIG_fail; | |
1837 | { | |
1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1839 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1840 | ||
1841 | wxPyEndAllowThreads(__tstate); | |
1842 | if (PyErr_Occurred()) SWIG_fail; | |
1843 | } | |
1844 | Py_INCREF(Py_None); resultobj = Py_None; | |
1845 | return resultobj; | |
1846 | fail: | |
1847 | return NULL; | |
1848 | } | |
1849 | ||
1850 | ||
1851 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject *resultobj; | |
1853 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1854 | int arg2 ; | |
1855 | int arg3 ; | |
1856 | PyObject * obj0 = 0 ; | |
1857 | PyObject * obj1 = 0 ; | |
1858 | PyObject * obj2 = 0 ; | |
1859 | char *kwnames[] = { | |
1860 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1861 | }; | |
1862 | ||
1863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1866 | arg2 = (int) SWIG_AsInt(obj1); | |
1867 | if (PyErr_Occurred()) SWIG_fail; | |
1868 | arg3 = (int) SWIG_AsInt(obj2); | |
1869 | if (PyErr_Occurred()) SWIG_fail; | |
1870 | { | |
1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1872 | (arg1)->SetScrollRate(arg2,arg3); | |
1873 | ||
1874 | wxPyEndAllowThreads(__tstate); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
1876 | } | |
1877 | Py_INCREF(Py_None); resultobj = Py_None; | |
1878 | return resultobj; | |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1885 | PyObject *resultobj; | |
1886 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1887 | int *arg2 = (int *) 0 ; | |
1888 | int *arg3 = (int *) 0 ; | |
1889 | int temp2 ; | |
1890 | int temp3 ; | |
1891 | PyObject * obj0 = 0 ; | |
1892 | char *kwnames[] = { | |
1893 | (char *) "self", NULL | |
1894 | }; | |
1895 | ||
1896 | arg2 = &temp2; | |
1897 | arg3 = &temp3; | |
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1901 | { | |
1902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1903 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1904 | ||
1905 | wxPyEndAllowThreads(__tstate); | |
1906 | if (PyErr_Occurred()) SWIG_fail; | |
1907 | } | |
1908 | Py_INCREF(Py_None); resultobj = Py_None; | |
1909 | { | |
1910 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1911 | resultobj = t_output_helper(resultobj,o); | |
1912 | } | |
1913 | { | |
1914 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1915 | resultobj = t_output_helper(resultobj,o); | |
1916 | } | |
1917 | return resultobj; | |
1918 | fail: | |
1919 | return NULL; | |
1920 | } | |
1921 | ||
1922 | ||
1923 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1924 | PyObject *resultobj; | |
1925 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1926 | bool arg2 ; | |
1927 | bool arg3 ; | |
1928 | PyObject * obj0 = 0 ; | |
1929 | PyObject * obj1 = 0 ; | |
1930 | PyObject * obj2 = 0 ; | |
1931 | char *kwnames[] = { | |
1932 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1933 | }; | |
1934 | ||
1935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1938 | arg2 = (bool) SWIG_AsBool(obj1); | |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
1940 | arg3 = (bool) SWIG_AsBool(obj2); | |
1941 | if (PyErr_Occurred()) SWIG_fail; | |
1942 | { | |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | (arg1)->EnableScrolling(arg2,arg3); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | Py_INCREF(Py_None); resultobj = Py_None; | |
1950 | return resultobj; | |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
1956 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject *resultobj; | |
1958 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1959 | int *arg2 = (int *) 0 ; | |
1960 | int *arg3 = (int *) 0 ; | |
1961 | int temp2 ; | |
1962 | int temp3 ; | |
1963 | PyObject * obj0 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "self", NULL | |
1966 | }; | |
1967 | ||
1968 | arg2 = &temp2; | |
1969 | arg3 = &temp3; | |
1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1973 | { | |
1974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1975 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1976 | ||
1977 | wxPyEndAllowThreads(__tstate); | |
1978 | if (PyErr_Occurred()) SWIG_fail; | |
1979 | } | |
1980 | Py_INCREF(Py_None); resultobj = Py_None; | |
1981 | { | |
1982 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1983 | resultobj = t_output_helper(resultobj,o); | |
1984 | } | |
1985 | { | |
1986 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1987 | resultobj = t_output_helper(resultobj,o); | |
1988 | } | |
1989 | return resultobj; | |
1990 | fail: | |
1991 | return NULL; | |
1992 | } | |
1993 | ||
1994 | ||
1995 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1996 | PyObject *resultobj; | |
1997 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1998 | double arg2 ; | |
1999 | double arg3 ; | |
2000 | PyObject * obj0 = 0 ; | |
2001 | PyObject * obj1 = 0 ; | |
2002 | PyObject * obj2 = 0 ; | |
2003 | char *kwnames[] = { | |
2004 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
2005 | }; | |
2006 | ||
2007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2010 | arg2 = (double) SWIG_AsDouble(obj1); | |
2011 | if (PyErr_Occurred()) SWIG_fail; | |
2012 | arg3 = (double) SWIG_AsDouble(obj2); | |
2013 | if (PyErr_Occurred()) SWIG_fail; | |
2014 | { | |
2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2016 | (arg1)->SetScale(arg2,arg3); | |
2017 | ||
2018 | wxPyEndAllowThreads(__tstate); | |
2019 | if (PyErr_Occurred()) SWIG_fail; | |
2020 | } | |
2021 | Py_INCREF(Py_None); resultobj = Py_None; | |
2022 | return resultobj; | |
2023 | fail: | |
2024 | return NULL; | |
2025 | } | |
2026 | ||
2027 | ||
2028 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2031 | double result; | |
2032 | PyObject * obj0 = 0 ; | |
2033 | char *kwnames[] = { | |
2034 | (char *) "self", NULL | |
2035 | }; | |
2036 | ||
2037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
2038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2040 | { | |
2041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2042 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
2043 | ||
2044 | wxPyEndAllowThreads(__tstate); | |
2045 | if (PyErr_Occurred()) SWIG_fail; | |
2046 | } | |
2047 | resultobj = SWIG_FromDouble((double)result); | |
2048 | return resultobj; | |
2049 | fail: | |
2050 | return NULL; | |
2051 | } | |
2052 | ||
2053 | ||
2054 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2055 | PyObject *resultobj; | |
2056 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2057 | double result; | |
2058 | PyObject * obj0 = 0 ; | |
2059 | char *kwnames[] = { | |
2060 | (char *) "self", NULL | |
2061 | }; | |
2062 | ||
2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
2064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2066 | { | |
2067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2068 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
2069 | ||
2070 | wxPyEndAllowThreads(__tstate); | |
2071 | if (PyErr_Occurred()) SWIG_fail; | |
2072 | } | |
2073 | resultobj = SWIG_FromDouble((double)result); | |
2074 | return resultobj; | |
2075 | fail: | |
2076 | return NULL; | |
2077 | } | |
2078 | ||
2079 | ||
2080 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2081 | PyObject *resultobj; | |
2082 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2083 | wxPoint *arg2 = 0 ; | |
2084 | wxPoint result; | |
2085 | wxPoint temp2 ; | |
2086 | PyObject * obj0 = 0 ; | |
2087 | PyObject * obj1 = 0 ; | |
2088 | ||
2089 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
2090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2092 | { | |
2093 | arg2 = &temp2; | |
2094 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2095 | } | |
2096 | { | |
2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2098 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
2099 | ||
2100 | wxPyEndAllowThreads(__tstate); | |
2101 | if (PyErr_Occurred()) SWIG_fail; | |
2102 | } | |
2103 | { | |
2104 | wxPoint * resultptr; | |
2105 | resultptr = new wxPoint((wxPoint &) result); | |
2106 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2107 | } | |
2108 | return resultobj; | |
2109 | fail: | |
2110 | return NULL; | |
2111 | } | |
2112 | ||
2113 | ||
2114 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2115 | PyObject *resultobj; | |
2116 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2117 | int arg2 ; | |
2118 | int arg3 ; | |
2119 | int *arg4 = (int *) 0 ; | |
2120 | int *arg5 = (int *) 0 ; | |
2121 | int temp4 ; | |
2122 | int temp5 ; | |
2123 | PyObject * obj0 = 0 ; | |
2124 | PyObject * obj1 = 0 ; | |
2125 | PyObject * obj2 = 0 ; | |
2126 | ||
2127 | arg4 = &temp4; | |
2128 | arg5 = &temp5; | |
2129 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2132 | arg2 = (int) SWIG_AsInt(obj1); | |
2133 | if (PyErr_Occurred()) SWIG_fail; | |
2134 | arg3 = (int) SWIG_AsInt(obj2); | |
2135 | if (PyErr_Occurred()) SWIG_fail; | |
2136 | { | |
2137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2138 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2139 | ||
2140 | wxPyEndAllowThreads(__tstate); | |
2141 | if (PyErr_Occurred()) SWIG_fail; | |
2142 | } | |
2143 | Py_INCREF(Py_None); resultobj = Py_None; | |
2144 | { | |
2145 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2146 | resultobj = t_output_helper(resultobj,o); | |
2147 | } | |
2148 | { | |
2149 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2150 | resultobj = t_output_helper(resultobj,o); | |
2151 | } | |
2152 | return resultobj; | |
2153 | fail: | |
2154 | return NULL; | |
2155 | } | |
2156 | ||
2157 | ||
2158 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2159 | int argc; | |
2160 | PyObject *argv[4]; | |
2161 | int ii; | |
2162 | ||
2163 | argc = PyObject_Length(args); | |
2164 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2165 | argv[ii] = PyTuple_GetItem(args,ii); | |
2166 | } | |
2167 | if (argc == 2) { | |
2168 | int _v; | |
2169 | { | |
2170 | void *ptr; | |
2171 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2172 | _v = 0; | |
2173 | PyErr_Clear(); | |
2174 | } else { | |
2175 | _v = 1; | |
2176 | } | |
2177 | } | |
2178 | if (_v) { | |
2179 | { | |
2180 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2181 | } | |
2182 | if (_v) { | |
2183 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2184 | } | |
2185 | } | |
2186 | } | |
2187 | if (argc == 3) { | |
2188 | int _v; | |
2189 | { | |
2190 | void *ptr; | |
2191 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2192 | _v = 0; | |
2193 | PyErr_Clear(); | |
2194 | } else { | |
2195 | _v = 1; | |
2196 | } | |
2197 | } | |
2198 | if (_v) { | |
2199 | _v = SWIG_CheckInt(argv[1]); | |
2200 | if (_v) { | |
2201 | _v = SWIG_CheckInt(argv[2]); | |
2202 | if (_v) { | |
2203 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2204 | } | |
2205 | } | |
2206 | } | |
2207 | } | |
2208 | ||
2209 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2215 | PyObject *resultobj; | |
2216 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2217 | wxPoint *arg2 = 0 ; | |
2218 | wxPoint result; | |
2219 | wxPoint temp2 ; | |
2220 | PyObject * obj0 = 0 ; | |
2221 | PyObject * obj1 = 0 ; | |
2222 | ||
2223 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2226 | { | |
2227 | arg2 = &temp2; | |
2228 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2229 | } | |
2230 | { | |
2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2232 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2233 | ||
2234 | wxPyEndAllowThreads(__tstate); | |
2235 | if (PyErr_Occurred()) SWIG_fail; | |
2236 | } | |
2237 | { | |
2238 | wxPoint * resultptr; | |
2239 | resultptr = new wxPoint((wxPoint &) result); | |
2240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2241 | } | |
2242 | return resultobj; | |
2243 | fail: | |
2244 | return NULL; | |
2245 | } | |
2246 | ||
2247 | ||
2248 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2249 | PyObject *resultobj; | |
2250 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2251 | int arg2 ; | |
2252 | int arg3 ; | |
2253 | int *arg4 = (int *) 0 ; | |
2254 | int *arg5 = (int *) 0 ; | |
2255 | int temp4 ; | |
2256 | int temp5 ; | |
2257 | PyObject * obj0 = 0 ; | |
2258 | PyObject * obj1 = 0 ; | |
2259 | PyObject * obj2 = 0 ; | |
2260 | ||
2261 | arg4 = &temp4; | |
2262 | arg5 = &temp5; | |
2263 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2266 | arg2 = (int) SWIG_AsInt(obj1); | |
2267 | if (PyErr_Occurred()) SWIG_fail; | |
2268 | arg3 = (int) SWIG_AsInt(obj2); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2272 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2273 | ||
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
2277 | Py_INCREF(Py_None); resultobj = Py_None; | |
2278 | { | |
2279 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2280 | resultobj = t_output_helper(resultobj,o); | |
2281 | } | |
2282 | { | |
2283 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2284 | resultobj = t_output_helper(resultobj,o); | |
2285 | } | |
2286 | return resultobj; | |
2287 | fail: | |
2288 | return NULL; | |
2289 | } | |
2290 | ||
2291 | ||
2292 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2293 | int argc; | |
2294 | PyObject *argv[4]; | |
2295 | int ii; | |
2296 | ||
2297 | argc = PyObject_Length(args); | |
2298 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2299 | argv[ii] = PyTuple_GetItem(args,ii); | |
2300 | } | |
2301 | if (argc == 2) { | |
2302 | int _v; | |
2303 | { | |
2304 | void *ptr; | |
2305 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2306 | _v = 0; | |
2307 | PyErr_Clear(); | |
2308 | } else { | |
2309 | _v = 1; | |
2310 | } | |
2311 | } | |
2312 | if (_v) { | |
2313 | { | |
2314 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2315 | } | |
2316 | if (_v) { | |
2317 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2318 | } | |
2319 | } | |
2320 | } | |
2321 | if (argc == 3) { | |
2322 | int _v; | |
2323 | { | |
2324 | void *ptr; | |
2325 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2326 | _v = 0; | |
2327 | PyErr_Clear(); | |
2328 | } else { | |
2329 | _v = 1; | |
2330 | } | |
2331 | } | |
2332 | if (_v) { | |
2333 | _v = SWIG_CheckInt(argv[1]); | |
2334 | if (_v) { | |
2335 | _v = SWIG_CheckInt(argv[2]); | |
2336 | if (_v) { | |
2337 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2338 | } | |
2339 | } | |
2340 | } | |
2341 | } | |
2342 | ||
2343 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
2348 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject *resultobj; | |
2350 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2351 | PyObject * obj0 = 0 ; | |
2352 | char *kwnames[] = { | |
2353 | (char *) "self", NULL | |
2354 | }; | |
2355 | ||
2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2359 | { | |
2360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2361 | (arg1)->AdjustScrollbars(); | |
2362 | ||
2363 | wxPyEndAllowThreads(__tstate); | |
2364 | if (PyErr_Occurred()) SWIG_fail; | |
2365 | } | |
2366 | Py_INCREF(Py_None); resultobj = Py_None; | |
2367 | return resultobj; | |
2368 | fail: | |
2369 | return NULL; | |
2370 | } | |
2371 | ||
2372 | ||
2373 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject *resultobj; | |
2375 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2376 | wxScrollWinEvent *arg2 = 0 ; | |
2377 | int result; | |
2378 | PyObject * obj0 = 0 ; | |
2379 | PyObject * obj1 = 0 ; | |
2380 | char *kwnames[] = { | |
2381 | (char *) "self",(char *) "event", NULL | |
2382 | }; | |
2383 | ||
2384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2389 | SWIG_fail; | |
2390 | if (arg2 == NULL) { | |
2391 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2392 | SWIG_fail; | |
2393 | } | |
2394 | { | |
2395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2396 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2397 | ||
2398 | wxPyEndAllowThreads(__tstate); | |
2399 | if (PyErr_Occurred()) SWIG_fail; | |
2400 | } | |
2401 | resultobj = SWIG_FromInt((int)result); | |
2402 | return resultobj; | |
2403 | fail: | |
2404 | return NULL; | |
2405 | } | |
2406 | ||
2407 | ||
2408 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2409 | PyObject *resultobj; | |
2410 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2411 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2412 | PyObject * obj0 = 0 ; | |
2413 | PyObject * obj1 = 0 ; | |
2414 | char *kwnames[] = { | |
2415 | (char *) "self",(char *) "target", NULL | |
2416 | }; | |
2417 | ||
2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2421 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2423 | { | |
2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2425 | (arg1)->SetTargetWindow(arg2); | |
2426 | ||
2427 | wxPyEndAllowThreads(__tstate); | |
2428 | if (PyErr_Occurred()) SWIG_fail; | |
2429 | } | |
2430 | Py_INCREF(Py_None); resultobj = Py_None; | |
2431 | return resultobj; | |
2432 | fail: | |
2433 | return NULL; | |
2434 | } | |
2435 | ||
2436 | ||
2437 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2438 | PyObject *resultobj; | |
2439 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2440 | wxWindow *result; | |
2441 | PyObject * obj0 = 0 ; | |
2442 | char *kwnames[] = { | |
2443 | (char *) "self", NULL | |
2444 | }; | |
2445 | ||
2446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2449 | { | |
2450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2451 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2452 | ||
2453 | wxPyEndAllowThreads(__tstate); | |
2454 | if (PyErr_Occurred()) SWIG_fail; | |
2455 | } | |
2456 | { | |
2457 | resultobj = wxPyMake_wxObject(result); | |
2458 | } | |
2459 | return resultobj; | |
2460 | fail: | |
2461 | return NULL; | |
2462 | } | |
2463 | ||
2464 | ||
2465 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2466 | PyObject *resultobj; | |
2467 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2468 | wxRect *arg2 = 0 ; | |
2469 | wxRect temp2 ; | |
2470 | PyObject * obj0 = 0 ; | |
2471 | PyObject * obj1 = 0 ; | |
2472 | char *kwnames[] = { | |
2473 | (char *) "self",(char *) "rect", NULL | |
2474 | }; | |
2475 | ||
2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2479 | { | |
2480 | arg2 = &temp2; | |
2481 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2482 | } | |
2483 | { | |
2484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2485 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2486 | ||
2487 | wxPyEndAllowThreads(__tstate); | |
2488 | if (PyErr_Occurred()) SWIG_fail; | |
2489 | } | |
2490 | Py_INCREF(Py_None); resultobj = Py_None; | |
2491 | return resultobj; | |
2492 | fail: | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
2497 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject *resultobj; | |
2499 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2500 | wxRect result; | |
2501 | PyObject * obj0 = 0 ; | |
2502 | char *kwnames[] = { | |
2503 | (char *) "self", NULL | |
2504 | }; | |
2505 | ||
2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2509 | { | |
2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2511 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2512 | ||
2513 | wxPyEndAllowThreads(__tstate); | |
2514 | if (PyErr_Occurred()) SWIG_fail; | |
2515 | } | |
2516 | { | |
2517 | wxRect * resultptr; | |
2518 | resultptr = new wxRect((wxRect &) result); | |
2519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2520 | } | |
2521 | return resultobj; | |
2522 | fail: | |
2523 | return NULL; | |
2524 | } | |
2525 | ||
2526 | ||
2527 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2528 | PyObject *resultobj; | |
2529 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2530 | wxVisualAttributes result; | |
2531 | PyObject * obj0 = 0 ; | |
2532 | char *kwnames[] = { | |
2533 | (char *) "variant", NULL | |
2534 | }; | |
2535 | ||
2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2537 | if (obj0) { | |
2538 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2539 | if (PyErr_Occurred()) SWIG_fail; | |
2540 | } | |
2541 | { | |
2542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2543 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2544 | ||
2545 | wxPyEndAllowThreads(__tstate); | |
2546 | if (PyErr_Occurred()) SWIG_fail; | |
2547 | } | |
2548 | { | |
2549 | wxVisualAttributes * resultptr; | |
2550 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2551 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2552 | } | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
2559 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
2560 | PyObject *obj; | |
2561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2562 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2563 | Py_INCREF(obj); | |
2564 | return Py_BuildValue((char *)""); | |
2565 | } | |
2566 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2567 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2568 | return 1; | |
2569 | } | |
2570 | ||
2571 | ||
2572 | static PyObject *_wrap_FrameNameStr_get() { | |
2573 | PyObject *pyobj; | |
2574 | ||
2575 | { | |
2576 | #if wxUSE_UNICODE | |
2577 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2578 | #else | |
2579 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2580 | #endif | |
2581 | } | |
2582 | return pyobj; | |
2583 | } | |
2584 | ||
2585 | ||
2586 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2587 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2588 | return 1; | |
2589 | } | |
2590 | ||
2591 | ||
2592 | static PyObject *_wrap_DialogNameStr_get() { | |
2593 | PyObject *pyobj; | |
2594 | ||
2595 | { | |
2596 | #if wxUSE_UNICODE | |
2597 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2598 | #else | |
2599 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2600 | #endif | |
2601 | } | |
2602 | return pyobj; | |
2603 | } | |
2604 | ||
2605 | ||
2606 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2607 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2608 | return 1; | |
2609 | } | |
2610 | ||
2611 | ||
2612 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2613 | PyObject *pyobj; | |
2614 | ||
2615 | { | |
2616 | #if wxUSE_UNICODE | |
2617 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2618 | #else | |
2619 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2620 | #endif | |
2621 | } | |
2622 | return pyobj; | |
2623 | } | |
2624 | ||
2625 | ||
2626 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2627 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2628 | return 1; | |
2629 | } | |
2630 | ||
2631 | ||
2632 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2633 | PyObject *pyobj; | |
2634 | ||
2635 | { | |
2636 | #if wxUSE_UNICODE | |
2637 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2638 | #else | |
2639 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2640 | #endif | |
2641 | } | |
2642 | return pyobj; | |
2643 | } | |
2644 | ||
2645 | ||
2646 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2647 | PyObject *resultobj; | |
2648 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2649 | bool arg2 = (bool) True ; | |
2650 | PyObject * obj0 = 0 ; | |
2651 | PyObject * obj1 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "self",(char *) "maximize", NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2659 | if (obj1) { | |
2660 | arg2 = (bool) SWIG_AsBool(obj1); | |
2661 | if (PyErr_Occurred()) SWIG_fail; | |
2662 | } | |
2663 | { | |
2664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2665 | (arg1)->Maximize(arg2); | |
2666 | ||
2667 | wxPyEndAllowThreads(__tstate); | |
2668 | if (PyErr_Occurred()) SWIG_fail; | |
2669 | } | |
2670 | Py_INCREF(Py_None); resultobj = Py_None; | |
2671 | return resultobj; | |
2672 | fail: | |
2673 | return NULL; | |
2674 | } | |
2675 | ||
2676 | ||
2677 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2678 | PyObject *resultobj; | |
2679 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2680 | PyObject * obj0 = 0 ; | |
2681 | char *kwnames[] = { | |
2682 | (char *) "self", NULL | |
2683 | }; | |
2684 | ||
2685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2688 | { | |
2689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2690 | (arg1)->Restore(); | |
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_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2703 | PyObject *resultobj; | |
2704 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2705 | bool arg2 = (bool) True ; | |
2706 | PyObject * obj0 = 0 ; | |
2707 | PyObject * obj1 = 0 ; | |
2708 | char *kwnames[] = { | |
2709 | (char *) "self",(char *) "iconize", NULL | |
2710 | }; | |
2711 | ||
2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",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 (obj1) { | |
2716 | arg2 = (bool) SWIG_AsBool(obj1); | |
2717 | if (PyErr_Occurred()) SWIG_fail; | |
2718 | } | |
2719 | { | |
2720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2721 | (arg1)->Iconize(arg2); | |
2722 | ||
2723 | wxPyEndAllowThreads(__tstate); | |
2724 | if (PyErr_Occurred()) SWIG_fail; | |
2725 | } | |
2726 | Py_INCREF(Py_None); resultobj = Py_None; | |
2727 | return resultobj; | |
2728 | fail: | |
2729 | return NULL; | |
2730 | } | |
2731 | ||
2732 | ||
2733 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2734 | PyObject *resultobj; | |
2735 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2736 | bool result; | |
2737 | PyObject * obj0 = 0 ; | |
2738 | char *kwnames[] = { | |
2739 | (char *) "self", NULL | |
2740 | }; | |
2741 | ||
2742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2745 | { | |
2746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2747 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2748 | ||
2749 | wxPyEndAllowThreads(__tstate); | |
2750 | if (PyErr_Occurred()) SWIG_fail; | |
2751 | } | |
2752 | { | |
2753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2754 | } | |
2755 | return resultobj; | |
2756 | fail: | |
2757 | return NULL; | |
2758 | } | |
2759 | ||
2760 | ||
2761 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2762 | PyObject *resultobj; | |
2763 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2764 | bool result; | |
2765 | PyObject * obj0 = 0 ; | |
2766 | char *kwnames[] = { | |
2767 | (char *) "self", NULL | |
2768 | }; | |
2769 | ||
2770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2773 | { | |
2774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2775 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2776 | ||
2777 | wxPyEndAllowThreads(__tstate); | |
2778 | if (PyErr_Occurred()) SWIG_fail; | |
2779 | } | |
2780 | { | |
2781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2782 | } | |
2783 | return resultobj; | |
2784 | fail: | |
2785 | return NULL; | |
2786 | } | |
2787 | ||
2788 | ||
2789 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject *resultobj; | |
2791 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2792 | wxIcon result; | |
2793 | PyObject * obj0 = 0 ; | |
2794 | char *kwnames[] = { | |
2795 | (char *) "self", NULL | |
2796 | }; | |
2797 | ||
2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2801 | { | |
2802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2803 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2804 | ||
2805 | wxPyEndAllowThreads(__tstate); | |
2806 | if (PyErr_Occurred()) SWIG_fail; | |
2807 | } | |
2808 | { | |
2809 | wxIcon * resultptr; | |
2810 | resultptr = new wxIcon((wxIcon &) result); | |
2811 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2812 | } | |
2813 | return resultobj; | |
2814 | fail: | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
2819 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2820 | PyObject *resultobj; | |
2821 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2822 | wxIcon *arg2 = 0 ; | |
2823 | PyObject * obj0 = 0 ; | |
2824 | PyObject * obj1 = 0 ; | |
2825 | char *kwnames[] = { | |
2826 | (char *) "self",(char *) "icon", NULL | |
2827 | }; | |
2828 | ||
2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2833 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2834 | SWIG_fail; | |
2835 | if (arg2 == NULL) { | |
2836 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2837 | SWIG_fail; | |
2838 | } | |
2839 | { | |
2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2841 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2842 | ||
2843 | wxPyEndAllowThreads(__tstate); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2846 | Py_INCREF(Py_None); resultobj = Py_None; | |
2847 | return resultobj; | |
2848 | fail: | |
2849 | return NULL; | |
2850 | } | |
2851 | ||
2852 | ||
2853 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2854 | PyObject *resultobj; | |
2855 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2856 | wxIconBundle *arg2 = 0 ; | |
2857 | PyObject * obj0 = 0 ; | |
2858 | PyObject * obj1 = 0 ; | |
2859 | char *kwnames[] = { | |
2860 | (char *) "self",(char *) "icons", NULL | |
2861 | }; | |
2862 | ||
2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2868 | SWIG_fail; | |
2869 | if (arg2 == NULL) { | |
2870 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2871 | SWIG_fail; | |
2872 | } | |
2873 | { | |
2874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2875 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2876 | ||
2877 | wxPyEndAllowThreads(__tstate); | |
2878 | if (PyErr_Occurred()) SWIG_fail; | |
2879 | } | |
2880 | Py_INCREF(Py_None); resultobj = Py_None; | |
2881 | return resultobj; | |
2882 | fail: | |
2883 | return NULL; | |
2884 | } | |
2885 | ||
2886 | ||
2887 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2888 | PyObject *resultobj; | |
2889 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2890 | bool arg2 ; | |
2891 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2892 | bool result; | |
2893 | PyObject * obj0 = 0 ; | |
2894 | PyObject * obj1 = 0 ; | |
2895 | PyObject * obj2 = 0 ; | |
2896 | char *kwnames[] = { | |
2897 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2898 | }; | |
2899 | ||
2900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2903 | arg2 = (bool) SWIG_AsBool(obj1); | |
2904 | if (PyErr_Occurred()) SWIG_fail; | |
2905 | if (obj2) { | |
2906 | arg3 = (long) SWIG_AsLong(obj2); | |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
2908 | } | |
2909 | { | |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
2916 | { | |
2917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2918 | } | |
2919 | return resultobj; | |
2920 | fail: | |
2921 | return NULL; | |
2922 | } | |
2923 | ||
2924 | ||
2925 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2926 | PyObject *resultobj; | |
2927 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2928 | bool result; | |
2929 | PyObject * obj0 = 0 ; | |
2930 | char *kwnames[] = { | |
2931 | (char *) "self", NULL | |
2932 | }; | |
2933 | ||
2934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2937 | { | |
2938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2939 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2940 | ||
2941 | wxPyEndAllowThreads(__tstate); | |
2942 | if (PyErr_Occurred()) SWIG_fail; | |
2943 | } | |
2944 | { | |
2945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2946 | } | |
2947 | return resultobj; | |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
2953 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject *resultobj; | |
2955 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2956 | wxString *arg2 = 0 ; | |
2957 | bool temp2 = False ; | |
2958 | PyObject * obj0 = 0 ; | |
2959 | PyObject * obj1 = 0 ; | |
2960 | char *kwnames[] = { | |
2961 | (char *) "self",(char *) "title", NULL | |
2962 | }; | |
2963 | ||
2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2967 | { | |
2968 | arg2 = wxString_in_helper(obj1); | |
2969 | if (arg2 == NULL) SWIG_fail; | |
2970 | temp2 = True; | |
2971 | } | |
2972 | { | |
2973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2974 | (arg1)->SetTitle((wxString const &)*arg2); | |
2975 | ||
2976 | wxPyEndAllowThreads(__tstate); | |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
2978 | } | |
2979 | Py_INCREF(Py_None); resultobj = Py_None; | |
2980 | { | |
2981 | if (temp2) | |
2982 | delete arg2; | |
2983 | } | |
2984 | return resultobj; | |
2985 | fail: | |
2986 | { | |
2987 | if (temp2) | |
2988 | delete arg2; | |
2989 | } | |
2990 | return NULL; | |
2991 | } | |
2992 | ||
2993 | ||
2994 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2995 | PyObject *resultobj; | |
2996 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2997 | wxString result; | |
2998 | PyObject * obj0 = 0 ; | |
2999 | char *kwnames[] = { | |
3000 | (char *) "self", NULL | |
3001 | }; | |
3002 | ||
3003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3006 | { | |
3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3008 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3009 | ||
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
3013 | { | |
3014 | #if wxUSE_UNICODE | |
3015 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3016 | #else | |
3017 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3018 | #endif | |
3019 | } | |
3020 | return resultobj; | |
3021 | fail: | |
3022 | return NULL; | |
3023 | } | |
3024 | ||
3025 | ||
3026 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3027 | PyObject *resultobj; | |
3028 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3029 | wxRegion *arg2 = 0 ; | |
3030 | bool result; | |
3031 | PyObject * obj0 = 0 ; | |
3032 | PyObject * obj1 = 0 ; | |
3033 | char *kwnames[] = { | |
3034 | (char *) "self",(char *) "region", NULL | |
3035 | }; | |
3036 | ||
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3041 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3042 | SWIG_fail; | |
3043 | if (arg2 == NULL) { | |
3044 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3045 | SWIG_fail; | |
3046 | } | |
3047 | { | |
3048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3049 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3050 | ||
3051 | wxPyEndAllowThreads(__tstate); | |
3052 | if (PyErr_Occurred()) SWIG_fail; | |
3053 | } | |
3054 | { | |
3055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3056 | } | |
3057 | return resultobj; | |
3058 | fail: | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | ||
3063 | static PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3064 | PyObject *resultobj; | |
3065 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3066 | bool arg2 ; | |
3067 | PyObject * obj0 = 0 ; | |
3068 | PyObject * obj1 = 0 ; | |
3069 | char *kwnames[] = { | |
3070 | (char *) "self",(char *) "on", NULL | |
3071 | }; | |
3072 | ||
3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) goto fail; | |
3074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3076 | arg2 = (bool) SWIG_AsBool(obj1); | |
3077 | if (PyErr_Occurred()) SWIG_fail; | |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3080 | (arg1)->MacSetMetalAppearance(arg2); | |
3081 | ||
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
3084 | } | |
3085 | Py_INCREF(Py_None); resultobj = Py_None; | |
3086 | return resultobj; | |
3087 | fail: | |
3088 | return NULL; | |
3089 | } | |
3090 | ||
3091 | ||
3092 | static PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject *resultobj; | |
3094 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3095 | bool result; | |
3096 | PyObject * obj0 = 0 ; | |
3097 | char *kwnames[] = { | |
3098 | (char *) "self", NULL | |
3099 | }; | |
3100 | ||
3101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_MacGetMetalAppearance",kwnames,&obj0)) goto fail; | |
3102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3104 | { | |
3105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3106 | result = (bool)((wxTopLevelWindow const *)arg1)->MacGetMetalAppearance(); | |
3107 | ||
3108 | wxPyEndAllowThreads(__tstate); | |
3109 | if (PyErr_Occurred()) SWIG_fail; | |
3110 | } | |
3111 | { | |
3112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3113 | } | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | return NULL; | |
3117 | } | |
3118 | ||
3119 | ||
3120 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3121 | PyObject *obj; | |
3122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3123 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3124 | Py_INCREF(obj); | |
3125 | return Py_BuildValue((char *)""); | |
3126 | } | |
3127 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3128 | PyObject *resultobj; | |
3129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3130 | int arg2 ; | |
3131 | wxString *arg3 = 0 ; | |
3132 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3133 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3134 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3135 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3136 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3137 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3138 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3139 | wxFrame *result; | |
3140 | bool temp3 = False ; | |
3141 | wxPoint temp4 ; | |
3142 | wxSize temp5 ; | |
3143 | bool temp7 = False ; | |
3144 | PyObject * obj0 = 0 ; | |
3145 | PyObject * obj1 = 0 ; | |
3146 | PyObject * obj2 = 0 ; | |
3147 | PyObject * obj3 = 0 ; | |
3148 | PyObject * obj4 = 0 ; | |
3149 | PyObject * obj5 = 0 ; | |
3150 | PyObject * obj6 = 0 ; | |
3151 | char *kwnames[] = { | |
3152 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3153 | }; | |
3154 | ||
3155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3158 | arg2 = (int const) SWIG_AsInt(obj1); | |
3159 | if (PyErr_Occurred()) SWIG_fail; | |
3160 | { | |
3161 | arg3 = wxString_in_helper(obj2); | |
3162 | if (arg3 == NULL) SWIG_fail; | |
3163 | temp3 = True; | |
3164 | } | |
3165 | if (obj3) { | |
3166 | { | |
3167 | arg4 = &temp4; | |
3168 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3169 | } | |
3170 | } | |
3171 | if (obj4) { | |
3172 | { | |
3173 | arg5 = &temp5; | |
3174 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3175 | } | |
3176 | } | |
3177 | if (obj5) { | |
3178 | arg6 = (long) SWIG_AsLong(obj5); | |
3179 | if (PyErr_Occurred()) SWIG_fail; | |
3180 | } | |
3181 | if (obj6) { | |
3182 | { | |
3183 | arg7 = wxString_in_helper(obj6); | |
3184 | if (arg7 == NULL) SWIG_fail; | |
3185 | temp7 = True; | |
3186 | } | |
3187 | } | |
3188 | { | |
3189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3190 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3191 | ||
3192 | wxPyEndAllowThreads(__tstate); | |
3193 | if (PyErr_Occurred()) SWIG_fail; | |
3194 | } | |
3195 | { | |
3196 | resultobj = wxPyMake_wxObject(result); | |
3197 | } | |
3198 | { | |
3199 | if (temp3) | |
3200 | delete arg3; | |
3201 | } | |
3202 | { | |
3203 | if (temp7) | |
3204 | delete arg7; | |
3205 | } | |
3206 | return resultobj; | |
3207 | fail: | |
3208 | { | |
3209 | if (temp3) | |
3210 | delete arg3; | |
3211 | } | |
3212 | { | |
3213 | if (temp7) | |
3214 | delete arg7; | |
3215 | } | |
3216 | return NULL; | |
3217 | } | |
3218 | ||
3219 | ||
3220 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3221 | PyObject *resultobj; | |
3222 | wxFrame *result; | |
3223 | char *kwnames[] = { | |
3224 | NULL | |
3225 | }; | |
3226 | ||
3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3228 | { | |
3229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3230 | result = (wxFrame *)new wxFrame(); | |
3231 | ||
3232 | wxPyEndAllowThreads(__tstate); | |
3233 | if (PyErr_Occurred()) SWIG_fail; | |
3234 | } | |
3235 | { | |
3236 | resultobj = wxPyMake_wxObject(result); | |
3237 | } | |
3238 | return resultobj; | |
3239 | fail: | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
3244 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3245 | PyObject *resultobj; | |
3246 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3248 | int arg3 ; | |
3249 | wxString *arg4 = 0 ; | |
3250 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3251 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3252 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3253 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3254 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3255 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3256 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3257 | bool result; | |
3258 | bool temp4 = False ; | |
3259 | wxPoint temp5 ; | |
3260 | wxSize temp6 ; | |
3261 | bool temp8 = False ; | |
3262 | PyObject * obj0 = 0 ; | |
3263 | PyObject * obj1 = 0 ; | |
3264 | PyObject * obj2 = 0 ; | |
3265 | PyObject * obj3 = 0 ; | |
3266 | PyObject * obj4 = 0 ; | |
3267 | PyObject * obj5 = 0 ; | |
3268 | PyObject * obj6 = 0 ; | |
3269 | PyObject * obj7 = 0 ; | |
3270 | char *kwnames[] = { | |
3271 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3272 | }; | |
3273 | ||
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3279 | arg3 = (int const) SWIG_AsInt(obj2); | |
3280 | if (PyErr_Occurred()) SWIG_fail; | |
3281 | { | |
3282 | arg4 = wxString_in_helper(obj3); | |
3283 | if (arg4 == NULL) SWIG_fail; | |
3284 | temp4 = True; | |
3285 | } | |
3286 | if (obj4) { | |
3287 | { | |
3288 | arg5 = &temp5; | |
3289 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3290 | } | |
3291 | } | |
3292 | if (obj5) { | |
3293 | { | |
3294 | arg6 = &temp6; | |
3295 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3296 | } | |
3297 | } | |
3298 | if (obj6) { | |
3299 | arg7 = (long) SWIG_AsLong(obj6); | |
3300 | if (PyErr_Occurred()) SWIG_fail; | |
3301 | } | |
3302 | if (obj7) { | |
3303 | { | |
3304 | arg8 = wxString_in_helper(obj7); | |
3305 | if (arg8 == NULL) SWIG_fail; | |
3306 | temp8 = True; | |
3307 | } | |
3308 | } | |
3309 | { | |
3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3311 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3312 | ||
3313 | wxPyEndAllowThreads(__tstate); | |
3314 | if (PyErr_Occurred()) SWIG_fail; | |
3315 | } | |
3316 | { | |
3317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3318 | } | |
3319 | { | |
3320 | if (temp4) | |
3321 | delete arg4; | |
3322 | } | |
3323 | { | |
3324 | if (temp8) | |
3325 | delete arg8; | |
3326 | } | |
3327 | return resultobj; | |
3328 | fail: | |
3329 | { | |
3330 | if (temp4) | |
3331 | delete arg4; | |
3332 | } | |
3333 | { | |
3334 | if (temp8) | |
3335 | delete arg8; | |
3336 | } | |
3337 | return NULL; | |
3338 | } | |
3339 | ||
3340 | ||
3341 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3342 | PyObject *resultobj; | |
3343 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3344 | wxPoint result; | |
3345 | PyObject * obj0 = 0 ; | |
3346 | char *kwnames[] = { | |
3347 | (char *) "self", NULL | |
3348 | }; | |
3349 | ||
3350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3353 | { | |
3354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3355 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3356 | ||
3357 | wxPyEndAllowThreads(__tstate); | |
3358 | if (PyErr_Occurred()) SWIG_fail; | |
3359 | } | |
3360 | { | |
3361 | wxPoint * resultptr; | |
3362 | resultptr = new wxPoint((wxPoint &) result); | |
3363 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3364 | } | |
3365 | return resultobj; | |
3366 | fail: | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
3371 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3372 | PyObject *resultobj; | |
3373 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3374 | PyObject * obj0 = 0 ; | |
3375 | char *kwnames[] = { | |
3376 | (char *) "self", NULL | |
3377 | }; | |
3378 | ||
3379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3384 | (arg1)->SendSizeEvent(); | |
3385 | ||
3386 | wxPyEndAllowThreads(__tstate); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | } | |
3389 | Py_INCREF(Py_None); resultobj = Py_None; | |
3390 | return resultobj; | |
3391 | fail: | |
3392 | return NULL; | |
3393 | } | |
3394 | ||
3395 | ||
3396 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject *resultobj; | |
3398 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3399 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3400 | PyObject * obj0 = 0 ; | |
3401 | PyObject * obj1 = 0 ; | |
3402 | char *kwnames[] = { | |
3403 | (char *) "self",(char *) "menubar", NULL | |
3404 | }; | |
3405 | ||
3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | (arg1)->SetMenuBar(arg2); | |
3414 | ||
3415 | wxPyEndAllowThreads(__tstate); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | Py_INCREF(Py_None); resultobj = Py_None; | |
3419 | return resultobj; | |
3420 | fail: | |
3421 | return NULL; | |
3422 | } | |
3423 | ||
3424 | ||
3425 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject *resultobj; | |
3427 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3428 | wxMenuBar *result; | |
3429 | PyObject * obj0 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "self", NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3439 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3440 | ||
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | { | |
3445 | resultobj = wxPyMake_wxObject(result); | |
3446 | } | |
3447 | return resultobj; | |
3448 | fail: | |
3449 | return NULL; | |
3450 | } | |
3451 | ||
3452 | ||
3453 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3454 | PyObject *resultobj; | |
3455 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3456 | int arg2 ; | |
3457 | bool result; | |
3458 | PyObject * obj0 = 0 ; | |
3459 | PyObject * obj1 = 0 ; | |
3460 | char *kwnames[] = { | |
3461 | (char *) "self",(char *) "winid", NULL | |
3462 | }; | |
3463 | ||
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3467 | arg2 = (int) SWIG_AsInt(obj1); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | { | |
3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3471 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3472 | ||
3473 | wxPyEndAllowThreads(__tstate); | |
3474 | if (PyErr_Occurred()) SWIG_fail; | |
3475 | } | |
3476 | { | |
3477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3478 | } | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | return NULL; | |
3482 | } | |
3483 | ||
3484 | ||
3485 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3486 | PyObject *resultobj; | |
3487 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3488 | int arg2 = (int) 1 ; | |
3489 | long arg3 = (long) wxST_SIZEGRIP ; | |
3490 | int arg4 = (int) 0 ; | |
3491 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3492 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3493 | wxStatusBar *result; | |
3494 | bool temp5 = False ; | |
3495 | PyObject * obj0 = 0 ; | |
3496 | PyObject * obj1 = 0 ; | |
3497 | PyObject * obj2 = 0 ; | |
3498 | PyObject * obj3 = 0 ; | |
3499 | PyObject * obj4 = 0 ; | |
3500 | char *kwnames[] = { | |
3501 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3502 | }; | |
3503 | ||
3504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3507 | if (obj1) { | |
3508 | arg2 = (int) SWIG_AsInt(obj1); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | if (obj2) { | |
3512 | arg3 = (long) SWIG_AsLong(obj2); | |
3513 | if (PyErr_Occurred()) SWIG_fail; | |
3514 | } | |
3515 | if (obj3) { | |
3516 | arg4 = (int) SWIG_AsInt(obj3); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
3519 | if (obj4) { | |
3520 | { | |
3521 | arg5 = wxString_in_helper(obj4); | |
3522 | if (arg5 == NULL) SWIG_fail; | |
3523 | temp5 = True; | |
3524 | } | |
3525 | } | |
3526 | { | |
3527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3528 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3529 | ||
3530 | wxPyEndAllowThreads(__tstate); | |
3531 | if (PyErr_Occurred()) SWIG_fail; | |
3532 | } | |
3533 | { | |
3534 | resultobj = wxPyMake_wxObject(result); | |
3535 | } | |
3536 | { | |
3537 | if (temp5) | |
3538 | delete arg5; | |
3539 | } | |
3540 | return resultobj; | |
3541 | fail: | |
3542 | { | |
3543 | if (temp5) | |
3544 | delete arg5; | |
3545 | } | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
3550 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3551 | PyObject *resultobj; | |
3552 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3553 | wxStatusBar *result; | |
3554 | PyObject * obj0 = 0 ; | |
3555 | char *kwnames[] = { | |
3556 | (char *) "self", NULL | |
3557 | }; | |
3558 | ||
3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3562 | { | |
3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3564 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3565 | ||
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) SWIG_fail; | |
3568 | } | |
3569 | { | |
3570 | resultobj = wxPyMake_wxObject(result); | |
3571 | } | |
3572 | return resultobj; | |
3573 | fail: | |
3574 | return NULL; | |
3575 | } | |
3576 | ||
3577 | ||
3578 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3579 | PyObject *resultobj; | |
3580 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3581 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3582 | PyObject * obj0 = 0 ; | |
3583 | PyObject * obj1 = 0 ; | |
3584 | char *kwnames[] = { | |
3585 | (char *) "self",(char *) "statBar", NULL | |
3586 | }; | |
3587 | ||
3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3593 | { | |
3594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3595 | (arg1)->SetStatusBar(arg2); | |
3596 | ||
3597 | wxPyEndAllowThreads(__tstate); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
3599 | } | |
3600 | Py_INCREF(Py_None); resultobj = Py_None; | |
3601 | return resultobj; | |
3602 | fail: | |
3603 | return NULL; | |
3604 | } | |
3605 | ||
3606 | ||
3607 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3608 | PyObject *resultobj; | |
3609 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3610 | wxString *arg2 = 0 ; | |
3611 | int arg3 = (int) 0 ; | |
3612 | bool temp2 = False ; | |
3613 | PyObject * obj0 = 0 ; | |
3614 | PyObject * obj1 = 0 ; | |
3615 | PyObject * obj2 = 0 ; | |
3616 | char *kwnames[] = { | |
3617 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3618 | }; | |
3619 | ||
3620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3623 | { | |
3624 | arg2 = wxString_in_helper(obj1); | |
3625 | if (arg2 == NULL) SWIG_fail; | |
3626 | temp2 = True; | |
3627 | } | |
3628 | if (obj2) { | |
3629 | arg3 = (int) SWIG_AsInt(obj2); | |
3630 | if (PyErr_Occurred()) SWIG_fail; | |
3631 | } | |
3632 | { | |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | Py_INCREF(Py_None); resultobj = Py_None; | |
3640 | { | |
3641 | if (temp2) | |
3642 | delete arg2; | |
3643 | } | |
3644 | return resultobj; | |
3645 | fail: | |
3646 | { | |
3647 | if (temp2) | |
3648 | delete arg2; | |
3649 | } | |
3650 | return NULL; | |
3651 | } | |
3652 | ||
3653 | ||
3654 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3655 | PyObject *resultobj; | |
3656 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3657 | int arg2 ; | |
3658 | int *arg3 = (int *) 0 ; | |
3659 | PyObject * obj0 = 0 ; | |
3660 | PyObject * obj1 = 0 ; | |
3661 | char *kwnames[] = { | |
3662 | (char *) "self",(char *) "widths", NULL | |
3663 | }; | |
3664 | ||
3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3668 | { | |
3669 | arg2 = PyList_Size(obj1); | |
3670 | arg3 = int_LIST_helper(obj1); | |
3671 | if (arg3 == NULL) SWIG_fail; | |
3672 | } | |
3673 | { | |
3674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3675 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3676 | ||
3677 | wxPyEndAllowThreads(__tstate); | |
3678 | if (PyErr_Occurred()) SWIG_fail; | |
3679 | } | |
3680 | Py_INCREF(Py_None); resultobj = Py_None; | |
3681 | { | |
3682 | if (arg3) delete [] arg3; | |
3683 | } | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | { | |
3687 | if (arg3) delete [] arg3; | |
3688 | } | |
3689 | return NULL; | |
3690 | } | |
3691 | ||
3692 | ||
3693 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3694 | PyObject *resultobj; | |
3695 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3696 | wxString *arg2 = 0 ; | |
3697 | int arg3 = (int) 0 ; | |
3698 | bool temp2 = False ; | |
3699 | PyObject * obj0 = 0 ; | |
3700 | PyObject * obj1 = 0 ; | |
3701 | PyObject * obj2 = 0 ; | |
3702 | char *kwnames[] = { | |
3703 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3704 | }; | |
3705 | ||
3706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3709 | { | |
3710 | arg2 = wxString_in_helper(obj1); | |
3711 | if (arg2 == NULL) SWIG_fail; | |
3712 | temp2 = True; | |
3713 | } | |
3714 | if (obj2) { | |
3715 | arg3 = (int) SWIG_AsInt(obj2); | |
3716 | if (PyErr_Occurred()) SWIG_fail; | |
3717 | } | |
3718 | { | |
3719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3720 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3721 | ||
3722 | wxPyEndAllowThreads(__tstate); | |
3723 | if (PyErr_Occurred()) SWIG_fail; | |
3724 | } | |
3725 | Py_INCREF(Py_None); resultobj = Py_None; | |
3726 | { | |
3727 | if (temp2) | |
3728 | delete arg2; | |
3729 | } | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | { | |
3733 | if (temp2) | |
3734 | delete arg2; | |
3735 | } | |
3736 | return NULL; | |
3737 | } | |
3738 | ||
3739 | ||
3740 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3741 | PyObject *resultobj; | |
3742 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3743 | int arg2 = (int) 0 ; | |
3744 | PyObject * obj0 = 0 ; | |
3745 | PyObject * obj1 = 0 ; | |
3746 | char *kwnames[] = { | |
3747 | (char *) "self",(char *) "number", NULL | |
3748 | }; | |
3749 | ||
3750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3753 | if (obj1) { | |
3754 | arg2 = (int) SWIG_AsInt(obj1); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
3757 | { | |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3759 | (arg1)->PopStatusText(arg2); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
3762 | if (PyErr_Occurred()) SWIG_fail; | |
3763 | } | |
3764 | Py_INCREF(Py_None); resultobj = Py_None; | |
3765 | return resultobj; | |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
3771 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject *resultobj; | |
3773 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3774 | int arg2 ; | |
3775 | PyObject * obj0 = 0 ; | |
3776 | PyObject * obj1 = 0 ; | |
3777 | char *kwnames[] = { | |
3778 | (char *) "self",(char *) "n", NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3784 | arg2 = (int) SWIG_AsInt(obj1); | |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
3786 | { | |
3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3788 | (arg1)->SetStatusBarPane(arg2); | |
3789 | ||
3790 | wxPyEndAllowThreads(__tstate); | |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
3792 | } | |
3793 | Py_INCREF(Py_None); resultobj = Py_None; | |
3794 | return resultobj; | |
3795 | fail: | |
3796 | return NULL; | |
3797 | } | |
3798 | ||
3799 | ||
3800 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject *resultobj; | |
3802 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3803 | int result; | |
3804 | PyObject * obj0 = 0 ; | |
3805 | char *kwnames[] = { | |
3806 | (char *) "self", NULL | |
3807 | }; | |
3808 | ||
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3812 | { | |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3814 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3815 | ||
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
3819 | resultobj = SWIG_FromInt((int)result); | |
3820 | return resultobj; | |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
3826 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3827 | PyObject *resultobj; | |
3828 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3829 | long arg2 = (long) -1 ; | |
3830 | int arg3 = (int) -1 ; | |
3831 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3832 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3833 | wxToolBar *result; | |
3834 | bool temp4 = False ; | |
3835 | PyObject * obj0 = 0 ; | |
3836 | PyObject * obj1 = 0 ; | |
3837 | PyObject * obj2 = 0 ; | |
3838 | PyObject * obj3 = 0 ; | |
3839 | char *kwnames[] = { | |
3840 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3846 | if (obj1) { | |
3847 | arg2 = (long) SWIG_AsLong(obj1); | |
3848 | if (PyErr_Occurred()) SWIG_fail; | |
3849 | } | |
3850 | if (obj2) { | |
3851 | arg3 = (int) SWIG_AsInt(obj2); | |
3852 | if (PyErr_Occurred()) SWIG_fail; | |
3853 | } | |
3854 | if (obj3) { | |
3855 | { | |
3856 | arg4 = wxString_in_helper(obj3); | |
3857 | if (arg4 == NULL) SWIG_fail; | |
3858 | temp4 = True; | |
3859 | } | |
3860 | } | |
3861 | { | |
3862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3863 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3864 | ||
3865 | wxPyEndAllowThreads(__tstate); | |
3866 | if (PyErr_Occurred()) SWIG_fail; | |
3867 | } | |
3868 | { | |
3869 | resultobj = wxPyMake_wxObject(result); | |
3870 | } | |
3871 | { | |
3872 | if (temp4) | |
3873 | delete arg4; | |
3874 | } | |
3875 | return resultobj; | |
3876 | fail: | |
3877 | { | |
3878 | if (temp4) | |
3879 | delete arg4; | |
3880 | } | |
3881 | return NULL; | |
3882 | } | |
3883 | ||
3884 | ||
3885 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3886 | PyObject *resultobj; | |
3887 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3888 | wxToolBar *result; | |
3889 | PyObject * obj0 = 0 ; | |
3890 | char *kwnames[] = { | |
3891 | (char *) "self", NULL | |
3892 | }; | |
3893 | ||
3894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3897 | { | |
3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3899 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3900 | ||
3901 | wxPyEndAllowThreads(__tstate); | |
3902 | if (PyErr_Occurred()) SWIG_fail; | |
3903 | } | |
3904 | { | |
3905 | resultobj = wxPyMake_wxObject(result); | |
3906 | } | |
3907 | return resultobj; | |
3908 | fail: | |
3909 | return NULL; | |
3910 | } | |
3911 | ||
3912 | ||
3913 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3914 | PyObject *resultobj; | |
3915 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3916 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3917 | PyObject * obj0 = 0 ; | |
3918 | PyObject * obj1 = 0 ; | |
3919 | char *kwnames[] = { | |
3920 | (char *) "self",(char *) "toolbar", NULL | |
3921 | }; | |
3922 | ||
3923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3928 | { | |
3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3930 | (arg1)->SetToolBar(arg2); | |
3931 | ||
3932 | wxPyEndAllowThreads(__tstate); | |
3933 | if (PyErr_Occurred()) SWIG_fail; | |
3934 | } | |
3935 | Py_INCREF(Py_None); resultobj = Py_None; | |
3936 | return resultobj; | |
3937 | fail: | |
3938 | return NULL; | |
3939 | } | |
3940 | ||
3941 | ||
3942 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3943 | PyObject *resultobj; | |
3944 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3945 | wxString *arg2 = 0 ; | |
3946 | bool arg3 ; | |
3947 | bool temp2 = False ; | |
3948 | PyObject * obj0 = 0 ; | |
3949 | PyObject * obj1 = 0 ; | |
3950 | PyObject * obj2 = 0 ; | |
3951 | char *kwnames[] = { | |
3952 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3953 | }; | |
3954 | ||
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3958 | { | |
3959 | arg2 = wxString_in_helper(obj1); | |
3960 | if (arg2 == NULL) SWIG_fail; | |
3961 | temp2 = True; | |
3962 | } | |
3963 | arg3 = (bool) SWIG_AsBool(obj2); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | { | |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3967 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
3970 | if (PyErr_Occurred()) SWIG_fail; | |
3971 | } | |
3972 | Py_INCREF(Py_None); resultobj = Py_None; | |
3973 | { | |
3974 | if (temp2) | |
3975 | delete arg2; | |
3976 | } | |
3977 | return resultobj; | |
3978 | fail: | |
3979 | { | |
3980 | if (temp2) | |
3981 | delete arg2; | |
3982 | } | |
3983 | return NULL; | |
3984 | } | |
3985 | ||
3986 | ||
3987 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3988 | PyObject *resultobj; | |
3989 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3990 | wxMenu *arg2 = (wxMenu *) NULL ; | |
3991 | PyObject * obj0 = 0 ; | |
3992 | PyObject * obj1 = 0 ; | |
3993 | char *kwnames[] = { | |
3994 | (char *) "self",(char *) "menu", NULL | |
3995 | }; | |
3996 | ||
3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
3998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4000 | if (obj1) { | |
4001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
4002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4003 | } | |
4004 | { | |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | (arg1)->DoMenuUpdates(arg2); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4011 | Py_INCREF(Py_None); resultobj = Py_None; | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
4018 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4019 | PyObject *resultobj; | |
4020 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4021 | wxVisualAttributes result; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "variant", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4028 | if (obj0) { | |
4029 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4030 | if (PyErr_Occurred()) SWIG_fail; | |
4031 | } | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | { | |
4040 | wxVisualAttributes * resultptr; | |
4041 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4043 | } | |
4044 | return resultobj; | |
4045 | fail: | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
4050 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { | |
4051 | PyObject *obj; | |
4052 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4053 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4054 | Py_INCREF(obj); | |
4055 | return Py_BuildValue((char *)""); | |
4056 | } | |
4057 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4058 | PyObject *resultobj; | |
4059 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4060 | int arg2 ; | |
4061 | wxString *arg3 = 0 ; | |
4062 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4063 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4064 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4065 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4066 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4067 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4068 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4069 | wxDialog *result; | |
4070 | bool temp3 = False ; | |
4071 | wxPoint temp4 ; | |
4072 | wxSize temp5 ; | |
4073 | bool temp7 = False ; | |
4074 | PyObject * obj0 = 0 ; | |
4075 | PyObject * obj1 = 0 ; | |
4076 | PyObject * obj2 = 0 ; | |
4077 | PyObject * obj3 = 0 ; | |
4078 | PyObject * obj4 = 0 ; | |
4079 | PyObject * obj5 = 0 ; | |
4080 | PyObject * obj6 = 0 ; | |
4081 | char *kwnames[] = { | |
4082 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4083 | }; | |
4084 | ||
4085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4088 | arg2 = (int const) SWIG_AsInt(obj1); | |
4089 | if (PyErr_Occurred()) SWIG_fail; | |
4090 | { | |
4091 | arg3 = wxString_in_helper(obj2); | |
4092 | if (arg3 == NULL) SWIG_fail; | |
4093 | temp3 = True; | |
4094 | } | |
4095 | if (obj3) { | |
4096 | { | |
4097 | arg4 = &temp4; | |
4098 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4099 | } | |
4100 | } | |
4101 | if (obj4) { | |
4102 | { | |
4103 | arg5 = &temp5; | |
4104 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4105 | } | |
4106 | } | |
4107 | if (obj5) { | |
4108 | arg6 = (long) SWIG_AsLong(obj5); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
4110 | } | |
4111 | if (obj6) { | |
4112 | { | |
4113 | arg7 = wxString_in_helper(obj6); | |
4114 | if (arg7 == NULL) SWIG_fail; | |
4115 | temp7 = True; | |
4116 | } | |
4117 | } | |
4118 | { | |
4119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4120 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4121 | ||
4122 | wxPyEndAllowThreads(__tstate); | |
4123 | if (PyErr_Occurred()) SWIG_fail; | |
4124 | } | |
4125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); | |
4126 | { | |
4127 | if (temp3) | |
4128 | delete arg3; | |
4129 | } | |
4130 | { | |
4131 | if (temp7) | |
4132 | delete arg7; | |
4133 | } | |
4134 | return resultobj; | |
4135 | fail: | |
4136 | { | |
4137 | if (temp3) | |
4138 | delete arg3; | |
4139 | } | |
4140 | { | |
4141 | if (temp7) | |
4142 | delete arg7; | |
4143 | } | |
4144 | return NULL; | |
4145 | } | |
4146 | ||
4147 | ||
4148 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4149 | PyObject *resultobj; | |
4150 | wxDialog *result; | |
4151 | char *kwnames[] = { | |
4152 | NULL | |
4153 | }; | |
4154 | ||
4155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4156 | { | |
4157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4158 | result = (wxDialog *)new wxDialog(); | |
4159 | ||
4160 | wxPyEndAllowThreads(__tstate); | |
4161 | if (PyErr_Occurred()) SWIG_fail; | |
4162 | } | |
4163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); | |
4164 | return resultobj; | |
4165 | fail: | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject *resultobj; | |
4172 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4174 | int arg3 ; | |
4175 | wxString *arg4 = 0 ; | |
4176 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4177 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4178 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4179 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4180 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4181 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4182 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4183 | bool result; | |
4184 | bool temp4 = False ; | |
4185 | wxPoint temp5 ; | |
4186 | wxSize temp6 ; | |
4187 | bool temp8 = False ; | |
4188 | PyObject * obj0 = 0 ; | |
4189 | PyObject * obj1 = 0 ; | |
4190 | PyObject * obj2 = 0 ; | |
4191 | PyObject * obj3 = 0 ; | |
4192 | PyObject * obj4 = 0 ; | |
4193 | PyObject * obj5 = 0 ; | |
4194 | PyObject * obj6 = 0 ; | |
4195 | PyObject * obj7 = 0 ; | |
4196 | char *kwnames[] = { | |
4197 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4198 | }; | |
4199 | ||
4200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4203 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4205 | arg3 = (int const) SWIG_AsInt(obj2); | |
4206 | if (PyErr_Occurred()) SWIG_fail; | |
4207 | { | |
4208 | arg4 = wxString_in_helper(obj3); | |
4209 | if (arg4 == NULL) SWIG_fail; | |
4210 | temp4 = True; | |
4211 | } | |
4212 | if (obj4) { | |
4213 | { | |
4214 | arg5 = &temp5; | |
4215 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4216 | } | |
4217 | } | |
4218 | if (obj5) { | |
4219 | { | |
4220 | arg6 = &temp6; | |
4221 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4222 | } | |
4223 | } | |
4224 | if (obj6) { | |
4225 | arg7 = (long) SWIG_AsLong(obj6); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
4228 | if (obj7) { | |
4229 | { | |
4230 | arg8 = wxString_in_helper(obj7); | |
4231 | if (arg8 == NULL) SWIG_fail; | |
4232 | temp8 = True; | |
4233 | } | |
4234 | } | |
4235 | { | |
4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4237 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4238 | ||
4239 | wxPyEndAllowThreads(__tstate); | |
4240 | if (PyErr_Occurred()) SWIG_fail; | |
4241 | } | |
4242 | { | |
4243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4244 | } | |
4245 | { | |
4246 | if (temp4) | |
4247 | delete arg4; | |
4248 | } | |
4249 | { | |
4250 | if (temp8) | |
4251 | delete arg8; | |
4252 | } | |
4253 | return resultobj; | |
4254 | fail: | |
4255 | { | |
4256 | if (temp4) | |
4257 | delete arg4; | |
4258 | } | |
4259 | { | |
4260 | if (temp8) | |
4261 | delete arg8; | |
4262 | } | |
4263 | return NULL; | |
4264 | } | |
4265 | ||
4266 | ||
4267 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4268 | PyObject *resultobj; | |
4269 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4270 | int arg2 ; | |
4271 | PyObject * obj0 = 0 ; | |
4272 | PyObject * obj1 = 0 ; | |
4273 | char *kwnames[] = { | |
4274 | (char *) "self",(char *) "returnCode", NULL | |
4275 | }; | |
4276 | ||
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4280 | arg2 = (int) SWIG_AsInt(obj1); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | { | |
4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4284 | (arg1)->SetReturnCode(arg2); | |
4285 | ||
4286 | wxPyEndAllowThreads(__tstate); | |
4287 | if (PyErr_Occurred()) SWIG_fail; | |
4288 | } | |
4289 | Py_INCREF(Py_None); resultobj = Py_None; | |
4290 | return resultobj; | |
4291 | fail: | |
4292 | return NULL; | |
4293 | } | |
4294 | ||
4295 | ||
4296 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject *resultobj; | |
4298 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4299 | int result; | |
4300 | PyObject * obj0 = 0 ; | |
4301 | char *kwnames[] = { | |
4302 | (char *) "self", NULL | |
4303 | }; | |
4304 | ||
4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4308 | { | |
4309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4310 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4311 | ||
4312 | wxPyEndAllowThreads(__tstate); | |
4313 | if (PyErr_Occurred()) SWIG_fail; | |
4314 | } | |
4315 | resultobj = SWIG_FromInt((int)result); | |
4316 | return resultobj; | |
4317 | fail: | |
4318 | return NULL; | |
4319 | } | |
4320 | ||
4321 | ||
4322 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4323 | PyObject *resultobj; | |
4324 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4325 | wxString *arg2 = 0 ; | |
4326 | wxSizer *result; | |
4327 | bool temp2 = False ; | |
4328 | PyObject * obj0 = 0 ; | |
4329 | PyObject * obj1 = 0 ; | |
4330 | char *kwnames[] = { | |
4331 | (char *) "self",(char *) "message", NULL | |
4332 | }; | |
4333 | ||
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4337 | { | |
4338 | arg2 = wxString_in_helper(obj1); | |
4339 | if (arg2 == NULL) SWIG_fail; | |
4340 | temp2 = True; | |
4341 | } | |
4342 | { | |
4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4344 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4345 | ||
4346 | wxPyEndAllowThreads(__tstate); | |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | { | |
4350 | resultobj = wxPyMake_wxSizer(result); | |
4351 | } | |
4352 | { | |
4353 | if (temp2) | |
4354 | delete arg2; | |
4355 | } | |
4356 | return resultobj; | |
4357 | fail: | |
4358 | { | |
4359 | if (temp2) | |
4360 | delete arg2; | |
4361 | } | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
4366 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4367 | PyObject *resultobj; | |
4368 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4369 | long arg2 ; | |
4370 | wxSizer *result; | |
4371 | PyObject * obj0 = 0 ; | |
4372 | PyObject * obj1 = 0 ; | |
4373 | char *kwnames[] = { | |
4374 | (char *) "self",(char *) "flags", NULL | |
4375 | }; | |
4376 | ||
4377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4380 | arg2 = (long) SWIG_AsLong(obj1); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | { | |
4383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4384 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4385 | ||
4386 | wxPyEndAllowThreads(__tstate); | |
4387 | if (PyErr_Occurred()) SWIG_fail; | |
4388 | } | |
4389 | { | |
4390 | resultobj = wxPyMake_wxSizer(result); | |
4391 | } | |
4392 | return resultobj; | |
4393 | fail: | |
4394 | return NULL; | |
4395 | } | |
4396 | ||
4397 | ||
4398 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4399 | PyObject *resultobj; | |
4400 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4401 | bool result; | |
4402 | PyObject * obj0 = 0 ; | |
4403 | char *kwnames[] = { | |
4404 | (char *) "self", NULL | |
4405 | }; | |
4406 | ||
4407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4410 | { | |
4411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4412 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4413 | ||
4414 | wxPyEndAllowThreads(__tstate); | |
4415 | if (PyErr_Occurred()) SWIG_fail; | |
4416 | } | |
4417 | { | |
4418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4419 | } | |
4420 | return resultobj; | |
4421 | fail: | |
4422 | return NULL; | |
4423 | } | |
4424 | ||
4425 | ||
4426 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4427 | PyObject *resultobj; | |
4428 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4429 | int result; | |
4430 | PyObject * obj0 = 0 ; | |
4431 | char *kwnames[] = { | |
4432 | (char *) "self", NULL | |
4433 | }; | |
4434 | ||
4435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4438 | { | |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4440 | result = (int)(arg1)->ShowModal(); | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
4444 | } | |
4445 | resultobj = SWIG_FromInt((int)result); | |
4446 | return resultobj; | |
4447 | fail: | |
4448 | return NULL; | |
4449 | } | |
4450 | ||
4451 | ||
4452 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4453 | PyObject *resultobj; | |
4454 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4455 | int arg2 ; | |
4456 | PyObject * obj0 = 0 ; | |
4457 | PyObject * obj1 = 0 ; | |
4458 | char *kwnames[] = { | |
4459 | (char *) "self",(char *) "retCode", NULL | |
4460 | }; | |
4461 | ||
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4465 | arg2 = (int) SWIG_AsInt(obj1); | |
4466 | if (PyErr_Occurred()) SWIG_fail; | |
4467 | { | |
4468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4469 | (arg1)->EndModal(arg2); | |
4470 | ||
4471 | wxPyEndAllowThreads(__tstate); | |
4472 | if (PyErr_Occurred()) SWIG_fail; | |
4473 | } | |
4474 | Py_INCREF(Py_None); resultobj = Py_None; | |
4475 | return resultobj; | |
4476 | fail: | |
4477 | return NULL; | |
4478 | } | |
4479 | ||
4480 | ||
4481 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4482 | PyObject *resultobj; | |
4483 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4484 | wxVisualAttributes result; | |
4485 | PyObject * obj0 = 0 ; | |
4486 | char *kwnames[] = { | |
4487 | (char *) "variant", NULL | |
4488 | }; | |
4489 | ||
4490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4491 | if (obj0) { | |
4492 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
4495 | { | |
4496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4497 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4498 | ||
4499 | wxPyEndAllowThreads(__tstate); | |
4500 | if (PyErr_Occurred()) SWIG_fail; | |
4501 | } | |
4502 | { | |
4503 | wxVisualAttributes * resultptr; | |
4504 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4505 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4506 | } | |
4507 | return resultobj; | |
4508 | fail: | |
4509 | return NULL; | |
4510 | } | |
4511 | ||
4512 | ||
4513 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { | |
4514 | PyObject *obj; | |
4515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4516 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4517 | Py_INCREF(obj); | |
4518 | return Py_BuildValue((char *)""); | |
4519 | } | |
4520 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4521 | PyObject *resultobj; | |
4522 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4523 | int arg2 ; | |
4524 | wxString *arg3 = 0 ; | |
4525 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4526 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4527 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4528 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4529 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4530 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4531 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4532 | wxMiniFrame *result; | |
4533 | bool temp3 = False ; | |
4534 | wxPoint temp4 ; | |
4535 | wxSize temp5 ; | |
4536 | bool temp7 = False ; | |
4537 | PyObject * obj0 = 0 ; | |
4538 | PyObject * obj1 = 0 ; | |
4539 | PyObject * obj2 = 0 ; | |
4540 | PyObject * obj3 = 0 ; | |
4541 | PyObject * obj4 = 0 ; | |
4542 | PyObject * obj5 = 0 ; | |
4543 | PyObject * obj6 = 0 ; | |
4544 | char *kwnames[] = { | |
4545 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4546 | }; | |
4547 | ||
4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4551 | arg2 = (int const) SWIG_AsInt(obj1); | |
4552 | if (PyErr_Occurred()) SWIG_fail; | |
4553 | { | |
4554 | arg3 = wxString_in_helper(obj2); | |
4555 | if (arg3 == NULL) SWIG_fail; | |
4556 | temp3 = True; | |
4557 | } | |
4558 | if (obj3) { | |
4559 | { | |
4560 | arg4 = &temp4; | |
4561 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4562 | } | |
4563 | } | |
4564 | if (obj4) { | |
4565 | { | |
4566 | arg5 = &temp5; | |
4567 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4568 | } | |
4569 | } | |
4570 | if (obj5) { | |
4571 | arg6 = (long) SWIG_AsLong(obj5); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | } | |
4574 | if (obj6) { | |
4575 | { | |
4576 | arg7 = wxString_in_helper(obj6); | |
4577 | if (arg7 == NULL) SWIG_fail; | |
4578 | temp7 = True; | |
4579 | } | |
4580 | } | |
4581 | { | |
4582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4583 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4584 | ||
4585 | wxPyEndAllowThreads(__tstate); | |
4586 | if (PyErr_Occurred()) SWIG_fail; | |
4587 | } | |
4588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4589 | { | |
4590 | if (temp3) | |
4591 | delete arg3; | |
4592 | } | |
4593 | { | |
4594 | if (temp7) | |
4595 | delete arg7; | |
4596 | } | |
4597 | return resultobj; | |
4598 | fail: | |
4599 | { | |
4600 | if (temp3) | |
4601 | delete arg3; | |
4602 | } | |
4603 | { | |
4604 | if (temp7) | |
4605 | delete arg7; | |
4606 | } | |
4607 | return NULL; | |
4608 | } | |
4609 | ||
4610 | ||
4611 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4612 | PyObject *resultobj; | |
4613 | wxMiniFrame *result; | |
4614 | char *kwnames[] = { | |
4615 | NULL | |
4616 | }; | |
4617 | ||
4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4619 | { | |
4620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4621 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4622 | ||
4623 | wxPyEndAllowThreads(__tstate); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4627 | return resultobj; | |
4628 | fail: | |
4629 | return NULL; | |
4630 | } | |
4631 | ||
4632 | ||
4633 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4634 | PyObject *resultobj; | |
4635 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4636 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4637 | int arg3 ; | |
4638 | wxString *arg4 = 0 ; | |
4639 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4640 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4641 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4642 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4643 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4644 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4645 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4646 | bool result; | |
4647 | bool temp4 = False ; | |
4648 | wxPoint temp5 ; | |
4649 | wxSize temp6 ; | |
4650 | bool temp8 = False ; | |
4651 | PyObject * obj0 = 0 ; | |
4652 | PyObject * obj1 = 0 ; | |
4653 | PyObject * obj2 = 0 ; | |
4654 | PyObject * obj3 = 0 ; | |
4655 | PyObject * obj4 = 0 ; | |
4656 | PyObject * obj5 = 0 ; | |
4657 | PyObject * obj6 = 0 ; | |
4658 | PyObject * obj7 = 0 ; | |
4659 | char *kwnames[] = { | |
4660 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4661 | }; | |
4662 | ||
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, | |
4665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4668 | arg3 = (int const) SWIG_AsInt(obj2); | |
4669 | if (PyErr_Occurred()) SWIG_fail; | |
4670 | { | |
4671 | arg4 = wxString_in_helper(obj3); | |
4672 | if (arg4 == NULL) SWIG_fail; | |
4673 | temp4 = True; | |
4674 | } | |
4675 | if (obj4) { | |
4676 | { | |
4677 | arg5 = &temp5; | |
4678 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4679 | } | |
4680 | } | |
4681 | if (obj5) { | |
4682 | { | |
4683 | arg6 = &temp6; | |
4684 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4685 | } | |
4686 | } | |
4687 | if (obj6) { | |
4688 | arg7 = (long) SWIG_AsLong(obj6); | |
4689 | if (PyErr_Occurred()) SWIG_fail; | |
4690 | } | |
4691 | if (obj7) { | |
4692 | { | |
4693 | arg8 = wxString_in_helper(obj7); | |
4694 | if (arg8 == NULL) SWIG_fail; | |
4695 | temp8 = True; | |
4696 | } | |
4697 | } | |
4698 | { | |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | { | |
4706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4707 | } | |
4708 | { | |
4709 | if (temp4) | |
4710 | delete arg4; | |
4711 | } | |
4712 | { | |
4713 | if (temp8) | |
4714 | delete arg8; | |
4715 | } | |
4716 | return resultobj; | |
4717 | fail: | |
4718 | { | |
4719 | if (temp4) | |
4720 | delete arg4; | |
4721 | } | |
4722 | { | |
4723 | if (temp8) | |
4724 | delete arg8; | |
4725 | } | |
4726 | return NULL; | |
4727 | } | |
4728 | ||
4729 | ||
4730 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4731 | PyObject *obj; | |
4732 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4733 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4734 | Py_INCREF(obj); | |
4735 | return Py_BuildValue((char *)""); | |
4736 | } | |
4737 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4738 | PyObject *resultobj; | |
4739 | wxBitmap *arg1 = 0 ; | |
4740 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4741 | int arg3 ; | |
4742 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4743 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4744 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4745 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4746 | long arg6 = (long) wxNO_BORDER ; | |
4747 | wxSplashScreenWindow *result; | |
4748 | wxPoint temp4 ; | |
4749 | wxSize temp5 ; | |
4750 | PyObject * obj0 = 0 ; | |
4751 | PyObject * obj1 = 0 ; | |
4752 | PyObject * obj2 = 0 ; | |
4753 | PyObject * obj3 = 0 ; | |
4754 | PyObject * obj4 = 0 ; | |
4755 | PyObject * obj5 = 0 ; | |
4756 | char *kwnames[] = { | |
4757 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4758 | }; | |
4759 | ||
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4762 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4763 | SWIG_fail; | |
4764 | if (arg1 == NULL) { | |
4765 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4766 | SWIG_fail; | |
4767 | } | |
4768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4770 | arg3 = (int) SWIG_AsInt(obj2); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | if (obj3) { | |
4773 | { | |
4774 | arg4 = &temp4; | |
4775 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4776 | } | |
4777 | } | |
4778 | if (obj4) { | |
4779 | { | |
4780 | arg5 = &temp5; | |
4781 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4782 | } | |
4783 | } | |
4784 | if (obj5) { | |
4785 | arg6 = (long) SWIG_AsLong(obj5); | |
4786 | if (PyErr_Occurred()) SWIG_fail; | |
4787 | } | |
4788 | { | |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4790 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4791 | ||
4792 | wxPyEndAllowThreads(__tstate); | |
4793 | if (PyErr_Occurred()) SWIG_fail; | |
4794 | } | |
4795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4796 | return resultobj; | |
4797 | fail: | |
4798 | return NULL; | |
4799 | } | |
4800 | ||
4801 | ||
4802 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4803 | PyObject *resultobj; | |
4804 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4805 | wxBitmap *arg2 = 0 ; | |
4806 | PyObject * obj0 = 0 ; | |
4807 | PyObject * obj1 = 0 ; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "self",(char *) "bitmap", NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4817 | SWIG_fail; | |
4818 | if (arg2 == NULL) { | |
4819 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4820 | SWIG_fail; | |
4821 | } | |
4822 | { | |
4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4824 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4825 | ||
4826 | wxPyEndAllowThreads(__tstate); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | } | |
4829 | Py_INCREF(Py_None); resultobj = Py_None; | |
4830 | return resultobj; | |
4831 | fail: | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
4836 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4837 | PyObject *resultobj; | |
4838 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4839 | wxBitmap *result; | |
4840 | PyObject * obj0 = 0 ; | |
4841 | char *kwnames[] = { | |
4842 | (char *) "self", NULL | |
4843 | }; | |
4844 | ||
4845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4848 | { | |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4850 | { | |
4851 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4852 | result = (wxBitmap *) &_result_ref; | |
4853 | } | |
4854 | ||
4855 | wxPyEndAllowThreads(__tstate); | |
4856 | if (PyErr_Occurred()) SWIG_fail; | |
4857 | } | |
4858 | { | |
4859 | wxBitmap* resultptr = new wxBitmap(*result); | |
4860 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4861 | } | |
4862 | return resultobj; | |
4863 | fail: | |
4864 | return NULL; | |
4865 | } | |
4866 | ||
4867 | ||
4868 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4869 | PyObject *obj; | |
4870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4871 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4872 | Py_INCREF(obj); | |
4873 | return Py_BuildValue((char *)""); | |
4874 | } | |
4875 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxBitmap *arg1 = 0 ; | |
4878 | long arg2 ; | |
4879 | int arg3 ; | |
4880 | wxWindow *arg4 = (wxWindow *) 0 ; | |
4881 | int arg5 ; | |
4882 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
4883 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4884 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4885 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4886 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4887 | wxSplashScreen *result; | |
4888 | wxPoint temp6 ; | |
4889 | wxSize temp7 ; | |
4890 | PyObject * obj0 = 0 ; | |
4891 | PyObject * obj1 = 0 ; | |
4892 | PyObject * obj2 = 0 ; | |
4893 | PyObject * obj3 = 0 ; | |
4894 | PyObject * obj4 = 0 ; | |
4895 | PyObject * obj5 = 0 ; | |
4896 | PyObject * obj6 = 0 ; | |
4897 | PyObject * obj7 = 0 ; | |
4898 | char *kwnames[] = { | |
4899 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4900 | }; | |
4901 | ||
4902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4905 | SWIG_fail; | |
4906 | if (arg1 == NULL) { | |
4907 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4908 | SWIG_fail; | |
4909 | } | |
4910 | arg2 = (long) SWIG_AsLong(obj1); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | arg3 = (int) SWIG_AsInt(obj2); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4916 | arg5 = (int) SWIG_AsInt(obj4); | |
4917 | if (PyErr_Occurred()) SWIG_fail; | |
4918 | if (obj5) { | |
4919 | { | |
4920 | arg6 = &temp6; | |
4921 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4922 | } | |
4923 | } | |
4924 | if (obj6) { | |
4925 | { | |
4926 | arg7 = &temp7; | |
4927 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4928 | } | |
4929 | } | |
4930 | if (obj7) { | |
4931 | arg8 = (long) SWIG_AsLong(obj7); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | } | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
4942 | return resultobj; | |
4943 | fail: | |
4944 | return NULL; | |
4945 | } | |
4946 | ||
4947 | ||
4948 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4949 | PyObject *resultobj; | |
4950 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4951 | long result; | |
4952 | PyObject * obj0 = 0 ; | |
4953 | char *kwnames[] = { | |
4954 | (char *) "self", NULL | |
4955 | }; | |
4956 | ||
4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4960 | { | |
4961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4962 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4963 | ||
4964 | wxPyEndAllowThreads(__tstate); | |
4965 | if (PyErr_Occurred()) SWIG_fail; | |
4966 | } | |
4967 | resultobj = SWIG_FromLong((long)result); | |
4968 | return resultobj; | |
4969 | fail: | |
4970 | return NULL; | |
4971 | } | |
4972 | ||
4973 | ||
4974 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4975 | PyObject *resultobj; | |
4976 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4977 | wxSplashScreenWindow *result; | |
4978 | PyObject * obj0 = 0 ; | |
4979 | char *kwnames[] = { | |
4980 | (char *) "self", NULL | |
4981 | }; | |
4982 | ||
4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
4984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4986 | { | |
4987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4988 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
4989 | ||
4990 | wxPyEndAllowThreads(__tstate); | |
4991 | if (PyErr_Occurred()) SWIG_fail; | |
4992 | } | |
4993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
4994 | return resultobj; | |
4995 | fail: | |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
5000 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5001 | PyObject *resultobj; | |
5002 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5003 | int result; | |
5004 | PyObject * obj0 = 0 ; | |
5005 | char *kwnames[] = { | |
5006 | (char *) "self", NULL | |
5007 | }; | |
5008 | ||
5009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
5010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5012 | { | |
5013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5014 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
5015 | ||
5016 | wxPyEndAllowThreads(__tstate); | |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
5018 | } | |
5019 | resultobj = SWIG_FromInt((int)result); | |
5020 | return resultobj; | |
5021 | fail: | |
5022 | return NULL; | |
5023 | } | |
5024 | ||
5025 | ||
5026 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
5027 | PyObject *obj; | |
5028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5029 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
5030 | Py_INCREF(obj); | |
5031 | return Py_BuildValue((char *)""); | |
5032 | } | |
5033 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject *resultobj; | |
5035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5036 | int arg2 = (int) -1 ; | |
5037 | long arg3 = (long) wxST_SIZEGRIP ; | |
5038 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
5039 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5040 | wxStatusBar *result; | |
5041 | bool temp4 = False ; | |
5042 | PyObject * obj0 = 0 ; | |
5043 | PyObject * obj1 = 0 ; | |
5044 | PyObject * obj2 = 0 ; | |
5045 | PyObject * obj3 = 0 ; | |
5046 | char *kwnames[] = { | |
5047 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5048 | }; | |
5049 | ||
5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5053 | if (obj1) { | |
5054 | arg2 = (int) SWIG_AsInt(obj1); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | } | |
5057 | if (obj2) { | |
5058 | arg3 = (long) SWIG_AsLong(obj2); | |
5059 | if (PyErr_Occurred()) SWIG_fail; | |
5060 | } | |
5061 | if (obj3) { | |
5062 | { | |
5063 | arg4 = wxString_in_helper(obj3); | |
5064 | if (arg4 == NULL) SWIG_fail; | |
5065 | temp4 = True; | |
5066 | } | |
5067 | } | |
5068 | { | |
5069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5070 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5071 | ||
5072 | wxPyEndAllowThreads(__tstate); | |
5073 | if (PyErr_Occurred()) SWIG_fail; | |
5074 | } | |
5075 | { | |
5076 | resultobj = wxPyMake_wxObject(result); | |
5077 | } | |
5078 | { | |
5079 | if (temp4) | |
5080 | delete arg4; | |
5081 | } | |
5082 | return resultobj; | |
5083 | fail: | |
5084 | { | |
5085 | if (temp4) | |
5086 | delete arg4; | |
5087 | } | |
5088 | return NULL; | |
5089 | } | |
5090 | ||
5091 | ||
5092 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5093 | PyObject *resultobj; | |
5094 | wxStatusBar *result; | |
5095 | char *kwnames[] = { | |
5096 | NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5100 | { | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | result = (wxStatusBar *)new wxStatusBar(); | |
5103 | ||
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | { | |
5108 | resultobj = wxPyMake_wxObject(result); | |
5109 | } | |
5110 | return resultobj; | |
5111 | fail: | |
5112 | return NULL; | |
5113 | } | |
5114 | ||
5115 | ||
5116 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5117 | PyObject *resultobj; | |
5118 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5119 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5120 | int arg3 ; | |
5121 | long arg4 = (long) wxST_SIZEGRIP ; | |
5122 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5123 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5124 | bool result; | |
5125 | bool temp5 = False ; | |
5126 | PyObject * obj0 = 0 ; | |
5127 | PyObject * obj1 = 0 ; | |
5128 | PyObject * obj2 = 0 ; | |
5129 | PyObject * obj3 = 0 ; | |
5130 | PyObject * obj4 = 0 ; | |
5131 | char *kwnames[] = { | |
5132 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5133 | }; | |
5134 | ||
5135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5138 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5140 | arg3 = (int) SWIG_AsInt(obj2); | |
5141 | if (PyErr_Occurred()) SWIG_fail; | |
5142 | if (obj3) { | |
5143 | arg4 = (long) SWIG_AsLong(obj3); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
5146 | if (obj4) { | |
5147 | { | |
5148 | arg5 = wxString_in_helper(obj4); | |
5149 | if (arg5 == NULL) SWIG_fail; | |
5150 | temp5 = True; | |
5151 | } | |
5152 | } | |
5153 | { | |
5154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5155 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5156 | ||
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | } | |
5160 | { | |
5161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5162 | } | |
5163 | { | |
5164 | if (temp5) | |
5165 | delete arg5; | |
5166 | } | |
5167 | return resultobj; | |
5168 | fail: | |
5169 | { | |
5170 | if (temp5) | |
5171 | delete arg5; | |
5172 | } | |
5173 | return NULL; | |
5174 | } | |
5175 | ||
5176 | ||
5177 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5178 | PyObject *resultobj; | |
5179 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5180 | int arg2 = (int) 1 ; | |
5181 | PyObject * obj0 = 0 ; | |
5182 | PyObject * obj1 = 0 ; | |
5183 | char *kwnames[] = { | |
5184 | (char *) "self",(char *) "number", NULL | |
5185 | }; | |
5186 | ||
5187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5190 | if (obj1) { | |
5191 | arg2 = (int) SWIG_AsInt(obj1); | |
5192 | if (PyErr_Occurred()) SWIG_fail; | |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | (arg1)->SetFieldsCount(arg2); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | Py_INCREF(Py_None); resultobj = Py_None; | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
5208 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5209 | PyObject *resultobj; | |
5210 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5211 | int result; | |
5212 | PyObject * obj0 = 0 ; | |
5213 | char *kwnames[] = { | |
5214 | (char *) "self", NULL | |
5215 | }; | |
5216 | ||
5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5220 | { | |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5222 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | resultobj = SWIG_FromInt((int)result); | |
5228 | return resultobj; | |
5229 | fail: | |
5230 | return NULL; | |
5231 | } | |
5232 | ||
5233 | ||
5234 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject *resultobj; | |
5236 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5237 | wxString *arg2 = 0 ; | |
5238 | int arg3 = (int) 0 ; | |
5239 | bool temp2 = False ; | |
5240 | PyObject * obj0 = 0 ; | |
5241 | PyObject * obj1 = 0 ; | |
5242 | PyObject * obj2 = 0 ; | |
5243 | char *kwnames[] = { | |
5244 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5245 | }; | |
5246 | ||
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5250 | { | |
5251 | arg2 = wxString_in_helper(obj1); | |
5252 | if (arg2 == NULL) SWIG_fail; | |
5253 | temp2 = True; | |
5254 | } | |
5255 | if (obj2) { | |
5256 | arg3 = (int) SWIG_AsInt(obj2); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5262 | ||
5263 | wxPyEndAllowThreads(__tstate); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | Py_INCREF(Py_None); resultobj = Py_None; | |
5267 | { | |
5268 | if (temp2) | |
5269 | delete arg2; | |
5270 | } | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | { | |
5274 | if (temp2) | |
5275 | delete arg2; | |
5276 | } | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5284 | int arg2 = (int) 0 ; | |
5285 | wxString result; | |
5286 | PyObject * obj0 = 0 ; | |
5287 | PyObject * obj1 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "self",(char *) "number", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5295 | if (obj1) { | |
5296 | arg2 = (int) SWIG_AsInt(obj1); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | { | |
5307 | #if wxUSE_UNICODE | |
5308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5309 | #else | |
5310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5311 | #endif | |
5312 | } | |
5313 | return resultobj; | |
5314 | fail: | |
5315 | return NULL; | |
5316 | } | |
5317 | ||
5318 | ||
5319 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5320 | PyObject *resultobj; | |
5321 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5322 | wxString *arg2 = 0 ; | |
5323 | int arg3 = (int) 0 ; | |
5324 | bool temp2 = False ; | |
5325 | PyObject * obj0 = 0 ; | |
5326 | PyObject * obj1 = 0 ; | |
5327 | PyObject * obj2 = 0 ; | |
5328 | char *kwnames[] = { | |
5329 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5330 | }; | |
5331 | ||
5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5335 | { | |
5336 | arg2 = wxString_in_helper(obj1); | |
5337 | if (arg2 == NULL) SWIG_fail; | |
5338 | temp2 = True; | |
5339 | } | |
5340 | if (obj2) { | |
5341 | arg3 = (int) SWIG_AsInt(obj2); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
5344 | { | |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5346 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5347 | ||
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | Py_INCREF(Py_None); resultobj = Py_None; | |
5352 | { | |
5353 | if (temp2) | |
5354 | delete arg2; | |
5355 | } | |
5356 | return resultobj; | |
5357 | fail: | |
5358 | { | |
5359 | if (temp2) | |
5360 | delete arg2; | |
5361 | } | |
5362 | return NULL; | |
5363 | } | |
5364 | ||
5365 | ||
5366 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject *resultobj; | |
5368 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5369 | int arg2 = (int) 0 ; | |
5370 | PyObject * obj0 = 0 ; | |
5371 | PyObject * obj1 = 0 ; | |
5372 | char *kwnames[] = { | |
5373 | (char *) "self",(char *) "number", NULL | |
5374 | }; | |
5375 | ||
5376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5379 | if (obj1) { | |
5380 | arg2 = (int) SWIG_AsInt(obj1); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | { | |
5384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5385 | (arg1)->PopStatusText(arg2); | |
5386 | ||
5387 | wxPyEndAllowThreads(__tstate); | |
5388 | if (PyErr_Occurred()) SWIG_fail; | |
5389 | } | |
5390 | Py_INCREF(Py_None); resultobj = Py_None; | |
5391 | return resultobj; | |
5392 | fail: | |
5393 | return NULL; | |
5394 | } | |
5395 | ||
5396 | ||
5397 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5398 | PyObject *resultobj; | |
5399 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5400 | int arg2 ; | |
5401 | int *arg3 = (int *) 0 ; | |
5402 | PyObject * obj0 = 0 ; | |
5403 | PyObject * obj1 = 0 ; | |
5404 | char *kwnames[] = { | |
5405 | (char *) "self",(char *) "widths", NULL | |
5406 | }; | |
5407 | ||
5408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5411 | { | |
5412 | arg2 = PyList_Size(obj1); | |
5413 | arg3 = int_LIST_helper(obj1); | |
5414 | if (arg3 == NULL) SWIG_fail; | |
5415 | } | |
5416 | { | |
5417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5418 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5419 | ||
5420 | wxPyEndAllowThreads(__tstate); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | Py_INCREF(Py_None); resultobj = Py_None; | |
5424 | { | |
5425 | if (arg3) delete [] arg3; | |
5426 | } | |
5427 | return resultobj; | |
5428 | fail: | |
5429 | { | |
5430 | if (arg3) delete [] arg3; | |
5431 | } | |
5432 | return NULL; | |
5433 | } | |
5434 | ||
5435 | ||
5436 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5439 | int arg2 ; | |
5440 | wxRect result; | |
5441 | PyObject * obj0 = 0 ; | |
5442 | PyObject * obj1 = 0 ; | |
5443 | char *kwnames[] = { | |
5444 | (char *) "self",(char *) "i", NULL | |
5445 | }; | |
5446 | ||
5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5450 | arg2 = (int) SWIG_AsInt(obj1); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | { | |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5454 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5455 | ||
5456 | wxPyEndAllowThreads(__tstate); | |
5457 | if (PyErr_Occurred()) SWIG_fail; | |
5458 | } | |
5459 | { | |
5460 | wxRect * resultptr; | |
5461 | resultptr = new wxRect((wxRect &) result); | |
5462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5463 | } | |
5464 | return resultobj; | |
5465 | fail: | |
5466 | return NULL; | |
5467 | } | |
5468 | ||
5469 | ||
5470 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5471 | PyObject *resultobj; | |
5472 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5473 | int arg2 ; | |
5474 | PyObject * obj0 = 0 ; | |
5475 | PyObject * obj1 = 0 ; | |
5476 | char *kwnames[] = { | |
5477 | (char *) "self",(char *) "height", NULL | |
5478 | }; | |
5479 | ||
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5483 | arg2 = (int) SWIG_AsInt(obj1); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | { | |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5487 | (arg1)->SetMinHeight(arg2); | |
5488 | ||
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | Py_INCREF(Py_None); resultobj = Py_None; | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
5499 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5500 | PyObject *resultobj; | |
5501 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5502 | int result; | |
5503 | PyObject * obj0 = 0 ; | |
5504 | char *kwnames[] = { | |
5505 | (char *) "self", NULL | |
5506 | }; | |
5507 | ||
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5511 | { | |
5512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5513 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5514 | ||
5515 | wxPyEndAllowThreads(__tstate); | |
5516 | if (PyErr_Occurred()) SWIG_fail; | |
5517 | } | |
5518 | resultobj = SWIG_FromInt((int)result); | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | return NULL; | |
5522 | } | |
5523 | ||
5524 | ||
5525 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5526 | PyObject *resultobj; | |
5527 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5528 | int result; | |
5529 | PyObject * obj0 = 0 ; | |
5530 | char *kwnames[] = { | |
5531 | (char *) "self", NULL | |
5532 | }; | |
5533 | ||
5534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5537 | { | |
5538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5539 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5540 | ||
5541 | wxPyEndAllowThreads(__tstate); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
5543 | } | |
5544 | resultobj = SWIG_FromInt((int)result); | |
5545 | return resultobj; | |
5546 | fail: | |
5547 | return NULL; | |
5548 | } | |
5549 | ||
5550 | ||
5551 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5552 | PyObject *resultobj; | |
5553 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5554 | wxVisualAttributes result; | |
5555 | PyObject * obj0 = 0 ; | |
5556 | char *kwnames[] = { | |
5557 | (char *) "variant", NULL | |
5558 | }; | |
5559 | ||
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5561 | if (obj0) { | |
5562 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | } | |
5565 | { | |
5566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5567 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5568 | ||
5569 | wxPyEndAllowThreads(__tstate); | |
5570 | if (PyErr_Occurred()) SWIG_fail; | |
5571 | } | |
5572 | { | |
5573 | wxVisualAttributes * resultptr; | |
5574 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5576 | } | |
5577 | return resultobj; | |
5578 | fail: | |
5579 | return NULL; | |
5580 | } | |
5581 | ||
5582 | ||
5583 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { | |
5584 | PyObject *obj; | |
5585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5586 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5587 | Py_INCREF(obj); | |
5588 | return Py_BuildValue((char *)""); | |
5589 | } | |
5590 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5592 | return 1; | |
5593 | } | |
5594 | ||
5595 | ||
5596 | static PyObject *_wrap_SplitterNameStr_get() { | |
5597 | PyObject *pyobj; | |
5598 | ||
5599 | { | |
5600 | #if wxUSE_UNICODE | |
5601 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5602 | #else | |
5603 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5604 | #endif | |
5605 | } | |
5606 | return pyobj; | |
5607 | } | |
5608 | ||
5609 | ||
5610 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5611 | PyObject *resultobj; | |
5612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5613 | int arg2 = (int) -1 ; | |
5614 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5615 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5616 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5617 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5618 | long arg5 = (long) wxSP_3D ; | |
5619 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5620 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5621 | wxSplitterWindow *result; | |
5622 | wxPoint temp3 ; | |
5623 | wxSize temp4 ; | |
5624 | bool temp6 = False ; | |
5625 | PyObject * obj0 = 0 ; | |
5626 | PyObject * obj1 = 0 ; | |
5627 | PyObject * obj2 = 0 ; | |
5628 | PyObject * obj3 = 0 ; | |
5629 | PyObject * obj4 = 0 ; | |
5630 | PyObject * obj5 = 0 ; | |
5631 | char *kwnames[] = { | |
5632 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5633 | }; | |
5634 | ||
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5638 | if (obj1) { | |
5639 | arg2 = (int) SWIG_AsInt(obj1); | |
5640 | if (PyErr_Occurred()) SWIG_fail; | |
5641 | } | |
5642 | if (obj2) { | |
5643 | { | |
5644 | arg3 = &temp3; | |
5645 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5646 | } | |
5647 | } | |
5648 | if (obj3) { | |
5649 | { | |
5650 | arg4 = &temp4; | |
5651 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5652 | } | |
5653 | } | |
5654 | if (obj4) { | |
5655 | arg5 = (long) SWIG_AsLong(obj4); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
5657 | } | |
5658 | if (obj5) { | |
5659 | { | |
5660 | arg6 = wxString_in_helper(obj5); | |
5661 | if (arg6 == NULL) SWIG_fail; | |
5662 | temp6 = True; | |
5663 | } | |
5664 | } | |
5665 | { | |
5666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5667 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5668 | ||
5669 | wxPyEndAllowThreads(__tstate); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
5672 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5673 | { | |
5674 | if (temp6) | |
5675 | delete arg6; | |
5676 | } | |
5677 | return resultobj; | |
5678 | fail: | |
5679 | { | |
5680 | if (temp6) | |
5681 | delete arg6; | |
5682 | } | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
5687 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5688 | PyObject *resultobj; | |
5689 | wxSplitterWindow *result; | |
5690 | char *kwnames[] = { | |
5691 | NULL | |
5692 | }; | |
5693 | ||
5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5695 | { | |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5697 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5698 | ||
5699 | wxPyEndAllowThreads(__tstate); | |
5700 | if (PyErr_Occurred()) SWIG_fail; | |
5701 | } | |
5702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5703 | return resultobj; | |
5704 | fail: | |
5705 | return NULL; | |
5706 | } | |
5707 | ||
5708 | ||
5709 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5710 | PyObject *resultobj; | |
5711 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5712 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5713 | int arg3 = (int) -1 ; | |
5714 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5715 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5716 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5717 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5718 | long arg6 = (long) wxSP_3D ; | |
5719 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5720 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5721 | bool result; | |
5722 | wxPoint temp4 ; | |
5723 | wxSize temp5 ; | |
5724 | bool temp7 = False ; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | PyObject * obj1 = 0 ; | |
5727 | PyObject * obj2 = 0 ; | |
5728 | PyObject * obj3 = 0 ; | |
5729 | PyObject * obj4 = 0 ; | |
5730 | PyObject * obj5 = 0 ; | |
5731 | PyObject * obj6 = 0 ; | |
5732 | char *kwnames[] = { | |
5733 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5734 | }; | |
5735 | ||
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5741 | if (obj2) { | |
5742 | arg3 = (int) SWIG_AsInt(obj2); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
5745 | if (obj3) { | |
5746 | { | |
5747 | arg4 = &temp4; | |
5748 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5749 | } | |
5750 | } | |
5751 | if (obj4) { | |
5752 | { | |
5753 | arg5 = &temp5; | |
5754 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5755 | } | |
5756 | } | |
5757 | if (obj5) { | |
5758 | arg6 = (long) SWIG_AsLong(obj5); | |
5759 | if (PyErr_Occurred()) SWIG_fail; | |
5760 | } | |
5761 | if (obj6) { | |
5762 | { | |
5763 | arg7 = wxString_in_helper(obj6); | |
5764 | if (arg7 == NULL) SWIG_fail; | |
5765 | temp7 = True; | |
5766 | } | |
5767 | } | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5771 | ||
5772 | wxPyEndAllowThreads(__tstate); | |
5773 | if (PyErr_Occurred()) SWIG_fail; | |
5774 | } | |
5775 | { | |
5776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5777 | } | |
5778 | { | |
5779 | if (temp7) | |
5780 | delete arg7; | |
5781 | } | |
5782 | return resultobj; | |
5783 | fail: | |
5784 | { | |
5785 | if (temp7) | |
5786 | delete arg7; | |
5787 | } | |
5788 | return NULL; | |
5789 | } | |
5790 | ||
5791 | ||
5792 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5793 | PyObject *resultobj; | |
5794 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5795 | wxWindow *result; | |
5796 | PyObject * obj0 = 0 ; | |
5797 | char *kwnames[] = { | |
5798 | (char *) "self", NULL | |
5799 | }; | |
5800 | ||
5801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5804 | { | |
5805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5806 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5807 | ||
5808 | wxPyEndAllowThreads(__tstate); | |
5809 | if (PyErr_Occurred()) SWIG_fail; | |
5810 | } | |
5811 | { | |
5812 | resultobj = wxPyMake_wxObject(result); | |
5813 | } | |
5814 | return resultobj; | |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5821 | PyObject *resultobj; | |
5822 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5823 | wxWindow *result; | |
5824 | PyObject * obj0 = 0 ; | |
5825 | char *kwnames[] = { | |
5826 | (char *) "self", NULL | |
5827 | }; | |
5828 | ||
5829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5832 | { | |
5833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5834 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5835 | ||
5836 | wxPyEndAllowThreads(__tstate); | |
5837 | if (PyErr_Occurred()) SWIG_fail; | |
5838 | } | |
5839 | { | |
5840 | resultobj = wxPyMake_wxObject(result); | |
5841 | } | |
5842 | return resultobj; | |
5843 | fail: | |
5844 | return NULL; | |
5845 | } | |
5846 | ||
5847 | ||
5848 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5849 | PyObject *resultobj; | |
5850 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5851 | int arg2 ; | |
5852 | PyObject * obj0 = 0 ; | |
5853 | PyObject * obj1 = 0 ; | |
5854 | char *kwnames[] = { | |
5855 | (char *) "self",(char *) "mode", NULL | |
5856 | }; | |
5857 | ||
5858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5861 | arg2 = (int) SWIG_AsInt(obj1); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | { | |
5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5865 | (arg1)->SetSplitMode(arg2); | |
5866 | ||
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) SWIG_fail; | |
5869 | } | |
5870 | Py_INCREF(Py_None); resultobj = Py_None; | |
5871 | return resultobj; | |
5872 | fail: | |
5873 | return NULL; | |
5874 | } | |
5875 | ||
5876 | ||
5877 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5878 | PyObject *resultobj; | |
5879 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5880 | int result; | |
5881 | PyObject * obj0 = 0 ; | |
5882 | char *kwnames[] = { | |
5883 | (char *) "self", NULL | |
5884 | }; | |
5885 | ||
5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5892 | ||
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | } | |
5896 | resultobj = SWIG_FromInt((int)result); | |
5897 | return resultobj; | |
5898 | fail: | |
5899 | return NULL; | |
5900 | } | |
5901 | ||
5902 | ||
5903 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5904 | PyObject *resultobj; | |
5905 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5906 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5907 | PyObject * obj0 = 0 ; | |
5908 | PyObject * obj1 = 0 ; | |
5909 | char *kwnames[] = { | |
5910 | (char *) "self",(char *) "window", NULL | |
5911 | }; | |
5912 | ||
5913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5916 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5918 | { | |
5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5920 | (arg1)->Initialize(arg2); | |
5921 | ||
5922 | wxPyEndAllowThreads(__tstate); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | } | |
5925 | Py_INCREF(Py_None); resultobj = Py_None; | |
5926 | return resultobj; | |
5927 | fail: | |
5928 | return NULL; | |
5929 | } | |
5930 | ||
5931 | ||
5932 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5933 | PyObject *resultobj; | |
5934 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5935 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5936 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5937 | int arg4 = (int) 0 ; | |
5938 | bool result; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | PyObject * obj1 = 0 ; | |
5941 | PyObject * obj2 = 0 ; | |
5942 | PyObject * obj3 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5952 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5954 | if (obj3) { | |
5955 | arg4 = (int) SWIG_AsInt(obj3); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | { | |
5966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5967 | } | |
5968 | return resultobj; | |
5969 | fail: | |
5970 | return NULL; | |
5971 | } | |
5972 | ||
5973 | ||
5974 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject *resultobj; | |
5976 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5977 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5978 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5979 | int arg4 = (int) 0 ; | |
5980 | bool result; | |
5981 | PyObject * obj0 = 0 ; | |
5982 | PyObject * obj1 = 0 ; | |
5983 | PyObject * obj2 = 0 ; | |
5984 | PyObject * obj3 = 0 ; | |
5985 | char *kwnames[] = { | |
5986 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5987 | }; | |
5988 | ||
5989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5992 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5994 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5996 | if (obj3) { | |
5997 | arg4 = (int) SWIG_AsInt(obj3); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | { | |
6001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6002 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
6003 | ||
6004 | wxPyEndAllowThreads(__tstate); | |
6005 | if (PyErr_Occurred()) SWIG_fail; | |
6006 | } | |
6007 | { | |
6008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6009 | } | |
6010 | return resultobj; | |
6011 | fail: | |
6012 | return NULL; | |
6013 | } | |
6014 | ||
6015 | ||
6016 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6017 | PyObject *resultobj; | |
6018 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6019 | wxWindow *arg2 = (wxWindow *) NULL ; | |
6020 | bool result; | |
6021 | PyObject * obj0 = 0 ; | |
6022 | PyObject * obj1 = 0 ; | |
6023 | char *kwnames[] = { | |
6024 | (char *) "self",(char *) "toRemove", NULL | |
6025 | }; | |
6026 | ||
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
6028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6030 | if (obj1) { | |
6031 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6033 | } | |
6034 | { | |
6035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6036 | result = (bool)(arg1)->Unsplit(arg2); | |
6037 | ||
6038 | wxPyEndAllowThreads(__tstate); | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | { | |
6042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6043 | } | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject *resultobj; | |
6052 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6054 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6055 | bool result; | |
6056 | PyObject * obj0 = 0 ; | |
6057 | PyObject * obj1 = 0 ; | |
6058 | PyObject * obj2 = 0 ; | |
6059 | char *kwnames[] = { | |
6060 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6061 | }; | |
6062 | ||
6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6068 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6070 | { | |
6071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6072 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6073 | ||
6074 | wxPyEndAllowThreads(__tstate); | |
6075 | if (PyErr_Occurred()) SWIG_fail; | |
6076 | } | |
6077 | { | |
6078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6079 | } | |
6080 | return resultobj; | |
6081 | fail: | |
6082 | return NULL; | |
6083 | } | |
6084 | ||
6085 | ||
6086 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6087 | PyObject *resultobj; | |
6088 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6089 | PyObject * obj0 = 0 ; | |
6090 | char *kwnames[] = { | |
6091 | (char *) "self", NULL | |
6092 | }; | |
6093 | ||
6094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6097 | { | |
6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6099 | (arg1)->UpdateSize(); | |
6100 | ||
6101 | wxPyEndAllowThreads(__tstate); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
6103 | } | |
6104 | Py_INCREF(Py_None); resultobj = Py_None; | |
6105 | return resultobj; | |
6106 | fail: | |
6107 | return NULL; | |
6108 | } | |
6109 | ||
6110 | ||
6111 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6112 | PyObject *resultobj; | |
6113 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6114 | bool result; | |
6115 | PyObject * obj0 = 0 ; | |
6116 | char *kwnames[] = { | |
6117 | (char *) "self", NULL | |
6118 | }; | |
6119 | ||
6120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6123 | { | |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) SWIG_fail; | |
6129 | } | |
6130 | { | |
6131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6132 | } | |
6133 | return resultobj; | |
6134 | fail: | |
6135 | return NULL; | |
6136 | } | |
6137 | ||
6138 | ||
6139 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject *resultobj; | |
6141 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6142 | int arg2 ; | |
6143 | PyObject * obj0 = 0 ; | |
6144 | PyObject * obj1 = 0 ; | |
6145 | char *kwnames[] = { | |
6146 | (char *) "self",(char *) "width", NULL | |
6147 | }; | |
6148 | ||
6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6152 | arg2 = (int) SWIG_AsInt(obj1); | |
6153 | if (PyErr_Occurred()) SWIG_fail; | |
6154 | { | |
6155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6156 | (arg1)->SetSashSize(arg2); | |
6157 | ||
6158 | wxPyEndAllowThreads(__tstate); | |
6159 | if (PyErr_Occurred()) SWIG_fail; | |
6160 | } | |
6161 | Py_INCREF(Py_None); resultobj = Py_None; | |
6162 | return resultobj; | |
6163 | fail: | |
6164 | return NULL; | |
6165 | } | |
6166 | ||
6167 | ||
6168 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6169 | PyObject *resultobj; | |
6170 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6171 | int arg2 ; | |
6172 | PyObject * obj0 = 0 ; | |
6173 | PyObject * obj1 = 0 ; | |
6174 | char *kwnames[] = { | |
6175 | (char *) "self",(char *) "width", NULL | |
6176 | }; | |
6177 | ||
6178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6181 | arg2 = (int) SWIG_AsInt(obj1); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | (arg1)->SetBorderSize(arg2); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | Py_INCREF(Py_None); resultobj = Py_None; | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
6197 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6198 | PyObject *resultobj; | |
6199 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6200 | int result; | |
6201 | PyObject * obj0 = 0 ; | |
6202 | char *kwnames[] = { | |
6203 | (char *) "self", NULL | |
6204 | }; | |
6205 | ||
6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6209 | { | |
6210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6211 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6212 | ||
6213 | wxPyEndAllowThreads(__tstate); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
6215 | } | |
6216 | resultobj = SWIG_FromInt((int)result); | |
6217 | return resultobj; | |
6218 | fail: | |
6219 | return NULL; | |
6220 | } | |
6221 | ||
6222 | ||
6223 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6224 | PyObject *resultobj; | |
6225 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6226 | int result; | |
6227 | PyObject * obj0 = 0 ; | |
6228 | char *kwnames[] = { | |
6229 | (char *) "self", NULL | |
6230 | }; | |
6231 | ||
6232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6235 | { | |
6236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6237 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6238 | ||
6239 | wxPyEndAllowThreads(__tstate); | |
6240 | if (PyErr_Occurred()) SWIG_fail; | |
6241 | } | |
6242 | resultobj = SWIG_FromInt((int)result); | |
6243 | return resultobj; | |
6244 | fail: | |
6245 | return NULL; | |
6246 | } | |
6247 | ||
6248 | ||
6249 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6250 | PyObject *resultobj; | |
6251 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6252 | int arg2 ; | |
6253 | bool arg3 = (bool) True ; | |
6254 | PyObject * obj0 = 0 ; | |
6255 | PyObject * obj1 = 0 ; | |
6256 | PyObject * obj2 = 0 ; | |
6257 | char *kwnames[] = { | |
6258 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6259 | }; | |
6260 | ||
6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6264 | arg2 = (int) SWIG_AsInt(obj1); | |
6265 | if (PyErr_Occurred()) SWIG_fail; | |
6266 | if (obj2) { | |
6267 | arg3 = (bool) SWIG_AsBool(obj2); | |
6268 | if (PyErr_Occurred()) SWIG_fail; | |
6269 | } | |
6270 | { | |
6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6272 | (arg1)->SetSashPosition(arg2,arg3); | |
6273 | ||
6274 | wxPyEndAllowThreads(__tstate); | |
6275 | if (PyErr_Occurred()) SWIG_fail; | |
6276 | } | |
6277 | Py_INCREF(Py_None); resultobj = Py_None; | |
6278 | return resultobj; | |
6279 | fail: | |
6280 | return NULL; | |
6281 | } | |
6282 | ||
6283 | ||
6284 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6285 | PyObject *resultobj; | |
6286 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6287 | int result; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | char *kwnames[] = { | |
6290 | (char *) "self", NULL | |
6291 | }; | |
6292 | ||
6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6296 | { | |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | resultobj = SWIG_FromInt((int)result); | |
6304 | return resultobj; | |
6305 | fail: | |
6306 | return NULL; | |
6307 | } | |
6308 | ||
6309 | ||
6310 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6311 | PyObject *resultobj; | |
6312 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6313 | int arg2 ; | |
6314 | PyObject * obj0 = 0 ; | |
6315 | PyObject * obj1 = 0 ; | |
6316 | char *kwnames[] = { | |
6317 | (char *) "self",(char *) "min", NULL | |
6318 | }; | |
6319 | ||
6320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6323 | arg2 = (int) SWIG_AsInt(obj1); | |
6324 | if (PyErr_Occurred()) SWIG_fail; | |
6325 | { | |
6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6327 | (arg1)->SetMinimumPaneSize(arg2); | |
6328 | ||
6329 | wxPyEndAllowThreads(__tstate); | |
6330 | if (PyErr_Occurred()) SWIG_fail; | |
6331 | } | |
6332 | Py_INCREF(Py_None); resultobj = Py_None; | |
6333 | return resultobj; | |
6334 | fail: | |
6335 | return NULL; | |
6336 | } | |
6337 | ||
6338 | ||
6339 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6340 | PyObject *resultobj; | |
6341 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6342 | int result; | |
6343 | PyObject * obj0 = 0 ; | |
6344 | char *kwnames[] = { | |
6345 | (char *) "self", NULL | |
6346 | }; | |
6347 | ||
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6351 | { | |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6353 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
6356 | if (PyErr_Occurred()) SWIG_fail; | |
6357 | } | |
6358 | resultobj = SWIG_FromInt((int)result); | |
6359 | return resultobj; | |
6360 | fail: | |
6361 | return NULL; | |
6362 | } | |
6363 | ||
6364 | ||
6365 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6366 | PyObject *resultobj; | |
6367 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6368 | int arg2 ; | |
6369 | int arg3 ; | |
6370 | int arg4 = (int) 5 ; | |
6371 | bool result; | |
6372 | PyObject * obj0 = 0 ; | |
6373 | PyObject * obj1 = 0 ; | |
6374 | PyObject * obj2 = 0 ; | |
6375 | PyObject * obj3 = 0 ; | |
6376 | char *kwnames[] = { | |
6377 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6378 | }; | |
6379 | ||
6380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6383 | arg2 = (int) SWIG_AsInt(obj1); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | arg3 = (int) SWIG_AsInt(obj2); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | if (obj3) { | |
6388 | arg4 = (int) SWIG_AsInt(obj3); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | { | |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6394 | ||
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | { | |
6399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6400 | } | |
6401 | return resultobj; | |
6402 | fail: | |
6403 | return NULL; | |
6404 | } | |
6405 | ||
6406 | ||
6407 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6408 | PyObject *resultobj; | |
6409 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6410 | PyObject * obj0 = 0 ; | |
6411 | char *kwnames[] = { | |
6412 | (char *) "self", NULL | |
6413 | }; | |
6414 | ||
6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6418 | { | |
6419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6420 | (arg1)->SizeWindows(); | |
6421 | ||
6422 | wxPyEndAllowThreads(__tstate); | |
6423 | if (PyErr_Occurred()) SWIG_fail; | |
6424 | } | |
6425 | Py_INCREF(Py_None); resultobj = Py_None; | |
6426 | return resultobj; | |
6427 | fail: | |
6428 | return NULL; | |
6429 | } | |
6430 | ||
6431 | ||
6432 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject *resultobj; | |
6434 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6435 | bool arg2 ; | |
6436 | PyObject * obj0 = 0 ; | |
6437 | PyObject * obj1 = 0 ; | |
6438 | char *kwnames[] = { | |
6439 | (char *) "self",(char *) "needUpdating", NULL | |
6440 | }; | |
6441 | ||
6442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6445 | arg2 = (bool) SWIG_AsBool(obj1); | |
6446 | if (PyErr_Occurred()) SWIG_fail; | |
6447 | { | |
6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6449 | (arg1)->SetNeedUpdating(arg2); | |
6450 | ||
6451 | wxPyEndAllowThreads(__tstate); | |
6452 | if (PyErr_Occurred()) SWIG_fail; | |
6453 | } | |
6454 | Py_INCREF(Py_None); resultobj = Py_None; | |
6455 | return resultobj; | |
6456 | fail: | |
6457 | return NULL; | |
6458 | } | |
6459 | ||
6460 | ||
6461 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6462 | PyObject *resultobj; | |
6463 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6464 | bool result; | |
6465 | PyObject * obj0 = 0 ; | |
6466 | char *kwnames[] = { | |
6467 | (char *) "self", NULL | |
6468 | }; | |
6469 | ||
6470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | { | |
6481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6482 | } | |
6483 | return resultobj; | |
6484 | fail: | |
6485 | return NULL; | |
6486 | } | |
6487 | ||
6488 | ||
6489 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6490 | PyObject *resultobj; | |
6491 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6492 | wxVisualAttributes result; | |
6493 | PyObject * obj0 = 0 ; | |
6494 | char *kwnames[] = { | |
6495 | (char *) "variant", NULL | |
6496 | }; | |
6497 | ||
6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6499 | if (obj0) { | |
6500 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6506 | ||
6507 | wxPyEndAllowThreads(__tstate); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | } | |
6510 | { | |
6511 | wxVisualAttributes * resultptr; | |
6512 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6514 | } | |
6515 | return resultobj; | |
6516 | fail: | |
6517 | return NULL; | |
6518 | } | |
6519 | ||
6520 | ||
6521 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { | |
6522 | PyObject *obj; | |
6523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6524 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6525 | Py_INCREF(obj); | |
6526 | return Py_BuildValue((char *)""); | |
6527 | } | |
6528 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6529 | PyObject *resultobj; | |
6530 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6531 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6532 | wxSplitterEvent *result; | |
6533 | PyObject * obj0 = 0 ; | |
6534 | PyObject * obj1 = 0 ; | |
6535 | char *kwnames[] = { | |
6536 | (char *) "type",(char *) "splitter", NULL | |
6537 | }; | |
6538 | ||
6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6540 | if (obj0) { | |
6541 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6542 | if (PyErr_Occurred()) SWIG_fail; | |
6543 | } | |
6544 | if (obj1) { | |
6545 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6547 | } | |
6548 | { | |
6549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6550 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6551 | ||
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) SWIG_fail; | |
6554 | } | |
6555 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | return NULL; | |
6559 | } | |
6560 | ||
6561 | ||
6562 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6563 | PyObject *resultobj; | |
6564 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6565 | int arg2 ; | |
6566 | PyObject * obj0 = 0 ; | |
6567 | PyObject * obj1 = 0 ; | |
6568 | char *kwnames[] = { | |
6569 | (char *) "self",(char *) "pos", NULL | |
6570 | }; | |
6571 | ||
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6575 | arg2 = (int) SWIG_AsInt(obj1); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | (arg1)->SetSashPosition(arg2); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | Py_INCREF(Py_None); resultobj = Py_None; | |
6585 | return resultobj; | |
6586 | fail: | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
6591 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6592 | PyObject *resultobj; | |
6593 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6594 | int result; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6603 | { | |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | resultobj = SWIG_FromInt((int)result); | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
6617 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject *resultobj; | |
6619 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6620 | wxWindow *result; | |
6621 | PyObject * obj0 = 0 ; | |
6622 | char *kwnames[] = { | |
6623 | (char *) "self", NULL | |
6624 | }; | |
6625 | ||
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6629 | { | |
6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6631 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | { | |
6637 | resultobj = wxPyMake_wxObject(result); | |
6638 | } | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6646 | PyObject *resultobj; | |
6647 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6648 | int result; | |
6649 | PyObject * obj0 = 0 ; | |
6650 | char *kwnames[] = { | |
6651 | (char *) "self", NULL | |
6652 | }; | |
6653 | ||
6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | resultobj = SWIG_FromInt((int)result); | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj; | |
6673 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6674 | int result; | |
6675 | PyObject * obj0 = 0 ; | |
6676 | char *kwnames[] = { | |
6677 | (char *) "self", NULL | |
6678 | }; | |
6679 | ||
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | resultobj = SWIG_FromInt((int)result); | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6698 | PyObject *obj; | |
6699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6700 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6701 | Py_INCREF(obj); | |
6702 | return Py_BuildValue((char *)""); | |
6703 | } | |
6704 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6705 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6706 | return 1; | |
6707 | } | |
6708 | ||
6709 | ||
6710 | static PyObject *_wrap_SashNameStr_get() { | |
6711 | PyObject *pyobj; | |
6712 | ||
6713 | { | |
6714 | #if wxUSE_UNICODE | |
6715 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6716 | #else | |
6717 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6718 | #endif | |
6719 | } | |
6720 | return pyobj; | |
6721 | } | |
6722 | ||
6723 | ||
6724 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6725 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6726 | return 1; | |
6727 | } | |
6728 | ||
6729 | ||
6730 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6731 | PyObject *pyobj; | |
6732 | ||
6733 | { | |
6734 | #if wxUSE_UNICODE | |
6735 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6736 | #else | |
6737 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6738 | #endif | |
6739 | } | |
6740 | return pyobj; | |
6741 | } | |
6742 | ||
6743 | ||
6744 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6745 | PyObject *resultobj; | |
6746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6747 | int arg2 ; | |
6748 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6749 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6750 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6751 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6752 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6753 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6754 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6755 | wxSashWindow *result; | |
6756 | wxPoint temp3 ; | |
6757 | wxSize temp4 ; | |
6758 | bool temp6 = False ; | |
6759 | PyObject * obj0 = 0 ; | |
6760 | PyObject * obj1 = 0 ; | |
6761 | PyObject * obj2 = 0 ; | |
6762 | PyObject * obj3 = 0 ; | |
6763 | PyObject * obj4 = 0 ; | |
6764 | PyObject * obj5 = 0 ; | |
6765 | char *kwnames[] = { | |
6766 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6767 | }; | |
6768 | ||
6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6772 | arg2 = (int) SWIG_AsInt(obj1); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | if (obj2) { | |
6775 | { | |
6776 | arg3 = &temp3; | |
6777 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6778 | } | |
6779 | } | |
6780 | if (obj3) { | |
6781 | { | |
6782 | arg4 = &temp4; | |
6783 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6784 | } | |
6785 | } | |
6786 | if (obj4) { | |
6787 | arg5 = (long) SWIG_AsLong(obj4); | |
6788 | if (PyErr_Occurred()) SWIG_fail; | |
6789 | } | |
6790 | if (obj5) { | |
6791 | { | |
6792 | arg6 = wxString_in_helper(obj5); | |
6793 | if (arg6 == NULL) SWIG_fail; | |
6794 | temp6 = True; | |
6795 | } | |
6796 | } | |
6797 | { | |
6798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6799 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6800 | ||
6801 | wxPyEndAllowThreads(__tstate); | |
6802 | if (PyErr_Occurred()) SWIG_fail; | |
6803 | } | |
6804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6805 | { | |
6806 | if (temp6) | |
6807 | delete arg6; | |
6808 | } | |
6809 | return resultobj; | |
6810 | fail: | |
6811 | { | |
6812 | if (temp6) | |
6813 | delete arg6; | |
6814 | } | |
6815 | return NULL; | |
6816 | } | |
6817 | ||
6818 | ||
6819 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject *resultobj; | |
6821 | wxSashWindow *result; | |
6822 | char *kwnames[] = { | |
6823 | NULL | |
6824 | }; | |
6825 | ||
6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6827 | { | |
6828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6829 | result = (wxSashWindow *)new wxSashWindow(); | |
6830 | ||
6831 | wxPyEndAllowThreads(__tstate); | |
6832 | if (PyErr_Occurred()) SWIG_fail; | |
6833 | } | |
6834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6835 | return resultobj; | |
6836 | fail: | |
6837 | return NULL; | |
6838 | } | |
6839 | ||
6840 | ||
6841 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6842 | PyObject *resultobj; | |
6843 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6844 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6845 | int arg3 ; | |
6846 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6847 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6848 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6849 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6850 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6851 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6852 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6853 | bool result; | |
6854 | wxPoint temp4 ; | |
6855 | wxSize temp5 ; | |
6856 | bool temp7 = False ; | |
6857 | PyObject * obj0 = 0 ; | |
6858 | PyObject * obj1 = 0 ; | |
6859 | PyObject * obj2 = 0 ; | |
6860 | PyObject * obj3 = 0 ; | |
6861 | PyObject * obj4 = 0 ; | |
6862 | PyObject * obj5 = 0 ; | |
6863 | PyObject * obj6 = 0 ; | |
6864 | char *kwnames[] = { | |
6865 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6866 | }; | |
6867 | ||
6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6873 | arg3 = (int) SWIG_AsInt(obj2); | |
6874 | if (PyErr_Occurred()) SWIG_fail; | |
6875 | if (obj3) { | |
6876 | { | |
6877 | arg4 = &temp4; | |
6878 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6879 | } | |
6880 | } | |
6881 | if (obj4) { | |
6882 | { | |
6883 | arg5 = &temp5; | |
6884 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6885 | } | |
6886 | } | |
6887 | if (obj5) { | |
6888 | arg6 = (long) SWIG_AsLong(obj5); | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
6890 | } | |
6891 | if (obj6) { | |
6892 | { | |
6893 | arg7 = wxString_in_helper(obj6); | |
6894 | if (arg7 == NULL) SWIG_fail; | |
6895 | temp7 = True; | |
6896 | } | |
6897 | } | |
6898 | { | |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | { | |
6906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6907 | } | |
6908 | { | |
6909 | if (temp7) | |
6910 | delete arg7; | |
6911 | } | |
6912 | return resultobj; | |
6913 | fail: | |
6914 | { | |
6915 | if (temp7) | |
6916 | delete arg7; | |
6917 | } | |
6918 | return NULL; | |
6919 | } | |
6920 | ||
6921 | ||
6922 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6923 | PyObject *resultobj; | |
6924 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6925 | int arg2 ; | |
6926 | bool arg3 ; | |
6927 | PyObject * obj0 = 0 ; | |
6928 | PyObject * obj1 = 0 ; | |
6929 | PyObject * obj2 = 0 ; | |
6930 | char *kwnames[] = { | |
6931 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6932 | }; | |
6933 | ||
6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6937 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6938 | if (PyErr_Occurred()) SWIG_fail; | |
6939 | arg3 = (bool) SWIG_AsBool(obj2); | |
6940 | if (PyErr_Occurred()) SWIG_fail; | |
6941 | { | |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
6948 | Py_INCREF(Py_None); resultobj = Py_None; | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6958 | int arg2 ; | |
6959 | bool result; | |
6960 | PyObject * obj0 = 0 ; | |
6961 | PyObject * obj1 = 0 ; | |
6962 | char *kwnames[] = { | |
6963 | (char *) "self",(char *) "edge", NULL | |
6964 | }; | |
6965 | ||
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
6967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6969 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6970 | if (PyErr_Occurred()) SWIG_fail; | |
6971 | { | |
6972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6973 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
6974 | ||
6975 | wxPyEndAllowThreads(__tstate); | |
6976 | if (PyErr_Occurred()) SWIG_fail; | |
6977 | } | |
6978 | { | |
6979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6980 | } | |
6981 | return resultobj; | |
6982 | fail: | |
6983 | return NULL; | |
6984 | } | |
6985 | ||
6986 | ||
6987 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6988 | PyObject *resultobj; | |
6989 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6990 | int arg2 ; | |
6991 | bool arg3 ; | |
6992 | PyObject * obj0 = 0 ; | |
6993 | PyObject * obj1 = 0 ; | |
6994 | PyObject * obj2 = 0 ; | |
6995 | char *kwnames[] = { | |
6996 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
6997 | }; | |
6998 | ||
6999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7002 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | arg3 = (bool) SWIG_AsBool(obj2); | |
7005 | if (PyErr_Occurred()) SWIG_fail; | |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
7009 | ||
7010 | wxPyEndAllowThreads(__tstate); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | } | |
7013 | Py_INCREF(Py_None); resultobj = Py_None; | |
7014 | return resultobj; | |
7015 | fail: | |
7016 | return NULL; | |
7017 | } | |
7018 | ||
7019 | ||
7020 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject *resultobj; | |
7022 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7023 | int arg2 ; | |
7024 | bool result; | |
7025 | PyObject * obj0 = 0 ; | |
7026 | PyObject * obj1 = 0 ; | |
7027 | char *kwnames[] = { | |
7028 | (char *) "self",(char *) "edge", NULL | |
7029 | }; | |
7030 | ||
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
7032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7034 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | { | |
7037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7038 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
7039 | ||
7040 | wxPyEndAllowThreads(__tstate); | |
7041 | if (PyErr_Occurred()) SWIG_fail; | |
7042 | } | |
7043 | { | |
7044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7045 | } | |
7046 | return resultobj; | |
7047 | fail: | |
7048 | return NULL; | |
7049 | } | |
7050 | ||
7051 | ||
7052 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7053 | PyObject *resultobj; | |
7054 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7055 | int arg2 ; | |
7056 | int result; | |
7057 | PyObject * obj0 = 0 ; | |
7058 | PyObject * obj1 = 0 ; | |
7059 | char *kwnames[] = { | |
7060 | (char *) "self",(char *) "edge", NULL | |
7061 | }; | |
7062 | ||
7063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7066 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7067 | if (PyErr_Occurred()) SWIG_fail; | |
7068 | { | |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
7074 | } | |
7075 | resultobj = SWIG_FromInt((int)result); | |
7076 | return resultobj; | |
7077 | fail: | |
7078 | return NULL; | |
7079 | } | |
7080 | ||
7081 | ||
7082 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7083 | PyObject *resultobj; | |
7084 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7085 | int arg2 ; | |
7086 | PyObject * obj0 = 0 ; | |
7087 | PyObject * obj1 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self",(char *) "width", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7095 | arg2 = (int) SWIG_AsInt(obj1); | |
7096 | if (PyErr_Occurred()) SWIG_fail; | |
7097 | { | |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | (arg1)->SetDefaultBorderSize(arg2); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | Py_INCREF(Py_None); resultobj = Py_None; | |
7105 | return resultobj; | |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
7111 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject *resultobj; | |
7113 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7114 | int result; | |
7115 | PyObject * obj0 = 0 ; | |
7116 | char *kwnames[] = { | |
7117 | (char *) "self", NULL | |
7118 | }; | |
7119 | ||
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7123 | { | |
7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7125 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7126 | ||
7127 | wxPyEndAllowThreads(__tstate); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
7130 | resultobj = SWIG_FromInt((int)result); | |
7131 | return resultobj; | |
7132 | fail: | |
7133 | return NULL; | |
7134 | } | |
7135 | ||
7136 | ||
7137 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7138 | PyObject *resultobj; | |
7139 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7140 | int arg2 ; | |
7141 | PyObject * obj0 = 0 ; | |
7142 | PyObject * obj1 = 0 ; | |
7143 | char *kwnames[] = { | |
7144 | (char *) "self",(char *) "width", NULL | |
7145 | }; | |
7146 | ||
7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7150 | arg2 = (int) SWIG_AsInt(obj1); | |
7151 | if (PyErr_Occurred()) SWIG_fail; | |
7152 | { | |
7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7154 | (arg1)->SetExtraBorderSize(arg2); | |
7155 | ||
7156 | wxPyEndAllowThreads(__tstate); | |
7157 | if (PyErr_Occurred()) SWIG_fail; | |
7158 | } | |
7159 | Py_INCREF(Py_None); resultobj = Py_None; | |
7160 | return resultobj; | |
7161 | fail: | |
7162 | return NULL; | |
7163 | } | |
7164 | ||
7165 | ||
7166 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject *resultobj; | |
7168 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7169 | int result; | |
7170 | PyObject * obj0 = 0 ; | |
7171 | char *kwnames[] = { | |
7172 | (char *) "self", NULL | |
7173 | }; | |
7174 | ||
7175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7178 | { | |
7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7180 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7181 | ||
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | resultobj = SWIG_FromInt((int)result); | |
7186 | return resultobj; | |
7187 | fail: | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject *resultobj; | |
7194 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7195 | int arg2 ; | |
7196 | PyObject * obj0 = 0 ; | |
7197 | PyObject * obj1 = 0 ; | |
7198 | char *kwnames[] = { | |
7199 | (char *) "self",(char *) "min", NULL | |
7200 | }; | |
7201 | ||
7202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7205 | arg2 = (int) SWIG_AsInt(obj1); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | { | |
7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7209 | (arg1)->SetMinimumSizeX(arg2); | |
7210 | ||
7211 | wxPyEndAllowThreads(__tstate); | |
7212 | if (PyErr_Occurred()) SWIG_fail; | |
7213 | } | |
7214 | Py_INCREF(Py_None); resultobj = Py_None; | |
7215 | return resultobj; | |
7216 | fail: | |
7217 | return NULL; | |
7218 | } | |
7219 | ||
7220 | ||
7221 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7222 | PyObject *resultobj; | |
7223 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7224 | int arg2 ; | |
7225 | PyObject * obj0 = 0 ; | |
7226 | PyObject * obj1 = 0 ; | |
7227 | char *kwnames[] = { | |
7228 | (char *) "self",(char *) "min", NULL | |
7229 | }; | |
7230 | ||
7231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7234 | arg2 = (int) SWIG_AsInt(obj1); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | (arg1)->SetMinimumSizeY(arg2); | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | Py_INCREF(Py_None); resultobj = Py_None; | |
7244 | return resultobj; | |
7245 | fail: | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
7250 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject *resultobj; | |
7252 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7253 | int result; | |
7254 | PyObject * obj0 = 0 ; | |
7255 | char *kwnames[] = { | |
7256 | (char *) "self", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7262 | { | |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7265 | ||
7266 | wxPyEndAllowThreads(__tstate); | |
7267 | if (PyErr_Occurred()) SWIG_fail; | |
7268 | } | |
7269 | resultobj = SWIG_FromInt((int)result); | |
7270 | return resultobj; | |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
7276 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7277 | PyObject *resultobj; | |
7278 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7279 | int result; | |
7280 | PyObject * obj0 = 0 ; | |
7281 | char *kwnames[] = { | |
7282 | (char *) "self", NULL | |
7283 | }; | |
7284 | ||
7285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7288 | { | |
7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7290 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7291 | ||
7292 | wxPyEndAllowThreads(__tstate); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
7295 | resultobj = SWIG_FromInt((int)result); | |
7296 | return resultobj; | |
7297 | fail: | |
7298 | return NULL; | |
7299 | } | |
7300 | ||
7301 | ||
7302 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7303 | PyObject *resultobj; | |
7304 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7305 | int arg2 ; | |
7306 | PyObject * obj0 = 0 ; | |
7307 | PyObject * obj1 = 0 ; | |
7308 | char *kwnames[] = { | |
7309 | (char *) "self",(char *) "max", NULL | |
7310 | }; | |
7311 | ||
7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7315 | arg2 = (int) SWIG_AsInt(obj1); | |
7316 | if (PyErr_Occurred()) SWIG_fail; | |
7317 | { | |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7319 | (arg1)->SetMaximumSizeX(arg2); | |
7320 | ||
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | Py_INCREF(Py_None); resultobj = Py_None; | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj; | |
7333 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7334 | int arg2 ; | |
7335 | PyObject * obj0 = 0 ; | |
7336 | PyObject * obj1 = 0 ; | |
7337 | char *kwnames[] = { | |
7338 | (char *) "self",(char *) "max", NULL | |
7339 | }; | |
7340 | ||
7341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7344 | arg2 = (int) SWIG_AsInt(obj1); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | { | |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | (arg1)->SetMaximumSizeY(arg2); | |
7349 | ||
7350 | wxPyEndAllowThreads(__tstate); | |
7351 | if (PyErr_Occurred()) SWIG_fail; | |
7352 | } | |
7353 | Py_INCREF(Py_None); resultobj = Py_None; | |
7354 | return resultobj; | |
7355 | fail: | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
7360 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject *resultobj; | |
7362 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7363 | int result; | |
7364 | PyObject * obj0 = 0 ; | |
7365 | char *kwnames[] = { | |
7366 | (char *) "self", NULL | |
7367 | }; | |
7368 | ||
7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7375 | ||
7376 | wxPyEndAllowThreads(__tstate); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
7379 | resultobj = SWIG_FromInt((int)result); | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
7386 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7387 | PyObject *resultobj; | |
7388 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7389 | int result; | |
7390 | PyObject * obj0 = 0 ; | |
7391 | char *kwnames[] = { | |
7392 | (char *) "self", NULL | |
7393 | }; | |
7394 | ||
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | resultobj = SWIG_FromInt((int)result); | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj; | |
7414 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7415 | int arg2 ; | |
7416 | int arg3 ; | |
7417 | int arg4 = (int) 2 ; | |
7418 | int result; | |
7419 | PyObject * obj0 = 0 ; | |
7420 | PyObject * obj1 = 0 ; | |
7421 | PyObject * obj2 = 0 ; | |
7422 | PyObject * obj3 = 0 ; | |
7423 | char *kwnames[] = { | |
7424 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7430 | arg2 = (int) SWIG_AsInt(obj1); | |
7431 | if (PyErr_Occurred()) SWIG_fail; | |
7432 | arg3 = (int) SWIG_AsInt(obj2); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | if (obj3) { | |
7435 | arg4 = (int) SWIG_AsInt(obj3); | |
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
7438 | { | |
7439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7440 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7441 | ||
7442 | wxPyEndAllowThreads(__tstate); | |
7443 | if (PyErr_Occurred()) SWIG_fail; | |
7444 | } | |
7445 | resultobj = SWIG_FromInt((int)result); | |
7446 | return resultobj; | |
7447 | fail: | |
7448 | return NULL; | |
7449 | } | |
7450 | ||
7451 | ||
7452 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7453 | PyObject *resultobj; | |
7454 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7455 | PyObject * obj0 = 0 ; | |
7456 | char *kwnames[] = { | |
7457 | (char *) "self", NULL | |
7458 | }; | |
7459 | ||
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7463 | { | |
7464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7465 | (arg1)->SizeWindows(); | |
7466 | ||
7467 | wxPyEndAllowThreads(__tstate); | |
7468 | if (PyErr_Occurred()) SWIG_fail; | |
7469 | } | |
7470 | Py_INCREF(Py_None); resultobj = Py_None; | |
7471 | return resultobj; | |
7472 | fail: | |
7473 | return NULL; | |
7474 | } | |
7475 | ||
7476 | ||
7477 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7478 | PyObject *obj; | |
7479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7480 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7481 | Py_INCREF(obj); | |
7482 | return Py_BuildValue((char *)""); | |
7483 | } | |
7484 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | int arg1 = (int) 0 ; | |
7487 | int arg2 = (int) wxSASH_NONE ; | |
7488 | wxSashEvent *result; | |
7489 | PyObject * obj0 = 0 ; | |
7490 | PyObject * obj1 = 0 ; | |
7491 | char *kwnames[] = { | |
7492 | (char *) "id",(char *) "edge", NULL | |
7493 | }; | |
7494 | ||
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7496 | if (obj0) { | |
7497 | arg1 = (int) SWIG_AsInt(obj0); | |
7498 | if (PyErr_Occurred()) SWIG_fail; | |
7499 | } | |
7500 | if (obj1) { | |
7501 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
7504 | { | |
7505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7506 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7507 | ||
7508 | wxPyEndAllowThreads(__tstate); | |
7509 | if (PyErr_Occurred()) SWIG_fail; | |
7510 | } | |
7511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7512 | return resultobj; | |
7513 | fail: | |
7514 | return NULL; | |
7515 | } | |
7516 | ||
7517 | ||
7518 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject *resultobj; | |
7520 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7521 | int arg2 ; | |
7522 | PyObject * obj0 = 0 ; | |
7523 | PyObject * obj1 = 0 ; | |
7524 | char *kwnames[] = { | |
7525 | (char *) "self",(char *) "edge", NULL | |
7526 | }; | |
7527 | ||
7528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7531 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7532 | if (PyErr_Occurred()) SWIG_fail; | |
7533 | { | |
7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7535 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7536 | ||
7537 | wxPyEndAllowThreads(__tstate); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | Py_INCREF(Py_None); resultobj = Py_None; | |
7541 | return resultobj; | |
7542 | fail: | |
7543 | return NULL; | |
7544 | } | |
7545 | ||
7546 | ||
7547 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7548 | PyObject *resultobj; | |
7549 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7550 | int result; | |
7551 | PyObject * obj0 = 0 ; | |
7552 | char *kwnames[] = { | |
7553 | (char *) "self", NULL | |
7554 | }; | |
7555 | ||
7556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7559 | { | |
7560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7561 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7562 | ||
7563 | wxPyEndAllowThreads(__tstate); | |
7564 | if (PyErr_Occurred()) SWIG_fail; | |
7565 | } | |
7566 | resultobj = SWIG_FromInt((int)result); | |
7567 | return resultobj; | |
7568 | fail: | |
7569 | return NULL; | |
7570 | } | |
7571 | ||
7572 | ||
7573 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7574 | PyObject *resultobj; | |
7575 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7576 | wxRect *arg2 = 0 ; | |
7577 | wxRect temp2 ; | |
7578 | PyObject * obj0 = 0 ; | |
7579 | PyObject * obj1 = 0 ; | |
7580 | char *kwnames[] = { | |
7581 | (char *) "self",(char *) "rect", NULL | |
7582 | }; | |
7583 | ||
7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7587 | { | |
7588 | arg2 = &temp2; | |
7589 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7590 | } | |
7591 | { | |
7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7593 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7594 | ||
7595 | wxPyEndAllowThreads(__tstate); | |
7596 | if (PyErr_Occurred()) SWIG_fail; | |
7597 | } | |
7598 | Py_INCREF(Py_None); resultobj = Py_None; | |
7599 | return resultobj; | |
7600 | fail: | |
7601 | return NULL; | |
7602 | } | |
7603 | ||
7604 | ||
7605 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject *resultobj; | |
7607 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7608 | wxRect result; | |
7609 | PyObject * obj0 = 0 ; | |
7610 | char *kwnames[] = { | |
7611 | (char *) "self", NULL | |
7612 | }; | |
7613 | ||
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7617 | { | |
7618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7619 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7620 | ||
7621 | wxPyEndAllowThreads(__tstate); | |
7622 | if (PyErr_Occurred()) SWIG_fail; | |
7623 | } | |
7624 | { | |
7625 | wxRect * resultptr; | |
7626 | resultptr = new wxRect((wxRect &) result); | |
7627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7628 | } | |
7629 | return resultobj; | |
7630 | fail: | |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
7635 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7636 | PyObject *resultobj; | |
7637 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7638 | int arg2 ; | |
7639 | PyObject * obj0 = 0 ; | |
7640 | PyObject * obj1 = 0 ; | |
7641 | char *kwnames[] = { | |
7642 | (char *) "self",(char *) "status", NULL | |
7643 | }; | |
7644 | ||
7645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7648 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7649 | if (PyErr_Occurred()) SWIG_fail; | |
7650 | { | |
7651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7652 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | Py_INCREF(Py_None); resultobj = Py_None; | |
7658 | return resultobj; | |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj; | |
7666 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7667 | int result; | |
7668 | PyObject * obj0 = 0 ; | |
7669 | char *kwnames[] = { | |
7670 | (char *) "self", NULL | |
7671 | }; | |
7672 | ||
7673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | resultobj = SWIG_FromInt((int)result); | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | return NULL; | |
7687 | } | |
7688 | ||
7689 | ||
7690 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7691 | PyObject *obj; | |
7692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7693 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7694 | Py_INCREF(obj); | |
7695 | return Py_BuildValue((char *)""); | |
7696 | } | |
7697 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7698 | PyObject *resultobj; | |
7699 | int arg1 = (int) 0 ; | |
7700 | wxQueryLayoutInfoEvent *result; | |
7701 | PyObject * obj0 = 0 ; | |
7702 | char *kwnames[] = { | |
7703 | (char *) "id", NULL | |
7704 | }; | |
7705 | ||
7706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7707 | if (obj0) { | |
7708 | arg1 = (int) SWIG_AsInt(obj0); | |
7709 | if (PyErr_Occurred()) SWIG_fail; | |
7710 | } | |
7711 | { | |
7712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7713 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7714 | ||
7715 | wxPyEndAllowThreads(__tstate); | |
7716 | if (PyErr_Occurred()) SWIG_fail; | |
7717 | } | |
7718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7719 | return resultobj; | |
7720 | fail: | |
7721 | return NULL; | |
7722 | } | |
7723 | ||
7724 | ||
7725 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject *resultobj; | |
7727 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7728 | int arg2 ; | |
7729 | PyObject * obj0 = 0 ; | |
7730 | PyObject * obj1 = 0 ; | |
7731 | char *kwnames[] = { | |
7732 | (char *) "self",(char *) "length", NULL | |
7733 | }; | |
7734 | ||
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7738 | arg2 = (int) SWIG_AsInt(obj1); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | { | |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | (arg1)->SetRequestedLength(arg2); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | Py_INCREF(Py_None); resultobj = Py_None; | |
7748 | return resultobj; | |
7749 | fail: | |
7750 | return NULL; | |
7751 | } | |
7752 | ||
7753 | ||
7754 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7755 | PyObject *resultobj; | |
7756 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7757 | int result; | |
7758 | PyObject * obj0 = 0 ; | |
7759 | char *kwnames[] = { | |
7760 | (char *) "self", NULL | |
7761 | }; | |
7762 | ||
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7766 | { | |
7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7768 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7769 | ||
7770 | wxPyEndAllowThreads(__tstate); | |
7771 | if (PyErr_Occurred()) SWIG_fail; | |
7772 | } | |
7773 | resultobj = SWIG_FromInt((int)result); | |
7774 | return resultobj; | |
7775 | fail: | |
7776 | return NULL; | |
7777 | } | |
7778 | ||
7779 | ||
7780 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7781 | PyObject *resultobj; | |
7782 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7783 | int arg2 ; | |
7784 | PyObject * obj0 = 0 ; | |
7785 | PyObject * obj1 = 0 ; | |
7786 | char *kwnames[] = { | |
7787 | (char *) "self",(char *) "flags", NULL | |
7788 | }; | |
7789 | ||
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7793 | arg2 = (int) SWIG_AsInt(obj1); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | { | |
7796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7797 | (arg1)->SetFlags(arg2); | |
7798 | ||
7799 | wxPyEndAllowThreads(__tstate); | |
7800 | if (PyErr_Occurred()) SWIG_fail; | |
7801 | } | |
7802 | Py_INCREF(Py_None); resultobj = Py_None; | |
7803 | return resultobj; | |
7804 | fail: | |
7805 | return NULL; | |
7806 | } | |
7807 | ||
7808 | ||
7809 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7810 | PyObject *resultobj; | |
7811 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7812 | int result; | |
7813 | PyObject * obj0 = 0 ; | |
7814 | char *kwnames[] = { | |
7815 | (char *) "self", NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7821 | { | |
7822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7823 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7824 | ||
7825 | wxPyEndAllowThreads(__tstate); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
7827 | } | |
7828 | resultobj = SWIG_FromInt((int)result); | |
7829 | return resultobj; | |
7830 | fail: | |
7831 | return NULL; | |
7832 | } | |
7833 | ||
7834 | ||
7835 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7836 | PyObject *resultobj; | |
7837 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7838 | wxSize *arg2 = 0 ; | |
7839 | wxSize temp2 ; | |
7840 | PyObject * obj0 = 0 ; | |
7841 | PyObject * obj1 = 0 ; | |
7842 | char *kwnames[] = { | |
7843 | (char *) "self",(char *) "size", NULL | |
7844 | }; | |
7845 | ||
7846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7849 | { | |
7850 | arg2 = &temp2; | |
7851 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7852 | } | |
7853 | { | |
7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7855 | (arg1)->SetSize((wxSize const &)*arg2); | |
7856 | ||
7857 | wxPyEndAllowThreads(__tstate); | |
7858 | if (PyErr_Occurred()) SWIG_fail; | |
7859 | } | |
7860 | Py_INCREF(Py_None); resultobj = Py_None; | |
7861 | return resultobj; | |
7862 | fail: | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
7867 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7868 | PyObject *resultobj; | |
7869 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7870 | wxSize result; | |
7871 | PyObject * obj0 = 0 ; | |
7872 | char *kwnames[] = { | |
7873 | (char *) "self", NULL | |
7874 | }; | |
7875 | ||
7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7879 | { | |
7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7881 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7882 | ||
7883 | wxPyEndAllowThreads(__tstate); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
7886 | { | |
7887 | wxSize * resultptr; | |
7888 | resultptr = new wxSize((wxSize &) result); | |
7889 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7890 | } | |
7891 | return resultobj; | |
7892 | fail: | |
7893 | return NULL; | |
7894 | } | |
7895 | ||
7896 | ||
7897 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject *resultobj; | |
7899 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7900 | int arg2 ; | |
7901 | PyObject * obj0 = 0 ; | |
7902 | PyObject * obj1 = 0 ; | |
7903 | char *kwnames[] = { | |
7904 | (char *) "self",(char *) "orient", NULL | |
7905 | }; | |
7906 | ||
7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
7908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7910 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
7911 | if (PyErr_Occurred()) SWIG_fail; | |
7912 | { | |
7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7914 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7915 | ||
7916 | wxPyEndAllowThreads(__tstate); | |
7917 | if (PyErr_Occurred()) SWIG_fail; | |
7918 | } | |
7919 | Py_INCREF(Py_None); resultobj = Py_None; | |
7920 | return resultobj; | |
7921 | fail: | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
7926 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7927 | PyObject *resultobj; | |
7928 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7929 | int result; | |
7930 | PyObject * obj0 = 0 ; | |
7931 | char *kwnames[] = { | |
7932 | (char *) "self", NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | resultobj = SWIG_FromInt((int)result); | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
7952 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7953 | PyObject *resultobj; | |
7954 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7955 | int arg2 ; | |
7956 | PyObject * obj0 = 0 ; | |
7957 | PyObject * obj1 = 0 ; | |
7958 | char *kwnames[] = { | |
7959 | (char *) "self",(char *) "align", NULL | |
7960 | }; | |
7961 | ||
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7965 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | Py_INCREF(Py_None); resultobj = Py_None; | |
7975 | return resultobj; | |
7976 | fail: | |
7977 | return NULL; | |
7978 | } | |
7979 | ||
7980 | ||
7981 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7982 | PyObject *resultobj; | |
7983 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7984 | int result; | |
7985 | PyObject * obj0 = 0 ; | |
7986 | char *kwnames[] = { | |
7987 | (char *) "self", NULL | |
7988 | }; | |
7989 | ||
7990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
7991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7993 | { | |
7994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7995 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
7996 | ||
7997 | wxPyEndAllowThreads(__tstate); | |
7998 | if (PyErr_Occurred()) SWIG_fail; | |
7999 | } | |
8000 | resultobj = SWIG_FromInt((int)result); | |
8001 | return resultobj; | |
8002 | fail: | |
8003 | return NULL; | |
8004 | } | |
8005 | ||
8006 | ||
8007 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
8008 | PyObject *obj; | |
8009 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8010 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
8011 | Py_INCREF(obj); | |
8012 | return Py_BuildValue((char *)""); | |
8013 | } | |
8014 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8015 | PyObject *resultobj; | |
8016 | int arg1 = (int) 0 ; | |
8017 | wxCalculateLayoutEvent *result; | |
8018 | PyObject * obj0 = 0 ; | |
8019 | char *kwnames[] = { | |
8020 | (char *) "id", NULL | |
8021 | }; | |
8022 | ||
8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
8024 | if (obj0) { | |
8025 | arg1 = (int) SWIG_AsInt(obj0); | |
8026 | if (PyErr_Occurred()) SWIG_fail; | |
8027 | } | |
8028 | { | |
8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8030 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
8031 | ||
8032 | wxPyEndAllowThreads(__tstate); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
8035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
8036 | return resultobj; | |
8037 | fail: | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8045 | int arg2 ; | |
8046 | PyObject * obj0 = 0 ; | |
8047 | PyObject * obj1 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self",(char *) "flags", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8055 | arg2 = (int) SWIG_AsInt(obj1); | |
8056 | if (PyErr_Occurred()) SWIG_fail; | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | (arg1)->SetFlags(arg2); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | Py_INCREF(Py_None); resultobj = Py_None; | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
8071 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8072 | PyObject *resultobj; | |
8073 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8074 | int result; | |
8075 | PyObject * obj0 = 0 ; | |
8076 | char *kwnames[] = { | |
8077 | (char *) "self", NULL | |
8078 | }; | |
8079 | ||
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8083 | { | |
8084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8085 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8086 | ||
8087 | wxPyEndAllowThreads(__tstate); | |
8088 | if (PyErr_Occurred()) SWIG_fail; | |
8089 | } | |
8090 | resultobj = SWIG_FromInt((int)result); | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject *resultobj; | |
8099 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8100 | wxRect *arg2 = 0 ; | |
8101 | wxRect temp2 ; | |
8102 | PyObject * obj0 = 0 ; | |
8103 | PyObject * obj1 = 0 ; | |
8104 | char *kwnames[] = { | |
8105 | (char *) "self",(char *) "rect", NULL | |
8106 | }; | |
8107 | ||
8108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8111 | { | |
8112 | arg2 = &temp2; | |
8113 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8114 | } | |
8115 | { | |
8116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8117 | (arg1)->SetRect((wxRect const &)*arg2); | |
8118 | ||
8119 | wxPyEndAllowThreads(__tstate); | |
8120 | if (PyErr_Occurred()) SWIG_fail; | |
8121 | } | |
8122 | Py_INCREF(Py_None); resultobj = Py_None; | |
8123 | return resultobj; | |
8124 | fail: | |
8125 | return NULL; | |
8126 | } | |
8127 | ||
8128 | ||
8129 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8130 | PyObject *resultobj; | |
8131 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8132 | wxRect result; | |
8133 | PyObject * obj0 = 0 ; | |
8134 | char *kwnames[] = { | |
8135 | (char *) "self", NULL | |
8136 | }; | |
8137 | ||
8138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8141 | { | |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
8148 | { | |
8149 | wxRect * resultptr; | |
8150 | resultptr = new wxRect((wxRect &) result); | |
8151 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | return NULL; | |
8156 | } | |
8157 | ||
8158 | ||
8159 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8160 | PyObject *obj; | |
8161 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8162 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8163 | Py_INCREF(obj); | |
8164 | return Py_BuildValue((char *)""); | |
8165 | } | |
8166 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8167 | PyObject *resultobj; | |
8168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8169 | int arg2 ; | |
8170 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8171 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8172 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8173 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8174 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8175 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8176 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8177 | wxSashLayoutWindow *result; | |
8178 | wxPoint temp3 ; | |
8179 | wxSize temp4 ; | |
8180 | bool temp6 = False ; | |
8181 | PyObject * obj0 = 0 ; | |
8182 | PyObject * obj1 = 0 ; | |
8183 | PyObject * obj2 = 0 ; | |
8184 | PyObject * obj3 = 0 ; | |
8185 | PyObject * obj4 = 0 ; | |
8186 | PyObject * obj5 = 0 ; | |
8187 | char *kwnames[] = { | |
8188 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8189 | }; | |
8190 | ||
8191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8194 | arg2 = (int) SWIG_AsInt(obj1); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | if (obj2) { | |
8197 | { | |
8198 | arg3 = &temp3; | |
8199 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8200 | } | |
8201 | } | |
8202 | if (obj3) { | |
8203 | { | |
8204 | arg4 = &temp4; | |
8205 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8206 | } | |
8207 | } | |
8208 | if (obj4) { | |
8209 | arg5 = (long) SWIG_AsLong(obj4); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | if (obj5) { | |
8213 | { | |
8214 | arg6 = wxString_in_helper(obj5); | |
8215 | if (arg6 == NULL) SWIG_fail; | |
8216 | temp6 = True; | |
8217 | } | |
8218 | } | |
8219 | { | |
8220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8221 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8222 | ||
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8227 | { | |
8228 | if (temp6) | |
8229 | delete arg6; | |
8230 | } | |
8231 | return resultobj; | |
8232 | fail: | |
8233 | { | |
8234 | if (temp6) | |
8235 | delete arg6; | |
8236 | } | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj; | |
8243 | wxSashLayoutWindow *result; | |
8244 | char *kwnames[] = { | |
8245 | NULL | |
8246 | }; | |
8247 | ||
8248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8249 | { | |
8250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8251 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8252 | ||
8253 | wxPyEndAllowThreads(__tstate); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
8256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8257 | return resultobj; | |
8258 | fail: | |
8259 | return NULL; | |
8260 | } | |
8261 | ||
8262 | ||
8263 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject *resultobj; | |
8265 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8266 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8267 | int arg3 ; | |
8268 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8269 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8270 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8271 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8272 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8273 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8274 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8275 | bool result; | |
8276 | wxPoint temp4 ; | |
8277 | wxSize temp5 ; | |
8278 | bool temp7 = False ; | |
8279 | PyObject * obj0 = 0 ; | |
8280 | PyObject * obj1 = 0 ; | |
8281 | PyObject * obj2 = 0 ; | |
8282 | PyObject * obj3 = 0 ; | |
8283 | PyObject * obj4 = 0 ; | |
8284 | PyObject * obj5 = 0 ; | |
8285 | PyObject * obj6 = 0 ; | |
8286 | char *kwnames[] = { | |
8287 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8288 | }; | |
8289 | ||
8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8295 | arg3 = (int) SWIG_AsInt(obj2); | |
8296 | if (PyErr_Occurred()) SWIG_fail; | |
8297 | if (obj3) { | |
8298 | { | |
8299 | arg4 = &temp4; | |
8300 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8301 | } | |
8302 | } | |
8303 | if (obj4) { | |
8304 | { | |
8305 | arg5 = &temp5; | |
8306 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8307 | } | |
8308 | } | |
8309 | if (obj5) { | |
8310 | arg6 = (long) SWIG_AsLong(obj5); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
8312 | } | |
8313 | if (obj6) { | |
8314 | { | |
8315 | arg7 = wxString_in_helper(obj6); | |
8316 | if (arg7 == NULL) SWIG_fail; | |
8317 | temp7 = True; | |
8318 | } | |
8319 | } | |
8320 | { | |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8323 | ||
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
8327 | { | |
8328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8329 | } | |
8330 | { | |
8331 | if (temp7) | |
8332 | delete arg7; | |
8333 | } | |
8334 | return resultobj; | |
8335 | fail: | |
8336 | { | |
8337 | if (temp7) | |
8338 | delete arg7; | |
8339 | } | |
8340 | return NULL; | |
8341 | } | |
8342 | ||
8343 | ||
8344 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8345 | PyObject *resultobj; | |
8346 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8347 | int result; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | char *kwnames[] = { | |
8350 | (char *) "self", NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | result = (int)(arg1)->GetAlignment(); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | resultobj = SWIG_FromInt((int)result); | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
8370 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8371 | PyObject *resultobj; | |
8372 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8373 | int result; | |
8374 | PyObject * obj0 = 0 ; | |
8375 | char *kwnames[] = { | |
8376 | (char *) "self", NULL | |
8377 | }; | |
8378 | ||
8379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | result = (int)(arg1)->GetOrientation(); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | resultobj = SWIG_FromInt((int)result); | |
8390 | return resultobj; | |
8391 | fail: | |
8392 | return NULL; | |
8393 | } | |
8394 | ||
8395 | ||
8396 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8397 | PyObject *resultobj; | |
8398 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8399 | int arg2 ; | |
8400 | PyObject * obj0 = 0 ; | |
8401 | PyObject * obj1 = 0 ; | |
8402 | char *kwnames[] = { | |
8403 | (char *) "self",(char *) "alignment", NULL | |
8404 | }; | |
8405 | ||
8406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8409 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8410 | if (PyErr_Occurred()) SWIG_fail; | |
8411 | { | |
8412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8413 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8414 | ||
8415 | wxPyEndAllowThreads(__tstate); | |
8416 | if (PyErr_Occurred()) SWIG_fail; | |
8417 | } | |
8418 | Py_INCREF(Py_None); resultobj = Py_None; | |
8419 | return resultobj; | |
8420 | fail: | |
8421 | return NULL; | |
8422 | } | |
8423 | ||
8424 | ||
8425 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8426 | PyObject *resultobj; | |
8427 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8428 | wxSize *arg2 = 0 ; | |
8429 | wxSize temp2 ; | |
8430 | PyObject * obj0 = 0 ; | |
8431 | PyObject * obj1 = 0 ; | |
8432 | char *kwnames[] = { | |
8433 | (char *) "self",(char *) "size", NULL | |
8434 | }; | |
8435 | ||
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8439 | { | |
8440 | arg2 = &temp2; | |
8441 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8442 | } | |
8443 | { | |
8444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8445 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8446 | ||
8447 | wxPyEndAllowThreads(__tstate); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | Py_INCREF(Py_None); resultobj = Py_None; | |
8451 | return resultobj; | |
8452 | fail: | |
8453 | return NULL; | |
8454 | } | |
8455 | ||
8456 | ||
8457 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8458 | PyObject *resultobj; | |
8459 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8460 | int arg2 ; | |
8461 | PyObject * obj0 = 0 ; | |
8462 | PyObject * obj1 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "self",(char *) "orientation", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8470 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | { | |
8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8474 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8475 | ||
8476 | wxPyEndAllowThreads(__tstate); | |
8477 | if (PyErr_Occurred()) SWIG_fail; | |
8478 | } | |
8479 | Py_INCREF(Py_None); resultobj = Py_None; | |
8480 | return resultobj; | |
8481 | fail: | |
8482 | return NULL; | |
8483 | } | |
8484 | ||
8485 | ||
8486 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8487 | PyObject *obj; | |
8488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8489 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8490 | Py_INCREF(obj); | |
8491 | return Py_BuildValue((char *)""); | |
8492 | } | |
8493 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8494 | PyObject *resultobj; | |
8495 | wxLayoutAlgorithm *result; | |
8496 | char *kwnames[] = { | |
8497 | NULL | |
8498 | }; | |
8499 | ||
8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8501 | { | |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8509 | return resultobj; | |
8510 | fail: | |
8511 | return NULL; | |
8512 | } | |
8513 | ||
8514 | ||
8515 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8516 | PyObject *resultobj; | |
8517 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8518 | PyObject * obj0 = 0 ; | |
8519 | char *kwnames[] = { | |
8520 | (char *) "self", NULL | |
8521 | }; | |
8522 | ||
8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8526 | { | |
8527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8528 | delete arg1; | |
8529 | ||
8530 | wxPyEndAllowThreads(__tstate); | |
8531 | if (PyErr_Occurred()) SWIG_fail; | |
8532 | } | |
8533 | Py_INCREF(Py_None); resultobj = Py_None; | |
8534 | return resultobj; | |
8535 | fail: | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8541 | PyObject *resultobj; | |
8542 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8543 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8544 | wxRect *arg3 = (wxRect *) NULL ; | |
8545 | bool result; | |
8546 | PyObject * obj0 = 0 ; | |
8547 | PyObject * obj1 = 0 ; | |
8548 | PyObject * obj2 = 0 ; | |
8549 | char *kwnames[] = { | |
8550 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8551 | }; | |
8552 | ||
8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8558 | if (obj2) { | |
8559 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8561 | } | |
8562 | { | |
8563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8564 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8565 | ||
8566 | wxPyEndAllowThreads(__tstate); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | } | |
8569 | { | |
8570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | return NULL; | |
8575 | } | |
8576 | ||
8577 | ||
8578 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8579 | PyObject *resultobj; | |
8580 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8581 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8582 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8583 | bool result; | |
8584 | PyObject * obj0 = 0 ; | |
8585 | PyObject * obj1 = 0 ; | |
8586 | PyObject * obj2 = 0 ; | |
8587 | char *kwnames[] = { | |
8588 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8589 | }; | |
8590 | ||
8591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8596 | if (obj2) { | |
8597 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8599 | } | |
8600 | { | |
8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8602 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8603 | ||
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) SWIG_fail; | |
8606 | } | |
8607 | { | |
8608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8609 | } | |
8610 | return resultobj; | |
8611 | fail: | |
8612 | return NULL; | |
8613 | } | |
8614 | ||
8615 | ||
8616 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8617 | PyObject *resultobj; | |
8618 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8619 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8620 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8621 | bool result; | |
8622 | PyObject * obj0 = 0 ; | |
8623 | PyObject * obj1 = 0 ; | |
8624 | PyObject * obj2 = 0 ; | |
8625 | char *kwnames[] = { | |
8626 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8627 | }; | |
8628 | ||
8629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8634 | if (obj2) { | |
8635 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8637 | } | |
8638 | { | |
8639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8640 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8641 | ||
8642 | wxPyEndAllowThreads(__tstate); | |
8643 | if (PyErr_Occurred()) SWIG_fail; | |
8644 | } | |
8645 | { | |
8646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8647 | } | |
8648 | return resultobj; | |
8649 | fail: | |
8650 | return NULL; | |
8651 | } | |
8652 | ||
8653 | ||
8654 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8655 | PyObject *obj; | |
8656 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8657 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8658 | Py_INCREF(obj); | |
8659 | return Py_BuildValue((char *)""); | |
8660 | } | |
8661 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8662 | PyObject *resultobj; | |
8663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8664 | int arg2 = (int) wxBORDER_NONE ; | |
8665 | wxPopupWindow *result; | |
8666 | PyObject * obj0 = 0 ; | |
8667 | PyObject * obj1 = 0 ; | |
8668 | char *kwnames[] = { | |
8669 | (char *) "parent",(char *) "flags", NULL | |
8670 | }; | |
8671 | ||
8672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8675 | if (obj1) { | |
8676 | arg2 = (int) SWIG_AsInt(obj1); | |
8677 | if (PyErr_Occurred()) SWIG_fail; | |
8678 | } | |
8679 | { | |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8687 | return resultobj; | |
8688 | fail: | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
8693 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj; | |
8695 | wxPopupWindow *result; | |
8696 | char *kwnames[] = { | |
8697 | NULL | |
8698 | }; | |
8699 | ||
8700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8701 | { | |
8702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8703 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8704 | ||
8705 | wxPyEndAllowThreads(__tstate); | |
8706 | if (PyErr_Occurred()) SWIG_fail; | |
8707 | } | |
8708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8709 | return resultobj; | |
8710 | fail: | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
8715 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8716 | PyObject *obj; | |
8717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8718 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8719 | Py_INCREF(obj); | |
8720 | return Py_BuildValue((char *)""); | |
8721 | } | |
8722 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject *resultobj; | |
8724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8725 | int arg2 = (int) wxBORDER_NONE ; | |
8726 | wxPyPopupTransientWindow *result; | |
8727 | PyObject * obj0 = 0 ; | |
8728 | PyObject * obj1 = 0 ; | |
8729 | char *kwnames[] = { | |
8730 | (char *) "parent",(char *) "style", NULL | |
8731 | }; | |
8732 | ||
8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8736 | if (obj1) { | |
8737 | arg2 = (int) SWIG_AsInt(obj1); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
8740 | { | |
8741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8742 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8743 | ||
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
8754 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8755 | PyObject *resultobj; | |
8756 | wxPyPopupTransientWindow *result; | |
8757 | char *kwnames[] = { | |
8758 | NULL | |
8759 | }; | |
8760 | ||
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8770 | return resultobj; | |
8771 | fail: | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
8776 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
8777 | PyObject *obj; | |
8778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8779 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8780 | Py_INCREF(obj); | |
8781 | return Py_BuildValue((char *)""); | |
8782 | } | |
8783 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8784 | PyObject *resultobj; | |
8785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8786 | wxString *arg2 = 0 ; | |
8787 | int arg3 = (int) 100 ; | |
8788 | wxRect *arg4 = (wxRect *) NULL ; | |
8789 | wxTipWindow *result; | |
8790 | bool temp2 = False ; | |
8791 | PyObject * obj0 = 0 ; | |
8792 | PyObject * obj1 = 0 ; | |
8793 | PyObject * obj2 = 0 ; | |
8794 | PyObject * obj3 = 0 ; | |
8795 | char *kwnames[] = { | |
8796 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8797 | }; | |
8798 | ||
8799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8802 | { | |
8803 | arg2 = wxString_in_helper(obj1); | |
8804 | if (arg2 == NULL) SWIG_fail; | |
8805 | temp2 = True; | |
8806 | } | |
8807 | if (obj2) { | |
8808 | arg3 = (int) SWIG_AsInt(obj2); | |
8809 | if (PyErr_Occurred()) SWIG_fail; | |
8810 | } | |
8811 | if (obj3) { | |
8812 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
8813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8814 | } | |
8815 | { | |
8816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8817 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8818 | ||
8819 | wxPyEndAllowThreads(__tstate); | |
8820 | if (PyErr_Occurred()) SWIG_fail; | |
8821 | } | |
8822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
8823 | { | |
8824 | if (temp2) | |
8825 | delete arg2; | |
8826 | } | |
8827 | return resultobj; | |
8828 | fail: | |
8829 | { | |
8830 | if (temp2) | |
8831 | delete arg2; | |
8832 | } | |
8833 | return NULL; | |
8834 | } | |
8835 | ||
8836 | ||
8837 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8838 | PyObject *resultobj; | |
8839 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8840 | wxRect *arg2 = 0 ; | |
8841 | wxRect temp2 ; | |
8842 | PyObject * obj0 = 0 ; | |
8843 | PyObject * obj1 = 0 ; | |
8844 | char *kwnames[] = { | |
8845 | (char *) "self",(char *) "rectBound", NULL | |
8846 | }; | |
8847 | ||
8848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8851 | { | |
8852 | arg2 = &temp2; | |
8853 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8854 | } | |
8855 | { | |
8856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8857 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8858 | ||
8859 | wxPyEndAllowThreads(__tstate); | |
8860 | if (PyErr_Occurred()) SWIG_fail; | |
8861 | } | |
8862 | Py_INCREF(Py_None); resultobj = Py_None; | |
8863 | return resultobj; | |
8864 | fail: | |
8865 | return NULL; | |
8866 | } | |
8867 | ||
8868 | ||
8869 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8870 | PyObject *resultobj; | |
8871 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8872 | PyObject * obj0 = 0 ; | |
8873 | char *kwnames[] = { | |
8874 | (char *) "self", NULL | |
8875 | }; | |
8876 | ||
8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8880 | { | |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | (arg1)->Close(); | |
8883 | ||
8884 | wxPyEndAllowThreads(__tstate); | |
8885 | if (PyErr_Occurred()) SWIG_fail; | |
8886 | } | |
8887 | Py_INCREF(Py_None); resultobj = Py_None; | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
8894 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
8895 | PyObject *obj; | |
8896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8897 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
8898 | Py_INCREF(obj); | |
8899 | return Py_BuildValue((char *)""); | |
8900 | } | |
8901 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8902 | PyObject *resultobj; | |
8903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8904 | int arg2 = (int) wxID_ANY ; | |
8905 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8906 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8907 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8908 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8909 | long arg5 = (long) 0 ; | |
8910 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8911 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8912 | wxPyVScrolledWindow *result; | |
8913 | wxPoint temp3 ; | |
8914 | wxSize temp4 ; | |
8915 | bool temp6 = False ; | |
8916 | PyObject * obj0 = 0 ; | |
8917 | PyObject * obj1 = 0 ; | |
8918 | PyObject * obj2 = 0 ; | |
8919 | PyObject * obj3 = 0 ; | |
8920 | PyObject * obj4 = 0 ; | |
8921 | PyObject * obj5 = 0 ; | |
8922 | char *kwnames[] = { | |
8923 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8924 | }; | |
8925 | ||
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8929 | if (obj1) { | |
8930 | arg2 = (int) SWIG_AsInt(obj1); | |
8931 | if (PyErr_Occurred()) SWIG_fail; | |
8932 | } | |
8933 | if (obj2) { | |
8934 | { | |
8935 | arg3 = &temp3; | |
8936 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8937 | } | |
8938 | } | |
8939 | if (obj3) { | |
8940 | { | |
8941 | arg4 = &temp4; | |
8942 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8943 | } | |
8944 | } | |
8945 | if (obj4) { | |
8946 | arg5 = (long) SWIG_AsLong(obj4); | |
8947 | if (PyErr_Occurred()) SWIG_fail; | |
8948 | } | |
8949 | if (obj5) { | |
8950 | { | |
8951 | arg6 = wxString_in_helper(obj5); | |
8952 | if (arg6 == NULL) SWIG_fail; | |
8953 | temp6 = True; | |
8954 | } | |
8955 | } | |
8956 | { | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8959 | ||
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
8963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8964 | { | |
8965 | if (temp6) | |
8966 | delete arg6; | |
8967 | } | |
8968 | return resultobj; | |
8969 | fail: | |
8970 | { | |
8971 | if (temp6) | |
8972 | delete arg6; | |
8973 | } | |
8974 | return NULL; | |
8975 | } | |
8976 | ||
8977 | ||
8978 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8979 | PyObject *resultobj; | |
8980 | wxPyVScrolledWindow *result; | |
8981 | char *kwnames[] = { | |
8982 | NULL | |
8983 | }; | |
8984 | ||
8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
8986 | { | |
8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8988 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
8989 | ||
8990 | wxPyEndAllowThreads(__tstate); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
8993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8994 | return resultobj; | |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
9000 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9001 | PyObject *resultobj; | |
9002 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9003 | PyObject *arg2 = (PyObject *) 0 ; | |
9004 | PyObject *arg3 = (PyObject *) 0 ; | |
9005 | PyObject * obj0 = 0 ; | |
9006 | PyObject * obj1 = 0 ; | |
9007 | PyObject * obj2 = 0 ; | |
9008 | char *kwnames[] = { | |
9009 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9015 | arg2 = obj1; | |
9016 | arg3 = obj2; | |
9017 | { | |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | Py_INCREF(Py_None); resultobj = Py_None; | |
9025 | return resultobj; | |
9026 | fail: | |
9027 | return NULL; | |
9028 | } | |
9029 | ||
9030 | ||
9031 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9032 | PyObject *resultobj; | |
9033 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9034 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9035 | int arg3 = (int) wxID_ANY ; | |
9036 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9037 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9038 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9039 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9040 | long arg6 = (long) 0 ; | |
9041 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9042 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9043 | bool result; | |
9044 | wxPoint temp4 ; | |
9045 | wxSize temp5 ; | |
9046 | bool temp7 = False ; | |
9047 | PyObject * obj0 = 0 ; | |
9048 | PyObject * obj1 = 0 ; | |
9049 | PyObject * obj2 = 0 ; | |
9050 | PyObject * obj3 = 0 ; | |
9051 | PyObject * obj4 = 0 ; | |
9052 | PyObject * obj5 = 0 ; | |
9053 | PyObject * obj6 = 0 ; | |
9054 | char *kwnames[] = { | |
9055 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9056 | }; | |
9057 | ||
9058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9063 | if (obj2) { | |
9064 | arg3 = (int) SWIG_AsInt(obj2); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | if (obj3) { | |
9068 | { | |
9069 | arg4 = &temp4; | |
9070 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9071 | } | |
9072 | } | |
9073 | if (obj4) { | |
9074 | { | |
9075 | arg5 = &temp5; | |
9076 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9077 | } | |
9078 | } | |
9079 | if (obj5) { | |
9080 | arg6 = (long) SWIG_AsLong(obj5); | |
9081 | if (PyErr_Occurred()) SWIG_fail; | |
9082 | } | |
9083 | if (obj6) { | |
9084 | { | |
9085 | arg7 = wxString_in_helper(obj6); | |
9086 | if (arg7 == NULL) SWIG_fail; | |
9087 | temp7 = True; | |
9088 | } | |
9089 | } | |
9090 | { | |
9091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9092 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9093 | ||
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | } | |
9097 | { | |
9098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9099 | } | |
9100 | { | |
9101 | if (temp7) | |
9102 | delete arg7; | |
9103 | } | |
9104 | return resultobj; | |
9105 | fail: | |
9106 | { | |
9107 | if (temp7) | |
9108 | delete arg7; | |
9109 | } | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9117 | size_t arg2 ; | |
9118 | PyObject * obj0 = 0 ; | |
9119 | PyObject * obj1 = 0 ; | |
9120 | char *kwnames[] = { | |
9121 | (char *) "self",(char *) "count", NULL | |
9122 | }; | |
9123 | ||
9124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9127 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | (arg1)->SetLineCount(arg2); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | Py_INCREF(Py_None); resultobj = Py_None; | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9144 | PyObject *resultobj; | |
9145 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9146 | size_t arg2 ; | |
9147 | bool result; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | PyObject * obj1 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self",(char *) "line", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9157 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9158 | if (PyErr_Occurred()) SWIG_fail; | |
9159 | { | |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | { | |
9167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9168 | } | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9178 | int arg2 ; | |
9179 | bool result; | |
9180 | PyObject * obj0 = 0 ; | |
9181 | PyObject * obj1 = 0 ; | |
9182 | char *kwnames[] = { | |
9183 | (char *) "self",(char *) "lines", NULL | |
9184 | }; | |
9185 | ||
9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9189 | arg2 = (int) SWIG_AsInt(obj1); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | { | |
9192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9193 | result = (bool)(arg1)->ScrollLines(arg2); | |
9194 | ||
9195 | wxPyEndAllowThreads(__tstate); | |
9196 | if (PyErr_Occurred()) SWIG_fail; | |
9197 | } | |
9198 | { | |
9199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9200 | } | |
9201 | return resultobj; | |
9202 | fail: | |
9203 | return NULL; | |
9204 | } | |
9205 | ||
9206 | ||
9207 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9208 | PyObject *resultobj; | |
9209 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9210 | int arg2 ; | |
9211 | bool result; | |
9212 | PyObject * obj0 = 0 ; | |
9213 | PyObject * obj1 = 0 ; | |
9214 | char *kwnames[] = { | |
9215 | (char *) "self",(char *) "pages", NULL | |
9216 | }; | |
9217 | ||
9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9221 | arg2 = (int) SWIG_AsInt(obj1); | |
9222 | if (PyErr_Occurred()) SWIG_fail; | |
9223 | { | |
9224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9225 | result = (bool)(arg1)->ScrollPages(arg2); | |
9226 | ||
9227 | wxPyEndAllowThreads(__tstate); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | } | |
9230 | { | |
9231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9232 | } | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
9239 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9240 | PyObject *resultobj; | |
9241 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9242 | size_t arg2 ; | |
9243 | PyObject * obj0 = 0 ; | |
9244 | PyObject * obj1 = 0 ; | |
9245 | char *kwnames[] = { | |
9246 | (char *) "self",(char *) "line", NULL | |
9247 | }; | |
9248 | ||
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9252 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | { | |
9255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9256 | (arg1)->RefreshLine(arg2); | |
9257 | ||
9258 | wxPyEndAllowThreads(__tstate); | |
9259 | if (PyErr_Occurred()) SWIG_fail; | |
9260 | } | |
9261 | Py_INCREF(Py_None); resultobj = Py_None; | |
9262 | return resultobj; | |
9263 | fail: | |
9264 | return NULL; | |
9265 | } | |
9266 | ||
9267 | ||
9268 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject *resultobj; | |
9270 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9271 | size_t arg2 ; | |
9272 | size_t arg3 ; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | PyObject * obj1 = 0 ; | |
9275 | PyObject * obj2 = 0 ; | |
9276 | char *kwnames[] = { | |
9277 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9278 | }; | |
9279 | ||
9280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9283 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9284 | if (PyErr_Occurred()) SWIG_fail; | |
9285 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9286 | if (PyErr_Occurred()) SWIG_fail; | |
9287 | { | |
9288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9289 | (arg1)->RefreshLines(arg2,arg3); | |
9290 | ||
9291 | wxPyEndAllowThreads(__tstate); | |
9292 | if (PyErr_Occurred()) SWIG_fail; | |
9293 | } | |
9294 | Py_INCREF(Py_None); resultobj = Py_None; | |
9295 | return resultobj; | |
9296 | fail: | |
9297 | return NULL; | |
9298 | } | |
9299 | ||
9300 | ||
9301 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9302 | PyObject *resultobj; | |
9303 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9304 | int arg2 ; | |
9305 | int arg3 ; | |
9306 | int result; | |
9307 | PyObject * obj0 = 0 ; | |
9308 | PyObject * obj1 = 0 ; | |
9309 | PyObject * obj2 = 0 ; | |
9310 | char *kwnames[] = { | |
9311 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9312 | }; | |
9313 | ||
9314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9317 | arg2 = (int) SWIG_AsInt(obj1); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | arg3 = (int) SWIG_AsInt(obj2); | |
9320 | if (PyErr_Occurred()) SWIG_fail; | |
9321 | { | |
9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9323 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9324 | ||
9325 | wxPyEndAllowThreads(__tstate); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | resultobj = SWIG_FromInt((int)result); | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
9332 | } | |
9333 | ||
9334 | ||
9335 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9336 | PyObject *resultobj; | |
9337 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9338 | wxPoint *arg2 = 0 ; | |
9339 | int result; | |
9340 | wxPoint temp2 ; | |
9341 | PyObject * obj0 = 0 ; | |
9342 | PyObject * obj1 = 0 ; | |
9343 | char *kwnames[] = { | |
9344 | (char *) "self",(char *) "pt", NULL | |
9345 | }; | |
9346 | ||
9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9350 | { | |
9351 | arg2 = &temp2; | |
9352 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9353 | } | |
9354 | { | |
9355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9356 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9357 | ||
9358 | wxPyEndAllowThreads(__tstate); | |
9359 | if (PyErr_Occurred()) SWIG_fail; | |
9360 | } | |
9361 | resultobj = SWIG_FromInt((int)result); | |
9362 | return resultobj; | |
9363 | fail: | |
9364 | return NULL; | |
9365 | } | |
9366 | ||
9367 | ||
9368 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9369 | PyObject *resultobj; | |
9370 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9371 | PyObject * obj0 = 0 ; | |
9372 | char *kwnames[] = { | |
9373 | (char *) "self", NULL | |
9374 | }; | |
9375 | ||
9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9379 | { | |
9380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9381 | (arg1)->RefreshAll(); | |
9382 | ||
9383 | wxPyEndAllowThreads(__tstate); | |
9384 | if (PyErr_Occurred()) SWIG_fail; | |
9385 | } | |
9386 | Py_INCREF(Py_None); resultobj = Py_None; | |
9387 | return resultobj; | |
9388 | fail: | |
9389 | return NULL; | |
9390 | } | |
9391 | ||
9392 | ||
9393 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9394 | PyObject *resultobj; | |
9395 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9396 | size_t result; | |
9397 | PyObject * obj0 = 0 ; | |
9398 | char *kwnames[] = { | |
9399 | (char *) "self", NULL | |
9400 | }; | |
9401 | ||
9402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9405 | { | |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9407 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9408 | ||
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9413 | return resultobj; | |
9414 | fail: | |
9415 | return NULL; | |
9416 | } | |
9417 | ||
9418 | ||
9419 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9420 | PyObject *resultobj; | |
9421 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9422 | size_t result; | |
9423 | PyObject * obj0 = 0 ; | |
9424 | char *kwnames[] = { | |
9425 | (char *) "self", NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9431 | { | |
9432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9433 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9434 | ||
9435 | wxPyEndAllowThreads(__tstate); | |
9436 | if (PyErr_Occurred()) SWIG_fail; | |
9437 | } | |
9438 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9439 | return resultobj; | |
9440 | fail: | |
9441 | return NULL; | |
9442 | } | |
9443 | ||
9444 | ||
9445 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject *resultobj; | |
9447 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9448 | size_t result; | |
9449 | PyObject * obj0 = 0 ; | |
9450 | char *kwnames[] = { | |
9451 | (char *) "self", NULL | |
9452 | }; | |
9453 | ||
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9457 | { | |
9458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9459 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9460 | ||
9461 | wxPyEndAllowThreads(__tstate); | |
9462 | if (PyErr_Occurred()) SWIG_fail; | |
9463 | } | |
9464 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9465 | return resultobj; | |
9466 | fail: | |
9467 | return NULL; | |
9468 | } | |
9469 | ||
9470 | ||
9471 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9472 | PyObject *resultobj; | |
9473 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9474 | size_t arg2 ; | |
9475 | bool result; | |
9476 | PyObject * obj0 = 0 ; | |
9477 | PyObject * obj1 = 0 ; | |
9478 | char *kwnames[] = { | |
9479 | (char *) "self",(char *) "line", NULL | |
9480 | }; | |
9481 | ||
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9485 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | { | |
9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9489 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9490 | ||
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
9494 | { | |
9495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9496 | } | |
9497 | return resultobj; | |
9498 | fail: | |
9499 | return NULL; | |
9500 | } | |
9501 | ||
9502 | ||
9503 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9504 | PyObject *obj; | |
9505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9506 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9507 | Py_INCREF(obj); | |
9508 | return Py_BuildValue((char *)""); | |
9509 | } | |
9510 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9511 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9512 | return 1; | |
9513 | } | |
9514 | ||
9515 | ||
9516 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9517 | PyObject *pyobj; | |
9518 | ||
9519 | { | |
9520 | #if wxUSE_UNICODE | |
9521 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9522 | #else | |
9523 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9524 | #endif | |
9525 | } | |
9526 | return pyobj; | |
9527 | } | |
9528 | ||
9529 | ||
9530 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9531 | PyObject *resultobj; | |
9532 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9533 | int arg2 = (int) wxID_ANY ; | |
9534 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9535 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9536 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9537 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9538 | long arg5 = (long) 0 ; | |
9539 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9540 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9541 | wxPyVListBox *result; | |
9542 | wxPoint temp3 ; | |
9543 | wxSize temp4 ; | |
9544 | bool temp6 = False ; | |
9545 | PyObject * obj0 = 0 ; | |
9546 | PyObject * obj1 = 0 ; | |
9547 | PyObject * obj2 = 0 ; | |
9548 | PyObject * obj3 = 0 ; | |
9549 | PyObject * obj4 = 0 ; | |
9550 | PyObject * obj5 = 0 ; | |
9551 | char *kwnames[] = { | |
9552 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9553 | }; | |
9554 | ||
9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9558 | if (obj1) { | |
9559 | arg2 = (int) SWIG_AsInt(obj1); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
9562 | if (obj2) { | |
9563 | { | |
9564 | arg3 = &temp3; | |
9565 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9566 | } | |
9567 | } | |
9568 | if (obj3) { | |
9569 | { | |
9570 | arg4 = &temp4; | |
9571 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9572 | } | |
9573 | } | |
9574 | if (obj4) { | |
9575 | arg5 = (long) SWIG_AsLong(obj4); | |
9576 | if (PyErr_Occurred()) SWIG_fail; | |
9577 | } | |
9578 | if (obj5) { | |
9579 | { | |
9580 | arg6 = wxString_in_helper(obj5); | |
9581 | if (arg6 == NULL) SWIG_fail; | |
9582 | temp6 = True; | |
9583 | } | |
9584 | } | |
9585 | { | |
9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9587 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9588 | ||
9589 | wxPyEndAllowThreads(__tstate); | |
9590 | if (PyErr_Occurred()) SWIG_fail; | |
9591 | } | |
9592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9593 | { | |
9594 | if (temp6) | |
9595 | delete arg6; | |
9596 | } | |
9597 | return resultobj; | |
9598 | fail: | |
9599 | { | |
9600 | if (temp6) | |
9601 | delete arg6; | |
9602 | } | |
9603 | return NULL; | |
9604 | } | |
9605 | ||
9606 | ||
9607 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9608 | PyObject *resultobj; | |
9609 | wxPyVListBox *result; | |
9610 | char *kwnames[] = { | |
9611 | NULL | |
9612 | }; | |
9613 | ||
9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9615 | { | |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9618 | ||
9619 | wxPyEndAllowThreads(__tstate); | |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
9621 | } | |
9622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | return NULL; | |
9626 | } | |
9627 | ||
9628 | ||
9629 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9630 | PyObject *resultobj; | |
9631 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9632 | PyObject *arg2 = (PyObject *) 0 ; | |
9633 | PyObject *arg3 = (PyObject *) 0 ; | |
9634 | PyObject * obj0 = 0 ; | |
9635 | PyObject * obj1 = 0 ; | |
9636 | PyObject * obj2 = 0 ; | |
9637 | char *kwnames[] = { | |
9638 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9639 | }; | |
9640 | ||
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9644 | arg2 = obj1; | |
9645 | arg3 = obj2; | |
9646 | { | |
9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9648 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9649 | ||
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | Py_INCREF(Py_None); resultobj = Py_None; | |
9654 | return resultobj; | |
9655 | fail: | |
9656 | return NULL; | |
9657 | } | |
9658 | ||
9659 | ||
9660 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9661 | PyObject *resultobj; | |
9662 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9663 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9664 | int arg3 = (int) wxID_ANY ; | |
9665 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9666 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9667 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9668 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9669 | long arg6 = (long) 0 ; | |
9670 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9671 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9672 | bool result; | |
9673 | wxPoint temp4 ; | |
9674 | wxSize temp5 ; | |
9675 | bool temp7 = False ; | |
9676 | PyObject * obj0 = 0 ; | |
9677 | PyObject * obj1 = 0 ; | |
9678 | PyObject * obj2 = 0 ; | |
9679 | PyObject * obj3 = 0 ; | |
9680 | PyObject * obj4 = 0 ; | |
9681 | PyObject * obj5 = 0 ; | |
9682 | PyObject * obj6 = 0 ; | |
9683 | char *kwnames[] = { | |
9684 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9685 | }; | |
9686 | ||
9687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9692 | if (obj2) { | |
9693 | arg3 = (int) SWIG_AsInt(obj2); | |
9694 | if (PyErr_Occurred()) SWIG_fail; | |
9695 | } | |
9696 | if (obj3) { | |
9697 | { | |
9698 | arg4 = &temp4; | |
9699 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9700 | } | |
9701 | } | |
9702 | if (obj4) { | |
9703 | { | |
9704 | arg5 = &temp5; | |
9705 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9706 | } | |
9707 | } | |
9708 | if (obj5) { | |
9709 | arg6 = (long) SWIG_AsLong(obj5); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | if (obj6) { | |
9713 | { | |
9714 | arg7 = wxString_in_helper(obj6); | |
9715 | if (arg7 == NULL) SWIG_fail; | |
9716 | temp7 = True; | |
9717 | } | |
9718 | } | |
9719 | { | |
9720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9721 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9722 | ||
9723 | wxPyEndAllowThreads(__tstate); | |
9724 | if (PyErr_Occurred()) SWIG_fail; | |
9725 | } | |
9726 | { | |
9727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9728 | } | |
9729 | { | |
9730 | if (temp7) | |
9731 | delete arg7; | |
9732 | } | |
9733 | return resultobj; | |
9734 | fail: | |
9735 | { | |
9736 | if (temp7) | |
9737 | delete arg7; | |
9738 | } | |
9739 | return NULL; | |
9740 | } | |
9741 | ||
9742 | ||
9743 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9744 | PyObject *resultobj; | |
9745 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9746 | size_t result; | |
9747 | PyObject * obj0 = 0 ; | |
9748 | char *kwnames[] = { | |
9749 | (char *) "self", NULL | |
9750 | }; | |
9751 | ||
9752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9755 | { | |
9756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9757 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9758 | ||
9759 | wxPyEndAllowThreads(__tstate); | |
9760 | if (PyErr_Occurred()) SWIG_fail; | |
9761 | } | |
9762 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9763 | return resultobj; | |
9764 | fail: | |
9765 | return NULL; | |
9766 | } | |
9767 | ||
9768 | ||
9769 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9770 | PyObject *resultobj; | |
9771 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9772 | bool result; | |
9773 | PyObject * obj0 = 0 ; | |
9774 | char *kwnames[] = { | |
9775 | (char *) "self", NULL | |
9776 | }; | |
9777 | ||
9778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9781 | { | |
9782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9783 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9784 | ||
9785 | wxPyEndAllowThreads(__tstate); | |
9786 | if (PyErr_Occurred()) SWIG_fail; | |
9787 | } | |
9788 | { | |
9789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9790 | } | |
9791 | return resultobj; | |
9792 | fail: | |
9793 | return NULL; | |
9794 | } | |
9795 | ||
9796 | ||
9797 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9798 | PyObject *resultobj; | |
9799 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9800 | int result; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | char *kwnames[] = { | |
9803 | (char *) "self", NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9809 | { | |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9811 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
9816 | resultobj = SWIG_FromInt((int)result); | |
9817 | return resultobj; | |
9818 | fail: | |
9819 | return NULL; | |
9820 | } | |
9821 | ||
9822 | ||
9823 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9824 | PyObject *resultobj; | |
9825 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9826 | size_t arg2 ; | |
9827 | bool result; | |
9828 | PyObject * obj0 = 0 ; | |
9829 | PyObject * obj1 = 0 ; | |
9830 | char *kwnames[] = { | |
9831 | (char *) "self",(char *) "item", NULL | |
9832 | }; | |
9833 | ||
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9837 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | { | |
9840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9841 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9842 | ||
9843 | wxPyEndAllowThreads(__tstate); | |
9844 | if (PyErr_Occurred()) SWIG_fail; | |
9845 | } | |
9846 | { | |
9847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9848 | } | |
9849 | return resultobj; | |
9850 | fail: | |
9851 | return NULL; | |
9852 | } | |
9853 | ||
9854 | ||
9855 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject *resultobj; | |
9857 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9858 | size_t arg2 ; | |
9859 | bool result; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | PyObject * obj1 = 0 ; | |
9862 | char *kwnames[] = { | |
9863 | (char *) "self",(char *) "item", NULL | |
9864 | }; | |
9865 | ||
9866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9869 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9870 | if (PyErr_Occurred()) SWIG_fail; | |
9871 | { | |
9872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9873 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
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_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9890 | size_t result; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
9897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9907 | return resultobj; | |
9908 | fail: | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
9913 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject *resultobj; | |
9915 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9916 | unsigned long *arg2 = 0 ; | |
9917 | int result; | |
9918 | PyObject * obj0 = 0 ; | |
9919 | PyObject * obj1 = 0 ; | |
9920 | char *kwnames[] = { | |
9921 | (char *) "self",(char *) "cookie", NULL | |
9922 | }; | |
9923 | ||
9924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
9925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9929 | SWIG_fail; | |
9930 | if (arg2 == NULL) { | |
9931 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9932 | SWIG_fail; | |
9933 | } | |
9934 | { | |
9935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9936 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
9937 | ||
9938 | wxPyEndAllowThreads(__tstate); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
9940 | } | |
9941 | resultobj = SWIG_FromInt((int)result); | |
9942 | return resultobj; | |
9943 | fail: | |
9944 | return NULL; | |
9945 | } | |
9946 | ||
9947 | ||
9948 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9949 | PyObject *resultobj; | |
9950 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9951 | unsigned long *arg2 = 0 ; | |
9952 | int result; | |
9953 | PyObject * obj0 = 0 ; | |
9954 | PyObject * obj1 = 0 ; | |
9955 | char *kwnames[] = { | |
9956 | (char *) "self",(char *) "cookie", NULL | |
9957 | }; | |
9958 | ||
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
9960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9964 | SWIG_fail; | |
9965 | if (arg2 == NULL) { | |
9966 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9967 | SWIG_fail; | |
9968 | } | |
9969 | { | |
9970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9971 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
9972 | ||
9973 | wxPyEndAllowThreads(__tstate); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
9976 | resultobj = SWIG_FromInt((int)result); | |
9977 | return resultobj; | |
9978 | fail: | |
9979 | return NULL; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9984 | PyObject *resultobj; | |
9985 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9986 | wxPoint result; | |
9987 | PyObject * obj0 = 0 ; | |
9988 | char *kwnames[] = { | |
9989 | (char *) "self", NULL | |
9990 | }; | |
9991 | ||
9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
9993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9995 | { | |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9997 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
9998 | ||
9999 | wxPyEndAllowThreads(__tstate); | |
10000 | if (PyErr_Occurred()) SWIG_fail; | |
10001 | } | |
10002 | { | |
10003 | wxPoint * resultptr; | |
10004 | resultptr = new wxPoint((wxPoint &) result); | |
10005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10006 | } | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10016 | wxColour *result; | |
10017 | PyObject * obj0 = 0 ; | |
10018 | char *kwnames[] = { | |
10019 | (char *) "self", NULL | |
10020 | }; | |
10021 | ||
10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10025 | { | |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10027 | { | |
10028 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10029 | result = (wxColour *) &_result_ref; | |
10030 | } | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
10035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10036 | return resultobj; | |
10037 | fail: | |
10038 | return NULL; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10045 | size_t arg2 ; | |
10046 | PyObject * obj0 = 0 ; | |
10047 | PyObject * obj1 = 0 ; | |
10048 | char *kwnames[] = { | |
10049 | (char *) "self",(char *) "count", NULL | |
10050 | }; | |
10051 | ||
10052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10055 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10056 | if (PyErr_Occurred()) SWIG_fail; | |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | (arg1)->SetItemCount(arg2); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
10064 | Py_INCREF(Py_None); resultobj = Py_None; | |
10065 | return resultobj; | |
10066 | fail: | |
10067 | return NULL; | |
10068 | } | |
10069 | ||
10070 | ||
10071 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject *resultobj; | |
10073 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10074 | PyObject * obj0 = 0 ; | |
10075 | char *kwnames[] = { | |
10076 | (char *) "self", NULL | |
10077 | }; | |
10078 | ||
10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10082 | { | |
10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10084 | (arg1)->Clear(); | |
10085 | ||
10086 | wxPyEndAllowThreads(__tstate); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
10089 | Py_INCREF(Py_None); resultobj = Py_None; | |
10090 | return resultobj; | |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
10096 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10097 | PyObject *resultobj; | |
10098 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10099 | int arg2 ; | |
10100 | PyObject * obj0 = 0 ; | |
10101 | PyObject * obj1 = 0 ; | |
10102 | char *kwnames[] = { | |
10103 | (char *) "self",(char *) "selection", NULL | |
10104 | }; | |
10105 | ||
10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10109 | arg2 = (int) SWIG_AsInt(obj1); | |
10110 | if (PyErr_Occurred()) SWIG_fail; | |
10111 | { | |
10112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10113 | (arg1)->SetSelection(arg2); | |
10114 | ||
10115 | wxPyEndAllowThreads(__tstate); | |
10116 | if (PyErr_Occurred()) SWIG_fail; | |
10117 | } | |
10118 | Py_INCREF(Py_None); resultobj = Py_None; | |
10119 | return resultobj; | |
10120 | fail: | |
10121 | return NULL; | |
10122 | } | |
10123 | ||
10124 | ||
10125 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject *resultobj; | |
10127 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10128 | size_t arg2 ; | |
10129 | bool arg3 = (bool) True ; | |
10130 | bool result; | |
10131 | PyObject * obj0 = 0 ; | |
10132 | PyObject * obj1 = 0 ; | |
10133 | PyObject * obj2 = 0 ; | |
10134 | char *kwnames[] = { | |
10135 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10136 | }; | |
10137 | ||
10138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10141 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | if (obj2) { | |
10144 | arg3 = (bool) SWIG_AsBool(obj2); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | { | |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | result = (bool)(arg1)->Select(arg2,arg3); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
10154 | { | |
10155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10156 | } | |
10157 | return resultobj; | |
10158 | fail: | |
10159 | return NULL; | |
10160 | } | |
10161 | ||
10162 | ||
10163 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10164 | PyObject *resultobj; | |
10165 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10166 | size_t arg2 ; | |
10167 | size_t arg3 ; | |
10168 | bool result; | |
10169 | PyObject * obj0 = 0 ; | |
10170 | PyObject * obj1 = 0 ; | |
10171 | PyObject * obj2 = 0 ; | |
10172 | char *kwnames[] = { | |
10173 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10174 | }; | |
10175 | ||
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10179 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10180 | if (PyErr_Occurred()) SWIG_fail; | |
10181 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10182 | if (PyErr_Occurred()) SWIG_fail; | |
10183 | { | |
10184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10185 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10186 | ||
10187 | wxPyEndAllowThreads(__tstate); | |
10188 | if (PyErr_Occurred()) SWIG_fail; | |
10189 | } | |
10190 | { | |
10191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10192 | } | |
10193 | return resultobj; | |
10194 | fail: | |
10195 | return NULL; | |
10196 | } | |
10197 | ||
10198 | ||
10199 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10200 | PyObject *resultobj; | |
10201 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10202 | size_t arg2 ; | |
10203 | PyObject * obj0 = 0 ; | |
10204 | PyObject * obj1 = 0 ; | |
10205 | char *kwnames[] = { | |
10206 | (char *) "self",(char *) "item", NULL | |
10207 | }; | |
10208 | ||
10209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10212 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10213 | if (PyErr_Occurred()) SWIG_fail; | |
10214 | { | |
10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10216 | (arg1)->Toggle(arg2); | |
10217 | ||
10218 | wxPyEndAllowThreads(__tstate); | |
10219 | if (PyErr_Occurred()) SWIG_fail; | |
10220 | } | |
10221 | Py_INCREF(Py_None); resultobj = Py_None; | |
10222 | return resultobj; | |
10223 | fail: | |
10224 | return NULL; | |
10225 | } | |
10226 | ||
10227 | ||
10228 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10229 | PyObject *resultobj; | |
10230 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10231 | bool result; | |
10232 | PyObject * obj0 = 0 ; | |
10233 | char *kwnames[] = { | |
10234 | (char *) "self", NULL | |
10235 | }; | |
10236 | ||
10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10240 | { | |
10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10242 | result = (bool)(arg1)->SelectAll(); | |
10243 | ||
10244 | wxPyEndAllowThreads(__tstate); | |
10245 | if (PyErr_Occurred()) SWIG_fail; | |
10246 | } | |
10247 | { | |
10248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10249 | } | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
10256 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10257 | PyObject *resultobj; | |
10258 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10259 | bool result; | |
10260 | PyObject * obj0 = 0 ; | |
10261 | char *kwnames[] = { | |
10262 | (char *) "self", NULL | |
10263 | }; | |
10264 | ||
10265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10268 | { | |
10269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10270 | result = (bool)(arg1)->DeselectAll(); | |
10271 | ||
10272 | wxPyEndAllowThreads(__tstate); | |
10273 | if (PyErr_Occurred()) SWIG_fail; | |
10274 | } | |
10275 | { | |
10276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10277 | } | |
10278 | return resultobj; | |
10279 | fail: | |
10280 | return NULL; | |
10281 | } | |
10282 | ||
10283 | ||
10284 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject *resultobj; | |
10286 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10287 | wxPoint *arg2 = 0 ; | |
10288 | wxPoint temp2 ; | |
10289 | PyObject * obj0 = 0 ; | |
10290 | PyObject * obj1 = 0 ; | |
10291 | char *kwnames[] = { | |
10292 | (char *) "self",(char *) "pt", NULL | |
10293 | }; | |
10294 | ||
10295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10298 | { | |
10299 | arg2 = &temp2; | |
10300 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10301 | } | |
10302 | { | |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10304 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10305 | ||
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
10309 | Py_INCREF(Py_None); resultobj = Py_None; | |
10310 | return resultobj; | |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj; | |
10318 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10319 | int arg2 ; | |
10320 | int arg3 ; | |
10321 | PyObject * obj0 = 0 ; | |
10322 | PyObject * obj1 = 0 ; | |
10323 | PyObject * obj2 = 0 ; | |
10324 | char *kwnames[] = { | |
10325 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10326 | }; | |
10327 | ||
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10331 | arg2 = (int) SWIG_AsInt(obj1); | |
10332 | if (PyErr_Occurred()) SWIG_fail; | |
10333 | arg3 = (int) SWIG_AsInt(obj2); | |
10334 | if (PyErr_Occurred()) SWIG_fail; | |
10335 | { | |
10336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10337 | (arg1)->SetMargins(arg2,arg3); | |
10338 | ||
10339 | wxPyEndAllowThreads(__tstate); | |
10340 | if (PyErr_Occurred()) SWIG_fail; | |
10341 | } | |
10342 | Py_INCREF(Py_None); resultobj = Py_None; | |
10343 | return resultobj; | |
10344 | fail: | |
10345 | return NULL; | |
10346 | } | |
10347 | ||
10348 | ||
10349 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10350 | PyObject *resultobj; | |
10351 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10352 | wxColour *arg2 = 0 ; | |
10353 | wxColour temp2 ; | |
10354 | PyObject * obj0 = 0 ; | |
10355 | PyObject * obj1 = 0 ; | |
10356 | char *kwnames[] = { | |
10357 | (char *) "self",(char *) "col", NULL | |
10358 | }; | |
10359 | ||
10360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10363 | { | |
10364 | arg2 = &temp2; | |
10365 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10366 | } | |
10367 | { | |
10368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10369 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10370 | ||
10371 | wxPyEndAllowThreads(__tstate); | |
10372 | if (PyErr_Occurred()) SWIG_fail; | |
10373 | } | |
10374 | Py_INCREF(Py_None); resultobj = Py_None; | |
10375 | return resultobj; | |
10376 | fail: | |
10377 | return NULL; | |
10378 | } | |
10379 | ||
10380 | ||
10381 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10382 | PyObject *obj; | |
10383 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10384 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10385 | Py_INCREF(obj); | |
10386 | return Py_BuildValue((char *)""); | |
10387 | } | |
10388 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10389 | PyObject *resultobj; | |
10390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10391 | int arg2 = (int) wxID_ANY ; | |
10392 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10393 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10394 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10395 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10396 | long arg5 = (long) 0 ; | |
10397 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10398 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10399 | wxPyHtmlListBox *result; | |
10400 | wxPoint temp3 ; | |
10401 | wxSize temp4 ; | |
10402 | bool temp6 = False ; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | PyObject * obj1 = 0 ; | |
10405 | PyObject * obj2 = 0 ; | |
10406 | PyObject * obj3 = 0 ; | |
10407 | PyObject * obj4 = 0 ; | |
10408 | PyObject * obj5 = 0 ; | |
10409 | char *kwnames[] = { | |
10410 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10411 | }; | |
10412 | ||
10413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10416 | if (obj1) { | |
10417 | arg2 = (int) SWIG_AsInt(obj1); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
10420 | if (obj2) { | |
10421 | { | |
10422 | arg3 = &temp3; | |
10423 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10424 | } | |
10425 | } | |
10426 | if (obj3) { | |
10427 | { | |
10428 | arg4 = &temp4; | |
10429 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10430 | } | |
10431 | } | |
10432 | if (obj4) { | |
10433 | arg5 = (long) SWIG_AsLong(obj4); | |
10434 | if (PyErr_Occurred()) SWIG_fail; | |
10435 | } | |
10436 | if (obj5) { | |
10437 | { | |
10438 | arg6 = wxString_in_helper(obj5); | |
10439 | if (arg6 == NULL) SWIG_fail; | |
10440 | temp6 = True; | |
10441 | } | |
10442 | } | |
10443 | { | |
10444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10445 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10446 | ||
10447 | wxPyEndAllowThreads(__tstate); | |
10448 | if (PyErr_Occurred()) SWIG_fail; | |
10449 | } | |
10450 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10451 | { | |
10452 | if (temp6) | |
10453 | delete arg6; | |
10454 | } | |
10455 | return resultobj; | |
10456 | fail: | |
10457 | { | |
10458 | if (temp6) | |
10459 | delete arg6; | |
10460 | } | |
10461 | return NULL; | |
10462 | } | |
10463 | ||
10464 | ||
10465 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10466 | PyObject *resultobj; | |
10467 | wxPyHtmlListBox *result; | |
10468 | char *kwnames[] = { | |
10469 | NULL | |
10470 | }; | |
10471 | ||
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10473 | { | |
10474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10475 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10476 | ||
10477 | wxPyEndAllowThreads(__tstate); | |
10478 | if (PyErr_Occurred()) SWIG_fail; | |
10479 | } | |
10480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10481 | return resultobj; | |
10482 | fail: | |
10483 | return NULL; | |
10484 | } | |
10485 | ||
10486 | ||
10487 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10488 | PyObject *resultobj; | |
10489 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10490 | PyObject *arg2 = (PyObject *) 0 ; | |
10491 | PyObject *arg3 = (PyObject *) 0 ; | |
10492 | PyObject * obj0 = 0 ; | |
10493 | PyObject * obj1 = 0 ; | |
10494 | PyObject * obj2 = 0 ; | |
10495 | char *kwnames[] = { | |
10496 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10497 | }; | |
10498 | ||
10499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10502 | arg2 = obj1; | |
10503 | arg3 = obj2; | |
10504 | { | |
10505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10506 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10507 | ||
10508 | wxPyEndAllowThreads(__tstate); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | } | |
10511 | Py_INCREF(Py_None); resultobj = Py_None; | |
10512 | return resultobj; | |
10513 | fail: | |
10514 | return NULL; | |
10515 | } | |
10516 | ||
10517 | ||
10518 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10519 | PyObject *resultobj; | |
10520 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10521 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10522 | int arg3 = (int) wxID_ANY ; | |
10523 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10524 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10525 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10526 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10527 | long arg6 = (long) 0 ; | |
10528 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10529 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10530 | bool result; | |
10531 | wxPoint temp4 ; | |
10532 | wxSize temp5 ; | |
10533 | bool temp7 = False ; | |
10534 | PyObject * obj0 = 0 ; | |
10535 | PyObject * obj1 = 0 ; | |
10536 | PyObject * obj2 = 0 ; | |
10537 | PyObject * obj3 = 0 ; | |
10538 | PyObject * obj4 = 0 ; | |
10539 | PyObject * obj5 = 0 ; | |
10540 | PyObject * obj6 = 0 ; | |
10541 | char *kwnames[] = { | |
10542 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10543 | }; | |
10544 | ||
10545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10550 | if (obj2) { | |
10551 | arg3 = (int) SWIG_AsInt(obj2); | |
10552 | if (PyErr_Occurred()) SWIG_fail; | |
10553 | } | |
10554 | if (obj3) { | |
10555 | { | |
10556 | arg4 = &temp4; | |
10557 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10558 | } | |
10559 | } | |
10560 | if (obj4) { | |
10561 | { | |
10562 | arg5 = &temp5; | |
10563 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10564 | } | |
10565 | } | |
10566 | if (obj5) { | |
10567 | arg6 = (long) SWIG_AsLong(obj5); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | if (obj6) { | |
10571 | { | |
10572 | arg7 = wxString_in_helper(obj6); | |
10573 | if (arg7 == NULL) SWIG_fail; | |
10574 | temp7 = True; | |
10575 | } | |
10576 | } | |
10577 | { | |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | { | |
10585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10586 | } | |
10587 | { | |
10588 | if (temp7) | |
10589 | delete arg7; | |
10590 | } | |
10591 | return resultobj; | |
10592 | fail: | |
10593 | { | |
10594 | if (temp7) | |
10595 | delete arg7; | |
10596 | } | |
10597 | return NULL; | |
10598 | } | |
10599 | ||
10600 | ||
10601 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10602 | PyObject *resultobj; | |
10603 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10604 | PyObject * obj0 = 0 ; | |
10605 | char *kwnames[] = { | |
10606 | (char *) "self", NULL | |
10607 | }; | |
10608 | ||
10609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10612 | { | |
10613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10614 | (arg1)->RefreshAll(); | |
10615 | ||
10616 | wxPyEndAllowThreads(__tstate); | |
10617 | if (PyErr_Occurred()) SWIG_fail; | |
10618 | } | |
10619 | Py_INCREF(Py_None); resultobj = Py_None; | |
10620 | return resultobj; | |
10621 | fail: | |
10622 | return NULL; | |
10623 | } | |
10624 | ||
10625 | ||
10626 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10627 | PyObject *resultobj; | |
10628 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10629 | size_t arg2 ; | |
10630 | PyObject * obj0 = 0 ; | |
10631 | PyObject * obj1 = 0 ; | |
10632 | char *kwnames[] = { | |
10633 | (char *) "self",(char *) "count", NULL | |
10634 | }; | |
10635 | ||
10636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10639 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | { | |
10642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10643 | (arg1)->SetItemCount(arg2); | |
10644 | ||
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | Py_INCREF(Py_None); resultobj = Py_None; | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10658 | wxFileSystem *result; | |
10659 | PyObject * obj0 = 0 ; | |
10660 | char *kwnames[] = { | |
10661 | (char *) "self", NULL | |
10662 | }; | |
10663 | ||
10664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10667 | { | |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | { | |
10670 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10671 | result = (wxFileSystem *) &_result_ref; | |
10672 | } | |
10673 | ||
10674 | wxPyEndAllowThreads(__tstate); | |
10675 | if (PyErr_Occurred()) SWIG_fail; | |
10676 | } | |
10677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10678 | return resultobj; | |
10679 | fail: | |
10680 | return NULL; | |
10681 | } | |
10682 | ||
10683 | ||
10684 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { | |
10685 | PyObject *obj; | |
10686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10687 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10688 | Py_INCREF(obj); | |
10689 | return Py_BuildValue((char *)""); | |
10690 | } | |
10691 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10692 | PyObject *resultobj; | |
10693 | wxTaskBarIcon *result; | |
10694 | char *kwnames[] = { | |
10695 | NULL | |
10696 | }; | |
10697 | ||
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10699 | { | |
10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10701 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10702 | ||
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
10706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | return NULL; | |
10710 | } | |
10711 | ||
10712 | ||
10713 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10714 | PyObject *resultobj; | |
10715 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10716 | PyObject * obj0 = 0 ; | |
10717 | char *kwnames[] = { | |
10718 | (char *) "self", NULL | |
10719 | }; | |
10720 | ||
10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10724 | { | |
10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10726 | delete arg1; | |
10727 | ||
10728 | wxPyEndAllowThreads(__tstate); | |
10729 | if (PyErr_Occurred()) SWIG_fail; | |
10730 | } | |
10731 | Py_INCREF(Py_None); resultobj = Py_None; | |
10732 | return resultobj; | |
10733 | fail: | |
10734 | return NULL; | |
10735 | } | |
10736 | ||
10737 | ||
10738 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10739 | PyObject *resultobj; | |
10740 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | wxTaskBarIcon_Destroy(arg1); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | Py_INCREF(Py_None); resultobj = Py_None; | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
10764 | PyObject *obj; | |
10765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10766 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
10767 | Py_INCREF(obj); | |
10768 | return Py_BuildValue((char *)""); | |
10769 | } | |
10770 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10771 | PyObject *resultobj; | |
10772 | wxEventType arg1 ; | |
10773 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
10774 | wxTaskBarIconEvent *result; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | PyObject * obj1 = 0 ; | |
10777 | char *kwnames[] = { | |
10778 | (char *) "evtType",(char *) "tbIcon", NULL | |
10779 | }; | |
10780 | ||
10781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
10782 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
10785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
10801 | PyObject *obj; | |
10802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10803 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
10804 | Py_INCREF(obj); | |
10805 | return Py_BuildValue((char *)""); | |
10806 | } | |
10807 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
10808 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
10809 | return 1; | |
10810 | } | |
10811 | ||
10812 | ||
10813 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
10814 | PyObject *pyobj; | |
10815 | ||
10816 | { | |
10817 | #if wxUSE_UNICODE | |
10818 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10819 | #else | |
10820 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10821 | #endif | |
10822 | } | |
10823 | return pyobj; | |
10824 | } | |
10825 | ||
10826 | ||
10827 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
10828 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
10829 | return 1; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
10834 | PyObject *pyobj; | |
10835 | ||
10836 | { | |
10837 | #if wxUSE_UNICODE | |
10838 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10839 | #else | |
10840 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10841 | #endif | |
10842 | } | |
10843 | return pyobj; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
10848 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
10849 | return 1; | |
10850 | } | |
10851 | ||
10852 | ||
10853 | static PyObject *_wrap_DirDialogNameStr_get() { | |
10854 | PyObject *pyobj; | |
10855 | ||
10856 | { | |
10857 | #if wxUSE_UNICODE | |
10858 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10859 | #else | |
10860 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10861 | #endif | |
10862 | } | |
10863 | return pyobj; | |
10864 | } | |
10865 | ||
10866 | ||
10867 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
10868 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
10869 | return 1; | |
10870 | } | |
10871 | ||
10872 | ||
10873 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
10874 | PyObject *pyobj; | |
10875 | ||
10876 | { | |
10877 | #if wxUSE_UNICODE | |
10878 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10879 | #else | |
10880 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10881 | #endif | |
10882 | } | |
10883 | return pyobj; | |
10884 | } | |
10885 | ||
10886 | ||
10887 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
10888 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
10889 | return 1; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
10894 | PyObject *pyobj; | |
10895 | ||
10896 | { | |
10897 | #if wxUSE_UNICODE | |
10898 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10899 | #else | |
10900 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10901 | #endif | |
10902 | } | |
10903 | return pyobj; | |
10904 | } | |
10905 | ||
10906 | ||
10907 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
10908 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
10909 | return 1; | |
10910 | } | |
10911 | ||
10912 | ||
10913 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
10914 | PyObject *pyobj; | |
10915 | ||
10916 | { | |
10917 | #if wxUSE_UNICODE | |
10918 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10919 | #else | |
10920 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10921 | #endif | |
10922 | } | |
10923 | return pyobj; | |
10924 | } | |
10925 | ||
10926 | ||
10927 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10928 | PyObject *resultobj; | |
10929 | wxColourData *result; | |
10930 | char *kwnames[] = { | |
10931 | NULL | |
10932 | }; | |
10933 | ||
10934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = (wxColourData *)new wxColourData(); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject *resultobj; | |
10951 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10952 | PyObject * obj0 = 0 ; | |
10953 | char *kwnames[] = { | |
10954 | (char *) "self", NULL | |
10955 | }; | |
10956 | ||
10957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
10958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10960 | { | |
10961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10962 | delete arg1; | |
10963 | ||
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | Py_INCREF(Py_None); resultobj = Py_None; | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
10974 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject *resultobj; | |
10976 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10977 | bool result; | |
10978 | PyObject * obj0 = 0 ; | |
10979 | char *kwnames[] = { | |
10980 | (char *) "self", NULL | |
10981 | }; | |
10982 | ||
10983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
10984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10986 | { | |
10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10988 | result = (bool)(arg1)->GetChooseFull(); | |
10989 | ||
10990 | wxPyEndAllowThreads(__tstate); | |
10991 | if (PyErr_Occurred()) SWIG_fail; | |
10992 | } | |
10993 | { | |
10994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10995 | } | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
11002 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject *resultobj; | |
11004 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11005 | wxColour result; | |
11006 | PyObject * obj0 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11014 | { | |
11015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11016 | result = (arg1)->GetColour(); | |
11017 | ||
11018 | wxPyEndAllowThreads(__tstate); | |
11019 | if (PyErr_Occurred()) SWIG_fail; | |
11020 | } | |
11021 | { | |
11022 | wxColour * resultptr; | |
11023 | resultptr = new wxColour((wxColour &) result); | |
11024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11025 | } | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
11032 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11033 | PyObject *resultobj; | |
11034 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11035 | int arg2 ; | |
11036 | wxColour result; | |
11037 | PyObject * obj0 = 0 ; | |
11038 | PyObject * obj1 = 0 ; | |
11039 | char *kwnames[] = { | |
11040 | (char *) "self",(char *) "i", NULL | |
11041 | }; | |
11042 | ||
11043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11046 | arg2 = (int) SWIG_AsInt(obj1); | |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
11048 | { | |
11049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11050 | result = (arg1)->GetCustomColour(arg2); | |
11051 | ||
11052 | wxPyEndAllowThreads(__tstate); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | } | |
11055 | { | |
11056 | wxColour * resultptr; | |
11057 | resultptr = new wxColour((wxColour &) result); | |
11058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11059 | } | |
11060 | return resultobj; | |
11061 | fail: | |
11062 | return NULL; | |
11063 | } | |
11064 | ||
11065 | ||
11066 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11067 | PyObject *resultobj; | |
11068 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11069 | int arg2 ; | |
11070 | PyObject * obj0 = 0 ; | |
11071 | PyObject * obj1 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self",(char *) "flag", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11079 | arg2 = (int) SWIG_AsInt(obj1); | |
11080 | if (PyErr_Occurred()) SWIG_fail; | |
11081 | { | |
11082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11083 | (arg1)->SetChooseFull(arg2); | |
11084 | ||
11085 | wxPyEndAllowThreads(__tstate); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
11088 | Py_INCREF(Py_None); resultobj = Py_None; | |
11089 | return resultobj; | |
11090 | fail: | |
11091 | return NULL; | |
11092 | } | |
11093 | ||
11094 | ||
11095 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11096 | PyObject *resultobj; | |
11097 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11098 | wxColour *arg2 = 0 ; | |
11099 | wxColour temp2 ; | |
11100 | PyObject * obj0 = 0 ; | |
11101 | PyObject * obj1 = 0 ; | |
11102 | char *kwnames[] = { | |
11103 | (char *) "self",(char *) "colour", NULL | |
11104 | }; | |
11105 | ||
11106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11109 | { | |
11110 | arg2 = &temp2; | |
11111 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11112 | } | |
11113 | { | |
11114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11115 | (arg1)->SetColour((wxColour const &)*arg2); | |
11116 | ||
11117 | wxPyEndAllowThreads(__tstate); | |
11118 | if (PyErr_Occurred()) SWIG_fail; | |
11119 | } | |
11120 | Py_INCREF(Py_None); resultobj = Py_None; | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | return NULL; | |
11124 | } | |
11125 | ||
11126 | ||
11127 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11128 | PyObject *resultobj; | |
11129 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11130 | int arg2 ; | |
11131 | wxColour *arg3 = 0 ; | |
11132 | wxColour temp3 ; | |
11133 | PyObject * obj0 = 0 ; | |
11134 | PyObject * obj1 = 0 ; | |
11135 | PyObject * obj2 = 0 ; | |
11136 | char *kwnames[] = { | |
11137 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11138 | }; | |
11139 | ||
11140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11143 | arg2 = (int) SWIG_AsInt(obj1); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | { | |
11146 | arg3 = &temp3; | |
11147 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11148 | } | |
11149 | { | |
11150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11151 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11152 | ||
11153 | wxPyEndAllowThreads(__tstate); | |
11154 | if (PyErr_Occurred()) SWIG_fail; | |
11155 | } | |
11156 | Py_INCREF(Py_None); resultobj = Py_None; | |
11157 | return resultobj; | |
11158 | fail: | |
11159 | return NULL; | |
11160 | } | |
11161 | ||
11162 | ||
11163 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11164 | PyObject *obj; | |
11165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11166 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11167 | Py_INCREF(obj); | |
11168 | return Py_BuildValue((char *)""); | |
11169 | } | |
11170 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11171 | PyObject *resultobj; | |
11172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11173 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11174 | wxColourDialog *result; | |
11175 | PyObject * obj0 = 0 ; | |
11176 | PyObject * obj1 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "parent",(char *) "data", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11184 | if (obj1) { | |
11185 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11187 | } | |
11188 | { | |
11189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11190 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11191 | ||
11192 | wxPyEndAllowThreads(__tstate); | |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
11194 | } | |
11195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11196 | return resultobj; | |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11203 | PyObject *resultobj; | |
11204 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11205 | wxColourData *result; | |
11206 | PyObject * obj0 = 0 ; | |
11207 | char *kwnames[] = { | |
11208 | (char *) "self", NULL | |
11209 | }; | |
11210 | ||
11211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | { | |
11217 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11218 | result = (wxColourData *) &_result_ref; | |
11219 | } | |
11220 | ||
11221 | wxPyEndAllowThreads(__tstate); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11225 | return resultobj; | |
11226 | fail: | |
11227 | return NULL; | |
11228 | } | |
11229 | ||
11230 | ||
11231 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11232 | PyObject *obj; | |
11233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11234 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11235 | Py_INCREF(obj); | |
11236 | return Py_BuildValue((char *)""); | |
11237 | } | |
11238 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11239 | PyObject *resultobj; | |
11240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11241 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11242 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11243 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11244 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11245 | long arg4 = (long) 0 ; | |
11246 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11247 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11248 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11249 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11250 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11251 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11252 | wxDirDialog *result; | |
11253 | bool temp2 = False ; | |
11254 | bool temp3 = False ; | |
11255 | wxPoint temp5 ; | |
11256 | wxSize temp6 ; | |
11257 | bool temp7 = False ; | |
11258 | PyObject * obj0 = 0 ; | |
11259 | PyObject * obj1 = 0 ; | |
11260 | PyObject * obj2 = 0 ; | |
11261 | PyObject * obj3 = 0 ; | |
11262 | PyObject * obj4 = 0 ; | |
11263 | PyObject * obj5 = 0 ; | |
11264 | PyObject * obj6 = 0 ; | |
11265 | char *kwnames[] = { | |
11266 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11267 | }; | |
11268 | ||
11269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11272 | if (obj1) { | |
11273 | { | |
11274 | arg2 = wxString_in_helper(obj1); | |
11275 | if (arg2 == NULL) SWIG_fail; | |
11276 | temp2 = True; | |
11277 | } | |
11278 | } | |
11279 | if (obj2) { | |
11280 | { | |
11281 | arg3 = wxString_in_helper(obj2); | |
11282 | if (arg3 == NULL) SWIG_fail; | |
11283 | temp3 = True; | |
11284 | } | |
11285 | } | |
11286 | if (obj3) { | |
11287 | arg4 = (long) SWIG_AsLong(obj3); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | if (obj4) { | |
11291 | { | |
11292 | arg5 = &temp5; | |
11293 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11294 | } | |
11295 | } | |
11296 | if (obj5) { | |
11297 | { | |
11298 | arg6 = &temp6; | |
11299 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11300 | } | |
11301 | } | |
11302 | if (obj6) { | |
11303 | { | |
11304 | arg7 = wxString_in_helper(obj6); | |
11305 | if (arg7 == NULL) SWIG_fail; | |
11306 | temp7 = True; | |
11307 | } | |
11308 | } | |
11309 | { | |
11310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11311 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11312 | ||
11313 | wxPyEndAllowThreads(__tstate); | |
11314 | if (PyErr_Occurred()) SWIG_fail; | |
11315 | } | |
11316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11317 | { | |
11318 | if (temp2) | |
11319 | delete arg2; | |
11320 | } | |
11321 | { | |
11322 | if (temp3) | |
11323 | delete arg3; | |
11324 | } | |
11325 | { | |
11326 | if (temp7) | |
11327 | delete arg7; | |
11328 | } | |
11329 | return resultobj; | |
11330 | fail: | |
11331 | { | |
11332 | if (temp2) | |
11333 | delete arg2; | |
11334 | } | |
11335 | { | |
11336 | if (temp3) | |
11337 | delete arg3; | |
11338 | } | |
11339 | { | |
11340 | if (temp7) | |
11341 | delete arg7; | |
11342 | } | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11348 | PyObject *resultobj; | |
11349 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11350 | wxString result; | |
11351 | PyObject * obj0 = 0 ; | |
11352 | char *kwnames[] = { | |
11353 | (char *) "self", NULL | |
11354 | }; | |
11355 | ||
11356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11359 | { | |
11360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11361 | result = (arg1)->GetPath(); | |
11362 | ||
11363 | wxPyEndAllowThreads(__tstate); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | } | |
11366 | { | |
11367 | #if wxUSE_UNICODE | |
11368 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11369 | #else | |
11370 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11371 | #endif | |
11372 | } | |
11373 | return resultobj; | |
11374 | fail: | |
11375 | return NULL; | |
11376 | } | |
11377 | ||
11378 | ||
11379 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11380 | PyObject *resultobj; | |
11381 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11382 | wxString result; | |
11383 | PyObject * obj0 = 0 ; | |
11384 | char *kwnames[] = { | |
11385 | (char *) "self", NULL | |
11386 | }; | |
11387 | ||
11388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11391 | { | |
11392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11393 | result = (arg1)->GetMessage(); | |
11394 | ||
11395 | wxPyEndAllowThreads(__tstate); | |
11396 | if (PyErr_Occurred()) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | #if wxUSE_UNICODE | |
11400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11401 | #else | |
11402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11403 | #endif | |
11404 | } | |
11405 | return resultobj; | |
11406 | fail: | |
11407 | return NULL; | |
11408 | } | |
11409 | ||
11410 | ||
11411 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11412 | PyObject *resultobj; | |
11413 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11414 | long result; | |
11415 | PyObject * obj0 = 0 ; | |
11416 | char *kwnames[] = { | |
11417 | (char *) "self", NULL | |
11418 | }; | |
11419 | ||
11420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11423 | { | |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | result = (long)(arg1)->GetStyle(); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | resultobj = SWIG_FromLong((long)result); | |
11431 | return resultobj; | |
11432 | fail: | |
11433 | return NULL; | |
11434 | } | |
11435 | ||
11436 | ||
11437 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11438 | PyObject *resultobj; | |
11439 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11440 | wxString *arg2 = 0 ; | |
11441 | bool temp2 = False ; | |
11442 | PyObject * obj0 = 0 ; | |
11443 | PyObject * obj1 = 0 ; | |
11444 | char *kwnames[] = { | |
11445 | (char *) "self",(char *) "message", NULL | |
11446 | }; | |
11447 | ||
11448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11451 | { | |
11452 | arg2 = wxString_in_helper(obj1); | |
11453 | if (arg2 == NULL) SWIG_fail; | |
11454 | temp2 = True; | |
11455 | } | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | (arg1)->SetMessage((wxString const &)*arg2); | |
11459 | ||
11460 | wxPyEndAllowThreads(__tstate); | |
11461 | if (PyErr_Occurred()) SWIG_fail; | |
11462 | } | |
11463 | Py_INCREF(Py_None); resultobj = Py_None; | |
11464 | { | |
11465 | if (temp2) | |
11466 | delete arg2; | |
11467 | } | |
11468 | return resultobj; | |
11469 | fail: | |
11470 | { | |
11471 | if (temp2) | |
11472 | delete arg2; | |
11473 | } | |
11474 | return NULL; | |
11475 | } | |
11476 | ||
11477 | ||
11478 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11479 | PyObject *resultobj; | |
11480 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11481 | wxString *arg2 = 0 ; | |
11482 | bool temp2 = False ; | |
11483 | PyObject * obj0 = 0 ; | |
11484 | PyObject * obj1 = 0 ; | |
11485 | char *kwnames[] = { | |
11486 | (char *) "self",(char *) "path", NULL | |
11487 | }; | |
11488 | ||
11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11492 | { | |
11493 | arg2 = wxString_in_helper(obj1); | |
11494 | if (arg2 == NULL) SWIG_fail; | |
11495 | temp2 = True; | |
11496 | } | |
11497 | { | |
11498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11499 | (arg1)->SetPath((wxString const &)*arg2); | |
11500 | ||
11501 | wxPyEndAllowThreads(__tstate); | |
11502 | if (PyErr_Occurred()) SWIG_fail; | |
11503 | } | |
11504 | Py_INCREF(Py_None); resultobj = Py_None; | |
11505 | { | |
11506 | if (temp2) | |
11507 | delete arg2; | |
11508 | } | |
11509 | return resultobj; | |
11510 | fail: | |
11511 | { | |
11512 | if (temp2) | |
11513 | delete arg2; | |
11514 | } | |
11515 | return NULL; | |
11516 | } | |
11517 | ||
11518 | ||
11519 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11520 | PyObject *obj; | |
11521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11522 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11523 | Py_INCREF(obj); | |
11524 | return Py_BuildValue((char *)""); | |
11525 | } | |
11526 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11527 | PyObject *resultobj; | |
11528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11529 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11530 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11531 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11532 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11533 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11534 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11535 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11536 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11537 | long arg6 = (long) 0 ; | |
11538 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11539 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11540 | wxFileDialog *result; | |
11541 | bool temp2 = False ; | |
11542 | bool temp3 = False ; | |
11543 | bool temp4 = False ; | |
11544 | bool temp5 = False ; | |
11545 | wxPoint temp7 ; | |
11546 | PyObject * obj0 = 0 ; | |
11547 | PyObject * obj1 = 0 ; | |
11548 | PyObject * obj2 = 0 ; | |
11549 | PyObject * obj3 = 0 ; | |
11550 | PyObject * obj4 = 0 ; | |
11551 | PyObject * obj5 = 0 ; | |
11552 | PyObject * obj6 = 0 ; | |
11553 | char *kwnames[] = { | |
11554 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11555 | }; | |
11556 | ||
11557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11560 | if (obj1) { | |
11561 | { | |
11562 | arg2 = wxString_in_helper(obj1); | |
11563 | if (arg2 == NULL) SWIG_fail; | |
11564 | temp2 = True; | |
11565 | } | |
11566 | } | |
11567 | if (obj2) { | |
11568 | { | |
11569 | arg3 = wxString_in_helper(obj2); | |
11570 | if (arg3 == NULL) SWIG_fail; | |
11571 | temp3 = True; | |
11572 | } | |
11573 | } | |
11574 | if (obj3) { | |
11575 | { | |
11576 | arg4 = wxString_in_helper(obj3); | |
11577 | if (arg4 == NULL) SWIG_fail; | |
11578 | temp4 = True; | |
11579 | } | |
11580 | } | |
11581 | if (obj4) { | |
11582 | { | |
11583 | arg5 = wxString_in_helper(obj4); | |
11584 | if (arg5 == NULL) SWIG_fail; | |
11585 | temp5 = True; | |
11586 | } | |
11587 | } | |
11588 | if (obj5) { | |
11589 | arg6 = (long) SWIG_AsLong(obj5); | |
11590 | if (PyErr_Occurred()) SWIG_fail; | |
11591 | } | |
11592 | if (obj6) { | |
11593 | { | |
11594 | arg7 = &temp7; | |
11595 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11596 | } | |
11597 | } | |
11598 | { | |
11599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11600 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11601 | ||
11602 | wxPyEndAllowThreads(__tstate); | |
11603 | if (PyErr_Occurred()) SWIG_fail; | |
11604 | } | |
11605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
11606 | { | |
11607 | if (temp2) | |
11608 | delete arg2; | |
11609 | } | |
11610 | { | |
11611 | if (temp3) | |
11612 | delete arg3; | |
11613 | } | |
11614 | { | |
11615 | if (temp4) | |
11616 | delete arg4; | |
11617 | } | |
11618 | { | |
11619 | if (temp5) | |
11620 | delete arg5; | |
11621 | } | |
11622 | return resultobj; | |
11623 | fail: | |
11624 | { | |
11625 | if (temp2) | |
11626 | delete arg2; | |
11627 | } | |
11628 | { | |
11629 | if (temp3) | |
11630 | delete arg3; | |
11631 | } | |
11632 | { | |
11633 | if (temp4) | |
11634 | delete arg4; | |
11635 | } | |
11636 | { | |
11637 | if (temp5) | |
11638 | delete arg5; | |
11639 | } | |
11640 | return NULL; | |
11641 | } | |
11642 | ||
11643 | ||
11644 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11645 | PyObject *resultobj; | |
11646 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11647 | wxString *arg2 = 0 ; | |
11648 | bool temp2 = False ; | |
11649 | PyObject * obj0 = 0 ; | |
11650 | PyObject * obj1 = 0 ; | |
11651 | char *kwnames[] = { | |
11652 | (char *) "self",(char *) "message", NULL | |
11653 | }; | |
11654 | ||
11655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11658 | { | |
11659 | arg2 = wxString_in_helper(obj1); | |
11660 | if (arg2 == NULL) SWIG_fail; | |
11661 | temp2 = True; | |
11662 | } | |
11663 | { | |
11664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11665 | (arg1)->SetMessage((wxString const &)*arg2); | |
11666 | ||
11667 | wxPyEndAllowThreads(__tstate); | |
11668 | if (PyErr_Occurred()) SWIG_fail; | |
11669 | } | |
11670 | Py_INCREF(Py_None); resultobj = Py_None; | |
11671 | { | |
11672 | if (temp2) | |
11673 | delete arg2; | |
11674 | } | |
11675 | return resultobj; | |
11676 | fail: | |
11677 | { | |
11678 | if (temp2) | |
11679 | delete arg2; | |
11680 | } | |
11681 | return NULL; | |
11682 | } | |
11683 | ||
11684 | ||
11685 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11686 | PyObject *resultobj; | |
11687 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11688 | wxString *arg2 = 0 ; | |
11689 | bool temp2 = False ; | |
11690 | PyObject * obj0 = 0 ; | |
11691 | PyObject * obj1 = 0 ; | |
11692 | char *kwnames[] = { | |
11693 | (char *) "self",(char *) "path", NULL | |
11694 | }; | |
11695 | ||
11696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11699 | { | |
11700 | arg2 = wxString_in_helper(obj1); | |
11701 | if (arg2 == NULL) SWIG_fail; | |
11702 | temp2 = True; | |
11703 | } | |
11704 | { | |
11705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11706 | (arg1)->SetPath((wxString const &)*arg2); | |
11707 | ||
11708 | wxPyEndAllowThreads(__tstate); | |
11709 | if (PyErr_Occurred()) SWIG_fail; | |
11710 | } | |
11711 | Py_INCREF(Py_None); resultobj = Py_None; | |
11712 | { | |
11713 | if (temp2) | |
11714 | delete arg2; | |
11715 | } | |
11716 | return resultobj; | |
11717 | fail: | |
11718 | { | |
11719 | if (temp2) | |
11720 | delete arg2; | |
11721 | } | |
11722 | return NULL; | |
11723 | } | |
11724 | ||
11725 | ||
11726 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11727 | PyObject *resultobj; | |
11728 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11729 | wxString *arg2 = 0 ; | |
11730 | bool temp2 = False ; | |
11731 | PyObject * obj0 = 0 ; | |
11732 | PyObject * obj1 = 0 ; | |
11733 | char *kwnames[] = { | |
11734 | (char *) "self",(char *) "dir", NULL | |
11735 | }; | |
11736 | ||
11737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
11738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11740 | { | |
11741 | arg2 = wxString_in_helper(obj1); | |
11742 | if (arg2 == NULL) SWIG_fail; | |
11743 | temp2 = True; | |
11744 | } | |
11745 | { | |
11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11747 | (arg1)->SetDirectory((wxString const &)*arg2); | |
11748 | ||
11749 | wxPyEndAllowThreads(__tstate); | |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
11751 | } | |
11752 | Py_INCREF(Py_None); resultobj = Py_None; | |
11753 | { | |
11754 | if (temp2) | |
11755 | delete arg2; | |
11756 | } | |
11757 | return resultobj; | |
11758 | fail: | |
11759 | { | |
11760 | if (temp2) | |
11761 | delete arg2; | |
11762 | } | |
11763 | return NULL; | |
11764 | } | |
11765 | ||
11766 | ||
11767 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11768 | PyObject *resultobj; | |
11769 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11770 | wxString *arg2 = 0 ; | |
11771 | bool temp2 = False ; | |
11772 | PyObject * obj0 = 0 ; | |
11773 | PyObject * obj1 = 0 ; | |
11774 | char *kwnames[] = { | |
11775 | (char *) "self",(char *) "name", NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11781 | { | |
11782 | arg2 = wxString_in_helper(obj1); | |
11783 | if (arg2 == NULL) SWIG_fail; | |
11784 | temp2 = True; | |
11785 | } | |
11786 | { | |
11787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11788 | (arg1)->SetFilename((wxString const &)*arg2); | |
11789 | ||
11790 | wxPyEndAllowThreads(__tstate); | |
11791 | if (PyErr_Occurred()) SWIG_fail; | |
11792 | } | |
11793 | Py_INCREF(Py_None); resultobj = Py_None; | |
11794 | { | |
11795 | if (temp2) | |
11796 | delete arg2; | |
11797 | } | |
11798 | return resultobj; | |
11799 | fail: | |
11800 | { | |
11801 | if (temp2) | |
11802 | delete arg2; | |
11803 | } | |
11804 | return NULL; | |
11805 | } | |
11806 | ||
11807 | ||
11808 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11809 | PyObject *resultobj; | |
11810 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11811 | wxString *arg2 = 0 ; | |
11812 | bool temp2 = False ; | |
11813 | PyObject * obj0 = 0 ; | |
11814 | PyObject * obj1 = 0 ; | |
11815 | char *kwnames[] = { | |
11816 | (char *) "self",(char *) "wildCard", NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
11820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11822 | { | |
11823 | arg2 = wxString_in_helper(obj1); | |
11824 | if (arg2 == NULL) SWIG_fail; | |
11825 | temp2 = True; | |
11826 | } | |
11827 | { | |
11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11829 | (arg1)->SetWildcard((wxString const &)*arg2); | |
11830 | ||
11831 | wxPyEndAllowThreads(__tstate); | |
11832 | if (PyErr_Occurred()) SWIG_fail; | |
11833 | } | |
11834 | Py_INCREF(Py_None); resultobj = Py_None; | |
11835 | { | |
11836 | if (temp2) | |
11837 | delete arg2; | |
11838 | } | |
11839 | return resultobj; | |
11840 | fail: | |
11841 | { | |
11842 | if (temp2) | |
11843 | delete arg2; | |
11844 | } | |
11845 | return NULL; | |
11846 | } | |
11847 | ||
11848 | ||
11849 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11850 | PyObject *resultobj; | |
11851 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11852 | long arg2 ; | |
11853 | PyObject * obj0 = 0 ; | |
11854 | PyObject * obj1 = 0 ; | |
11855 | char *kwnames[] = { | |
11856 | (char *) "self",(char *) "style", NULL | |
11857 | }; | |
11858 | ||
11859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
11860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11862 | arg2 = (long) SWIG_AsLong(obj1); | |
11863 | if (PyErr_Occurred()) SWIG_fail; | |
11864 | { | |
11865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11866 | (arg1)->SetStyle(arg2); | |
11867 | ||
11868 | wxPyEndAllowThreads(__tstate); | |
11869 | if (PyErr_Occurred()) SWIG_fail; | |
11870 | } | |
11871 | Py_INCREF(Py_None); resultobj = Py_None; | |
11872 | return resultobj; | |
11873 | fail: | |
11874 | return NULL; | |
11875 | } | |
11876 | ||
11877 | ||
11878 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11879 | PyObject *resultobj; | |
11880 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11881 | int arg2 ; | |
11882 | PyObject * obj0 = 0 ; | |
11883 | PyObject * obj1 = 0 ; | |
11884 | char *kwnames[] = { | |
11885 | (char *) "self",(char *) "filterIndex", NULL | |
11886 | }; | |
11887 | ||
11888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
11889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11891 | arg2 = (int) SWIG_AsInt(obj1); | |
11892 | if (PyErr_Occurred()) SWIG_fail; | |
11893 | { | |
11894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11895 | (arg1)->SetFilterIndex(arg2); | |
11896 | ||
11897 | wxPyEndAllowThreads(__tstate); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | Py_INCREF(Py_None); resultobj = Py_None; | |
11901 | return resultobj; | |
11902 | fail: | |
11903 | return NULL; | |
11904 | } | |
11905 | ||
11906 | ||
11907 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11908 | PyObject *resultobj; | |
11909 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11910 | wxString result; | |
11911 | PyObject * obj0 = 0 ; | |
11912 | char *kwnames[] = { | |
11913 | (char *) "self", NULL | |
11914 | }; | |
11915 | ||
11916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11919 | { | |
11920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11921 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
11922 | ||
11923 | wxPyEndAllowThreads(__tstate); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
11925 | } | |
11926 | { | |
11927 | #if wxUSE_UNICODE | |
11928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11929 | #else | |
11930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11931 | #endif | |
11932 | } | |
11933 | return resultobj; | |
11934 | fail: | |
11935 | return NULL; | |
11936 | } | |
11937 | ||
11938 | ||
11939 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11940 | PyObject *resultobj; | |
11941 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11942 | wxString result; | |
11943 | PyObject * obj0 = 0 ; | |
11944 | char *kwnames[] = { | |
11945 | (char *) "self", NULL | |
11946 | }; | |
11947 | ||
11948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
11949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11951 | { | |
11952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11953 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
11954 | ||
11955 | wxPyEndAllowThreads(__tstate); | |
11956 | if (PyErr_Occurred()) SWIG_fail; | |
11957 | } | |
11958 | { | |
11959 | #if wxUSE_UNICODE | |
11960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11961 | #else | |
11962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11963 | #endif | |
11964 | } | |
11965 | return resultobj; | |
11966 | fail: | |
11967 | return NULL; | |
11968 | } | |
11969 | ||
11970 | ||
11971 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11972 | PyObject *resultobj; | |
11973 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11974 | wxString result; | |
11975 | PyObject * obj0 = 0 ; | |
11976 | char *kwnames[] = { | |
11977 | (char *) "self", NULL | |
11978 | }; | |
11979 | ||
11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
11981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11983 | { | |
11984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11985 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
11986 | ||
11987 | wxPyEndAllowThreads(__tstate); | |
11988 | if (PyErr_Occurred()) SWIG_fail; | |
11989 | } | |
11990 | { | |
11991 | #if wxUSE_UNICODE | |
11992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11993 | #else | |
11994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11995 | #endif | |
11996 | } | |
11997 | return resultobj; | |
11998 | fail: | |
11999 | return NULL; | |
12000 | } | |
12001 | ||
12002 | ||
12003 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12004 | PyObject *resultobj; | |
12005 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12006 | wxString result; | |
12007 | PyObject * obj0 = 0 ; | |
12008 | char *kwnames[] = { | |
12009 | (char *) "self", NULL | |
12010 | }; | |
12011 | ||
12012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12015 | { | |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12018 | ||
12019 | wxPyEndAllowThreads(__tstate); | |
12020 | if (PyErr_Occurred()) SWIG_fail; | |
12021 | } | |
12022 | { | |
12023 | #if wxUSE_UNICODE | |
12024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12025 | #else | |
12026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12027 | #endif | |
12028 | } | |
12029 | return resultobj; | |
12030 | fail: | |
12031 | return NULL; | |
12032 | } | |
12033 | ||
12034 | ||
12035 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12036 | PyObject *resultobj; | |
12037 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12038 | wxString result; | |
12039 | PyObject * obj0 = 0 ; | |
12040 | char *kwnames[] = { | |
12041 | (char *) "self", NULL | |
12042 | }; | |
12043 | ||
12044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | { | |
12055 | #if wxUSE_UNICODE | |
12056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12057 | #else | |
12058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12059 | #endif | |
12060 | } | |
12061 | return resultobj; | |
12062 | fail: | |
12063 | return NULL; | |
12064 | } | |
12065 | ||
12066 | ||
12067 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12068 | PyObject *resultobj; | |
12069 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12070 | long result; | |
12071 | PyObject * obj0 = 0 ; | |
12072 | char *kwnames[] = { | |
12073 | (char *) "self", NULL | |
12074 | }; | |
12075 | ||
12076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12079 | { | |
12080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12081 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12082 | ||
12083 | wxPyEndAllowThreads(__tstate); | |
12084 | if (PyErr_Occurred()) SWIG_fail; | |
12085 | } | |
12086 | resultobj = SWIG_FromLong((long)result); | |
12087 | return resultobj; | |
12088 | fail: | |
12089 | return NULL; | |
12090 | } | |
12091 | ||
12092 | ||
12093 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12094 | PyObject *resultobj; | |
12095 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12096 | int result; | |
12097 | PyObject * obj0 = 0 ; | |
12098 | char *kwnames[] = { | |
12099 | (char *) "self", NULL | |
12100 | }; | |
12101 | ||
12102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12105 | { | |
12106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12107 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12108 | ||
12109 | wxPyEndAllowThreads(__tstate); | |
12110 | if (PyErr_Occurred()) SWIG_fail; | |
12111 | } | |
12112 | resultobj = SWIG_FromInt((int)result); | |
12113 | return resultobj; | |
12114 | fail: | |
12115 | return NULL; | |
12116 | } | |
12117 | ||
12118 | ||
12119 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12120 | PyObject *resultobj; | |
12121 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12122 | PyObject *result; | |
12123 | PyObject * obj0 = 0 ; | |
12124 | char *kwnames[] = { | |
12125 | (char *) "self", NULL | |
12126 | }; | |
12127 | ||
12128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12131 | { | |
12132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12133 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12134 | ||
12135 | wxPyEndAllowThreads(__tstate); | |
12136 | if (PyErr_Occurred()) SWIG_fail; | |
12137 | } | |
12138 | resultobj = result; | |
12139 | return resultobj; | |
12140 | fail: | |
12141 | return NULL; | |
12142 | } | |
12143 | ||
12144 | ||
12145 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12146 | PyObject *resultobj; | |
12147 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12148 | PyObject *result; | |
12149 | PyObject * obj0 = 0 ; | |
12150 | char *kwnames[] = { | |
12151 | (char *) "self", NULL | |
12152 | }; | |
12153 | ||
12154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12157 | { | |
12158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12159 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12160 | ||
12161 | wxPyEndAllowThreads(__tstate); | |
12162 | if (PyErr_Occurred()) SWIG_fail; | |
12163 | } | |
12164 | resultobj = result; | |
12165 | return resultobj; | |
12166 | fail: | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12172 | PyObject *obj; | |
12173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12174 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12175 | Py_INCREF(obj); | |
12176 | return Py_BuildValue((char *)""); | |
12177 | } | |
12178 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12181 | wxString *arg2 = 0 ; | |
12182 | wxString *arg3 = 0 ; | |
12183 | int arg4 = (int) 0 ; | |
12184 | wxString *arg5 = (wxString *) 0 ; | |
12185 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12186 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12187 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12188 | wxMultiChoiceDialog *result; | |
12189 | bool temp2 = False ; | |
12190 | bool temp3 = False ; | |
12191 | wxPoint temp6 ; | |
12192 | PyObject * obj0 = 0 ; | |
12193 | PyObject * obj1 = 0 ; | |
12194 | PyObject * obj2 = 0 ; | |
12195 | PyObject * obj3 = 0 ; | |
12196 | PyObject * obj4 = 0 ; | |
12197 | PyObject * obj5 = 0 ; | |
12198 | char *kwnames[] = { | |
12199 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12200 | }; | |
12201 | ||
12202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12205 | { | |
12206 | arg2 = wxString_in_helper(obj1); | |
12207 | if (arg2 == NULL) SWIG_fail; | |
12208 | temp2 = True; | |
12209 | } | |
12210 | { | |
12211 | arg3 = wxString_in_helper(obj2); | |
12212 | if (arg3 == NULL) SWIG_fail; | |
12213 | temp3 = True; | |
12214 | } | |
12215 | if (obj3) { | |
12216 | { | |
12217 | arg4 = PyList_Size(obj3); | |
12218 | arg5 = wxString_LIST_helper(obj3); | |
12219 | if (arg5 == NULL) SWIG_fail; | |
12220 | } | |
12221 | } | |
12222 | if (obj4) { | |
12223 | arg6 = (long) SWIG_AsLong(obj4); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | } | |
12226 | if (obj5) { | |
12227 | { | |
12228 | arg7 = &temp6; | |
12229 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12230 | } | |
12231 | } | |
12232 | { | |
12233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12234 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12235 | ||
12236 | wxPyEndAllowThreads(__tstate); | |
12237 | if (PyErr_Occurred()) SWIG_fail; | |
12238 | } | |
12239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12240 | { | |
12241 | if (temp2) | |
12242 | delete arg2; | |
12243 | } | |
12244 | { | |
12245 | if (temp3) | |
12246 | delete arg3; | |
12247 | } | |
12248 | { | |
12249 | if (arg5) delete [] arg5; | |
12250 | } | |
12251 | return resultobj; | |
12252 | fail: | |
12253 | { | |
12254 | if (temp2) | |
12255 | delete arg2; | |
12256 | } | |
12257 | { | |
12258 | if (temp3) | |
12259 | delete arg3; | |
12260 | } | |
12261 | { | |
12262 | if (arg5) delete [] arg5; | |
12263 | } | |
12264 | return NULL; | |
12265 | } | |
12266 | ||
12267 | ||
12268 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12269 | PyObject *resultobj; | |
12270 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12271 | wxArrayInt *arg2 = 0 ; | |
12272 | bool temp2 = False ; | |
12273 | PyObject * obj0 = 0 ; | |
12274 | PyObject * obj1 = 0 ; | |
12275 | char *kwnames[] = { | |
12276 | (char *) "self",(char *) "selections", NULL | |
12277 | }; | |
12278 | ||
12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12282 | { | |
12283 | if (! PySequence_Check(obj1)) { | |
12284 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12285 | SWIG_fail; | |
12286 | } | |
12287 | arg2 = new wxArrayInt; | |
12288 | temp2 = True; | |
12289 | int i, len=PySequence_Length(obj1); | |
12290 | for (i=0; i<len; i++) { | |
12291 | PyObject* item = PySequence_GetItem(obj1, i); | |
12292 | PyObject* number = PyNumber_Int(item); | |
12293 | arg2->Add(PyInt_AS_LONG(number)); | |
12294 | Py_DECREF(item); | |
12295 | Py_DECREF(number); | |
12296 | } | |
12297 | } | |
12298 | { | |
12299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12300 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12301 | ||
12302 | wxPyEndAllowThreads(__tstate); | |
12303 | if (PyErr_Occurred()) SWIG_fail; | |
12304 | } | |
12305 | Py_INCREF(Py_None); resultobj = Py_None; | |
12306 | { | |
12307 | if (temp2) delete arg2; | |
12308 | } | |
12309 | return resultobj; | |
12310 | fail: | |
12311 | { | |
12312 | if (temp2) delete arg2; | |
12313 | } | |
12314 | return NULL; | |
12315 | } | |
12316 | ||
12317 | ||
12318 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12319 | PyObject *resultobj; | |
12320 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12321 | PyObject *result; | |
12322 | PyObject * obj0 = 0 ; | |
12323 | char *kwnames[] = { | |
12324 | (char *) "self", NULL | |
12325 | }; | |
12326 | ||
12327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12330 | { | |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12332 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12333 | ||
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | resultobj = result; | |
12338 | return resultobj; | |
12339 | fail: | |
12340 | return NULL; | |
12341 | } | |
12342 | ||
12343 | ||
12344 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12345 | PyObject *obj; | |
12346 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12347 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12348 | Py_INCREF(obj); | |
12349 | return Py_BuildValue((char *)""); | |
12350 | } | |
12351 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12354 | wxString *arg2 = 0 ; | |
12355 | wxString *arg3 = 0 ; | |
12356 | int arg4 ; | |
12357 | wxString *arg5 = (wxString *) 0 ; | |
12358 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12359 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12360 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12361 | wxSingleChoiceDialog *result; | |
12362 | bool temp2 = False ; | |
12363 | bool temp3 = False ; | |
12364 | wxPoint temp6 ; | |
12365 | PyObject * obj0 = 0 ; | |
12366 | PyObject * obj1 = 0 ; | |
12367 | PyObject * obj2 = 0 ; | |
12368 | PyObject * obj3 = 0 ; | |
12369 | PyObject * obj4 = 0 ; | |
12370 | PyObject * obj5 = 0 ; | |
12371 | char *kwnames[] = { | |
12372 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12373 | }; | |
12374 | ||
12375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12378 | { | |
12379 | arg2 = wxString_in_helper(obj1); | |
12380 | if (arg2 == NULL) SWIG_fail; | |
12381 | temp2 = True; | |
12382 | } | |
12383 | { | |
12384 | arg3 = wxString_in_helper(obj2); | |
12385 | if (arg3 == NULL) SWIG_fail; | |
12386 | temp3 = True; | |
12387 | } | |
12388 | { | |
12389 | arg4 = PyList_Size(obj3); | |
12390 | arg5 = wxString_LIST_helper(obj3); | |
12391 | if (arg5 == NULL) SWIG_fail; | |
12392 | } | |
12393 | if (obj4) { | |
12394 | arg6 = (long) SWIG_AsLong(obj4); | |
12395 | if (PyErr_Occurred()) SWIG_fail; | |
12396 | } | |
12397 | if (obj5) { | |
12398 | { | |
12399 | arg7 = &temp6; | |
12400 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12401 | } | |
12402 | } | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12411 | { | |
12412 | if (temp2) | |
12413 | delete arg2; | |
12414 | } | |
12415 | { | |
12416 | if (temp3) | |
12417 | delete arg3; | |
12418 | } | |
12419 | { | |
12420 | if (arg5) delete [] arg5; | |
12421 | } | |
12422 | return resultobj; | |
12423 | fail: | |
12424 | { | |
12425 | if (temp2) | |
12426 | delete arg2; | |
12427 | } | |
12428 | { | |
12429 | if (temp3) | |
12430 | delete arg3; | |
12431 | } | |
12432 | { | |
12433 | if (arg5) delete [] arg5; | |
12434 | } | |
12435 | return NULL; | |
12436 | } | |
12437 | ||
12438 | ||
12439 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12440 | PyObject *resultobj; | |
12441 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12442 | int result; | |
12443 | PyObject * obj0 = 0 ; | |
12444 | char *kwnames[] = { | |
12445 | (char *) "self", NULL | |
12446 | }; | |
12447 | ||
12448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12451 | { | |
12452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12453 | result = (int)(arg1)->GetSelection(); | |
12454 | ||
12455 | wxPyEndAllowThreads(__tstate); | |
12456 | if (PyErr_Occurred()) SWIG_fail; | |
12457 | } | |
12458 | resultobj = SWIG_FromInt((int)result); | |
12459 | return resultobj; | |
12460 | fail: | |
12461 | return NULL; | |
12462 | } | |
12463 | ||
12464 | ||
12465 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12466 | PyObject *resultobj; | |
12467 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12468 | wxString result; | |
12469 | PyObject * obj0 = 0 ; | |
12470 | char *kwnames[] = { | |
12471 | (char *) "self", NULL | |
12472 | }; | |
12473 | ||
12474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12477 | { | |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | result = (arg1)->GetStringSelection(); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | { | |
12485 | #if wxUSE_UNICODE | |
12486 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12487 | #else | |
12488 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12489 | #endif | |
12490 | } | |
12491 | return resultobj; | |
12492 | fail: | |
12493 | return NULL; | |
12494 | } | |
12495 | ||
12496 | ||
12497 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12498 | PyObject *resultobj; | |
12499 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12500 | int arg2 ; | |
12501 | PyObject * obj0 = 0 ; | |
12502 | PyObject * obj1 = 0 ; | |
12503 | char *kwnames[] = { | |
12504 | (char *) "self",(char *) "sel", NULL | |
12505 | }; | |
12506 | ||
12507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12510 | arg2 = (int) SWIG_AsInt(obj1); | |
12511 | if (PyErr_Occurred()) SWIG_fail; | |
12512 | { | |
12513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12514 | (arg1)->SetSelection(arg2); | |
12515 | ||
12516 | wxPyEndAllowThreads(__tstate); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | Py_INCREF(Py_None); resultobj = Py_None; | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12527 | PyObject *obj; | |
12528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12529 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12530 | Py_INCREF(obj); | |
12531 | return Py_BuildValue((char *)""); | |
12532 | } | |
12533 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12534 | PyObject *resultobj; | |
12535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12536 | wxString *arg2 = 0 ; | |
12537 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12538 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12539 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12540 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12541 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12542 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12543 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12544 | wxTextEntryDialog *result; | |
12545 | bool temp2 = False ; | |
12546 | bool temp3 = False ; | |
12547 | bool temp4 = False ; | |
12548 | wxPoint temp6 ; | |
12549 | PyObject * obj0 = 0 ; | |
12550 | PyObject * obj1 = 0 ; | |
12551 | PyObject * obj2 = 0 ; | |
12552 | PyObject * obj3 = 0 ; | |
12553 | PyObject * obj4 = 0 ; | |
12554 | PyObject * obj5 = 0 ; | |
12555 | char *kwnames[] = { | |
12556 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12557 | }; | |
12558 | ||
12559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12562 | { | |
12563 | arg2 = wxString_in_helper(obj1); | |
12564 | if (arg2 == NULL) SWIG_fail; | |
12565 | temp2 = True; | |
12566 | } | |
12567 | if (obj2) { | |
12568 | { | |
12569 | arg3 = wxString_in_helper(obj2); | |
12570 | if (arg3 == NULL) SWIG_fail; | |
12571 | temp3 = True; | |
12572 | } | |
12573 | } | |
12574 | if (obj3) { | |
12575 | { | |
12576 | arg4 = wxString_in_helper(obj3); | |
12577 | if (arg4 == NULL) SWIG_fail; | |
12578 | temp4 = True; | |
12579 | } | |
12580 | } | |
12581 | if (obj4) { | |
12582 | arg5 = (long) SWIG_AsLong(obj4); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
12585 | if (obj5) { | |
12586 | { | |
12587 | arg6 = &temp6; | |
12588 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12589 | } | |
12590 | } | |
12591 | { | |
12592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12593 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12594 | ||
12595 | wxPyEndAllowThreads(__tstate); | |
12596 | if (PyErr_Occurred()) SWIG_fail; | |
12597 | } | |
12598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
12599 | { | |
12600 | if (temp2) | |
12601 | delete arg2; | |
12602 | } | |
12603 | { | |
12604 | if (temp3) | |
12605 | delete arg3; | |
12606 | } | |
12607 | { | |
12608 | if (temp4) | |
12609 | delete arg4; | |
12610 | } | |
12611 | return resultobj; | |
12612 | fail: | |
12613 | { | |
12614 | if (temp2) | |
12615 | delete arg2; | |
12616 | } | |
12617 | { | |
12618 | if (temp3) | |
12619 | delete arg3; | |
12620 | } | |
12621 | { | |
12622 | if (temp4) | |
12623 | delete arg4; | |
12624 | } | |
12625 | return NULL; | |
12626 | } | |
12627 | ||
12628 | ||
12629 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12630 | PyObject *resultobj; | |
12631 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12632 | wxString result; | |
12633 | PyObject * obj0 = 0 ; | |
12634 | char *kwnames[] = { | |
12635 | (char *) "self", NULL | |
12636 | }; | |
12637 | ||
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12641 | { | |
12642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12643 | result = (arg1)->GetValue(); | |
12644 | ||
12645 | wxPyEndAllowThreads(__tstate); | |
12646 | if (PyErr_Occurred()) SWIG_fail; | |
12647 | } | |
12648 | { | |
12649 | #if wxUSE_UNICODE | |
12650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12651 | #else | |
12652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12653 | #endif | |
12654 | } | |
12655 | return resultobj; | |
12656 | fail: | |
12657 | return NULL; | |
12658 | } | |
12659 | ||
12660 | ||
12661 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12662 | PyObject *resultobj; | |
12663 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12664 | wxString *arg2 = 0 ; | |
12665 | bool temp2 = False ; | |
12666 | PyObject * obj0 = 0 ; | |
12667 | PyObject * obj1 = 0 ; | |
12668 | char *kwnames[] = { | |
12669 | (char *) "self",(char *) "value", NULL | |
12670 | }; | |
12671 | ||
12672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12675 | { | |
12676 | arg2 = wxString_in_helper(obj1); | |
12677 | if (arg2 == NULL) SWIG_fail; | |
12678 | temp2 = True; | |
12679 | } | |
12680 | { | |
12681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12682 | (arg1)->SetValue((wxString const &)*arg2); | |
12683 | ||
12684 | wxPyEndAllowThreads(__tstate); | |
12685 | if (PyErr_Occurred()) SWIG_fail; | |
12686 | } | |
12687 | Py_INCREF(Py_None); resultobj = Py_None; | |
12688 | { | |
12689 | if (temp2) | |
12690 | delete arg2; | |
12691 | } | |
12692 | return resultobj; | |
12693 | fail: | |
12694 | { | |
12695 | if (temp2) | |
12696 | delete arg2; | |
12697 | } | |
12698 | return NULL; | |
12699 | } | |
12700 | ||
12701 | ||
12702 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
12703 | PyObject *obj; | |
12704 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12705 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12706 | Py_INCREF(obj); | |
12707 | return Py_BuildValue((char *)""); | |
12708 | } | |
12709 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12710 | PyObject *resultobj; | |
12711 | wxFontData *result; | |
12712 | char *kwnames[] = { | |
12713 | NULL | |
12714 | }; | |
12715 | ||
12716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
12717 | { | |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12719 | result = (wxFontData *)new wxFontData(); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
12724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
12725 | return resultobj; | |
12726 | fail: | |
12727 | return NULL; | |
12728 | } | |
12729 | ||
12730 | ||
12731 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12732 | PyObject *resultobj; | |
12733 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12734 | PyObject * obj0 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
12740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12742 | { | |
12743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12744 | delete arg1; | |
12745 | ||
12746 | wxPyEndAllowThreads(__tstate); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
12749 | Py_INCREF(Py_None); resultobj = Py_None; | |
12750 | return resultobj; | |
12751 | fail: | |
12752 | return NULL; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12757 | PyObject *resultobj; | |
12758 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12759 | bool arg2 ; | |
12760 | PyObject * obj0 = 0 ; | |
12761 | PyObject * obj1 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self",(char *) "enable", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
12767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12769 | arg2 = (bool) SWIG_AsBool(obj1); | |
12770 | if (PyErr_Occurred()) SWIG_fail; | |
12771 | { | |
12772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12773 | (arg1)->EnableEffects(arg2); | |
12774 | ||
12775 | wxPyEndAllowThreads(__tstate); | |
12776 | if (PyErr_Occurred()) SWIG_fail; | |
12777 | } | |
12778 | Py_INCREF(Py_None); resultobj = Py_None; | |
12779 | return resultobj; | |
12780 | fail: | |
12781 | return NULL; | |
12782 | } | |
12783 | ||
12784 | ||
12785 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12786 | PyObject *resultobj; | |
12787 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12788 | bool result; | |
12789 | PyObject * obj0 = 0 ; | |
12790 | char *kwnames[] = { | |
12791 | (char *) "self", NULL | |
12792 | }; | |
12793 | ||
12794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
12795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12797 | { | |
12798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12799 | result = (bool)(arg1)->GetAllowSymbols(); | |
12800 | ||
12801 | wxPyEndAllowThreads(__tstate); | |
12802 | if (PyErr_Occurred()) SWIG_fail; | |
12803 | } | |
12804 | { | |
12805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12806 | } | |
12807 | return resultobj; | |
12808 | fail: | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
12813 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12814 | PyObject *resultobj; | |
12815 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12816 | wxColour result; | |
12817 | PyObject * obj0 = 0 ; | |
12818 | char *kwnames[] = { | |
12819 | (char *) "self", NULL | |
12820 | }; | |
12821 | ||
12822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
12823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12825 | { | |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | result = (arg1)->GetColour(); | |
12828 | ||
12829 | wxPyEndAllowThreads(__tstate); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | } | |
12832 | { | |
12833 | wxColour * resultptr; | |
12834 | resultptr = new wxColour((wxColour &) result); | |
12835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
12836 | } | |
12837 | return resultobj; | |
12838 | fail: | |
12839 | return NULL; | |
12840 | } | |
12841 | ||
12842 | ||
12843 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12844 | PyObject *resultobj; | |
12845 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12846 | wxFont result; | |
12847 | PyObject * obj0 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
12853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12855 | { | |
12856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12857 | result = (arg1)->GetChosenFont(); | |
12858 | ||
12859 | wxPyEndAllowThreads(__tstate); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | } | |
12862 | { | |
12863 | wxFont * resultptr; | |
12864 | resultptr = new wxFont((wxFont &) result); | |
12865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12866 | } | |
12867 | return resultobj; | |
12868 | fail: | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
12873 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12874 | PyObject *resultobj; | |
12875 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12876 | bool result; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | char *kwnames[] = { | |
12879 | (char *) "self", NULL | |
12880 | }; | |
12881 | ||
12882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
12883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12885 | { | |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12887 | result = (bool)(arg1)->GetEnableEffects(); | |
12888 | ||
12889 | wxPyEndAllowThreads(__tstate); | |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
12891 | } | |
12892 | { | |
12893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | return NULL; | |
12898 | } | |
12899 | ||
12900 | ||
12901 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12902 | PyObject *resultobj; | |
12903 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12904 | wxFont result; | |
12905 | PyObject * obj0 = 0 ; | |
12906 | char *kwnames[] = { | |
12907 | (char *) "self", NULL | |
12908 | }; | |
12909 | ||
12910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
12911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12913 | { | |
12914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12915 | result = (arg1)->GetInitialFont(); | |
12916 | ||
12917 | wxPyEndAllowThreads(__tstate); | |
12918 | if (PyErr_Occurred()) SWIG_fail; | |
12919 | } | |
12920 | { | |
12921 | wxFont * resultptr; | |
12922 | resultptr = new wxFont((wxFont &) result); | |
12923 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12924 | } | |
12925 | return resultobj; | |
12926 | fail: | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12932 | PyObject *resultobj; | |
12933 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12934 | bool result; | |
12935 | PyObject * obj0 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
12941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12943 | { | |
12944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12945 | result = (bool)(arg1)->GetShowHelp(); | |
12946 | ||
12947 | wxPyEndAllowThreads(__tstate); | |
12948 | if (PyErr_Occurred()) SWIG_fail; | |
12949 | } | |
12950 | { | |
12951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12952 | } | |
12953 | return resultobj; | |
12954 | fail: | |
12955 | return NULL; | |
12956 | } | |
12957 | ||
12958 | ||
12959 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12960 | PyObject *resultobj; | |
12961 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12962 | bool arg2 ; | |
12963 | PyObject * obj0 = 0 ; | |
12964 | PyObject * obj1 = 0 ; | |
12965 | char *kwnames[] = { | |
12966 | (char *) "self",(char *) "allowSymbols", NULL | |
12967 | }; | |
12968 | ||
12969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
12970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12972 | arg2 = (bool) SWIG_AsBool(obj1); | |
12973 | if (PyErr_Occurred()) SWIG_fail; | |
12974 | { | |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12976 | (arg1)->SetAllowSymbols(arg2); | |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
12979 | if (PyErr_Occurred()) SWIG_fail; | |
12980 | } | |
12981 | Py_INCREF(Py_None); resultobj = Py_None; | |
12982 | return resultobj; | |
12983 | fail: | |
12984 | return NULL; | |
12985 | } | |
12986 | ||
12987 | ||
12988 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12989 | PyObject *resultobj; | |
12990 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12991 | wxFont *arg2 = 0 ; | |
12992 | PyObject * obj0 = 0 ; | |
12993 | PyObject * obj1 = 0 ; | |
12994 | char *kwnames[] = { | |
12995 | (char *) "self",(char *) "font", NULL | |
12996 | }; | |
12997 | ||
12998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
12999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13002 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13003 | SWIG_fail; | |
13004 | if (arg2 == NULL) { | |
13005 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13006 | SWIG_fail; | |
13007 | } | |
13008 | { | |
13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13010 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13011 | ||
13012 | wxPyEndAllowThreads(__tstate); | |
13013 | if (PyErr_Occurred()) SWIG_fail; | |
13014 | } | |
13015 | Py_INCREF(Py_None); resultobj = Py_None; | |
13016 | return resultobj; | |
13017 | fail: | |
13018 | return NULL; | |
13019 | } | |
13020 | ||
13021 | ||
13022 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13025 | wxColour *arg2 = 0 ; | |
13026 | wxColour temp2 ; | |
13027 | PyObject * obj0 = 0 ; | |
13028 | PyObject * obj1 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "self",(char *) "colour", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13036 | { | |
13037 | arg2 = &temp2; | |
13038 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13039 | } | |
13040 | { | |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13042 | (arg1)->SetColour((wxColour const &)*arg2); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
13045 | if (PyErr_Occurred()) SWIG_fail; | |
13046 | } | |
13047 | Py_INCREF(Py_None); resultobj = Py_None; | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13055 | PyObject *resultobj; | |
13056 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13057 | wxFont *arg2 = 0 ; | |
13058 | PyObject * obj0 = 0 ; | |
13059 | PyObject * obj1 = 0 ; | |
13060 | char *kwnames[] = { | |
13061 | (char *) "self",(char *) "font", NULL | |
13062 | }; | |
13063 | ||
13064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13068 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13069 | SWIG_fail; | |
13070 | if (arg2 == NULL) { | |
13071 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13072 | SWIG_fail; | |
13073 | } | |
13074 | { | |
13075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13076 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13077 | ||
13078 | wxPyEndAllowThreads(__tstate); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
13081 | Py_INCREF(Py_None); resultobj = Py_None; | |
13082 | return resultobj; | |
13083 | fail: | |
13084 | return NULL; | |
13085 | } | |
13086 | ||
13087 | ||
13088 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13089 | PyObject *resultobj; | |
13090 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13091 | int arg2 ; | |
13092 | int arg3 ; | |
13093 | PyObject * obj0 = 0 ; | |
13094 | PyObject * obj1 = 0 ; | |
13095 | PyObject * obj2 = 0 ; | |
13096 | char *kwnames[] = { | |
13097 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13098 | }; | |
13099 | ||
13100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13103 | arg2 = (int) SWIG_AsInt(obj1); | |
13104 | if (PyErr_Occurred()) SWIG_fail; | |
13105 | arg3 = (int) SWIG_AsInt(obj2); | |
13106 | if (PyErr_Occurred()) SWIG_fail; | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | (arg1)->SetRange(arg2,arg3); | |
13110 | ||
13111 | wxPyEndAllowThreads(__tstate); | |
13112 | if (PyErr_Occurred()) SWIG_fail; | |
13113 | } | |
13114 | Py_INCREF(Py_None); resultobj = Py_None; | |
13115 | return resultobj; | |
13116 | fail: | |
13117 | return NULL; | |
13118 | } | |
13119 | ||
13120 | ||
13121 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13122 | PyObject *resultobj; | |
13123 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13124 | bool arg2 ; | |
13125 | PyObject * obj0 = 0 ; | |
13126 | PyObject * obj1 = 0 ; | |
13127 | char *kwnames[] = { | |
13128 | (char *) "self",(char *) "showHelp", NULL | |
13129 | }; | |
13130 | ||
13131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13134 | arg2 = (bool) SWIG_AsBool(obj1); | |
13135 | if (PyErr_Occurred()) SWIG_fail; | |
13136 | { | |
13137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13138 | (arg1)->SetShowHelp(arg2); | |
13139 | ||
13140 | wxPyEndAllowThreads(__tstate); | |
13141 | if (PyErr_Occurred()) SWIG_fail; | |
13142 | } | |
13143 | Py_INCREF(Py_None); resultobj = Py_None; | |
13144 | return resultobj; | |
13145 | fail: | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
13150 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13151 | PyObject *obj; | |
13152 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13153 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13154 | Py_INCREF(obj); | |
13155 | return Py_BuildValue((char *)""); | |
13156 | } | |
13157 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13160 | wxFontData *arg2 = 0 ; | |
13161 | wxFontDialog *result; | |
13162 | PyObject * obj0 = 0 ; | |
13163 | PyObject * obj1 = 0 ; | |
13164 | char *kwnames[] = { | |
13165 | (char *) "parent",(char *) "data", NULL | |
13166 | }; | |
13167 | ||
13168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13171 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13172 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13173 | SWIG_fail; | |
13174 | if (arg2 == NULL) { | |
13175 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13176 | SWIG_fail; | |
13177 | } | |
13178 | { | |
13179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13180 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13181 | ||
13182 | wxPyEndAllowThreads(__tstate); | |
13183 | if (PyErr_Occurred()) SWIG_fail; | |
13184 | } | |
13185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13186 | return resultobj; | |
13187 | fail: | |
13188 | return NULL; | |
13189 | } | |
13190 | ||
13191 | ||
13192 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13193 | PyObject *resultobj; | |
13194 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13195 | wxFontData *result; | |
13196 | PyObject * obj0 = 0 ; | |
13197 | char *kwnames[] = { | |
13198 | (char *) "self", NULL | |
13199 | }; | |
13200 | ||
13201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13204 | { | |
13205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13206 | { | |
13207 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13208 | result = (wxFontData *) &_result_ref; | |
13209 | } | |
13210 | ||
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
13214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
13221 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13222 | PyObject *obj; | |
13223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13224 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13225 | Py_INCREF(obj); | |
13226 | return Py_BuildValue((char *)""); | |
13227 | } | |
13228 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13229 | PyObject *resultobj; | |
13230 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13231 | wxString *arg2 = 0 ; | |
13232 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13233 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13234 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13235 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13236 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13237 | wxMessageDialog *result; | |
13238 | bool temp2 = False ; | |
13239 | bool temp3 = False ; | |
13240 | wxPoint temp5 ; | |
13241 | PyObject * obj0 = 0 ; | |
13242 | PyObject * obj1 = 0 ; | |
13243 | PyObject * obj2 = 0 ; | |
13244 | PyObject * obj3 = 0 ; | |
13245 | PyObject * obj4 = 0 ; | |
13246 | char *kwnames[] = { | |
13247 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13248 | }; | |
13249 | ||
13250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13253 | { | |
13254 | arg2 = wxString_in_helper(obj1); | |
13255 | if (arg2 == NULL) SWIG_fail; | |
13256 | temp2 = True; | |
13257 | } | |
13258 | if (obj2) { | |
13259 | { | |
13260 | arg3 = wxString_in_helper(obj2); | |
13261 | if (arg3 == NULL) SWIG_fail; | |
13262 | temp3 = True; | |
13263 | } | |
13264 | } | |
13265 | if (obj3) { | |
13266 | arg4 = (long) SWIG_AsLong(obj3); | |
13267 | if (PyErr_Occurred()) SWIG_fail; | |
13268 | } | |
13269 | if (obj4) { | |
13270 | { | |
13271 | arg5 = &temp5; | |
13272 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13273 | } | |
13274 | } | |
13275 | { | |
13276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13277 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13278 | ||
13279 | wxPyEndAllowThreads(__tstate); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13283 | { | |
13284 | if (temp2) | |
13285 | delete arg2; | |
13286 | } | |
13287 | { | |
13288 | if (temp3) | |
13289 | delete arg3; | |
13290 | } | |
13291 | return resultobj; | |
13292 | fail: | |
13293 | { | |
13294 | if (temp2) | |
13295 | delete arg2; | |
13296 | } | |
13297 | { | |
13298 | if (temp3) | |
13299 | delete arg3; | |
13300 | } | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13306 | PyObject *obj; | |
13307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13308 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13309 | Py_INCREF(obj); | |
13310 | return Py_BuildValue((char *)""); | |
13311 | } | |
13312 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13313 | PyObject *resultobj; | |
13314 | wxString *arg1 = 0 ; | |
13315 | wxString *arg2 = 0 ; | |
13316 | int arg3 = (int) 100 ; | |
13317 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13318 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13319 | wxProgressDialog *result; | |
13320 | bool temp1 = False ; | |
13321 | bool temp2 = False ; | |
13322 | PyObject * obj0 = 0 ; | |
13323 | PyObject * obj1 = 0 ; | |
13324 | PyObject * obj2 = 0 ; | |
13325 | PyObject * obj3 = 0 ; | |
13326 | PyObject * obj4 = 0 ; | |
13327 | char *kwnames[] = { | |
13328 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13329 | }; | |
13330 | ||
13331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13332 | { | |
13333 | arg1 = wxString_in_helper(obj0); | |
13334 | if (arg1 == NULL) SWIG_fail; | |
13335 | temp1 = True; | |
13336 | } | |
13337 | { | |
13338 | arg2 = wxString_in_helper(obj1); | |
13339 | if (arg2 == NULL) SWIG_fail; | |
13340 | temp2 = True; | |
13341 | } | |
13342 | if (obj2) { | |
13343 | arg3 = (int) SWIG_AsInt(obj2); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
13345 | } | |
13346 | if (obj3) { | |
13347 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13349 | } | |
13350 | if (obj4) { | |
13351 | arg5 = (int) SWIG_AsInt(obj4); | |
13352 | if (PyErr_Occurred()) SWIG_fail; | |
13353 | } | |
13354 | { | |
13355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13356 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13357 | ||
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13362 | { | |
13363 | if (temp1) | |
13364 | delete arg1; | |
13365 | } | |
13366 | { | |
13367 | if (temp2) | |
13368 | delete arg2; | |
13369 | } | |
13370 | return resultobj; | |
13371 | fail: | |
13372 | { | |
13373 | if (temp1) | |
13374 | delete arg1; | |
13375 | } | |
13376 | { | |
13377 | if (temp2) | |
13378 | delete arg2; | |
13379 | } | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
13384 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13385 | PyObject *resultobj; | |
13386 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13387 | int arg2 ; | |
13388 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13389 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13390 | bool result; | |
13391 | bool temp3 = False ; | |
13392 | PyObject * obj0 = 0 ; | |
13393 | PyObject * obj1 = 0 ; | |
13394 | PyObject * obj2 = 0 ; | |
13395 | char *kwnames[] = { | |
13396 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13397 | }; | |
13398 | ||
13399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13402 | arg2 = (int) SWIG_AsInt(obj1); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | if (obj2) { | |
13405 | { | |
13406 | arg3 = wxString_in_helper(obj2); | |
13407 | if (arg3 == NULL) SWIG_fail; | |
13408 | temp3 = True; | |
13409 | } | |
13410 | } | |
13411 | { | |
13412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13413 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13414 | ||
13415 | wxPyEndAllowThreads(__tstate); | |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
13417 | } | |
13418 | { | |
13419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13420 | } | |
13421 | { | |
13422 | if (temp3) | |
13423 | delete arg3; | |
13424 | } | |
13425 | return resultobj; | |
13426 | fail: | |
13427 | { | |
13428 | if (temp3) | |
13429 | delete arg3; | |
13430 | } | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13436 | PyObject *resultobj; | |
13437 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13438 | PyObject * obj0 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13446 | { | |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | (arg1)->Resume(); | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
13453 | Py_INCREF(Py_None); resultobj = Py_None; | |
13454 | return resultobj; | |
13455 | fail: | |
13456 | return NULL; | |
13457 | } | |
13458 | ||
13459 | ||
13460 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13461 | PyObject *obj; | |
13462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13463 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13464 | Py_INCREF(obj); | |
13465 | return Py_BuildValue((char *)""); | |
13466 | } | |
13467 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13468 | PyObject *resultobj; | |
13469 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13470 | int arg2 = (int) 0 ; | |
13471 | wxFindDialogEvent *result; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | PyObject * obj1 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "commandType",(char *) "id", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13479 | if (obj0) { | |
13480 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13481 | if (PyErr_Occurred()) SWIG_fail; | |
13482 | } | |
13483 | if (obj1) { | |
13484 | arg2 = (int) SWIG_AsInt(obj1); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | { | |
13488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13489 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13490 | ||
13491 | wxPyEndAllowThreads(__tstate); | |
13492 | if (PyErr_Occurred()) SWIG_fail; | |
13493 | } | |
13494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13495 | return resultobj; | |
13496 | fail: | |
13497 | return NULL; | |
13498 | } | |
13499 | ||
13500 | ||
13501 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13502 | PyObject *resultobj; | |
13503 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13504 | int result; | |
13505 | PyObject * obj0 = 0 ; | |
13506 | char *kwnames[] = { | |
13507 | (char *) "self", NULL | |
13508 | }; | |
13509 | ||
13510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | result = (int)(arg1)->GetFlags(); | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | resultobj = SWIG_FromInt((int)result); | |
13521 | return resultobj; | |
13522 | fail: | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13528 | PyObject *resultobj; | |
13529 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13530 | wxString *result; | |
13531 | PyObject * obj0 = 0 ; | |
13532 | char *kwnames[] = { | |
13533 | (char *) "self", NULL | |
13534 | }; | |
13535 | ||
13536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13539 | { | |
13540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13541 | { | |
13542 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13543 | result = (wxString *) &_result_ref; | |
13544 | } | |
13545 | ||
13546 | wxPyEndAllowThreads(__tstate); | |
13547 | if (PyErr_Occurred()) SWIG_fail; | |
13548 | } | |
13549 | { | |
13550 | #if wxUSE_UNICODE | |
13551 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13552 | #else | |
13553 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13554 | #endif | |
13555 | } | |
13556 | return resultobj; | |
13557 | fail: | |
13558 | return NULL; | |
13559 | } | |
13560 | ||
13561 | ||
13562 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13563 | PyObject *resultobj; | |
13564 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13565 | wxString *result; | |
13566 | PyObject * obj0 = 0 ; | |
13567 | char *kwnames[] = { | |
13568 | (char *) "self", NULL | |
13569 | }; | |
13570 | ||
13571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13574 | { | |
13575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13576 | { | |
13577 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13578 | result = (wxString *) &_result_ref; | |
13579 | } | |
13580 | ||
13581 | wxPyEndAllowThreads(__tstate); | |
13582 | if (PyErr_Occurred()) SWIG_fail; | |
13583 | } | |
13584 | { | |
13585 | #if wxUSE_UNICODE | |
13586 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13587 | #else | |
13588 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13589 | #endif | |
13590 | } | |
13591 | return resultobj; | |
13592 | fail: | |
13593 | return NULL; | |
13594 | } | |
13595 | ||
13596 | ||
13597 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13598 | PyObject *resultobj; | |
13599 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13600 | wxFindReplaceDialog *result; | |
13601 | PyObject * obj0 = 0 ; | |
13602 | char *kwnames[] = { | |
13603 | (char *) "self", NULL | |
13604 | }; | |
13605 | ||
13606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13609 | { | |
13610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13611 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13612 | ||
13613 | wxPyEndAllowThreads(__tstate); | |
13614 | if (PyErr_Occurred()) SWIG_fail; | |
13615 | } | |
13616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13617 | return resultobj; | |
13618 | fail: | |
13619 | return NULL; | |
13620 | } | |
13621 | ||
13622 | ||
13623 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13624 | PyObject *resultobj; | |
13625 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13626 | int arg2 ; | |
13627 | PyObject * obj0 = 0 ; | |
13628 | PyObject * obj1 = 0 ; | |
13629 | char *kwnames[] = { | |
13630 | (char *) "self",(char *) "flags", NULL | |
13631 | }; | |
13632 | ||
13633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13636 | arg2 = (int) SWIG_AsInt(obj1); | |
13637 | if (PyErr_Occurred()) SWIG_fail; | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | (arg1)->SetFlags(arg2); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | Py_INCREF(Py_None); resultobj = Py_None; | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | return NULL; | |
13649 | } | |
13650 | ||
13651 | ||
13652 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13653 | PyObject *resultobj; | |
13654 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13655 | wxString *arg2 = 0 ; | |
13656 | bool temp2 = False ; | |
13657 | PyObject * obj0 = 0 ; | |
13658 | PyObject * obj1 = 0 ; | |
13659 | char *kwnames[] = { | |
13660 | (char *) "self",(char *) "str", NULL | |
13661 | }; | |
13662 | ||
13663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13666 | { | |
13667 | arg2 = wxString_in_helper(obj1); | |
13668 | if (arg2 == NULL) SWIG_fail; | |
13669 | temp2 = True; | |
13670 | } | |
13671 | { | |
13672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13673 | (arg1)->SetFindString((wxString const &)*arg2); | |
13674 | ||
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
13678 | Py_INCREF(Py_None); resultobj = Py_None; | |
13679 | { | |
13680 | if (temp2) | |
13681 | delete arg2; | |
13682 | } | |
13683 | return resultobj; | |
13684 | fail: | |
13685 | { | |
13686 | if (temp2) | |
13687 | delete arg2; | |
13688 | } | |
13689 | return NULL; | |
13690 | } | |
13691 | ||
13692 | ||
13693 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13694 | PyObject *resultobj; | |
13695 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13696 | wxString *arg2 = 0 ; | |
13697 | bool temp2 = False ; | |
13698 | PyObject * obj0 = 0 ; | |
13699 | PyObject * obj1 = 0 ; | |
13700 | char *kwnames[] = { | |
13701 | (char *) "self",(char *) "str", NULL | |
13702 | }; | |
13703 | ||
13704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13707 | { | |
13708 | arg2 = wxString_in_helper(obj1); | |
13709 | if (arg2 == NULL) SWIG_fail; | |
13710 | temp2 = True; | |
13711 | } | |
13712 | { | |
13713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13714 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13715 | ||
13716 | wxPyEndAllowThreads(__tstate); | |
13717 | if (PyErr_Occurred()) SWIG_fail; | |
13718 | } | |
13719 | Py_INCREF(Py_None); resultobj = Py_None; | |
13720 | { | |
13721 | if (temp2) | |
13722 | delete arg2; | |
13723 | } | |
13724 | return resultobj; | |
13725 | fail: | |
13726 | { | |
13727 | if (temp2) | |
13728 | delete arg2; | |
13729 | } | |
13730 | return NULL; | |
13731 | } | |
13732 | ||
13733 | ||
13734 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
13735 | PyObject *obj; | |
13736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13737 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
13738 | Py_INCREF(obj); | |
13739 | return Py_BuildValue((char *)""); | |
13740 | } | |
13741 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13742 | PyObject *resultobj; | |
13743 | int arg1 = (int) 0 ; | |
13744 | wxFindReplaceData *result; | |
13745 | PyObject * obj0 = 0 ; | |
13746 | char *kwnames[] = { | |
13747 | (char *) "flags", NULL | |
13748 | }; | |
13749 | ||
13750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
13751 | if (obj0) { | |
13752 | arg1 = (int) SWIG_AsInt(obj0); | |
13753 | if (PyErr_Occurred()) SWIG_fail; | |
13754 | } | |
13755 | { | |
13756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13757 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
13758 | ||
13759 | wxPyEndAllowThreads(__tstate); | |
13760 | if (PyErr_Occurred()) SWIG_fail; | |
13761 | } | |
13762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
13763 | return resultobj; | |
13764 | fail: | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13770 | PyObject *resultobj; | |
13771 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13772 | PyObject * obj0 = 0 ; | |
13773 | char *kwnames[] = { | |
13774 | (char *) "self", NULL | |
13775 | }; | |
13776 | ||
13777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
13778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13780 | { | |
13781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13782 | delete arg1; | |
13783 | ||
13784 | wxPyEndAllowThreads(__tstate); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | } | |
13787 | Py_INCREF(Py_None); resultobj = Py_None; | |
13788 | return resultobj; | |
13789 | fail: | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13795 | PyObject *resultobj; | |
13796 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13797 | wxString *result; | |
13798 | PyObject * obj0 = 0 ; | |
13799 | char *kwnames[] = { | |
13800 | (char *) "self", NULL | |
13801 | }; | |
13802 | ||
13803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
13804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13806 | { | |
13807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13808 | { | |
13809 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13810 | result = (wxString *) &_result_ref; | |
13811 | } | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
13816 | { | |
13817 | #if wxUSE_UNICODE | |
13818 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13819 | #else | |
13820 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13821 | #endif | |
13822 | } | |
13823 | return resultobj; | |
13824 | fail: | |
13825 | return NULL; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13830 | PyObject *resultobj; | |
13831 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13832 | wxString *result; | |
13833 | PyObject * obj0 = 0 ; | |
13834 | char *kwnames[] = { | |
13835 | (char *) "self", NULL | |
13836 | }; | |
13837 | ||
13838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
13839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13841 | { | |
13842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13843 | { | |
13844 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13845 | result = (wxString *) &_result_ref; | |
13846 | } | |
13847 | ||
13848 | wxPyEndAllowThreads(__tstate); | |
13849 | if (PyErr_Occurred()) SWIG_fail; | |
13850 | } | |
13851 | { | |
13852 | #if wxUSE_UNICODE | |
13853 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13854 | #else | |
13855 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13856 | #endif | |
13857 | } | |
13858 | return resultobj; | |
13859 | fail: | |
13860 | return NULL; | |
13861 | } | |
13862 | ||
13863 | ||
13864 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13865 | PyObject *resultobj; | |
13866 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13867 | int result; | |
13868 | PyObject * obj0 = 0 ; | |
13869 | char *kwnames[] = { | |
13870 | (char *) "self", NULL | |
13871 | }; | |
13872 | ||
13873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
13874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13876 | { | |
13877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13878 | result = (int)(arg1)->GetFlags(); | |
13879 | ||
13880 | wxPyEndAllowThreads(__tstate); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | } | |
13883 | resultobj = SWIG_FromInt((int)result); | |
13884 | return resultobj; | |
13885 | fail: | |
13886 | return NULL; | |
13887 | } | |
13888 | ||
13889 | ||
13890 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13891 | PyObject *resultobj; | |
13892 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13893 | int arg2 ; | |
13894 | PyObject * obj0 = 0 ; | |
13895 | PyObject * obj1 = 0 ; | |
13896 | char *kwnames[] = { | |
13897 | (char *) "self",(char *) "flags", NULL | |
13898 | }; | |
13899 | ||
13900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13903 | arg2 = (int) SWIG_AsInt(obj1); | |
13904 | if (PyErr_Occurred()) SWIG_fail; | |
13905 | { | |
13906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13907 | (arg1)->SetFlags(arg2); | |
13908 | ||
13909 | wxPyEndAllowThreads(__tstate); | |
13910 | if (PyErr_Occurred()) SWIG_fail; | |
13911 | } | |
13912 | Py_INCREF(Py_None); resultobj = Py_None; | |
13913 | return resultobj; | |
13914 | fail: | |
13915 | return NULL; | |
13916 | } | |
13917 | ||
13918 | ||
13919 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13920 | PyObject *resultobj; | |
13921 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13922 | wxString *arg2 = 0 ; | |
13923 | bool temp2 = False ; | |
13924 | PyObject * obj0 = 0 ; | |
13925 | PyObject * obj1 = 0 ; | |
13926 | char *kwnames[] = { | |
13927 | (char *) "self",(char *) "str", NULL | |
13928 | }; | |
13929 | ||
13930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13933 | { | |
13934 | arg2 = wxString_in_helper(obj1); | |
13935 | if (arg2 == NULL) SWIG_fail; | |
13936 | temp2 = True; | |
13937 | } | |
13938 | { | |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13940 | (arg1)->SetFindString((wxString const &)*arg2); | |
13941 | ||
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | Py_INCREF(Py_None); resultobj = Py_None; | |
13946 | { | |
13947 | if (temp2) | |
13948 | delete arg2; | |
13949 | } | |
13950 | return resultobj; | |
13951 | fail: | |
13952 | { | |
13953 | if (temp2) | |
13954 | delete arg2; | |
13955 | } | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13961 | PyObject *resultobj; | |
13962 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13963 | wxString *arg2 = 0 ; | |
13964 | bool temp2 = False ; | |
13965 | PyObject * obj0 = 0 ; | |
13966 | PyObject * obj1 = 0 ; | |
13967 | char *kwnames[] = { | |
13968 | (char *) "self",(char *) "str", NULL | |
13969 | }; | |
13970 | ||
13971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13974 | { | |
13975 | arg2 = wxString_in_helper(obj1); | |
13976 | if (arg2 == NULL) SWIG_fail; | |
13977 | temp2 = True; | |
13978 | } | |
13979 | { | |
13980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13981 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13982 | ||
13983 | wxPyEndAllowThreads(__tstate); | |
13984 | if (PyErr_Occurred()) SWIG_fail; | |
13985 | } | |
13986 | Py_INCREF(Py_None); resultobj = Py_None; | |
13987 | { | |
13988 | if (temp2) | |
13989 | delete arg2; | |
13990 | } | |
13991 | return resultobj; | |
13992 | fail: | |
13993 | { | |
13994 | if (temp2) | |
13995 | delete arg2; | |
13996 | } | |
13997 | return NULL; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14002 | PyObject *obj; | |
14003 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14004 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14005 | Py_INCREF(obj); | |
14006 | return Py_BuildValue((char *)""); | |
14007 | } | |
14008 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14009 | PyObject *resultobj; | |
14010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14011 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14012 | wxString *arg3 = 0 ; | |
14013 | int arg4 = (int) 0 ; | |
14014 | wxFindReplaceDialog *result; | |
14015 | bool temp3 = False ; | |
14016 | PyObject * obj0 = 0 ; | |
14017 | PyObject * obj1 = 0 ; | |
14018 | PyObject * obj2 = 0 ; | |
14019 | PyObject * obj3 = 0 ; | |
14020 | char *kwnames[] = { | |
14021 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14022 | }; | |
14023 | ||
14024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14027 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14029 | { | |
14030 | arg3 = wxString_in_helper(obj2); | |
14031 | if (arg3 == NULL) SWIG_fail; | |
14032 | temp3 = True; | |
14033 | } | |
14034 | if (obj3) { | |
14035 | arg4 = (int) SWIG_AsInt(obj3); | |
14036 | if (PyErr_Occurred()) SWIG_fail; | |
14037 | } | |
14038 | { | |
14039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14040 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14041 | ||
14042 | wxPyEndAllowThreads(__tstate); | |
14043 | if (PyErr_Occurred()) SWIG_fail; | |
14044 | } | |
14045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14046 | { | |
14047 | if (temp3) | |
14048 | delete arg3; | |
14049 | } | |
14050 | return resultobj; | |
14051 | fail: | |
14052 | { | |
14053 | if (temp3) | |
14054 | delete arg3; | |
14055 | } | |
14056 | return NULL; | |
14057 | } | |
14058 | ||
14059 | ||
14060 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14061 | PyObject *resultobj; | |
14062 | wxFindReplaceDialog *result; | |
14063 | char *kwnames[] = { | |
14064 | NULL | |
14065 | }; | |
14066 | ||
14067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14068 | { | |
14069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14070 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14071 | ||
14072 | wxPyEndAllowThreads(__tstate); | |
14073 | if (PyErr_Occurred()) SWIG_fail; | |
14074 | } | |
14075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14076 | return resultobj; | |
14077 | fail: | |
14078 | return NULL; | |
14079 | } | |
14080 | ||
14081 | ||
14082 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14083 | PyObject *resultobj; | |
14084 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14085 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14086 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14087 | wxString *arg4 = 0 ; | |
14088 | int arg5 = (int) 0 ; | |
14089 | bool result; | |
14090 | bool temp4 = False ; | |
14091 | PyObject * obj0 = 0 ; | |
14092 | PyObject * obj1 = 0 ; | |
14093 | PyObject * obj2 = 0 ; | |
14094 | PyObject * obj3 = 0 ; | |
14095 | PyObject * obj4 = 0 ; | |
14096 | char *kwnames[] = { | |
14097 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14098 | }; | |
14099 | ||
14100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14103 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14105 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14107 | { | |
14108 | arg4 = wxString_in_helper(obj3); | |
14109 | if (arg4 == NULL) SWIG_fail; | |
14110 | temp4 = True; | |
14111 | } | |
14112 | if (obj4) { | |
14113 | arg5 = (int) SWIG_AsInt(obj4); | |
14114 | if (PyErr_Occurred()) SWIG_fail; | |
14115 | } | |
14116 | { | |
14117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14118 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14119 | ||
14120 | wxPyEndAllowThreads(__tstate); | |
14121 | if (PyErr_Occurred()) SWIG_fail; | |
14122 | } | |
14123 | { | |
14124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14125 | } | |
14126 | { | |
14127 | if (temp4) | |
14128 | delete arg4; | |
14129 | } | |
14130 | return resultobj; | |
14131 | fail: | |
14132 | { | |
14133 | if (temp4) | |
14134 | delete arg4; | |
14135 | } | |
14136 | return NULL; | |
14137 | } | |
14138 | ||
14139 | ||
14140 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14141 | PyObject *resultobj; | |
14142 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14143 | wxFindReplaceData *result; | |
14144 | PyObject * obj0 = 0 ; | |
14145 | char *kwnames[] = { | |
14146 | (char *) "self", NULL | |
14147 | }; | |
14148 | ||
14149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14152 | { | |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14160 | return resultobj; | |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
14166 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14167 | PyObject *resultobj; | |
14168 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14169 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | PyObject * obj1 = 0 ; | |
14172 | char *kwnames[] = { | |
14173 | (char *) "self",(char *) "data", NULL | |
14174 | }; | |
14175 | ||
14176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14181 | { | |
14182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14183 | (arg1)->SetData(arg2); | |
14184 | ||
14185 | wxPyEndAllowThreads(__tstate); | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | } | |
14188 | Py_INCREF(Py_None); resultobj = Py_None; | |
14189 | return resultobj; | |
14190 | fail: | |
14191 | return NULL; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14196 | PyObject *obj; | |
14197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14198 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14199 | Py_INCREF(obj); | |
14200 | return Py_BuildValue((char *)""); | |
14201 | } | |
14202 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14203 | PyObject *resultobj; | |
14204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14205 | int arg2 ; | |
14206 | wxString *arg3 = 0 ; | |
14207 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14208 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14209 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14210 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14211 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14212 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14213 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14214 | wxMDIParentFrame *result; | |
14215 | bool temp3 = False ; | |
14216 | wxPoint temp4 ; | |
14217 | wxSize temp5 ; | |
14218 | bool temp7 = False ; | |
14219 | PyObject * obj0 = 0 ; | |
14220 | PyObject * obj1 = 0 ; | |
14221 | PyObject * obj2 = 0 ; | |
14222 | PyObject * obj3 = 0 ; | |
14223 | PyObject * obj4 = 0 ; | |
14224 | PyObject * obj5 = 0 ; | |
14225 | PyObject * obj6 = 0 ; | |
14226 | char *kwnames[] = { | |
14227 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14228 | }; | |
14229 | ||
14230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14233 | arg2 = (int const) SWIG_AsInt(obj1); | |
14234 | if (PyErr_Occurred()) SWIG_fail; | |
14235 | { | |
14236 | arg3 = wxString_in_helper(obj2); | |
14237 | if (arg3 == NULL) SWIG_fail; | |
14238 | temp3 = True; | |
14239 | } | |
14240 | if (obj3) { | |
14241 | { | |
14242 | arg4 = &temp4; | |
14243 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14244 | } | |
14245 | } | |
14246 | if (obj4) { | |
14247 | { | |
14248 | arg5 = &temp5; | |
14249 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14250 | } | |
14251 | } | |
14252 | if (obj5) { | |
14253 | arg6 = (long) SWIG_AsLong(obj5); | |
14254 | if (PyErr_Occurred()) SWIG_fail; | |
14255 | } | |
14256 | if (obj6) { | |
14257 | { | |
14258 | arg7 = wxString_in_helper(obj6); | |
14259 | if (arg7 == NULL) SWIG_fail; | |
14260 | temp7 = True; | |
14261 | } | |
14262 | } | |
14263 | { | |
14264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14265 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14266 | ||
14267 | wxPyEndAllowThreads(__tstate); | |
14268 | if (PyErr_Occurred()) SWIG_fail; | |
14269 | } | |
14270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14271 | { | |
14272 | if (temp3) | |
14273 | delete arg3; | |
14274 | } | |
14275 | { | |
14276 | if (temp7) | |
14277 | delete arg7; | |
14278 | } | |
14279 | return resultobj; | |
14280 | fail: | |
14281 | { | |
14282 | if (temp3) | |
14283 | delete arg3; | |
14284 | } | |
14285 | { | |
14286 | if (temp7) | |
14287 | delete arg7; | |
14288 | } | |
14289 | return NULL; | |
14290 | } | |
14291 | ||
14292 | ||
14293 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14294 | PyObject *resultobj; | |
14295 | wxMDIParentFrame *result; | |
14296 | char *kwnames[] = { | |
14297 | NULL | |
14298 | }; | |
14299 | ||
14300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14301 | { | |
14302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14303 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14304 | ||
14305 | wxPyEndAllowThreads(__tstate); | |
14306 | if (PyErr_Occurred()) SWIG_fail; | |
14307 | } | |
14308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14309 | return resultobj; | |
14310 | fail: | |
14311 | return NULL; | |
14312 | } | |
14313 | ||
14314 | ||
14315 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14316 | PyObject *resultobj; | |
14317 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14318 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14319 | int arg3 ; | |
14320 | wxString *arg4 = 0 ; | |
14321 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14322 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14323 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14324 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14325 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14326 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14327 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14328 | bool result; | |
14329 | bool temp4 = False ; | |
14330 | wxPoint temp5 ; | |
14331 | wxSize temp6 ; | |
14332 | bool temp8 = False ; | |
14333 | PyObject * obj0 = 0 ; | |
14334 | PyObject * obj1 = 0 ; | |
14335 | PyObject * obj2 = 0 ; | |
14336 | PyObject * obj3 = 0 ; | |
14337 | PyObject * obj4 = 0 ; | |
14338 | PyObject * obj5 = 0 ; | |
14339 | PyObject * obj6 = 0 ; | |
14340 | PyObject * obj7 = 0 ; | |
14341 | char *kwnames[] = { | |
14342 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14343 | }; | |
14344 | ||
14345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14350 | arg3 = (int const) SWIG_AsInt(obj2); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | { | |
14353 | arg4 = wxString_in_helper(obj3); | |
14354 | if (arg4 == NULL) SWIG_fail; | |
14355 | temp4 = True; | |
14356 | } | |
14357 | if (obj4) { | |
14358 | { | |
14359 | arg5 = &temp5; | |
14360 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14361 | } | |
14362 | } | |
14363 | if (obj5) { | |
14364 | { | |
14365 | arg6 = &temp6; | |
14366 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14367 | } | |
14368 | } | |
14369 | if (obj6) { | |
14370 | arg7 = (long) SWIG_AsLong(obj6); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
14372 | } | |
14373 | if (obj7) { | |
14374 | { | |
14375 | arg8 = wxString_in_helper(obj7); | |
14376 | if (arg8 == NULL) SWIG_fail; | |
14377 | temp8 = True; | |
14378 | } | |
14379 | } | |
14380 | { | |
14381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14382 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14383 | ||
14384 | wxPyEndAllowThreads(__tstate); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
14387 | { | |
14388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14389 | } | |
14390 | { | |
14391 | if (temp4) | |
14392 | delete arg4; | |
14393 | } | |
14394 | { | |
14395 | if (temp8) | |
14396 | delete arg8; | |
14397 | } | |
14398 | return resultobj; | |
14399 | fail: | |
14400 | { | |
14401 | if (temp4) | |
14402 | delete arg4; | |
14403 | } | |
14404 | { | |
14405 | if (temp8) | |
14406 | delete arg8; | |
14407 | } | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
14412 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14415 | PyObject * obj0 = 0 ; | |
14416 | char *kwnames[] = { | |
14417 | (char *) "self", NULL | |
14418 | }; | |
14419 | ||
14420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14423 | { | |
14424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14425 | (arg1)->ActivateNext(); | |
14426 | ||
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
14430 | Py_INCREF(Py_None); resultobj = Py_None; | |
14431 | return resultobj; | |
14432 | fail: | |
14433 | return NULL; | |
14434 | } | |
14435 | ||
14436 | ||
14437 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj; | |
14439 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14440 | PyObject * obj0 = 0 ; | |
14441 | char *kwnames[] = { | |
14442 | (char *) "self", NULL | |
14443 | }; | |
14444 | ||
14445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14448 | { | |
14449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14450 | (arg1)->ActivatePrevious(); | |
14451 | ||
14452 | wxPyEndAllowThreads(__tstate); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | Py_INCREF(Py_None); resultobj = Py_None; | |
14456 | return resultobj; | |
14457 | fail: | |
14458 | return NULL; | |
14459 | } | |
14460 | ||
14461 | ||
14462 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14463 | PyObject *resultobj; | |
14464 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14465 | PyObject * obj0 = 0 ; | |
14466 | char *kwnames[] = { | |
14467 | (char *) "self", NULL | |
14468 | }; | |
14469 | ||
14470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14473 | { | |
14474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14475 | (arg1)->ArrangeIcons(); | |
14476 | ||
14477 | wxPyEndAllowThreads(__tstate); | |
14478 | if (PyErr_Occurred()) SWIG_fail; | |
14479 | } | |
14480 | Py_INCREF(Py_None); resultobj = Py_None; | |
14481 | return resultobj; | |
14482 | fail: | |
14483 | return NULL; | |
14484 | } | |
14485 | ||
14486 | ||
14487 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14488 | PyObject *resultobj; | |
14489 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14490 | PyObject * obj0 = 0 ; | |
14491 | char *kwnames[] = { | |
14492 | (char *) "self", NULL | |
14493 | }; | |
14494 | ||
14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14498 | { | |
14499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14500 | (arg1)->Cascade(); | |
14501 | ||
14502 | wxPyEndAllowThreads(__tstate); | |
14503 | if (PyErr_Occurred()) SWIG_fail; | |
14504 | } | |
14505 | Py_INCREF(Py_None); resultobj = Py_None; | |
14506 | return resultobj; | |
14507 | fail: | |
14508 | return NULL; | |
14509 | } | |
14510 | ||
14511 | ||
14512 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14513 | PyObject *resultobj; | |
14514 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14515 | wxMDIChildFrame *result; | |
14516 | PyObject * obj0 = 0 ; | |
14517 | char *kwnames[] = { | |
14518 | (char *) "self", NULL | |
14519 | }; | |
14520 | ||
14521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14524 | { | |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
14531 | { | |
14532 | resultobj = wxPyMake_wxObject(result); | |
14533 | } | |
14534 | return resultobj; | |
14535 | fail: | |
14536 | return NULL; | |
14537 | } | |
14538 | ||
14539 | ||
14540 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14541 | PyObject *resultobj; | |
14542 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14543 | wxMDIClientWindow *result; | |
14544 | PyObject * obj0 = 0 ; | |
14545 | char *kwnames[] = { | |
14546 | (char *) "self", NULL | |
14547 | }; | |
14548 | ||
14549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14552 | { | |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14555 | ||
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | { | |
14560 | resultobj = wxPyMake_wxObject(result); | |
14561 | } | |
14562 | return resultobj; | |
14563 | fail: | |
14564 | return NULL; | |
14565 | } | |
14566 | ||
14567 | ||
14568 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14569 | PyObject *resultobj; | |
14570 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14571 | wxWindow *result; | |
14572 | PyObject * obj0 = 0 ; | |
14573 | char *kwnames[] = { | |
14574 | (char *) "self", NULL | |
14575 | }; | |
14576 | ||
14577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14580 | { | |
14581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14582 | result = (wxWindow *)(arg1)->GetToolBar(); | |
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_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14599 | PyObject * obj0 = 0 ; | |
14600 | char *kwnames[] = { | |
14601 | (char *) "self", NULL | |
14602 | }; | |
14603 | ||
14604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14607 | { | |
14608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14609 | (arg1)->Tile(); | |
14610 | ||
14611 | wxPyEndAllowThreads(__tstate); | |
14612 | if (PyErr_Occurred()) SWIG_fail; | |
14613 | } | |
14614 | Py_INCREF(Py_None); resultobj = Py_None; | |
14615 | return resultobj; | |
14616 | fail: | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
14621 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
14622 | PyObject *obj; | |
14623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14624 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14625 | Py_INCREF(obj); | |
14626 | return Py_BuildValue((char *)""); | |
14627 | } | |
14628 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14629 | PyObject *resultobj; | |
14630 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14631 | int arg2 ; | |
14632 | wxString *arg3 = 0 ; | |
14633 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14634 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14635 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14636 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14637 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
14638 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14639 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14640 | wxMDIChildFrame *result; | |
14641 | bool temp3 = False ; | |
14642 | wxPoint temp4 ; | |
14643 | wxSize temp5 ; | |
14644 | bool temp7 = False ; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | PyObject * obj1 = 0 ; | |
14647 | PyObject * obj2 = 0 ; | |
14648 | PyObject * obj3 = 0 ; | |
14649 | PyObject * obj4 = 0 ; | |
14650 | PyObject * obj5 = 0 ; | |
14651 | PyObject * obj6 = 0 ; | |
14652 | char *kwnames[] = { | |
14653 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14654 | }; | |
14655 | ||
14656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14659 | arg2 = (int const) SWIG_AsInt(obj1); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | { | |
14662 | arg3 = wxString_in_helper(obj2); | |
14663 | if (arg3 == NULL) SWIG_fail; | |
14664 | temp3 = True; | |
14665 | } | |
14666 | if (obj3) { | |
14667 | { | |
14668 | arg4 = &temp4; | |
14669 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14670 | } | |
14671 | } | |
14672 | if (obj4) { | |
14673 | { | |
14674 | arg5 = &temp5; | |
14675 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14676 | } | |
14677 | } | |
14678 | if (obj5) { | |
14679 | arg6 = (long) SWIG_AsLong(obj5); | |
14680 | if (PyErr_Occurred()) SWIG_fail; | |
14681 | } | |
14682 | if (obj6) { | |
14683 | { | |
14684 | arg7 = wxString_in_helper(obj6); | |
14685 | if (arg7 == NULL) SWIG_fail; | |
14686 | temp7 = True; | |
14687 | } | |
14688 | } | |
14689 | { | |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | { | |
14697 | resultobj = wxPyMake_wxObject(result); | |
14698 | } | |
14699 | { | |
14700 | if (temp3) | |
14701 | delete arg3; | |
14702 | } | |
14703 | { | |
14704 | if (temp7) | |
14705 | delete arg7; | |
14706 | } | |
14707 | return resultobj; | |
14708 | fail: | |
14709 | { | |
14710 | if (temp3) | |
14711 | delete arg3; | |
14712 | } | |
14713 | { | |
14714 | if (temp7) | |
14715 | delete arg7; | |
14716 | } | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxMDIChildFrame *result; | |
14724 | char *kwnames[] = { | |
14725 | NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
14729 | { | |
14730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14731 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
14732 | ||
14733 | wxPyEndAllowThreads(__tstate); | |
14734 | if (PyErr_Occurred()) SWIG_fail; | |
14735 | } | |
14736 | { | |
14737 | resultobj = wxPyMake_wxObject(result); | |
14738 | } | |
14739 | return resultobj; | |
14740 | fail: | |
14741 | return NULL; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14746 | PyObject *resultobj; | |
14747 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14748 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14749 | int arg3 ; | |
14750 | wxString *arg4 = 0 ; | |
14751 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14752 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14753 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14754 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14755 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
14756 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14757 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14758 | bool result; | |
14759 | bool temp4 = False ; | |
14760 | wxPoint temp5 ; | |
14761 | wxSize temp6 ; | |
14762 | bool temp8 = False ; | |
14763 | PyObject * obj0 = 0 ; | |
14764 | PyObject * obj1 = 0 ; | |
14765 | PyObject * obj2 = 0 ; | |
14766 | PyObject * obj3 = 0 ; | |
14767 | PyObject * obj4 = 0 ; | |
14768 | PyObject * obj5 = 0 ; | |
14769 | PyObject * obj6 = 0 ; | |
14770 | PyObject * obj7 = 0 ; | |
14771 | char *kwnames[] = { | |
14772 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14773 | }; | |
14774 | ||
14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14778 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
14779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14780 | arg3 = (int const) SWIG_AsInt(obj2); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | { | |
14783 | arg4 = wxString_in_helper(obj3); | |
14784 | if (arg4 == NULL) SWIG_fail; | |
14785 | temp4 = True; | |
14786 | } | |
14787 | if (obj4) { | |
14788 | { | |
14789 | arg5 = &temp5; | |
14790 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14791 | } | |
14792 | } | |
14793 | if (obj5) { | |
14794 | { | |
14795 | arg6 = &temp6; | |
14796 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14797 | } | |
14798 | } | |
14799 | if (obj6) { | |
14800 | arg7 = (long) SWIG_AsLong(obj6); | |
14801 | if (PyErr_Occurred()) SWIG_fail; | |
14802 | } | |
14803 | if (obj7) { | |
14804 | { | |
14805 | arg8 = wxString_in_helper(obj7); | |
14806 | if (arg8 == NULL) SWIG_fail; | |
14807 | temp8 = True; | |
14808 | } | |
14809 | } | |
14810 | { | |
14811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14812 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14813 | ||
14814 | wxPyEndAllowThreads(__tstate); | |
14815 | if (PyErr_Occurred()) SWIG_fail; | |
14816 | } | |
14817 | { | |
14818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14819 | } | |
14820 | { | |
14821 | if (temp4) | |
14822 | delete arg4; | |
14823 | } | |
14824 | { | |
14825 | if (temp8) | |
14826 | delete arg8; | |
14827 | } | |
14828 | return resultobj; | |
14829 | fail: | |
14830 | { | |
14831 | if (temp4) | |
14832 | delete arg4; | |
14833 | } | |
14834 | { | |
14835 | if (temp8) | |
14836 | delete arg8; | |
14837 | } | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
14842 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14843 | PyObject *resultobj; | |
14844 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14845 | PyObject * obj0 = 0 ; | |
14846 | char *kwnames[] = { | |
14847 | (char *) "self", NULL | |
14848 | }; | |
14849 | ||
14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
14851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14853 | { | |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | (arg1)->Activate(); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | Py_INCREF(Py_None); resultobj = Py_None; | |
14861 | return resultobj; | |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14870 | bool arg2 ; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | PyObject * obj1 = 0 ; | |
14873 | char *kwnames[] = { | |
14874 | (char *) "self",(char *) "maximize", NULL | |
14875 | }; | |
14876 | ||
14877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
14878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14880 | arg2 = (bool) SWIG_AsBool(obj1); | |
14881 | if (PyErr_Occurred()) SWIG_fail; | |
14882 | { | |
14883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14884 | (arg1)->Maximize(arg2); | |
14885 | ||
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | Py_INCREF(Py_None); resultobj = Py_None; | |
14890 | return resultobj; | |
14891 | fail: | |
14892 | return NULL; | |
14893 | } | |
14894 | ||
14895 | ||
14896 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14897 | PyObject *resultobj; | |
14898 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14899 | PyObject * obj0 = 0 ; | |
14900 | char *kwnames[] = { | |
14901 | (char *) "self", NULL | |
14902 | }; | |
14903 | ||
14904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
14905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14907 | { | |
14908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14909 | (arg1)->Restore(); | |
14910 | ||
14911 | wxPyEndAllowThreads(__tstate); | |
14912 | if (PyErr_Occurred()) SWIG_fail; | |
14913 | } | |
14914 | Py_INCREF(Py_None); resultobj = Py_None; | |
14915 | return resultobj; | |
14916 | fail: | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
14922 | PyObject *obj; | |
14923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14924 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
14925 | Py_INCREF(obj); | |
14926 | return Py_BuildValue((char *)""); | |
14927 | } | |
14928 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14929 | PyObject *resultobj; | |
14930 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14931 | long arg2 = (long) 0 ; | |
14932 | wxMDIClientWindow *result; | |
14933 | PyObject * obj0 = 0 ; | |
14934 | PyObject * obj1 = 0 ; | |
14935 | char *kwnames[] = { | |
14936 | (char *) "parent",(char *) "style", NULL | |
14937 | }; | |
14938 | ||
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
14940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14942 | if (obj1) { | |
14943 | arg2 = (long) SWIG_AsLong(obj1); | |
14944 | if (PyErr_Occurred()) SWIG_fail; | |
14945 | } | |
14946 | { | |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
14949 | ||
14950 | wxPyEndAllowThreads(__tstate); | |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
14953 | { | |
14954 | resultobj = wxPyMake_wxObject(result); | |
14955 | } | |
14956 | return resultobj; | |
14957 | fail: | |
14958 | return NULL; | |
14959 | } | |
14960 | ||
14961 | ||
14962 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14963 | PyObject *resultobj; | |
14964 | wxMDIClientWindow *result; | |
14965 | char *kwnames[] = { | |
14966 | NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
14970 | { | |
14971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14972 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
14973 | ||
14974 | wxPyEndAllowThreads(__tstate); | |
14975 | if (PyErr_Occurred()) SWIG_fail; | |
14976 | } | |
14977 | { | |
14978 | resultobj = wxPyMake_wxObject(result); | |
14979 | } | |
14980 | return resultobj; | |
14981 | fail: | |
14982 | return NULL; | |
14983 | } | |
14984 | ||
14985 | ||
14986 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14987 | PyObject *resultobj; | |
14988 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
14989 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14990 | long arg3 = (long) 0 ; | |
14991 | bool result; | |
14992 | PyObject * obj0 = 0 ; | |
14993 | PyObject * obj1 = 0 ; | |
14994 | PyObject * obj2 = 0 ; | |
14995 | char *kwnames[] = { | |
14996 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15002 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15004 | if (obj2) { | |
15005 | arg3 = (long) SWIG_AsLong(obj2); | |
15006 | if (PyErr_Occurred()) SWIG_fail; | |
15007 | } | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | result = (bool)(arg1)->Create(arg2,arg3); | |
15011 | ||
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
15015 | { | |
15016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15017 | } | |
15018 | return resultobj; | |
15019 | fail: | |
15020 | return NULL; | |
15021 | } | |
15022 | ||
15023 | ||
15024 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15025 | PyObject *obj; | |
15026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15027 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15028 | Py_INCREF(obj); | |
15029 | return Py_BuildValue((char *)""); | |
15030 | } | |
15031 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15034 | int arg2 ; | |
15035 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15036 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15037 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15038 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15039 | long arg5 = (long) 0 ; | |
15040 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15041 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15042 | wxPyWindow *result; | |
15043 | wxPoint temp3 ; | |
15044 | wxSize temp4 ; | |
15045 | bool temp6 = False ; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | PyObject * obj1 = 0 ; | |
15048 | PyObject * obj2 = 0 ; | |
15049 | PyObject * obj3 = 0 ; | |
15050 | PyObject * obj4 = 0 ; | |
15051 | PyObject * obj5 = 0 ; | |
15052 | char *kwnames[] = { | |
15053 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15054 | }; | |
15055 | ||
15056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15059 | arg2 = (int const) SWIG_AsInt(obj1); | |
15060 | if (PyErr_Occurred()) SWIG_fail; | |
15061 | if (obj2) { | |
15062 | { | |
15063 | arg3 = &temp3; | |
15064 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15065 | } | |
15066 | } | |
15067 | if (obj3) { | |
15068 | { | |
15069 | arg4 = &temp4; | |
15070 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15071 | } | |
15072 | } | |
15073 | if (obj4) { | |
15074 | arg5 = (long) SWIG_AsLong(obj4); | |
15075 | if (PyErr_Occurred()) SWIG_fail; | |
15076 | } | |
15077 | if (obj5) { | |
15078 | { | |
15079 | arg6 = wxString_in_helper(obj5); | |
15080 | if (arg6 == NULL) SWIG_fail; | |
15081 | temp6 = True; | |
15082 | } | |
15083 | } | |
15084 | { | |
15085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15086 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15087 | ||
15088 | wxPyEndAllowThreads(__tstate); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
15090 | } | |
15091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15092 | { | |
15093 | if (temp6) | |
15094 | delete arg6; | |
15095 | } | |
15096 | return resultobj; | |
15097 | fail: | |
15098 | { | |
15099 | if (temp6) | |
15100 | delete arg6; | |
15101 | } | |
15102 | return NULL; | |
15103 | } | |
15104 | ||
15105 | ||
15106 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15107 | PyObject *resultobj; | |
15108 | wxPyWindow *result; | |
15109 | char *kwnames[] = { | |
15110 | NULL | |
15111 | }; | |
15112 | ||
15113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15114 | { | |
15115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15116 | result = (wxPyWindow *)new wxPyWindow(); | |
15117 | ||
15118 | wxPyEndAllowThreads(__tstate); | |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | } | |
15121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15122 | return resultobj; | |
15123 | fail: | |
15124 | return NULL; | |
15125 | } | |
15126 | ||
15127 | ||
15128 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15129 | PyObject *resultobj; | |
15130 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15131 | PyObject *arg2 = (PyObject *) 0 ; | |
15132 | PyObject *arg3 = (PyObject *) 0 ; | |
15133 | PyObject * obj0 = 0 ; | |
15134 | PyObject * obj1 = 0 ; | |
15135 | PyObject * obj2 = 0 ; | |
15136 | char *kwnames[] = { | |
15137 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15138 | }; | |
15139 | ||
15140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15143 | arg2 = obj1; | |
15144 | arg3 = obj2; | |
15145 | { | |
15146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15147 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15148 | ||
15149 | wxPyEndAllowThreads(__tstate); | |
15150 | if (PyErr_Occurred()) SWIG_fail; | |
15151 | } | |
15152 | Py_INCREF(Py_None); resultobj = Py_None; | |
15153 | return resultobj; | |
15154 | fail: | |
15155 | return NULL; | |
15156 | } | |
15157 | ||
15158 | ||
15159 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15160 | PyObject *resultobj; | |
15161 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15162 | int arg2 ; | |
15163 | int arg3 ; | |
15164 | int arg4 ; | |
15165 | int arg5 ; | |
15166 | PyObject * obj0 = 0 ; | |
15167 | PyObject * obj1 = 0 ; | |
15168 | PyObject * obj2 = 0 ; | |
15169 | PyObject * obj3 = 0 ; | |
15170 | PyObject * obj4 = 0 ; | |
15171 | char *kwnames[] = { | |
15172 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15173 | }; | |
15174 | ||
15175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15178 | arg2 = (int) SWIG_AsInt(obj1); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
15180 | arg3 = (int) SWIG_AsInt(obj2); | |
15181 | if (PyErr_Occurred()) SWIG_fail; | |
15182 | arg4 = (int) SWIG_AsInt(obj3); | |
15183 | if (PyErr_Occurred()) SWIG_fail; | |
15184 | arg5 = (int) SWIG_AsInt(obj4); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | { | |
15187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15188 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
15193 | Py_INCREF(Py_None); resultobj = Py_None; | |
15194 | return resultobj; | |
15195 | fail: | |
15196 | return NULL; | |
15197 | } | |
15198 | ||
15199 | ||
15200 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15201 | PyObject *resultobj; | |
15202 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15203 | int arg2 ; | |
15204 | int arg3 ; | |
15205 | int arg4 ; | |
15206 | int arg5 ; | |
15207 | int arg6 = (int) wxSIZE_AUTO ; | |
15208 | PyObject * obj0 = 0 ; | |
15209 | PyObject * obj1 = 0 ; | |
15210 | PyObject * obj2 = 0 ; | |
15211 | PyObject * obj3 = 0 ; | |
15212 | PyObject * obj4 = 0 ; | |
15213 | PyObject * obj5 = 0 ; | |
15214 | char *kwnames[] = { | |
15215 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15216 | }; | |
15217 | ||
15218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15221 | arg2 = (int) SWIG_AsInt(obj1); | |
15222 | if (PyErr_Occurred()) SWIG_fail; | |
15223 | arg3 = (int) SWIG_AsInt(obj2); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | arg4 = (int) SWIG_AsInt(obj3); | |
15226 | if (PyErr_Occurred()) SWIG_fail; | |
15227 | arg5 = (int) SWIG_AsInt(obj4); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | if (obj5) { | |
15230 | arg6 = (int) SWIG_AsInt(obj5); | |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
15232 | } | |
15233 | { | |
15234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15235 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15236 | ||
15237 | wxPyEndAllowThreads(__tstate); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | } | |
15240 | Py_INCREF(Py_None); resultobj = Py_None; | |
15241 | return resultobj; | |
15242 | fail: | |
15243 | return NULL; | |
15244 | } | |
15245 | ||
15246 | ||
15247 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15248 | PyObject *resultobj; | |
15249 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15250 | int arg2 ; | |
15251 | int arg3 ; | |
15252 | PyObject * obj0 = 0 ; | |
15253 | PyObject * obj1 = 0 ; | |
15254 | PyObject * obj2 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15262 | arg2 = (int) SWIG_AsInt(obj1); | |
15263 | if (PyErr_Occurred()) SWIG_fail; | |
15264 | arg3 = (int) SWIG_AsInt(obj2); | |
15265 | if (PyErr_Occurred()) SWIG_fail; | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | Py_INCREF(Py_None); resultobj = Py_None; | |
15274 | return resultobj; | |
15275 | fail: | |
15276 | return NULL; | |
15277 | } | |
15278 | ||
15279 | ||
15280 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15281 | PyObject *resultobj; | |
15282 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15283 | int arg2 ; | |
15284 | int arg3 ; | |
15285 | PyObject * obj0 = 0 ; | |
15286 | PyObject * obj1 = 0 ; | |
15287 | PyObject * obj2 = 0 ; | |
15288 | char *kwnames[] = { | |
15289 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15290 | }; | |
15291 | ||
15292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15295 | arg2 = (int) SWIG_AsInt(obj1); | |
15296 | if (PyErr_Occurred()) SWIG_fail; | |
15297 | arg3 = (int) SWIG_AsInt(obj2); | |
15298 | if (PyErr_Occurred()) SWIG_fail; | |
15299 | { | |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15302 | ||
15303 | wxPyEndAllowThreads(__tstate); | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15306 | Py_INCREF(Py_None); resultobj = Py_None; | |
15307 | return resultobj; | |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
15313 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15314 | PyObject *resultobj; | |
15315 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15316 | int *arg2 = (int *) 0 ; | |
15317 | int *arg3 = (int *) 0 ; | |
15318 | int temp2 ; | |
15319 | int temp3 ; | |
15320 | PyObject * obj0 = 0 ; | |
15321 | char *kwnames[] = { | |
15322 | (char *) "self", NULL | |
15323 | }; | |
15324 | ||
15325 | arg2 = &temp2; | |
15326 | arg3 = &temp3; | |
15327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15330 | { | |
15331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15332 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15333 | ||
15334 | wxPyEndAllowThreads(__tstate); | |
15335 | if (PyErr_Occurred()) SWIG_fail; | |
15336 | } | |
15337 | Py_INCREF(Py_None); resultobj = Py_None; | |
15338 | { | |
15339 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15340 | resultobj = t_output_helper(resultobj,o); | |
15341 | } | |
15342 | { | |
15343 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15344 | resultobj = t_output_helper(resultobj,o); | |
15345 | } | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
15352 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15353 | PyObject *resultobj; | |
15354 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15355 | int *arg2 = (int *) 0 ; | |
15356 | int *arg3 = (int *) 0 ; | |
15357 | int temp2 ; | |
15358 | int temp3 ; | |
15359 | PyObject * obj0 = 0 ; | |
15360 | char *kwnames[] = { | |
15361 | (char *) "self", NULL | |
15362 | }; | |
15363 | ||
15364 | arg2 = &temp2; | |
15365 | arg3 = &temp3; | |
15366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15369 | { | |
15370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15371 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15372 | ||
15373 | wxPyEndAllowThreads(__tstate); | |
15374 | if (PyErr_Occurred()) SWIG_fail; | |
15375 | } | |
15376 | Py_INCREF(Py_None); resultobj = Py_None; | |
15377 | { | |
15378 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15379 | resultobj = t_output_helper(resultobj,o); | |
15380 | } | |
15381 | { | |
15382 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15383 | resultobj = t_output_helper(resultobj,o); | |
15384 | } | |
15385 | return resultobj; | |
15386 | fail: | |
15387 | return NULL; | |
15388 | } | |
15389 | ||
15390 | ||
15391 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15392 | PyObject *resultobj; | |
15393 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15394 | int *arg2 = (int *) 0 ; | |
15395 | int *arg3 = (int *) 0 ; | |
15396 | int temp2 ; | |
15397 | int temp3 ; | |
15398 | PyObject * obj0 = 0 ; | |
15399 | char *kwnames[] = { | |
15400 | (char *) "self", NULL | |
15401 | }; | |
15402 | ||
15403 | arg2 = &temp2; | |
15404 | arg3 = &temp3; | |
15405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15408 | { | |
15409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15410 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15411 | ||
15412 | wxPyEndAllowThreads(__tstate); | |
15413 | if (PyErr_Occurred()) SWIG_fail; | |
15414 | } | |
15415 | Py_INCREF(Py_None); resultobj = Py_None; | |
15416 | { | |
15417 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15418 | resultobj = t_output_helper(resultobj,o); | |
15419 | } | |
15420 | { | |
15421 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15422 | resultobj = t_output_helper(resultobj,o); | |
15423 | } | |
15424 | return resultobj; | |
15425 | fail: | |
15426 | return NULL; | |
15427 | } | |
15428 | ||
15429 | ||
15430 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15431 | PyObject *resultobj; | |
15432 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15433 | wxSize result; | |
15434 | PyObject * obj0 = 0 ; | |
15435 | char *kwnames[] = { | |
15436 | (char *) "self", NULL | |
15437 | }; | |
15438 | ||
15439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15442 | { | |
15443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15444 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15445 | ||
15446 | wxPyEndAllowThreads(__tstate); | |
15447 | if (PyErr_Occurred()) SWIG_fail; | |
15448 | } | |
15449 | { | |
15450 | wxSize * resultptr; | |
15451 | resultptr = new wxSize((wxSize &) result); | |
15452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15453 | } | |
15454 | return resultobj; | |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj; | |
15462 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15463 | wxSize result; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15472 | { | |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15474 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
15479 | { | |
15480 | wxSize * resultptr; | |
15481 | resultptr = new wxSize((wxSize &) result); | |
15482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15483 | } | |
15484 | return resultobj; | |
15485 | fail: | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15493 | PyObject * obj0 = 0 ; | |
15494 | char *kwnames[] = { | |
15495 | (char *) "self", NULL | |
15496 | }; | |
15497 | ||
15498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15501 | { | |
15502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15503 | (arg1)->base_InitDialog(); | |
15504 | ||
15505 | wxPyEndAllowThreads(__tstate); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
15508 | Py_INCREF(Py_None); resultobj = Py_None; | |
15509 | return resultobj; | |
15510 | fail: | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15516 | PyObject *resultobj; | |
15517 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15518 | bool result; | |
15519 | PyObject * obj0 = 0 ; | |
15520 | char *kwnames[] = { | |
15521 | (char *) "self", NULL | |
15522 | }; | |
15523 | ||
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15527 | { | |
15528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15529 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15530 | ||
15531 | wxPyEndAllowThreads(__tstate); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
15534 | { | |
15535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15536 | } | |
15537 | return resultobj; | |
15538 | fail: | |
15539 | return NULL; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15544 | PyObject *resultobj; | |
15545 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15546 | bool result; | |
15547 | PyObject * obj0 = 0 ; | |
15548 | char *kwnames[] = { | |
15549 | (char *) "self", NULL | |
15550 | }; | |
15551 | ||
15552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | { | |
15563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15564 | } | |
15565 | return resultobj; | |
15566 | fail: | |
15567 | return NULL; | |
15568 | } | |
15569 | ||
15570 | ||
15571 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15572 | PyObject *resultobj; | |
15573 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15574 | bool result; | |
15575 | PyObject * obj0 = 0 ; | |
15576 | char *kwnames[] = { | |
15577 | (char *) "self", NULL | |
15578 | }; | |
15579 | ||
15580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15583 | { | |
15584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15585 | result = (bool)(arg1)->base_Validate(); | |
15586 | ||
15587 | wxPyEndAllowThreads(__tstate); | |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | } | |
15590 | { | |
15591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15592 | } | |
15593 | return resultobj; | |
15594 | fail: | |
15595 | return NULL; | |
15596 | } | |
15597 | ||
15598 | ||
15599 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15600 | PyObject *resultobj; | |
15601 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15602 | bool result; | |
15603 | PyObject * obj0 = 0 ; | |
15604 | char *kwnames[] = { | |
15605 | (char *) "self", NULL | |
15606 | }; | |
15607 | ||
15608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15611 | { | |
15612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15613 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15614 | ||
15615 | wxPyEndAllowThreads(__tstate); | |
15616 | if (PyErr_Occurred()) SWIG_fail; | |
15617 | } | |
15618 | { | |
15619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15620 | } | |
15621 | return resultobj; | |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
15627 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15628 | PyObject *resultobj; | |
15629 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15630 | bool result; | |
15631 | PyObject * obj0 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "self", NULL | |
15634 | }; | |
15635 | ||
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15639 | { | |
15640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15641 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15642 | ||
15643 | wxPyEndAllowThreads(__tstate); | |
15644 | if (PyErr_Occurred()) SWIG_fail; | |
15645 | } | |
15646 | { | |
15647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15648 | } | |
15649 | return resultobj; | |
15650 | fail: | |
15651 | return NULL; | |
15652 | } | |
15653 | ||
15654 | ||
15655 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15656 | PyObject *resultobj; | |
15657 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15658 | wxSize result; | |
15659 | PyObject * obj0 = 0 ; | |
15660 | char *kwnames[] = { | |
15661 | (char *) "self", NULL | |
15662 | }; | |
15663 | ||
15664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
15670 | ||
15671 | wxPyEndAllowThreads(__tstate); | |
15672 | if (PyErr_Occurred()) SWIG_fail; | |
15673 | } | |
15674 | { | |
15675 | wxSize * resultptr; | |
15676 | resultptr = new wxSize((wxSize &) result); | |
15677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15678 | } | |
15679 | return resultobj; | |
15680 | fail: | |
15681 | return NULL; | |
15682 | } | |
15683 | ||
15684 | ||
15685 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15686 | PyObject *resultobj; | |
15687 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15688 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15689 | PyObject * obj0 = 0 ; | |
15690 | PyObject * obj1 = 0 ; | |
15691 | char *kwnames[] = { | |
15692 | (char *) "self",(char *) "child", NULL | |
15693 | }; | |
15694 | ||
15695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | (arg1)->base_AddChild(arg2); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
15707 | Py_INCREF(Py_None); resultobj = Py_None; | |
15708 | return resultobj; | |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
15714 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15715 | PyObject *resultobj; | |
15716 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15717 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15718 | PyObject * obj0 = 0 ; | |
15719 | PyObject * obj1 = 0 ; | |
15720 | char *kwnames[] = { | |
15721 | (char *) "self",(char *) "child", NULL | |
15722 | }; | |
15723 | ||
15724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15729 | { | |
15730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15731 | (arg1)->base_RemoveChild(arg2); | |
15732 | ||
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15736 | Py_INCREF(Py_None); resultobj = Py_None; | |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
15743 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15744 | PyObject *resultobj; | |
15745 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15746 | bool result; | |
15747 | PyObject * obj0 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
15753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15755 | { | |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15757 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
15762 | { | |
15763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15764 | } | |
15765 | return resultobj; | |
15766 | fail: | |
15767 | return NULL; | |
15768 | } | |
15769 | ||
15770 | ||
15771 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15772 | PyObject *resultobj; | |
15773 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15774 | wxColour *arg2 = 0 ; | |
15775 | wxColour temp2 ; | |
15776 | PyObject * obj0 = 0 ; | |
15777 | PyObject * obj1 = 0 ; | |
15778 | char *kwnames[] = { | |
15779 | (char *) "self",(char *) "c", NULL | |
15780 | }; | |
15781 | ||
15782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
15783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15785 | { | |
15786 | arg2 = &temp2; | |
15787 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15788 | } | |
15789 | { | |
15790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15791 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
15792 | ||
15793 | wxPyEndAllowThreads(__tstate); | |
15794 | if (PyErr_Occurred()) SWIG_fail; | |
15795 | } | |
15796 | Py_INCREF(Py_None); resultobj = Py_None; | |
15797 | return resultobj; | |
15798 | fail: | |
15799 | return NULL; | |
15800 | } | |
15801 | ||
15802 | ||
15803 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { | |
15804 | PyObject *obj; | |
15805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15806 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
15807 | Py_INCREF(obj); | |
15808 | return Py_BuildValue((char *)""); | |
15809 | } | |
15810 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15811 | PyObject *resultobj; | |
15812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15813 | int arg2 ; | |
15814 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15815 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15816 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15817 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15818 | long arg5 = (long) 0 ; | |
15819 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15820 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15821 | wxPyPanel *result; | |
15822 | wxPoint temp3 ; | |
15823 | wxSize temp4 ; | |
15824 | bool temp6 = False ; | |
15825 | PyObject * obj0 = 0 ; | |
15826 | PyObject * obj1 = 0 ; | |
15827 | PyObject * obj2 = 0 ; | |
15828 | PyObject * obj3 = 0 ; | |
15829 | PyObject * obj4 = 0 ; | |
15830 | PyObject * obj5 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15838 | arg2 = (int const) SWIG_AsInt(obj1); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | if (obj2) { | |
15841 | { | |
15842 | arg3 = &temp3; | |
15843 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15844 | } | |
15845 | } | |
15846 | if (obj3) { | |
15847 | { | |
15848 | arg4 = &temp4; | |
15849 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15850 | } | |
15851 | } | |
15852 | if (obj4) { | |
15853 | arg5 = (long) SWIG_AsLong(obj4); | |
15854 | if (PyErr_Occurred()) SWIG_fail; | |
15855 | } | |
15856 | if (obj5) { | |
15857 | { | |
15858 | arg6 = wxString_in_helper(obj5); | |
15859 | if (arg6 == NULL) SWIG_fail; | |
15860 | temp6 = True; | |
15861 | } | |
15862 | } | |
15863 | { | |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
15871 | { | |
15872 | if (temp6) | |
15873 | delete arg6; | |
15874 | } | |
15875 | return resultobj; | |
15876 | fail: | |
15877 | { | |
15878 | if (temp6) | |
15879 | delete arg6; | |
15880 | } | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15886 | PyObject *resultobj; | |
15887 | wxPyPanel *result; | |
15888 | char *kwnames[] = { | |
15889 | NULL | |
15890 | }; | |
15891 | ||
15892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
15893 | { | |
15894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15895 | result = (wxPyPanel *)new wxPyPanel(); | |
15896 | ||
15897 | wxPyEndAllowThreads(__tstate); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
15900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15908 | PyObject *resultobj; | |
15909 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15910 | PyObject *arg2 = (PyObject *) 0 ; | |
15911 | PyObject *arg3 = (PyObject *) 0 ; | |
15912 | PyObject * obj0 = 0 ; | |
15913 | PyObject * obj1 = 0 ; | |
15914 | PyObject * obj2 = 0 ; | |
15915 | char *kwnames[] = { | |
15916 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15917 | }; | |
15918 | ||
15919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15922 | arg2 = obj1; | |
15923 | arg3 = obj2; | |
15924 | { | |
15925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15926 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | Py_INCREF(Py_None); resultobj = Py_None; | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15941 | int arg2 ; | |
15942 | int arg3 ; | |
15943 | int arg4 ; | |
15944 | int arg5 ; | |
15945 | PyObject * obj0 = 0 ; | |
15946 | PyObject * obj1 = 0 ; | |
15947 | PyObject * obj2 = 0 ; | |
15948 | PyObject * obj3 = 0 ; | |
15949 | PyObject * obj4 = 0 ; | |
15950 | char *kwnames[] = { | |
15951 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15952 | }; | |
15953 | ||
15954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15957 | arg2 = (int) SWIG_AsInt(obj1); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | arg3 = (int) SWIG_AsInt(obj2); | |
15960 | if (PyErr_Occurred()) SWIG_fail; | |
15961 | arg4 = (int) SWIG_AsInt(obj3); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | arg5 = (int) SWIG_AsInt(obj4); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
15965 | { | |
15966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15967 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15968 | ||
15969 | wxPyEndAllowThreads(__tstate); | |
15970 | if (PyErr_Occurred()) SWIG_fail; | |
15971 | } | |
15972 | Py_INCREF(Py_None); resultobj = Py_None; | |
15973 | return resultobj; | |
15974 | fail: | |
15975 | return NULL; | |
15976 | } | |
15977 | ||
15978 | ||
15979 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15980 | PyObject *resultobj; | |
15981 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15982 | int arg2 ; | |
15983 | int arg3 ; | |
15984 | int arg4 ; | |
15985 | int arg5 ; | |
15986 | int arg6 = (int) wxSIZE_AUTO ; | |
15987 | PyObject * obj0 = 0 ; | |
15988 | PyObject * obj1 = 0 ; | |
15989 | PyObject * obj2 = 0 ; | |
15990 | PyObject * obj3 = 0 ; | |
15991 | PyObject * obj4 = 0 ; | |
15992 | PyObject * obj5 = 0 ; | |
15993 | char *kwnames[] = { | |
15994 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15995 | }; | |
15996 | ||
15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
15999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16000 | arg2 = (int) SWIG_AsInt(obj1); | |
16001 | if (PyErr_Occurred()) SWIG_fail; | |
16002 | arg3 = (int) SWIG_AsInt(obj2); | |
16003 | if (PyErr_Occurred()) SWIG_fail; | |
16004 | arg4 = (int) SWIG_AsInt(obj3); | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | arg5 = (int) SWIG_AsInt(obj4); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | if (obj5) { | |
16009 | arg6 = (int) SWIG_AsInt(obj5); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | { | |
16013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16014 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16015 | ||
16016 | wxPyEndAllowThreads(__tstate); | |
16017 | if (PyErr_Occurred()) SWIG_fail; | |
16018 | } | |
16019 | Py_INCREF(Py_None); resultobj = Py_None; | |
16020 | return resultobj; | |
16021 | fail: | |
16022 | return NULL; | |
16023 | } | |
16024 | ||
16025 | ||
16026 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16027 | PyObject *resultobj; | |
16028 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16029 | int arg2 ; | |
16030 | int arg3 ; | |
16031 | PyObject * obj0 = 0 ; | |
16032 | PyObject * obj1 = 0 ; | |
16033 | PyObject * obj2 = 0 ; | |
16034 | char *kwnames[] = { | |
16035 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16036 | }; | |
16037 | ||
16038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16041 | arg2 = (int) SWIG_AsInt(obj1); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
16043 | arg3 = (int) SWIG_AsInt(obj2); | |
16044 | if (PyErr_Occurred()) SWIG_fail; | |
16045 | { | |
16046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16047 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16048 | ||
16049 | wxPyEndAllowThreads(__tstate); | |
16050 | if (PyErr_Occurred()) SWIG_fail; | |
16051 | } | |
16052 | Py_INCREF(Py_None); resultobj = Py_None; | |
16053 | return resultobj; | |
16054 | fail: | |
16055 | return NULL; | |
16056 | } | |
16057 | ||
16058 | ||
16059 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16060 | PyObject *resultobj; | |
16061 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16062 | int arg2 ; | |
16063 | int arg3 ; | |
16064 | PyObject * obj0 = 0 ; | |
16065 | PyObject * obj1 = 0 ; | |
16066 | PyObject * obj2 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16069 | }; | |
16070 | ||
16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16074 | arg2 = (int) SWIG_AsInt(obj1); | |
16075 | if (PyErr_Occurred()) SWIG_fail; | |
16076 | arg3 = (int) SWIG_AsInt(obj2); | |
16077 | if (PyErr_Occurred()) SWIG_fail; | |
16078 | { | |
16079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16080 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16081 | ||
16082 | wxPyEndAllowThreads(__tstate); | |
16083 | if (PyErr_Occurred()) SWIG_fail; | |
16084 | } | |
16085 | Py_INCREF(Py_None); resultobj = Py_None; | |
16086 | return resultobj; | |
16087 | fail: | |
16088 | return NULL; | |
16089 | } | |
16090 | ||
16091 | ||
16092 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16093 | PyObject *resultobj; | |
16094 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16095 | int *arg2 = (int *) 0 ; | |
16096 | int *arg3 = (int *) 0 ; | |
16097 | int temp2 ; | |
16098 | int temp3 ; | |
16099 | PyObject * obj0 = 0 ; | |
16100 | char *kwnames[] = { | |
16101 | (char *) "self", NULL | |
16102 | }; | |
16103 | ||
16104 | arg2 = &temp2; | |
16105 | arg3 = &temp3; | |
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16109 | { | |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16112 | ||
16113 | wxPyEndAllowThreads(__tstate); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | } | |
16116 | Py_INCREF(Py_None); resultobj = Py_None; | |
16117 | { | |
16118 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16119 | resultobj = t_output_helper(resultobj,o); | |
16120 | } | |
16121 | { | |
16122 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16123 | resultobj = t_output_helper(resultobj,o); | |
16124 | } | |
16125 | return resultobj; | |
16126 | fail: | |
16127 | return NULL; | |
16128 | } | |
16129 | ||
16130 | ||
16131 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16132 | PyObject *resultobj; | |
16133 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16134 | int *arg2 = (int *) 0 ; | |
16135 | int *arg3 = (int *) 0 ; | |
16136 | int temp2 ; | |
16137 | int temp3 ; | |
16138 | PyObject * obj0 = 0 ; | |
16139 | char *kwnames[] = { | |
16140 | (char *) "self", NULL | |
16141 | }; | |
16142 | ||
16143 | arg2 = &temp2; | |
16144 | arg3 = &temp3; | |
16145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16148 | { | |
16149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16150 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16151 | ||
16152 | wxPyEndAllowThreads(__tstate); | |
16153 | if (PyErr_Occurred()) SWIG_fail; | |
16154 | } | |
16155 | Py_INCREF(Py_None); resultobj = Py_None; | |
16156 | { | |
16157 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16158 | resultobj = t_output_helper(resultobj,o); | |
16159 | } | |
16160 | { | |
16161 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16162 | resultobj = t_output_helper(resultobj,o); | |
16163 | } | |
16164 | return resultobj; | |
16165 | fail: | |
16166 | return NULL; | |
16167 | } | |
16168 | ||
16169 | ||
16170 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16171 | PyObject *resultobj; | |
16172 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16173 | int *arg2 = (int *) 0 ; | |
16174 | int *arg3 = (int *) 0 ; | |
16175 | int temp2 ; | |
16176 | int temp3 ; | |
16177 | PyObject * obj0 = 0 ; | |
16178 | char *kwnames[] = { | |
16179 | (char *) "self", NULL | |
16180 | }; | |
16181 | ||
16182 | arg2 = &temp2; | |
16183 | arg3 = &temp3; | |
16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16187 | { | |
16188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16189 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16190 | ||
16191 | wxPyEndAllowThreads(__tstate); | |
16192 | if (PyErr_Occurred()) SWIG_fail; | |
16193 | } | |
16194 | Py_INCREF(Py_None); resultobj = Py_None; | |
16195 | { | |
16196 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16197 | resultobj = t_output_helper(resultobj,o); | |
16198 | } | |
16199 | { | |
16200 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16201 | resultobj = t_output_helper(resultobj,o); | |
16202 | } | |
16203 | return resultobj; | |
16204 | fail: | |
16205 | return NULL; | |
16206 | } | |
16207 | ||
16208 | ||
16209 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16210 | PyObject *resultobj; | |
16211 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16212 | wxSize result; | |
16213 | PyObject * obj0 = 0 ; | |
16214 | char *kwnames[] = { | |
16215 | (char *) "self", NULL | |
16216 | }; | |
16217 | ||
16218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16221 | { | |
16222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16223 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16224 | ||
16225 | wxPyEndAllowThreads(__tstate); | |
16226 | if (PyErr_Occurred()) SWIG_fail; | |
16227 | } | |
16228 | { | |
16229 | wxSize * resultptr; | |
16230 | resultptr = new wxSize((wxSize &) result); | |
16231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16232 | } | |
16233 | return resultobj; | |
16234 | fail: | |
16235 | return NULL; | |
16236 | } | |
16237 | ||
16238 | ||
16239 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16240 | PyObject *resultobj; | |
16241 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16242 | wxSize result; | |
16243 | PyObject * obj0 = 0 ; | |
16244 | char *kwnames[] = { | |
16245 | (char *) "self", NULL | |
16246 | }; | |
16247 | ||
16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16251 | { | |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
16258 | { | |
16259 | wxSize * resultptr; | |
16260 | resultptr = new wxSize((wxSize &) result); | |
16261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16262 | } | |
16263 | return resultobj; | |
16264 | fail: | |
16265 | return NULL; | |
16266 | } | |
16267 | ||
16268 | ||
16269 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16270 | PyObject *resultobj; | |
16271 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16272 | PyObject * obj0 = 0 ; | |
16273 | char *kwnames[] = { | |
16274 | (char *) "self", NULL | |
16275 | }; | |
16276 | ||
16277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16280 | { | |
16281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16282 | (arg1)->base_InitDialog(); | |
16283 | ||
16284 | wxPyEndAllowThreads(__tstate); | |
16285 | if (PyErr_Occurred()) SWIG_fail; | |
16286 | } | |
16287 | Py_INCREF(Py_None); resultobj = Py_None; | |
16288 | return resultobj; | |
16289 | fail: | |
16290 | return NULL; | |
16291 | } | |
16292 | ||
16293 | ||
16294 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16295 | PyObject *resultobj; | |
16296 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16297 | bool result; | |
16298 | PyObject * obj0 = 0 ; | |
16299 | char *kwnames[] = { | |
16300 | (char *) "self", NULL | |
16301 | }; | |
16302 | ||
16303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16306 | { | |
16307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16308 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16309 | ||
16310 | wxPyEndAllowThreads(__tstate); | |
16311 | if (PyErr_Occurred()) SWIG_fail; | |
16312 | } | |
16313 | { | |
16314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16315 | } | |
16316 | return resultobj; | |
16317 | fail: | |
16318 | return NULL; | |
16319 | } | |
16320 | ||
16321 | ||
16322 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16323 | PyObject *resultobj; | |
16324 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16325 | bool result; | |
16326 | PyObject * obj0 = 0 ; | |
16327 | char *kwnames[] = { | |
16328 | (char *) "self", NULL | |
16329 | }; | |
16330 | ||
16331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16334 | { | |
16335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16336 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16337 | ||
16338 | wxPyEndAllowThreads(__tstate); | |
16339 | if (PyErr_Occurred()) SWIG_fail; | |
16340 | } | |
16341 | { | |
16342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16343 | } | |
16344 | return resultobj; | |
16345 | fail: | |
16346 | return NULL; | |
16347 | } | |
16348 | ||
16349 | ||
16350 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16351 | PyObject *resultobj; | |
16352 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16353 | bool result; | |
16354 | PyObject * obj0 = 0 ; | |
16355 | char *kwnames[] = { | |
16356 | (char *) "self", NULL | |
16357 | }; | |
16358 | ||
16359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16362 | { | |
16363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16364 | result = (bool)(arg1)->base_Validate(); | |
16365 | ||
16366 | wxPyEndAllowThreads(__tstate); | |
16367 | if (PyErr_Occurred()) SWIG_fail; | |
16368 | } | |
16369 | { | |
16370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16371 | } | |
16372 | return resultobj; | |
16373 | fail: | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16379 | PyObject *resultobj; | |
16380 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16381 | bool result; | |
16382 | PyObject * obj0 = 0 ; | |
16383 | char *kwnames[] = { | |
16384 | (char *) "self", NULL | |
16385 | }; | |
16386 | ||
16387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16390 | { | |
16391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16392 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
16393 | ||
16394 | wxPyEndAllowThreads(__tstate); | |
16395 | if (PyErr_Occurred()) SWIG_fail; | |
16396 | } | |
16397 | { | |
16398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16399 | } | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16407 | PyObject *resultobj; | |
16408 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16409 | bool result; | |
16410 | PyObject * obj0 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16418 | { | |
16419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16420 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16421 | ||
16422 | wxPyEndAllowThreads(__tstate); | |
16423 | if (PyErr_Occurred()) SWIG_fail; | |
16424 | } | |
16425 | { | |
16426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16427 | } | |
16428 | return resultobj; | |
16429 | fail: | |
16430 | return NULL; | |
16431 | } | |
16432 | ||
16433 | ||
16434 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16435 | PyObject *resultobj; | |
16436 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16437 | wxSize result; | |
16438 | PyObject * obj0 = 0 ; | |
16439 | char *kwnames[] = { | |
16440 | (char *) "self", NULL | |
16441 | }; | |
16442 | ||
16443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16446 | { | |
16447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16448 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
16449 | ||
16450 | wxPyEndAllowThreads(__tstate); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
16452 | } | |
16453 | { | |
16454 | wxSize * resultptr; | |
16455 | resultptr = new wxSize((wxSize &) result); | |
16456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16457 | } | |
16458 | return resultobj; | |
16459 | fail: | |
16460 | return NULL; | |
16461 | } | |
16462 | ||
16463 | ||
16464 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16465 | PyObject *resultobj; | |
16466 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16467 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16468 | PyObject * obj0 = 0 ; | |
16469 | PyObject * obj1 = 0 ; | |
16470 | char *kwnames[] = { | |
16471 | (char *) "self",(char *) "child", NULL | |
16472 | }; | |
16473 | ||
16474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16479 | { | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | (arg1)->base_AddChild(arg2); | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16494 | PyObject *resultobj; | |
16495 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16496 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16497 | PyObject * obj0 = 0 ; | |
16498 | PyObject * obj1 = 0 ; | |
16499 | char *kwnames[] = { | |
16500 | (char *) "self",(char *) "child", NULL | |
16501 | }; | |
16502 | ||
16503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16508 | { | |
16509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16510 | (arg1)->base_RemoveChild(arg2); | |
16511 | ||
16512 | wxPyEndAllowThreads(__tstate); | |
16513 | if (PyErr_Occurred()) SWIG_fail; | |
16514 | } | |
16515 | Py_INCREF(Py_None); resultobj = Py_None; | |
16516 | return resultobj; | |
16517 | fail: | |
16518 | return NULL; | |
16519 | } | |
16520 | ||
16521 | ||
16522 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16523 | PyObject *resultobj; | |
16524 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16525 | bool result; | |
16526 | PyObject * obj0 = 0 ; | |
16527 | char *kwnames[] = { | |
16528 | (char *) "self", NULL | |
16529 | }; | |
16530 | ||
16531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16534 | { | |
16535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16536 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
16537 | ||
16538 | wxPyEndAllowThreads(__tstate); | |
16539 | if (PyErr_Occurred()) SWIG_fail; | |
16540 | } | |
16541 | { | |
16542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16543 | } | |
16544 | return resultobj; | |
16545 | fail: | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
16550 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16551 | PyObject *resultobj; | |
16552 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16553 | wxColour *arg2 = 0 ; | |
16554 | wxColour temp2 ; | |
16555 | PyObject * obj0 = 0 ; | |
16556 | PyObject * obj1 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self",(char *) "c", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16564 | { | |
16565 | arg2 = &temp2; | |
16566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16567 | } | |
16568 | { | |
16569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16570 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | Py_INCREF(Py_None); resultobj = Py_None; | |
16576 | return resultobj; | |
16577 | fail: | |
16578 | return NULL; | |
16579 | } | |
16580 | ||
16581 | ||
16582 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { | |
16583 | PyObject *obj; | |
16584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16585 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16586 | Py_INCREF(obj); | |
16587 | return Py_BuildValue((char *)""); | |
16588 | } | |
16589 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16590 | PyObject *resultobj; | |
16591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16592 | int arg2 ; | |
16593 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16594 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16595 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16596 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16597 | long arg5 = (long) 0 ; | |
16598 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16599 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16600 | wxPyScrolledWindow *result; | |
16601 | wxPoint temp3 ; | |
16602 | wxSize temp4 ; | |
16603 | bool temp6 = False ; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | PyObject * obj2 = 0 ; | |
16607 | PyObject * obj3 = 0 ; | |
16608 | PyObject * obj4 = 0 ; | |
16609 | PyObject * obj5 = 0 ; | |
16610 | char *kwnames[] = { | |
16611 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16612 | }; | |
16613 | ||
16614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16617 | arg2 = (int const) SWIG_AsInt(obj1); | |
16618 | if (PyErr_Occurred()) SWIG_fail; | |
16619 | if (obj2) { | |
16620 | { | |
16621 | arg3 = &temp3; | |
16622 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16623 | } | |
16624 | } | |
16625 | if (obj3) { | |
16626 | { | |
16627 | arg4 = &temp4; | |
16628 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16629 | } | |
16630 | } | |
16631 | if (obj4) { | |
16632 | arg5 = (long) SWIG_AsLong(obj4); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | if (obj5) { | |
16636 | { | |
16637 | arg6 = wxString_in_helper(obj5); | |
16638 | if (arg6 == NULL) SWIG_fail; | |
16639 | temp6 = True; | |
16640 | } | |
16641 | } | |
16642 | { | |
16643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16644 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16645 | ||
16646 | wxPyEndAllowThreads(__tstate); | |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
16648 | } | |
16649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
16650 | { | |
16651 | if (temp6) | |
16652 | delete arg6; | |
16653 | } | |
16654 | return resultobj; | |
16655 | fail: | |
16656 | { | |
16657 | if (temp6) | |
16658 | delete arg6; | |
16659 | } | |
16660 | return NULL; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16665 | PyObject *resultobj; | |
16666 | wxPyScrolledWindow *result; | |
16667 | char *kwnames[] = { | |
16668 | NULL | |
16669 | }; | |
16670 | ||
16671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
16679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
16680 | return resultobj; | |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
16686 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16687 | PyObject *resultobj; | |
16688 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16689 | PyObject *arg2 = (PyObject *) 0 ; | |
16690 | PyObject *arg3 = (PyObject *) 0 ; | |
16691 | PyObject * obj0 = 0 ; | |
16692 | PyObject * obj1 = 0 ; | |
16693 | PyObject * obj2 = 0 ; | |
16694 | char *kwnames[] = { | |
16695 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16696 | }; | |
16697 | ||
16698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16701 | arg2 = obj1; | |
16702 | arg3 = obj2; | |
16703 | { | |
16704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16705 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16706 | ||
16707 | wxPyEndAllowThreads(__tstate); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | Py_INCREF(Py_None); resultobj = Py_None; | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | return NULL; | |
16714 | } | |
16715 | ||
16716 | ||
16717 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16718 | PyObject *resultobj; | |
16719 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16720 | int arg2 ; | |
16721 | int arg3 ; | |
16722 | int arg4 ; | |
16723 | int arg5 ; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | PyObject * obj1 = 0 ; | |
16726 | PyObject * obj2 = 0 ; | |
16727 | PyObject * obj3 = 0 ; | |
16728 | PyObject * obj4 = 0 ; | |
16729 | char *kwnames[] = { | |
16730 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16731 | }; | |
16732 | ||
16733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16736 | arg2 = (int) SWIG_AsInt(obj1); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | arg3 = (int) SWIG_AsInt(obj2); | |
16739 | if (PyErr_Occurred()) SWIG_fail; | |
16740 | arg4 = (int) SWIG_AsInt(obj3); | |
16741 | if (PyErr_Occurred()) SWIG_fail; | |
16742 | arg5 = (int) SWIG_AsInt(obj4); | |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
16744 | { | |
16745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16746 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16747 | ||
16748 | wxPyEndAllowThreads(__tstate); | |
16749 | if (PyErr_Occurred()) SWIG_fail; | |
16750 | } | |
16751 | Py_INCREF(Py_None); resultobj = Py_None; | |
16752 | return resultobj; | |
16753 | fail: | |
16754 | return NULL; | |
16755 | } | |
16756 | ||
16757 | ||
16758 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16759 | PyObject *resultobj; | |
16760 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16761 | int arg2 ; | |
16762 | int arg3 ; | |
16763 | int arg4 ; | |
16764 | int arg5 ; | |
16765 | int arg6 = (int) wxSIZE_AUTO ; | |
16766 | PyObject * obj0 = 0 ; | |
16767 | PyObject * obj1 = 0 ; | |
16768 | PyObject * obj2 = 0 ; | |
16769 | PyObject * obj3 = 0 ; | |
16770 | PyObject * obj4 = 0 ; | |
16771 | PyObject * obj5 = 0 ; | |
16772 | char *kwnames[] = { | |
16773 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16774 | }; | |
16775 | ||
16776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16779 | arg2 = (int) SWIG_AsInt(obj1); | |
16780 | if (PyErr_Occurred()) SWIG_fail; | |
16781 | arg3 = (int) SWIG_AsInt(obj2); | |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
16783 | arg4 = (int) SWIG_AsInt(obj3); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | arg5 = (int) SWIG_AsInt(obj4); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | if (obj5) { | |
16788 | arg6 = (int) SWIG_AsInt(obj5); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16793 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16794 | ||
16795 | wxPyEndAllowThreads(__tstate); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
16798 | Py_INCREF(Py_None); resultobj = Py_None; | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
16805 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16806 | PyObject *resultobj; | |
16807 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16808 | int arg2 ; | |
16809 | int arg3 ; | |
16810 | PyObject * obj0 = 0 ; | |
16811 | PyObject * obj1 = 0 ; | |
16812 | PyObject * obj2 = 0 ; | |
16813 | char *kwnames[] = { | |
16814 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16815 | }; | |
16816 | ||
16817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16820 | arg2 = (int) SWIG_AsInt(obj1); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | arg3 = (int) SWIG_AsInt(obj2); | |
16823 | if (PyErr_Occurred()) SWIG_fail; | |
16824 | { | |
16825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16826 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16827 | ||
16828 | wxPyEndAllowThreads(__tstate); | |
16829 | if (PyErr_Occurred()) SWIG_fail; | |
16830 | } | |
16831 | Py_INCREF(Py_None); resultobj = Py_None; | |
16832 | return resultobj; | |
16833 | fail: | |
16834 | return NULL; | |
16835 | } | |
16836 | ||
16837 | ||
16838 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16839 | PyObject *resultobj; | |
16840 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16841 | int arg2 ; | |
16842 | int arg3 ; | |
16843 | PyObject * obj0 = 0 ; | |
16844 | PyObject * obj1 = 0 ; | |
16845 | PyObject * obj2 = 0 ; | |
16846 | char *kwnames[] = { | |
16847 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16848 | }; | |
16849 | ||
16850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16853 | arg2 = (int) SWIG_AsInt(obj1); | |
16854 | if (PyErr_Occurred()) SWIG_fail; | |
16855 | arg3 = (int) SWIG_AsInt(obj2); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | { | |
16858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16859 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16860 | ||
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
16864 | Py_INCREF(Py_None); resultobj = Py_None; | |
16865 | return resultobj; | |
16866 | fail: | |
16867 | return NULL; | |
16868 | } | |
16869 | ||
16870 | ||
16871 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16872 | PyObject *resultobj; | |
16873 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16874 | int *arg2 = (int *) 0 ; | |
16875 | int *arg3 = (int *) 0 ; | |
16876 | int temp2 ; | |
16877 | int temp3 ; | |
16878 | PyObject * obj0 = 0 ; | |
16879 | char *kwnames[] = { | |
16880 | (char *) "self", NULL | |
16881 | }; | |
16882 | ||
16883 | arg2 = &temp2; | |
16884 | arg3 = &temp3; | |
16885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16888 | { | |
16889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16890 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
16891 | ||
16892 | wxPyEndAllowThreads(__tstate); | |
16893 | if (PyErr_Occurred()) SWIG_fail; | |
16894 | } | |
16895 | Py_INCREF(Py_None); resultobj = Py_None; | |
16896 | { | |
16897 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16898 | resultobj = t_output_helper(resultobj,o); | |
16899 | } | |
16900 | { | |
16901 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16902 | resultobj = t_output_helper(resultobj,o); | |
16903 | } | |
16904 | return resultobj; | |
16905 | fail: | |
16906 | return NULL; | |
16907 | } | |
16908 | ||
16909 | ||
16910 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16911 | PyObject *resultobj; | |
16912 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16913 | int *arg2 = (int *) 0 ; | |
16914 | int *arg3 = (int *) 0 ; | |
16915 | int temp2 ; | |
16916 | int temp3 ; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | char *kwnames[] = { | |
16919 | (char *) "self", NULL | |
16920 | }; | |
16921 | ||
16922 | arg2 = &temp2; | |
16923 | arg3 = &temp3; | |
16924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16927 | { | |
16928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16929 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16930 | ||
16931 | wxPyEndAllowThreads(__tstate); | |
16932 | if (PyErr_Occurred()) SWIG_fail; | |
16933 | } | |
16934 | Py_INCREF(Py_None); resultobj = Py_None; | |
16935 | { | |
16936 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16937 | resultobj = t_output_helper(resultobj,o); | |
16938 | } | |
16939 | { | |
16940 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16941 | resultobj = t_output_helper(resultobj,o); | |
16942 | } | |
16943 | return resultobj; | |
16944 | fail: | |
16945 | return NULL; | |
16946 | } | |
16947 | ||
16948 | ||
16949 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16950 | PyObject *resultobj; | |
16951 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16952 | int *arg2 = (int *) 0 ; | |
16953 | int *arg3 = (int *) 0 ; | |
16954 | int temp2 ; | |
16955 | int temp3 ; | |
16956 | PyObject * obj0 = 0 ; | |
16957 | char *kwnames[] = { | |
16958 | (char *) "self", NULL | |
16959 | }; | |
16960 | ||
16961 | arg2 = &temp2; | |
16962 | arg3 = &temp3; | |
16963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16966 | { | |
16967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16968 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16969 | ||
16970 | wxPyEndAllowThreads(__tstate); | |
16971 | if (PyErr_Occurred()) SWIG_fail; | |
16972 | } | |
16973 | Py_INCREF(Py_None); resultobj = Py_None; | |
16974 | { | |
16975 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16976 | resultobj = t_output_helper(resultobj,o); | |
16977 | } | |
16978 | { | |
16979 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16980 | resultobj = t_output_helper(resultobj,o); | |
16981 | } | |
16982 | return resultobj; | |
16983 | fail: | |
16984 | return NULL; | |
16985 | } | |
16986 | ||
16987 | ||
16988 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16989 | PyObject *resultobj; | |
16990 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16991 | wxSize result; | |
16992 | PyObject * obj0 = 0 ; | |
16993 | char *kwnames[] = { | |
16994 | (char *) "self", NULL | |
16995 | }; | |
16996 | ||
16997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17000 | { | |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17003 | ||
17004 | wxPyEndAllowThreads(__tstate); | |
17005 | if (PyErr_Occurred()) SWIG_fail; | |
17006 | } | |
17007 | { | |
17008 | wxSize * resultptr; | |
17009 | resultptr = new wxSize((wxSize &) result); | |
17010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17011 | } | |
17012 | return resultobj; | |
17013 | fail: | |
17014 | return NULL; | |
17015 | } | |
17016 | ||
17017 | ||
17018 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17019 | PyObject *resultobj; | |
17020 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17021 | wxSize result; | |
17022 | PyObject * obj0 = 0 ; | |
17023 | char *kwnames[] = { | |
17024 | (char *) "self", NULL | |
17025 | }; | |
17026 | ||
17027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17030 | { | |
17031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17032 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17033 | ||
17034 | wxPyEndAllowThreads(__tstate); | |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
17036 | } | |
17037 | { | |
17038 | wxSize * resultptr; | |
17039 | resultptr = new wxSize((wxSize &) result); | |
17040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17041 | } | |
17042 | return resultobj; | |
17043 | fail: | |
17044 | return NULL; | |
17045 | } | |
17046 | ||
17047 | ||
17048 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17049 | PyObject *resultobj; | |
17050 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17051 | PyObject * obj0 = 0 ; | |
17052 | char *kwnames[] = { | |
17053 | (char *) "self", NULL | |
17054 | }; | |
17055 | ||
17056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17059 | { | |
17060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17061 | (arg1)->base_InitDialog(); | |
17062 | ||
17063 | wxPyEndAllowThreads(__tstate); | |
17064 | if (PyErr_Occurred()) SWIG_fail; | |
17065 | } | |
17066 | Py_INCREF(Py_None); resultobj = Py_None; | |
17067 | return resultobj; | |
17068 | fail: | |
17069 | return NULL; | |
17070 | } | |
17071 | ||
17072 | ||
17073 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17074 | PyObject *resultobj; | |
17075 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17076 | bool result; | |
17077 | PyObject * obj0 = 0 ; | |
17078 | char *kwnames[] = { | |
17079 | (char *) "self", NULL | |
17080 | }; | |
17081 | ||
17082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17085 | { | |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17088 | ||
17089 | wxPyEndAllowThreads(__tstate); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | { | |
17093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17094 | } | |
17095 | return resultobj; | |
17096 | fail: | |
17097 | return NULL; | |
17098 | } | |
17099 | ||
17100 | ||
17101 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17102 | PyObject *resultobj; | |
17103 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17104 | bool result; | |
17105 | PyObject * obj0 = 0 ; | |
17106 | char *kwnames[] = { | |
17107 | (char *) "self", NULL | |
17108 | }; | |
17109 | ||
17110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17113 | { | |
17114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17115 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17116 | ||
17117 | wxPyEndAllowThreads(__tstate); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | } | |
17120 | { | |
17121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17122 | } | |
17123 | return resultobj; | |
17124 | fail: | |
17125 | return NULL; | |
17126 | } | |
17127 | ||
17128 | ||
17129 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17130 | PyObject *resultobj; | |
17131 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17132 | bool result; | |
17133 | PyObject * obj0 = 0 ; | |
17134 | char *kwnames[] = { | |
17135 | (char *) "self", NULL | |
17136 | }; | |
17137 | ||
17138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17141 | { | |
17142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17143 | result = (bool)(arg1)->base_Validate(); | |
17144 | ||
17145 | wxPyEndAllowThreads(__tstate); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
17147 | } | |
17148 | { | |
17149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17150 | } | |
17151 | return resultobj; | |
17152 | fail: | |
17153 | return NULL; | |
17154 | } | |
17155 | ||
17156 | ||
17157 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17158 | PyObject *resultobj; | |
17159 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17160 | bool result; | |
17161 | PyObject * obj0 = 0 ; | |
17162 | char *kwnames[] = { | |
17163 | (char *) "self", NULL | |
17164 | }; | |
17165 | ||
17166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | { | |
17177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17178 | } | |
17179 | return resultobj; | |
17180 | fail: | |
17181 | return NULL; | |
17182 | } | |
17183 | ||
17184 | ||
17185 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17186 | PyObject *resultobj; | |
17187 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17188 | bool result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "self", NULL | |
17192 | }; | |
17193 | ||
17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17197 | { | |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
17204 | { | |
17205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17206 | } | |
17207 | return resultobj; | |
17208 | fail: | |
17209 | return NULL; | |
17210 | } | |
17211 | ||
17212 | ||
17213 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17214 | PyObject *resultobj; | |
17215 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17216 | wxSize result; | |
17217 | PyObject * obj0 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17228 | ||
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
17232 | { | |
17233 | wxSize * resultptr; | |
17234 | resultptr = new wxSize((wxSize &) result); | |
17235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17236 | } | |
17237 | return resultobj; | |
17238 | fail: | |
17239 | return NULL; | |
17240 | } | |
17241 | ||
17242 | ||
17243 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17244 | PyObject *resultobj; | |
17245 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17246 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17247 | PyObject * obj0 = 0 ; | |
17248 | PyObject * obj1 = 0 ; | |
17249 | char *kwnames[] = { | |
17250 | (char *) "self",(char *) "child", NULL | |
17251 | }; | |
17252 | ||
17253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17256 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17258 | { | |
17259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17260 | (arg1)->base_AddChild(arg2); | |
17261 | ||
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | Py_INCREF(Py_None); resultobj = Py_None; | |
17266 | return resultobj; | |
17267 | fail: | |
17268 | return NULL; | |
17269 | } | |
17270 | ||
17271 | ||
17272 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17273 | PyObject *resultobj; | |
17274 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17275 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17276 | PyObject * obj0 = 0 ; | |
17277 | PyObject * obj1 = 0 ; | |
17278 | char *kwnames[] = { | |
17279 | (char *) "self",(char *) "child", NULL | |
17280 | }; | |
17281 | ||
17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17287 | { | |
17288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17289 | (arg1)->base_RemoveChild(arg2); | |
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_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17302 | PyObject *resultobj; | |
17303 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17304 | bool result; | |
17305 | PyObject * obj0 = 0 ; | |
17306 | char *kwnames[] = { | |
17307 | (char *) "self", NULL | |
17308 | }; | |
17309 | ||
17310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17313 | { | |
17314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17315 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
17316 | ||
17317 | wxPyEndAllowThreads(__tstate); | |
17318 | if (PyErr_Occurred()) SWIG_fail; | |
17319 | } | |
17320 | { | |
17321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17322 | } | |
17323 | return resultobj; | |
17324 | fail: | |
17325 | return NULL; | |
17326 | } | |
17327 | ||
17328 | ||
17329 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17330 | PyObject *resultobj; | |
17331 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17332 | wxColour *arg2 = 0 ; | |
17333 | wxColour temp2 ; | |
17334 | PyObject * obj0 = 0 ; | |
17335 | PyObject * obj1 = 0 ; | |
17336 | char *kwnames[] = { | |
17337 | (char *) "self",(char *) "c", NULL | |
17338 | }; | |
17339 | ||
17340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17343 | { | |
17344 | arg2 = &temp2; | |
17345 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17346 | } | |
17347 | { | |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
17354 | Py_INCREF(Py_None); resultobj = Py_None; | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
17362 | PyObject *obj; | |
17363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17364 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
17365 | Py_INCREF(obj); | |
17366 | return Py_BuildValue((char *)""); | |
17367 | } | |
17368 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
17369 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
17370 | return 1; | |
17371 | } | |
17372 | ||
17373 | ||
17374 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
17375 | PyObject *pyobj; | |
17376 | ||
17377 | { | |
17378 | #if wxUSE_UNICODE | |
17379 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17380 | #else | |
17381 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17382 | #endif | |
17383 | } | |
17384 | return pyobj; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
17389 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
17390 | return 1; | |
17391 | } | |
17392 | ||
17393 | ||
17394 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
17395 | PyObject *pyobj; | |
17396 | ||
17397 | { | |
17398 | #if wxUSE_UNICODE | |
17399 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17400 | #else | |
17401 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17402 | #endif | |
17403 | } | |
17404 | return pyobj; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxPrintData *result; | |
17411 | char *kwnames[] = { | |
17412 | NULL | |
17413 | }; | |
17414 | ||
17415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
17416 | { | |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | result = (wxPrintData *)new wxPrintData(); | |
17419 | ||
17420 | wxPyEndAllowThreads(__tstate); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
17423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
17424 | return resultobj; | |
17425 | fail: | |
17426 | return NULL; | |
17427 | } | |
17428 | ||
17429 | ||
17430 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17431 | PyObject *resultobj; | |
17432 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17433 | PyObject * obj0 = 0 ; | |
17434 | char *kwnames[] = { | |
17435 | (char *) "self", NULL | |
17436 | }; | |
17437 | ||
17438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
17439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17441 | { | |
17442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17443 | delete arg1; | |
17444 | ||
17445 | wxPyEndAllowThreads(__tstate); | |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
17447 | } | |
17448 | Py_INCREF(Py_None); resultobj = Py_None; | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
17452 | } | |
17453 | ||
17454 | ||
17455 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17456 | PyObject *resultobj; | |
17457 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17458 | int result; | |
17459 | PyObject * obj0 = 0 ; | |
17460 | char *kwnames[] = { | |
17461 | (char *) "self", NULL | |
17462 | }; | |
17463 | ||
17464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
17465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17467 | { | |
17468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17469 | result = (int)(arg1)->GetNoCopies(); | |
17470 | ||
17471 | wxPyEndAllowThreads(__tstate); | |
17472 | if (PyErr_Occurred()) SWIG_fail; | |
17473 | } | |
17474 | resultobj = SWIG_FromInt((int)result); | |
17475 | return resultobj; | |
17476 | fail: | |
17477 | return NULL; | |
17478 | } | |
17479 | ||
17480 | ||
17481 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17482 | PyObject *resultobj; | |
17483 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17484 | bool result; | |
17485 | PyObject * obj0 = 0 ; | |
17486 | char *kwnames[] = { | |
17487 | (char *) "self", NULL | |
17488 | }; | |
17489 | ||
17490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
17491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17493 | { | |
17494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17495 | result = (bool)(arg1)->GetCollate(); | |
17496 | ||
17497 | wxPyEndAllowThreads(__tstate); | |
17498 | if (PyErr_Occurred()) SWIG_fail; | |
17499 | } | |
17500 | { | |
17501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17502 | } | |
17503 | return resultobj; | |
17504 | fail: | |
17505 | return NULL; | |
17506 | } | |
17507 | ||
17508 | ||
17509 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17510 | PyObject *resultobj; | |
17511 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17512 | int result; | |
17513 | PyObject * obj0 = 0 ; | |
17514 | char *kwnames[] = { | |
17515 | (char *) "self", NULL | |
17516 | }; | |
17517 | ||
17518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
17519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | result = (int)(arg1)->GetOrientation(); | |
17524 | ||
17525 | wxPyEndAllowThreads(__tstate); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
17528 | resultobj = SWIG_FromInt((int)result); | |
17529 | return resultobj; | |
17530 | fail: | |
17531 | return NULL; | |
17532 | } | |
17533 | ||
17534 | ||
17535 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17536 | PyObject *resultobj; | |
17537 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17538 | bool result; | |
17539 | PyObject * obj0 = 0 ; | |
17540 | char *kwnames[] = { | |
17541 | (char *) "self", NULL | |
17542 | }; | |
17543 | ||
17544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
17545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17547 | { | |
17548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17549 | result = (bool)(arg1)->Ok(); | |
17550 | ||
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | { | |
17555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17556 | } | |
17557 | return resultobj; | |
17558 | fail: | |
17559 | return NULL; | |
17560 | } | |
17561 | ||
17562 | ||
17563 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17564 | PyObject *resultobj; | |
17565 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17566 | wxString *result; | |
17567 | PyObject * obj0 = 0 ; | |
17568 | char *kwnames[] = { | |
17569 | (char *) "self", NULL | |
17570 | }; | |
17571 | ||
17572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
17573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17575 | { | |
17576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17577 | { | |
17578 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
17579 | result = (wxString *) &_result_ref; | |
17580 | } | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | { | |
17586 | #if wxUSE_UNICODE | |
17587 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17588 | #else | |
17589 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17590 | #endif | |
17591 | } | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
17595 | } | |
17596 | ||
17597 | ||
17598 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17599 | PyObject *resultobj; | |
17600 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17601 | bool result; | |
17602 | PyObject * obj0 = 0 ; | |
17603 | char *kwnames[] = { | |
17604 | (char *) "self", NULL | |
17605 | }; | |
17606 | ||
17607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
17608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17610 | { | |
17611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17612 | result = (bool)(arg1)->GetColour(); | |
17613 | ||
17614 | wxPyEndAllowThreads(__tstate); | |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
17616 | } | |
17617 | { | |
17618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17619 | } | |
17620 | return resultobj; | |
17621 | fail: | |
17622 | return NULL; | |
17623 | } | |
17624 | ||
17625 | ||
17626 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17627 | PyObject *resultobj; | |
17628 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17629 | int result; | |
17630 | PyObject * obj0 = 0 ; | |
17631 | char *kwnames[] = { | |
17632 | (char *) "self", NULL | |
17633 | }; | |
17634 | ||
17635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
17636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17638 | { | |
17639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17640 | result = (int)(arg1)->GetDuplex(); | |
17641 | ||
17642 | wxPyEndAllowThreads(__tstate); | |
17643 | if (PyErr_Occurred()) SWIG_fail; | |
17644 | } | |
17645 | resultobj = SWIG_FromInt((int)result); | |
17646 | return resultobj; | |
17647 | fail: | |
17648 | return NULL; | |
17649 | } | |
17650 | ||
17651 | ||
17652 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17653 | PyObject *resultobj; | |
17654 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17655 | int result; | |
17656 | PyObject * obj0 = 0 ; | |
17657 | char *kwnames[] = { | |
17658 | (char *) "self", NULL | |
17659 | }; | |
17660 | ||
17661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
17662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17664 | { | |
17665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17666 | result = (int)(arg1)->GetPaperId(); | |
17667 | ||
17668 | wxPyEndAllowThreads(__tstate); | |
17669 | if (PyErr_Occurred()) SWIG_fail; | |
17670 | } | |
17671 | resultobj = SWIG_FromInt((int)result); | |
17672 | return resultobj; | |
17673 | fail: | |
17674 | return NULL; | |
17675 | } | |
17676 | ||
17677 | ||
17678 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17679 | PyObject *resultobj; | |
17680 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17681 | wxSize *result; | |
17682 | PyObject * obj0 = 0 ; | |
17683 | char *kwnames[] = { | |
17684 | (char *) "self", NULL | |
17685 | }; | |
17686 | ||
17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
17688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17690 | { | |
17691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17692 | { | |
17693 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
17694 | result = (wxSize *) &_result_ref; | |
17695 | } | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
17701 | return resultobj; | |
17702 | fail: | |
17703 | return NULL; | |
17704 | } | |
17705 | ||
17706 | ||
17707 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17708 | PyObject *resultobj; | |
17709 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17710 | int result; | |
17711 | PyObject * obj0 = 0 ; | |
17712 | char *kwnames[] = { | |
17713 | (char *) "self", NULL | |
17714 | }; | |
17715 | ||
17716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
17717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | result = (int)(arg1)->GetQuality(); | |
17722 | ||
17723 | wxPyEndAllowThreads(__tstate); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
17726 | resultobj = SWIG_FromInt((int)result); | |
17727 | return resultobj; | |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
17733 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17734 | PyObject *resultobj; | |
17735 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17736 | int arg2 ; | |
17737 | PyObject * obj0 = 0 ; | |
17738 | PyObject * obj1 = 0 ; | |
17739 | char *kwnames[] = { | |
17740 | (char *) "self",(char *) "v", NULL | |
17741 | }; | |
17742 | ||
17743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
17744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17746 | arg2 = (int) SWIG_AsInt(obj1); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
17748 | { | |
17749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17750 | (arg1)->SetNoCopies(arg2); | |
17751 | ||
17752 | wxPyEndAllowThreads(__tstate); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | } | |
17755 | Py_INCREF(Py_None); resultobj = Py_None; | |
17756 | return resultobj; | |
17757 | fail: | |
17758 | return NULL; | |
17759 | } | |
17760 | ||
17761 | ||
17762 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17763 | PyObject *resultobj; | |
17764 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17765 | bool arg2 ; | |
17766 | PyObject * obj0 = 0 ; | |
17767 | PyObject * obj1 = 0 ; | |
17768 | char *kwnames[] = { | |
17769 | (char *) "self",(char *) "flag", NULL | |
17770 | }; | |
17771 | ||
17772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
17773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17775 | arg2 = (bool) SWIG_AsBool(obj1); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | { | |
17778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17779 | (arg1)->SetCollate(arg2); | |
17780 | ||
17781 | wxPyEndAllowThreads(__tstate); | |
17782 | if (PyErr_Occurred()) SWIG_fail; | |
17783 | } | |
17784 | Py_INCREF(Py_None); resultobj = Py_None; | |
17785 | return resultobj; | |
17786 | fail: | |
17787 | return NULL; | |
17788 | } | |
17789 | ||
17790 | ||
17791 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17792 | PyObject *resultobj; | |
17793 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17794 | int arg2 ; | |
17795 | PyObject * obj0 = 0 ; | |
17796 | PyObject * obj1 = 0 ; | |
17797 | char *kwnames[] = { | |
17798 | (char *) "self",(char *) "orient", NULL | |
17799 | }; | |
17800 | ||
17801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
17802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17804 | arg2 = (int) SWIG_AsInt(obj1); | |
17805 | if (PyErr_Occurred()) SWIG_fail; | |
17806 | { | |
17807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17808 | (arg1)->SetOrientation(arg2); | |
17809 | ||
17810 | wxPyEndAllowThreads(__tstate); | |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
17812 | } | |
17813 | Py_INCREF(Py_None); resultobj = Py_None; | |
17814 | return resultobj; | |
17815 | fail: | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
17820 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17821 | PyObject *resultobj; | |
17822 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17823 | wxString *arg2 = 0 ; | |
17824 | bool temp2 = False ; | |
17825 | PyObject * obj0 = 0 ; | |
17826 | PyObject * obj1 = 0 ; | |
17827 | char *kwnames[] = { | |
17828 | (char *) "self",(char *) "name", NULL | |
17829 | }; | |
17830 | ||
17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
17832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17834 | { | |
17835 | arg2 = wxString_in_helper(obj1); | |
17836 | if (arg2 == NULL) SWIG_fail; | |
17837 | temp2 = True; | |
17838 | } | |
17839 | { | |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | Py_INCREF(Py_None); resultobj = Py_None; | |
17847 | { | |
17848 | if (temp2) | |
17849 | delete arg2; | |
17850 | } | |
17851 | return resultobj; | |
17852 | fail: | |
17853 | { | |
17854 | if (temp2) | |
17855 | delete arg2; | |
17856 | } | |
17857 | return NULL; | |
17858 | } | |
17859 | ||
17860 | ||
17861 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17862 | PyObject *resultobj; | |
17863 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17864 | bool arg2 ; | |
17865 | PyObject * obj0 = 0 ; | |
17866 | PyObject * obj1 = 0 ; | |
17867 | char *kwnames[] = { | |
17868 | (char *) "self",(char *) "colour", NULL | |
17869 | }; | |
17870 | ||
17871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
17872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17874 | arg2 = (bool) SWIG_AsBool(obj1); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | { | |
17877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17878 | (arg1)->SetColour(arg2); | |
17879 | ||
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
17883 | Py_INCREF(Py_None); resultobj = Py_None; | |
17884 | return resultobj; | |
17885 | fail: | |
17886 | return NULL; | |
17887 | } | |
17888 | ||
17889 | ||
17890 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17891 | PyObject *resultobj; | |
17892 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17893 | int arg2 ; | |
17894 | PyObject * obj0 = 0 ; | |
17895 | PyObject * obj1 = 0 ; | |
17896 | char *kwnames[] = { | |
17897 | (char *) "self",(char *) "duplex", NULL | |
17898 | }; | |
17899 | ||
17900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
17901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17903 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
17904 | if (PyErr_Occurred()) SWIG_fail; | |
17905 | { | |
17906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17907 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
17912 | Py_INCREF(Py_None); resultobj = Py_None; | |
17913 | return resultobj; | |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
17919 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17920 | PyObject *resultobj; | |
17921 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17922 | int arg2 ; | |
17923 | PyObject * obj0 = 0 ; | |
17924 | PyObject * obj1 = 0 ; | |
17925 | char *kwnames[] = { | |
17926 | (char *) "self",(char *) "sizeId", NULL | |
17927 | }; | |
17928 | ||
17929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
17930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17932 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | { | |
17935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17936 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
17937 | ||
17938 | wxPyEndAllowThreads(__tstate); | |
17939 | if (PyErr_Occurred()) SWIG_fail; | |
17940 | } | |
17941 | Py_INCREF(Py_None); resultobj = Py_None; | |
17942 | return resultobj; | |
17943 | fail: | |
17944 | return NULL; | |
17945 | } | |
17946 | ||
17947 | ||
17948 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17949 | PyObject *resultobj; | |
17950 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17951 | wxSize *arg2 = 0 ; | |
17952 | wxSize temp2 ; | |
17953 | PyObject * obj0 = 0 ; | |
17954 | PyObject * obj1 = 0 ; | |
17955 | char *kwnames[] = { | |
17956 | (char *) "self",(char *) "sz", NULL | |
17957 | }; | |
17958 | ||
17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
17960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17962 | { | |
17963 | arg2 = &temp2; | |
17964 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17965 | } | |
17966 | { | |
17967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17968 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
17969 | ||
17970 | wxPyEndAllowThreads(__tstate); | |
17971 | if (PyErr_Occurred()) SWIG_fail; | |
17972 | } | |
17973 | Py_INCREF(Py_None); resultobj = Py_None; | |
17974 | return resultobj; | |
17975 | fail: | |
17976 | return NULL; | |
17977 | } | |
17978 | ||
17979 | ||
17980 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17981 | PyObject *resultobj; | |
17982 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17983 | int arg2 ; | |
17984 | PyObject * obj0 = 0 ; | |
17985 | PyObject * obj1 = 0 ; | |
17986 | char *kwnames[] = { | |
17987 | (char *) "self",(char *) "quality", NULL | |
17988 | }; | |
17989 | ||
17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
17991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17993 | arg2 = (int) SWIG_AsInt(obj1); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | (arg1)->SetQuality(arg2); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | Py_INCREF(Py_None); resultobj = Py_None; | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18012 | wxString *result; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | char *kwnames[] = { | |
18015 | (char *) "self", NULL | |
18016 | }; | |
18017 | ||
18018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18021 | { | |
18022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18023 | { | |
18024 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18025 | result = (wxString *) &_result_ref; | |
18026 | } | |
18027 | ||
18028 | wxPyEndAllowThreads(__tstate); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | { | |
18032 | #if wxUSE_UNICODE | |
18033 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18034 | #else | |
18035 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18036 | #endif | |
18037 | } | |
18038 | return resultobj; | |
18039 | fail: | |
18040 | return NULL; | |
18041 | } | |
18042 | ||
18043 | ||
18044 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18045 | PyObject *resultobj; | |
18046 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18047 | wxString *result; | |
18048 | PyObject * obj0 = 0 ; | |
18049 | char *kwnames[] = { | |
18050 | (char *) "self", NULL | |
18051 | }; | |
18052 | ||
18053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18056 | { | |
18057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18058 | { | |
18059 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18060 | result = (wxString *) &_result_ref; | |
18061 | } | |
18062 | ||
18063 | wxPyEndAllowThreads(__tstate); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | } | |
18066 | { | |
18067 | #if wxUSE_UNICODE | |
18068 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18069 | #else | |
18070 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18071 | #endif | |
18072 | } | |
18073 | return resultobj; | |
18074 | fail: | |
18075 | return NULL; | |
18076 | } | |
18077 | ||
18078 | ||
18079 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18080 | PyObject *resultobj; | |
18081 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18082 | wxString *result; | |
18083 | PyObject * obj0 = 0 ; | |
18084 | char *kwnames[] = { | |
18085 | (char *) "self", NULL | |
18086 | }; | |
18087 | ||
18088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18091 | { | |
18092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18093 | { | |
18094 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18095 | result = (wxString *) &_result_ref; | |
18096 | } | |
18097 | ||
18098 | wxPyEndAllowThreads(__tstate); | |
18099 | if (PyErr_Occurred()) SWIG_fail; | |
18100 | } | |
18101 | { | |
18102 | #if wxUSE_UNICODE | |
18103 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18104 | #else | |
18105 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18106 | #endif | |
18107 | } | |
18108 | return resultobj; | |
18109 | fail: | |
18110 | return NULL; | |
18111 | } | |
18112 | ||
18113 | ||
18114 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18115 | PyObject *resultobj; | |
18116 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18117 | wxString *result; | |
18118 | PyObject * obj0 = 0 ; | |
18119 | char *kwnames[] = { | |
18120 | (char *) "self", NULL | |
18121 | }; | |
18122 | ||
18123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18126 | { | |
18127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18128 | { | |
18129 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18130 | result = (wxString *) &_result_ref; | |
18131 | } | |
18132 | ||
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | { | |
18137 | #if wxUSE_UNICODE | |
18138 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18139 | #else | |
18140 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18141 | #endif | |
18142 | } | |
18143 | return resultobj; | |
18144 | fail: | |
18145 | return NULL; | |
18146 | } | |
18147 | ||
18148 | ||
18149 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18150 | PyObject *resultobj; | |
18151 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18152 | wxString *result; | |
18153 | PyObject * obj0 = 0 ; | |
18154 | char *kwnames[] = { | |
18155 | (char *) "self", NULL | |
18156 | }; | |
18157 | ||
18158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
18159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18161 | { | |
18162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18163 | { | |
18164 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
18165 | result = (wxString *) &_result_ref; | |
18166 | } | |
18167 | ||
18168 | wxPyEndAllowThreads(__tstate); | |
18169 | if (PyErr_Occurred()) SWIG_fail; | |
18170 | } | |
18171 | { | |
18172 | #if wxUSE_UNICODE | |
18173 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18174 | #else | |
18175 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18176 | #endif | |
18177 | } | |
18178 | return resultobj; | |
18179 | fail: | |
18180 | return NULL; | |
18181 | } | |
18182 | ||
18183 | ||
18184 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18185 | PyObject *resultobj; | |
18186 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18187 | double result; | |
18188 | PyObject * obj0 = 0 ; | |
18189 | char *kwnames[] = { | |
18190 | (char *) "self", NULL | |
18191 | }; | |
18192 | ||
18193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
18194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18196 | { | |
18197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18198 | result = (double)(arg1)->GetPrinterScaleX(); | |
18199 | ||
18200 | wxPyEndAllowThreads(__tstate); | |
18201 | if (PyErr_Occurred()) SWIG_fail; | |
18202 | } | |
18203 | resultobj = SWIG_FromDouble((double)result); | |
18204 | return resultobj; | |
18205 | fail: | |
18206 | return NULL; | |
18207 | } | |
18208 | ||
18209 | ||
18210 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18211 | PyObject *resultobj; | |
18212 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18213 | double result; | |
18214 | PyObject * obj0 = 0 ; | |
18215 | char *kwnames[] = { | |
18216 | (char *) "self", NULL | |
18217 | }; | |
18218 | ||
18219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
18220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18222 | { | |
18223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18224 | result = (double)(arg1)->GetPrinterScaleY(); | |
18225 | ||
18226 | wxPyEndAllowThreads(__tstate); | |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
18228 | } | |
18229 | resultobj = SWIG_FromDouble((double)result); | |
18230 | return resultobj; | |
18231 | fail: | |
18232 | return NULL; | |
18233 | } | |
18234 | ||
18235 | ||
18236 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18237 | PyObject *resultobj; | |
18238 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18239 | long result; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | char *kwnames[] = { | |
18242 | (char *) "self", NULL | |
18243 | }; | |
18244 | ||
18245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
18246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18248 | { | |
18249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18250 | result = (long)(arg1)->GetPrinterTranslateX(); | |
18251 | ||
18252 | wxPyEndAllowThreads(__tstate); | |
18253 | if (PyErr_Occurred()) SWIG_fail; | |
18254 | } | |
18255 | resultobj = SWIG_FromLong((long)result); | |
18256 | return resultobj; | |
18257 | fail: | |
18258 | return NULL; | |
18259 | } | |
18260 | ||
18261 | ||
18262 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18263 | PyObject *resultobj; | |
18264 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18265 | long result; | |
18266 | PyObject * obj0 = 0 ; | |
18267 | char *kwnames[] = { | |
18268 | (char *) "self", NULL | |
18269 | }; | |
18270 | ||
18271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
18272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18274 | { | |
18275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18276 | result = (long)(arg1)->GetPrinterTranslateY(); | |
18277 | ||
18278 | wxPyEndAllowThreads(__tstate); | |
18279 | if (PyErr_Occurred()) SWIG_fail; | |
18280 | } | |
18281 | resultobj = SWIG_FromLong((long)result); | |
18282 | return resultobj; | |
18283 | fail: | |
18284 | return NULL; | |
18285 | } | |
18286 | ||
18287 | ||
18288 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18289 | PyObject *resultobj; | |
18290 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18291 | int result; | |
18292 | PyObject * obj0 = 0 ; | |
18293 | char *kwnames[] = { | |
18294 | (char *) "self", NULL | |
18295 | }; | |
18296 | ||
18297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
18298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | result = (int)(arg1)->GetPrintMode(); | |
18303 | ||
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
18307 | resultobj = SWIG_FromInt((int)result); | |
18308 | return resultobj; | |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
18314 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18315 | PyObject *resultobj; | |
18316 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18317 | wxString *arg2 = 0 ; | |
18318 | bool temp2 = False ; | |
18319 | PyObject * obj0 = 0 ; | |
18320 | PyObject * obj1 = 0 ; | |
18321 | char *kwnames[] = { | |
18322 | (char *) "self",(char *) "command", NULL | |
18323 | }; | |
18324 | ||
18325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
18326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18328 | { | |
18329 | arg2 = wxString_in_helper(obj1); | |
18330 | if (arg2 == NULL) SWIG_fail; | |
18331 | temp2 = True; | |
18332 | } | |
18333 | { | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | Py_INCREF(Py_None); resultobj = Py_None; | |
18341 | { | |
18342 | if (temp2) | |
18343 | delete arg2; | |
18344 | } | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | { | |
18348 | if (temp2) | |
18349 | delete arg2; | |
18350 | } | |
18351 | return NULL; | |
18352 | } | |
18353 | ||
18354 | ||
18355 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18356 | PyObject *resultobj; | |
18357 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18358 | wxString *arg2 = 0 ; | |
18359 | bool temp2 = False ; | |
18360 | PyObject * obj0 = 0 ; | |
18361 | PyObject * obj1 = 0 ; | |
18362 | char *kwnames[] = { | |
18363 | (char *) "self",(char *) "options", NULL | |
18364 | }; | |
18365 | ||
18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
18367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18369 | { | |
18370 | arg2 = wxString_in_helper(obj1); | |
18371 | if (arg2 == NULL) SWIG_fail; | |
18372 | temp2 = True; | |
18373 | } | |
18374 | { | |
18375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18376 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
18377 | ||
18378 | wxPyEndAllowThreads(__tstate); | |
18379 | if (PyErr_Occurred()) SWIG_fail; | |
18380 | } | |
18381 | Py_INCREF(Py_None); resultobj = Py_None; | |
18382 | { | |
18383 | if (temp2) | |
18384 | delete arg2; | |
18385 | } | |
18386 | return resultobj; | |
18387 | fail: | |
18388 | { | |
18389 | if (temp2) | |
18390 | delete arg2; | |
18391 | } | |
18392 | return NULL; | |
18393 | } | |
18394 | ||
18395 | ||
18396 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18397 | PyObject *resultobj; | |
18398 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18399 | wxString *arg2 = 0 ; | |
18400 | bool temp2 = False ; | |
18401 | PyObject * obj0 = 0 ; | |
18402 | PyObject * obj1 = 0 ; | |
18403 | char *kwnames[] = { | |
18404 | (char *) "self",(char *) "command", NULL | |
18405 | }; | |
18406 | ||
18407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
18408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18410 | { | |
18411 | arg2 = wxString_in_helper(obj1); | |
18412 | if (arg2 == NULL) SWIG_fail; | |
18413 | temp2 = True; | |
18414 | } | |
18415 | { | |
18416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18417 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
18418 | ||
18419 | wxPyEndAllowThreads(__tstate); | |
18420 | if (PyErr_Occurred()) SWIG_fail; | |
18421 | } | |
18422 | Py_INCREF(Py_None); resultobj = Py_None; | |
18423 | { | |
18424 | if (temp2) | |
18425 | delete arg2; | |
18426 | } | |
18427 | return resultobj; | |
18428 | fail: | |
18429 | { | |
18430 | if (temp2) | |
18431 | delete arg2; | |
18432 | } | |
18433 | return NULL; | |
18434 | } | |
18435 | ||
18436 | ||
18437 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18438 | PyObject *resultobj; | |
18439 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18440 | wxString *arg2 = 0 ; | |
18441 | bool temp2 = False ; | |
18442 | PyObject * obj0 = 0 ; | |
18443 | PyObject * obj1 = 0 ; | |
18444 | char *kwnames[] = { | |
18445 | (char *) "self",(char *) "filename", NULL | |
18446 | }; | |
18447 | ||
18448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
18449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18451 | { | |
18452 | arg2 = wxString_in_helper(obj1); | |
18453 | if (arg2 == NULL) SWIG_fail; | |
18454 | temp2 = True; | |
18455 | } | |
18456 | { | |
18457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18458 | (arg1)->SetFilename((wxString const &)*arg2); | |
18459 | ||
18460 | wxPyEndAllowThreads(__tstate); | |
18461 | if (PyErr_Occurred()) SWIG_fail; | |
18462 | } | |
18463 | Py_INCREF(Py_None); resultobj = Py_None; | |
18464 | { | |
18465 | if (temp2) | |
18466 | delete arg2; | |
18467 | } | |
18468 | return resultobj; | |
18469 | fail: | |
18470 | { | |
18471 | if (temp2) | |
18472 | delete arg2; | |
18473 | } | |
18474 | return NULL; | |
18475 | } | |
18476 | ||
18477 | ||
18478 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18479 | PyObject *resultobj; | |
18480 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18481 | wxString *arg2 = 0 ; | |
18482 | bool temp2 = False ; | |
18483 | PyObject * obj0 = 0 ; | |
18484 | PyObject * obj1 = 0 ; | |
18485 | char *kwnames[] = { | |
18486 | (char *) "self",(char *) "path", NULL | |
18487 | }; | |
18488 | ||
18489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
18490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18492 | { | |
18493 | arg2 = wxString_in_helper(obj1); | |
18494 | if (arg2 == NULL) SWIG_fail; | |
18495 | temp2 = True; | |
18496 | } | |
18497 | { | |
18498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18499 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
18500 | ||
18501 | wxPyEndAllowThreads(__tstate); | |
18502 | if (PyErr_Occurred()) SWIG_fail; | |
18503 | } | |
18504 | Py_INCREF(Py_None); resultobj = Py_None; | |
18505 | { | |
18506 | if (temp2) | |
18507 | delete arg2; | |
18508 | } | |
18509 | return resultobj; | |
18510 | fail: | |
18511 | { | |
18512 | if (temp2) | |
18513 | delete arg2; | |
18514 | } | |
18515 | return NULL; | |
18516 | } | |
18517 | ||
18518 | ||
18519 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18520 | PyObject *resultobj; | |
18521 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18522 | double arg2 ; | |
18523 | PyObject * obj0 = 0 ; | |
18524 | PyObject * obj1 = 0 ; | |
18525 | char *kwnames[] = { | |
18526 | (char *) "self",(char *) "x", NULL | |
18527 | }; | |
18528 | ||
18529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
18530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18532 | arg2 = (double) SWIG_AsDouble(obj1); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | (arg1)->SetPrinterScaleX(arg2); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | Py_INCREF(Py_None); resultobj = Py_None; | |
18542 | return resultobj; | |
18543 | fail: | |
18544 | return NULL; | |
18545 | } | |
18546 | ||
18547 | ||
18548 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18549 | PyObject *resultobj; | |
18550 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18551 | double arg2 ; | |
18552 | PyObject * obj0 = 0 ; | |
18553 | PyObject * obj1 = 0 ; | |
18554 | char *kwnames[] = { | |
18555 | (char *) "self",(char *) "y", NULL | |
18556 | }; | |
18557 | ||
18558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
18559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18561 | arg2 = (double) SWIG_AsDouble(obj1); | |
18562 | if (PyErr_Occurred()) SWIG_fail; | |
18563 | { | |
18564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18565 | (arg1)->SetPrinterScaleY(arg2); | |
18566 | ||
18567 | wxPyEndAllowThreads(__tstate); | |
18568 | if (PyErr_Occurred()) SWIG_fail; | |
18569 | } | |
18570 | Py_INCREF(Py_None); resultobj = Py_None; | |
18571 | return resultobj; | |
18572 | fail: | |
18573 | return NULL; | |
18574 | } | |
18575 | ||
18576 | ||
18577 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18578 | PyObject *resultobj; | |
18579 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18580 | double arg2 ; | |
18581 | double arg3 ; | |
18582 | PyObject * obj0 = 0 ; | |
18583 | PyObject * obj1 = 0 ; | |
18584 | PyObject * obj2 = 0 ; | |
18585 | char *kwnames[] = { | |
18586 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18587 | }; | |
18588 | ||
18589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18592 | arg2 = (double) SWIG_AsDouble(obj1); | |
18593 | if (PyErr_Occurred()) SWIG_fail; | |
18594 | arg3 = (double) SWIG_AsDouble(obj2); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | { | |
18597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18598 | (arg1)->SetPrinterScaling(arg2,arg3); | |
18599 | ||
18600 | wxPyEndAllowThreads(__tstate); | |
18601 | if (PyErr_Occurred()) SWIG_fail; | |
18602 | } | |
18603 | Py_INCREF(Py_None); resultobj = Py_None; | |
18604 | return resultobj; | |
18605 | fail: | |
18606 | return NULL; | |
18607 | } | |
18608 | ||
18609 | ||
18610 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18611 | PyObject *resultobj; | |
18612 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18613 | long arg2 ; | |
18614 | PyObject * obj0 = 0 ; | |
18615 | PyObject * obj1 = 0 ; | |
18616 | char *kwnames[] = { | |
18617 | (char *) "self",(char *) "x", NULL | |
18618 | }; | |
18619 | ||
18620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
18621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18623 | arg2 = (long) SWIG_AsLong(obj1); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | { | |
18626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18627 | (arg1)->SetPrinterTranslateX(arg2); | |
18628 | ||
18629 | wxPyEndAllowThreads(__tstate); | |
18630 | if (PyErr_Occurred()) SWIG_fail; | |
18631 | } | |
18632 | Py_INCREF(Py_None); resultobj = Py_None; | |
18633 | return resultobj; | |
18634 | fail: | |
18635 | return NULL; | |
18636 | } | |
18637 | ||
18638 | ||
18639 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18640 | PyObject *resultobj; | |
18641 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18642 | long arg2 ; | |
18643 | PyObject * obj0 = 0 ; | |
18644 | PyObject * obj1 = 0 ; | |
18645 | char *kwnames[] = { | |
18646 | (char *) "self",(char *) "y", NULL | |
18647 | }; | |
18648 | ||
18649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
18650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18652 | arg2 = (long) SWIG_AsLong(obj1); | |
18653 | if (PyErr_Occurred()) SWIG_fail; | |
18654 | { | |
18655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18656 | (arg1)->SetPrinterTranslateY(arg2); | |
18657 | ||
18658 | wxPyEndAllowThreads(__tstate); | |
18659 | if (PyErr_Occurred()) SWIG_fail; | |
18660 | } | |
18661 | Py_INCREF(Py_None); resultobj = Py_None; | |
18662 | return resultobj; | |
18663 | fail: | |
18664 | return NULL; | |
18665 | } | |
18666 | ||
18667 | ||
18668 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18669 | PyObject *resultobj; | |
18670 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18671 | long arg2 ; | |
18672 | long arg3 ; | |
18673 | PyObject * obj0 = 0 ; | |
18674 | PyObject * obj1 = 0 ; | |
18675 | PyObject * obj2 = 0 ; | |
18676 | char *kwnames[] = { | |
18677 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18678 | }; | |
18679 | ||
18680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18683 | arg2 = (long) SWIG_AsLong(obj1); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | arg3 = (long) SWIG_AsLong(obj2); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | { | |
18688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18689 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
18690 | ||
18691 | wxPyEndAllowThreads(__tstate); | |
18692 | if (PyErr_Occurred()) SWIG_fail; | |
18693 | } | |
18694 | Py_INCREF(Py_None); resultobj = Py_None; | |
18695 | return resultobj; | |
18696 | fail: | |
18697 | return NULL; | |
18698 | } | |
18699 | ||
18700 | ||
18701 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18702 | PyObject *resultobj; | |
18703 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18704 | int arg2 ; | |
18705 | PyObject * obj0 = 0 ; | |
18706 | PyObject * obj1 = 0 ; | |
18707 | char *kwnames[] = { | |
18708 | (char *) "self",(char *) "printMode", NULL | |
18709 | }; | |
18710 | ||
18711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
18712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18714 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
18715 | if (PyErr_Occurred()) SWIG_fail; | |
18716 | { | |
18717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18718 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
18719 | ||
18720 | wxPyEndAllowThreads(__tstate); | |
18721 | if (PyErr_Occurred()) SWIG_fail; | |
18722 | } | |
18723 | Py_INCREF(Py_None); resultobj = Py_None; | |
18724 | return resultobj; | |
18725 | fail: | |
18726 | return NULL; | |
18727 | } | |
18728 | ||
18729 | ||
18730 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18731 | PyObject *resultobj; | |
18732 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18733 | wxOutputStream *result; | |
18734 | PyObject * obj0 = 0 ; | |
18735 | char *kwnames[] = { | |
18736 | (char *) "self", NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
18740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18742 | { | |
18743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18744 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
18745 | ||
18746 | wxPyEndAllowThreads(__tstate); | |
18747 | if (PyErr_Occurred()) SWIG_fail; | |
18748 | } | |
18749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
18756 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18757 | PyObject *resultobj; | |
18758 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18759 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
18760 | PyObject * obj0 = 0 ; | |
18761 | PyObject * obj1 = 0 ; | |
18762 | char *kwnames[] = { | |
18763 | (char *) "self",(char *) "outputstream", NULL | |
18764 | }; | |
18765 | ||
18766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
18767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
18770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18771 | { | |
18772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18773 | (arg1)->SetOutputStream(arg2); | |
18774 | ||
18775 | wxPyEndAllowThreads(__tstate); | |
18776 | if (PyErr_Occurred()) SWIG_fail; | |
18777 | } | |
18778 | Py_INCREF(Py_None); resultobj = Py_None; | |
18779 | return resultobj; | |
18780 | fail: | |
18781 | return NULL; | |
18782 | } | |
18783 | ||
18784 | ||
18785 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
18786 | PyObject *obj; | |
18787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18788 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
18789 | Py_INCREF(obj); | |
18790 | return Py_BuildValue((char *)""); | |
18791 | } | |
18792 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18793 | PyObject *resultobj; | |
18794 | wxPageSetupDialogData *result; | |
18795 | char *kwnames[] = { | |
18796 | NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
18800 | { | |
18801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18802 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
18803 | ||
18804 | wxPyEndAllowThreads(__tstate); | |
18805 | if (PyErr_Occurred()) SWIG_fail; | |
18806 | } | |
18807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
18808 | return resultobj; | |
18809 | fail: | |
18810 | return NULL; | |
18811 | } | |
18812 | ||
18813 | ||
18814 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18815 | PyObject *resultobj; | |
18816 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18817 | PyObject * obj0 = 0 ; | |
18818 | char *kwnames[] = { | |
18819 | (char *) "self", NULL | |
18820 | }; | |
18821 | ||
18822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
18823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18825 | { | |
18826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18827 | delete arg1; | |
18828 | ||
18829 | wxPyEndAllowThreads(__tstate); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
18832 | Py_INCREF(Py_None); resultobj = Py_None; | |
18833 | return resultobj; | |
18834 | fail: | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
18839 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj; | |
18841 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18842 | bool arg2 ; | |
18843 | PyObject * obj0 = 0 ; | |
18844 | PyObject * obj1 = 0 ; | |
18845 | char *kwnames[] = { | |
18846 | (char *) "self",(char *) "flag", NULL | |
18847 | }; | |
18848 | ||
18849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
18850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18852 | arg2 = (bool) SWIG_AsBool(obj1); | |
18853 | if (PyErr_Occurred()) SWIG_fail; | |
18854 | { | |
18855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18856 | (arg1)->EnableHelp(arg2); | |
18857 | ||
18858 | wxPyEndAllowThreads(__tstate); | |
18859 | if (PyErr_Occurred()) SWIG_fail; | |
18860 | } | |
18861 | Py_INCREF(Py_None); resultobj = Py_None; | |
18862 | return resultobj; | |
18863 | fail: | |
18864 | return NULL; | |
18865 | } | |
18866 | ||
18867 | ||
18868 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18869 | PyObject *resultobj; | |
18870 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18871 | bool arg2 ; | |
18872 | PyObject * obj0 = 0 ; | |
18873 | PyObject * obj1 = 0 ; | |
18874 | char *kwnames[] = { | |
18875 | (char *) "self",(char *) "flag", NULL | |
18876 | }; | |
18877 | ||
18878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
18879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18881 | arg2 = (bool) SWIG_AsBool(obj1); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | { | |
18884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18885 | (arg1)->EnableMargins(arg2); | |
18886 | ||
18887 | wxPyEndAllowThreads(__tstate); | |
18888 | if (PyErr_Occurred()) SWIG_fail; | |
18889 | } | |
18890 | Py_INCREF(Py_None); resultobj = Py_None; | |
18891 | return resultobj; | |
18892 | fail: | |
18893 | return NULL; | |
18894 | } | |
18895 | ||
18896 | ||
18897 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18898 | PyObject *resultobj; | |
18899 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18900 | bool arg2 ; | |
18901 | PyObject * obj0 = 0 ; | |
18902 | PyObject * obj1 = 0 ; | |
18903 | char *kwnames[] = { | |
18904 | (char *) "self",(char *) "flag", NULL | |
18905 | }; | |
18906 | ||
18907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18910 | arg2 = (bool) SWIG_AsBool(obj1); | |
18911 | if (PyErr_Occurred()) SWIG_fail; | |
18912 | { | |
18913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18914 | (arg1)->EnableOrientation(arg2); | |
18915 | ||
18916 | wxPyEndAllowThreads(__tstate); | |
18917 | if (PyErr_Occurred()) SWIG_fail; | |
18918 | } | |
18919 | Py_INCREF(Py_None); resultobj = Py_None; | |
18920 | return resultobj; | |
18921 | fail: | |
18922 | return NULL; | |
18923 | } | |
18924 | ||
18925 | ||
18926 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18927 | PyObject *resultobj; | |
18928 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18929 | bool arg2 ; | |
18930 | PyObject * obj0 = 0 ; | |
18931 | PyObject * obj1 = 0 ; | |
18932 | char *kwnames[] = { | |
18933 | (char *) "self",(char *) "flag", NULL | |
18934 | }; | |
18935 | ||
18936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
18937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18939 | arg2 = (bool) SWIG_AsBool(obj1); | |
18940 | if (PyErr_Occurred()) SWIG_fail; | |
18941 | { | |
18942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18943 | (arg1)->EnablePaper(arg2); | |
18944 | ||
18945 | wxPyEndAllowThreads(__tstate); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | Py_INCREF(Py_None); resultobj = Py_None; | |
18949 | return resultobj; | |
18950 | fail: | |
18951 | return NULL; | |
18952 | } | |
18953 | ||
18954 | ||
18955 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18956 | PyObject *resultobj; | |
18957 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18958 | bool arg2 ; | |
18959 | PyObject * obj0 = 0 ; | |
18960 | PyObject * obj1 = 0 ; | |
18961 | char *kwnames[] = { | |
18962 | (char *) "self",(char *) "flag", NULL | |
18963 | }; | |
18964 | ||
18965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
18966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18968 | arg2 = (bool) SWIG_AsBool(obj1); | |
18969 | if (PyErr_Occurred()) SWIG_fail; | |
18970 | { | |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | (arg1)->EnablePrinter(arg2); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | Py_INCREF(Py_None); resultobj = Py_None; | |
18978 | return resultobj; | |
18979 | fail: | |
18980 | return NULL; | |
18981 | } | |
18982 | ||
18983 | ||
18984 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18985 | PyObject *resultobj; | |
18986 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18987 | bool result; | |
18988 | PyObject * obj0 = 0 ; | |
18989 | char *kwnames[] = { | |
18990 | (char *) "self", NULL | |
18991 | }; | |
18992 | ||
18993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
18994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
18995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18996 | { | |
18997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18998 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
18999 | ||
19000 | wxPyEndAllowThreads(__tstate); | |
19001 | if (PyErr_Occurred()) SWIG_fail; | |
19002 | } | |
19003 | { | |
19004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19005 | } | |
19006 | return resultobj; | |
19007 | fail: | |
19008 | return NULL; | |
19009 | } | |
19010 | ||
19011 | ||
19012 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19013 | PyObject *resultobj; | |
19014 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19015 | bool result; | |
19016 | PyObject * obj0 = 0 ; | |
19017 | char *kwnames[] = { | |
19018 | (char *) "self", NULL | |
19019 | }; | |
19020 | ||
19021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19024 | { | |
19025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19026 | result = (bool)(arg1)->GetEnableMargins(); | |
19027 | ||
19028 | wxPyEndAllowThreads(__tstate); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | } | |
19031 | { | |
19032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19033 | } | |
19034 | return resultobj; | |
19035 | fail: | |
19036 | return NULL; | |
19037 | } | |
19038 | ||
19039 | ||
19040 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19041 | PyObject *resultobj; | |
19042 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19043 | bool result; | |
19044 | PyObject * obj0 = 0 ; | |
19045 | char *kwnames[] = { | |
19046 | (char *) "self", NULL | |
19047 | }; | |
19048 | ||
19049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19052 | { | |
19053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19054 | result = (bool)(arg1)->GetEnableOrientation(); | |
19055 | ||
19056 | wxPyEndAllowThreads(__tstate); | |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
19058 | } | |
19059 | { | |
19060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19061 | } | |
19062 | return resultobj; | |
19063 | fail: | |
19064 | return NULL; | |
19065 | } | |
19066 | ||
19067 | ||
19068 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19069 | PyObject *resultobj; | |
19070 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19071 | bool result; | |
19072 | PyObject * obj0 = 0 ; | |
19073 | char *kwnames[] = { | |
19074 | (char *) "self", NULL | |
19075 | }; | |
19076 | ||
19077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19080 | { | |
19081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19082 | result = (bool)(arg1)->GetEnablePaper(); | |
19083 | ||
19084 | wxPyEndAllowThreads(__tstate); | |
19085 | if (PyErr_Occurred()) SWIG_fail; | |
19086 | } | |
19087 | { | |
19088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19089 | } | |
19090 | return resultobj; | |
19091 | fail: | |
19092 | return NULL; | |
19093 | } | |
19094 | ||
19095 | ||
19096 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19097 | PyObject *resultobj; | |
19098 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19099 | bool result; | |
19100 | PyObject * obj0 = 0 ; | |
19101 | char *kwnames[] = { | |
19102 | (char *) "self", NULL | |
19103 | }; | |
19104 | ||
19105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
19106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19108 | { | |
19109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19110 | result = (bool)(arg1)->GetEnablePrinter(); | |
19111 | ||
19112 | wxPyEndAllowThreads(__tstate); | |
19113 | if (PyErr_Occurred()) SWIG_fail; | |
19114 | } | |
19115 | { | |
19116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19117 | } | |
19118 | return resultobj; | |
19119 | fail: | |
19120 | return NULL; | |
19121 | } | |
19122 | ||
19123 | ||
19124 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19125 | PyObject *resultobj; | |
19126 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19127 | bool result; | |
19128 | PyObject * obj0 = 0 ; | |
19129 | char *kwnames[] = { | |
19130 | (char *) "self", NULL | |
19131 | }; | |
19132 | ||
19133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19136 | { | |
19137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19138 | result = (bool)(arg1)->GetEnableHelp(); | |
19139 | ||
19140 | wxPyEndAllowThreads(__tstate); | |
19141 | if (PyErr_Occurred()) SWIG_fail; | |
19142 | } | |
19143 | { | |
19144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19145 | } | |
19146 | return resultobj; | |
19147 | fail: | |
19148 | return NULL; | |
19149 | } | |
19150 | ||
19151 | ||
19152 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19153 | PyObject *resultobj; | |
19154 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19155 | bool result; | |
19156 | PyObject * obj0 = 0 ; | |
19157 | char *kwnames[] = { | |
19158 | (char *) "self", NULL | |
19159 | }; | |
19160 | ||
19161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
19162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19164 | { | |
19165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19166 | result = (bool)(arg1)->GetDefaultInfo(); | |
19167 | ||
19168 | wxPyEndAllowThreads(__tstate); | |
19169 | if (PyErr_Occurred()) SWIG_fail; | |
19170 | } | |
19171 | { | |
19172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19173 | } | |
19174 | return resultobj; | |
19175 | fail: | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19183 | wxPoint result; | |
19184 | PyObject * obj0 = 0 ; | |
19185 | char *kwnames[] = { | |
19186 | (char *) "self", NULL | |
19187 | }; | |
19188 | ||
19189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
19190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | result = (arg1)->GetMarginTopLeft(); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
19199 | { | |
19200 | wxPoint * resultptr; | |
19201 | resultptr = new wxPoint((wxPoint &) result); | |
19202 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19203 | } | |
19204 | return resultobj; | |
19205 | fail: | |
19206 | return NULL; | |
19207 | } | |
19208 | ||
19209 | ||
19210 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19211 | PyObject *resultobj; | |
19212 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19213 | wxPoint result; | |
19214 | PyObject * obj0 = 0 ; | |
19215 | char *kwnames[] = { | |
19216 | (char *) "self", NULL | |
19217 | }; | |
19218 | ||
19219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
19220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | result = (arg1)->GetMarginBottomRight(); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | { | |
19230 | wxPoint * resultptr; | |
19231 | resultptr = new wxPoint((wxPoint &) result); | |
19232 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19233 | } | |
19234 | return resultobj; | |
19235 | fail: | |
19236 | return NULL; | |
19237 | } | |
19238 | ||
19239 | ||
19240 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19241 | PyObject *resultobj; | |
19242 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19243 | wxPoint result; | |
19244 | PyObject * obj0 = 0 ; | |
19245 | char *kwnames[] = { | |
19246 | (char *) "self", NULL | |
19247 | }; | |
19248 | ||
19249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
19250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19252 | { | |
19253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19254 | result = (arg1)->GetMinMarginTopLeft(); | |
19255 | ||
19256 | wxPyEndAllowThreads(__tstate); | |
19257 | if (PyErr_Occurred()) SWIG_fail; | |
19258 | } | |
19259 | { | |
19260 | wxPoint * resultptr; | |
19261 | resultptr = new wxPoint((wxPoint &) result); | |
19262 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19263 | } | |
19264 | return resultobj; | |
19265 | fail: | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj; | |
19272 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19273 | wxPoint result; | |
19274 | PyObject * obj0 = 0 ; | |
19275 | char *kwnames[] = { | |
19276 | (char *) "self", NULL | |
19277 | }; | |
19278 | ||
19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
19280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19282 | { | |
19283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19284 | result = (arg1)->GetMinMarginBottomRight(); | |
19285 | ||
19286 | wxPyEndAllowThreads(__tstate); | |
19287 | if (PyErr_Occurred()) SWIG_fail; | |
19288 | } | |
19289 | { | |
19290 | wxPoint * resultptr; | |
19291 | resultptr = new wxPoint((wxPoint &) result); | |
19292 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19293 | } | |
19294 | return resultobj; | |
19295 | fail: | |
19296 | return NULL; | |
19297 | } | |
19298 | ||
19299 | ||
19300 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19301 | PyObject *resultobj; | |
19302 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19303 | int result; | |
19304 | PyObject * obj0 = 0 ; | |
19305 | char *kwnames[] = { | |
19306 | (char *) "self", NULL | |
19307 | }; | |
19308 | ||
19309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
19310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19312 | { | |
19313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19314 | result = (int)(arg1)->GetPaperId(); | |
19315 | ||
19316 | wxPyEndAllowThreads(__tstate); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
19319 | resultobj = SWIG_FromInt((int)result); | |
19320 | return resultobj; | |
19321 | fail: | |
19322 | return NULL; | |
19323 | } | |
19324 | ||
19325 | ||
19326 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19327 | PyObject *resultobj; | |
19328 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19329 | wxSize result; | |
19330 | PyObject * obj0 = 0 ; | |
19331 | char *kwnames[] = { | |
19332 | (char *) "self", NULL | |
19333 | }; | |
19334 | ||
19335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
19336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19338 | { | |
19339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19340 | result = (arg1)->GetPaperSize(); | |
19341 | ||
19342 | wxPyEndAllowThreads(__tstate); | |
19343 | if (PyErr_Occurred()) SWIG_fail; | |
19344 | } | |
19345 | { | |
19346 | wxSize * resultptr; | |
19347 | resultptr = new wxSize((wxSize &) result); | |
19348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
19349 | } | |
19350 | return resultobj; | |
19351 | fail: | |
19352 | return NULL; | |
19353 | } | |
19354 | ||
19355 | ||
19356 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19357 | PyObject *resultobj; | |
19358 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19359 | wxPrintData *result; | |
19360 | PyObject * obj0 = 0 ; | |
19361 | char *kwnames[] = { | |
19362 | (char *) "self", NULL | |
19363 | }; | |
19364 | ||
19365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19368 | { | |
19369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19370 | { | |
19371 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19372 | result = (wxPrintData *) &_result_ref; | |
19373 | } | |
19374 | ||
19375 | wxPyEndAllowThreads(__tstate); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
19379 | return resultobj; | |
19380 | fail: | |
19381 | return NULL; | |
19382 | } | |
19383 | ||
19384 | ||
19385 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19386 | PyObject *resultobj; | |
19387 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19388 | bool result; | |
19389 | PyObject * obj0 = 0 ; | |
19390 | char *kwnames[] = { | |
19391 | (char *) "self", NULL | |
19392 | }; | |
19393 | ||
19394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
19395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19397 | { | |
19398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19399 | result = (bool)(arg1)->Ok(); | |
19400 | ||
19401 | wxPyEndAllowThreads(__tstate); | |
19402 | if (PyErr_Occurred()) SWIG_fail; | |
19403 | } | |
19404 | { | |
19405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19406 | } | |
19407 | return resultobj; | |
19408 | fail: | |
19409 | return NULL; | |
19410 | } | |
19411 | ||
19412 | ||
19413 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19414 | PyObject *resultobj; | |
19415 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19416 | bool arg2 ; | |
19417 | PyObject * obj0 = 0 ; | |
19418 | PyObject * obj1 = 0 ; | |
19419 | char *kwnames[] = { | |
19420 | (char *) "self",(char *) "flag", NULL | |
19421 | }; | |
19422 | ||
19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
19424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19426 | arg2 = (bool) SWIG_AsBool(obj1); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
19428 | { | |
19429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19430 | (arg1)->SetDefaultInfo(arg2); | |
19431 | ||
19432 | wxPyEndAllowThreads(__tstate); | |
19433 | if (PyErr_Occurred()) SWIG_fail; | |
19434 | } | |
19435 | Py_INCREF(Py_None); resultobj = Py_None; | |
19436 | return resultobj; | |
19437 | fail: | |
19438 | return NULL; | |
19439 | } | |
19440 | ||
19441 | ||
19442 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19443 | PyObject *resultobj; | |
19444 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19445 | bool arg2 ; | |
19446 | PyObject * obj0 = 0 ; | |
19447 | PyObject * obj1 = 0 ; | |
19448 | char *kwnames[] = { | |
19449 | (char *) "self",(char *) "flag", NULL | |
19450 | }; | |
19451 | ||
19452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
19453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19455 | arg2 = (bool) SWIG_AsBool(obj1); | |
19456 | if (PyErr_Occurred()) SWIG_fail; | |
19457 | { | |
19458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19459 | (arg1)->SetDefaultMinMargins(arg2); | |
19460 | ||
19461 | wxPyEndAllowThreads(__tstate); | |
19462 | if (PyErr_Occurred()) SWIG_fail; | |
19463 | } | |
19464 | Py_INCREF(Py_None); resultobj = Py_None; | |
19465 | return resultobj; | |
19466 | fail: | |
19467 | return NULL; | |
19468 | } | |
19469 | ||
19470 | ||
19471 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19472 | PyObject *resultobj; | |
19473 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19474 | wxPoint *arg2 = 0 ; | |
19475 | wxPoint temp2 ; | |
19476 | PyObject * obj0 = 0 ; | |
19477 | PyObject * obj1 = 0 ; | |
19478 | char *kwnames[] = { | |
19479 | (char *) "self",(char *) "pt", NULL | |
19480 | }; | |
19481 | ||
19482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19485 | { | |
19486 | arg2 = &temp2; | |
19487 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19488 | } | |
19489 | { | |
19490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19491 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
19492 | ||
19493 | wxPyEndAllowThreads(__tstate); | |
19494 | if (PyErr_Occurred()) SWIG_fail; | |
19495 | } | |
19496 | Py_INCREF(Py_None); resultobj = Py_None; | |
19497 | return resultobj; | |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19504 | PyObject *resultobj; | |
19505 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19506 | wxPoint *arg2 = 0 ; | |
19507 | wxPoint temp2 ; | |
19508 | PyObject * obj0 = 0 ; | |
19509 | PyObject * obj1 = 0 ; | |
19510 | char *kwnames[] = { | |
19511 | (char *) "self",(char *) "pt", NULL | |
19512 | }; | |
19513 | ||
19514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19517 | { | |
19518 | arg2 = &temp2; | |
19519 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19520 | } | |
19521 | { | |
19522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19523 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
19524 | ||
19525 | wxPyEndAllowThreads(__tstate); | |
19526 | if (PyErr_Occurred()) SWIG_fail; | |
19527 | } | |
19528 | Py_INCREF(Py_None); resultobj = Py_None; | |
19529 | return resultobj; | |
19530 | fail: | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
19535 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19536 | PyObject *resultobj; | |
19537 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19538 | wxPoint *arg2 = 0 ; | |
19539 | wxPoint temp2 ; | |
19540 | PyObject * obj0 = 0 ; | |
19541 | PyObject * obj1 = 0 ; | |
19542 | char *kwnames[] = { | |
19543 | (char *) "self",(char *) "pt", NULL | |
19544 | }; | |
19545 | ||
19546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19549 | { | |
19550 | arg2 = &temp2; | |
19551 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19552 | } | |
19553 | { | |
19554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19555 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
19556 | ||
19557 | wxPyEndAllowThreads(__tstate); | |
19558 | if (PyErr_Occurred()) SWIG_fail; | |
19559 | } | |
19560 | Py_INCREF(Py_None); resultobj = Py_None; | |
19561 | return resultobj; | |
19562 | fail: | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj; | |
19569 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19570 | wxPoint *arg2 = 0 ; | |
19571 | wxPoint temp2 ; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | PyObject * obj1 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self",(char *) "pt", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19581 | { | |
19582 | arg2 = &temp2; | |
19583 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19584 | } | |
19585 | { | |
19586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19587 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
19588 | ||
19589 | wxPyEndAllowThreads(__tstate); | |
19590 | if (PyErr_Occurred()) SWIG_fail; | |
19591 | } | |
19592 | Py_INCREF(Py_None); resultobj = Py_None; | |
19593 | return resultobj; | |
19594 | fail: | |
19595 | return NULL; | |
19596 | } | |
19597 | ||
19598 | ||
19599 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19600 | PyObject *resultobj; | |
19601 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19602 | int arg2 ; | |
19603 | PyObject * obj0 = 0 ; | |
19604 | PyObject * obj1 = 0 ; | |
19605 | char *kwnames[] = { | |
19606 | (char *) "self",(char *) "id", NULL | |
19607 | }; | |
19608 | ||
19609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
19610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19612 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | { | |
19615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19616 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
19617 | ||
19618 | wxPyEndAllowThreads(__tstate); | |
19619 | if (PyErr_Occurred()) SWIG_fail; | |
19620 | } | |
19621 | Py_INCREF(Py_None); resultobj = Py_None; | |
19622 | return resultobj; | |
19623 | fail: | |
19624 | return NULL; | |
19625 | } | |
19626 | ||
19627 | ||
19628 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19629 | PyObject *resultobj; | |
19630 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19631 | wxSize *arg2 = 0 ; | |
19632 | wxSize temp2 ; | |
19633 | PyObject * obj0 = 0 ; | |
19634 | PyObject * obj1 = 0 ; | |
19635 | char *kwnames[] = { | |
19636 | (char *) "self",(char *) "size", NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
19640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19642 | { | |
19643 | arg2 = &temp2; | |
19644 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19645 | } | |
19646 | { | |
19647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19648 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
19649 | ||
19650 | wxPyEndAllowThreads(__tstate); | |
19651 | if (PyErr_Occurred()) SWIG_fail; | |
19652 | } | |
19653 | Py_INCREF(Py_None); resultobj = Py_None; | |
19654 | return resultobj; | |
19655 | fail: | |
19656 | return NULL; | |
19657 | } | |
19658 | ||
19659 | ||
19660 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19661 | PyObject *resultobj; | |
19662 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19663 | wxPrintData *arg2 = 0 ; | |
19664 | PyObject * obj0 = 0 ; | |
19665 | PyObject * obj1 = 0 ; | |
19666 | char *kwnames[] = { | |
19667 | (char *) "self",(char *) "printData", NULL | |
19668 | }; | |
19669 | ||
19670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
19671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
19674 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19675 | SWIG_fail; | |
19676 | if (arg2 == NULL) { | |
19677 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19678 | SWIG_fail; | |
19679 | } | |
19680 | { | |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
19683 | ||
19684 | wxPyEndAllowThreads(__tstate); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | Py_INCREF(Py_None); resultobj = Py_None; | |
19688 | return resultobj; | |
19689 | fail: | |
19690 | return NULL; | |
19691 | } | |
19692 | ||
19693 | ||
19694 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
19695 | PyObject *obj; | |
19696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19697 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
19698 | Py_INCREF(obj); | |
19699 | return Py_BuildValue((char *)""); | |
19700 | } | |
19701 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj; | |
19703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19704 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
19705 | wxPageSetupDialog *result; | |
19706 | PyObject * obj0 = 0 ; | |
19707 | PyObject * obj1 = 0 ; | |
19708 | char *kwnames[] = { | |
19709 | (char *) "parent",(char *) "data", NULL | |
19710 | }; | |
19711 | ||
19712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
19713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19715 | if (obj1) { | |
19716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
19717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19718 | } | |
19719 | { | |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
19722 | ||
19723 | wxPyEndAllowThreads(__tstate); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | } | |
19726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
19733 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19734 | PyObject *resultobj; | |
19735 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
19736 | wxPageSetupDialogData *result; | |
19737 | PyObject * obj0 = 0 ; | |
19738 | char *kwnames[] = { | |
19739 | (char *) "self", NULL | |
19740 | }; | |
19741 | ||
19742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
19743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
19744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | { | |
19748 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
19749 | result = (wxPageSetupDialogData *) &_result_ref; | |
19750 | } | |
19751 | ||
19752 | wxPyEndAllowThreads(__tstate); | |
19753 | if (PyErr_Occurred()) SWIG_fail; | |
19754 | } | |
19755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
19756 | return resultobj; | |
19757 | fail: | |
19758 | return NULL; | |
19759 | } | |
19760 | ||
19761 | ||
19762 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19763 | PyObject *resultobj; | |
19764 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
19765 | int result; | |
19766 | PyObject * obj0 = 0 ; | |
19767 | char *kwnames[] = { | |
19768 | (char *) "self", NULL | |
19769 | }; | |
19770 | ||
19771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
19772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
19773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19774 | { | |
19775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19776 | result = (int)(arg1)->ShowModal(); | |
19777 | ||
19778 | wxPyEndAllowThreads(__tstate); | |
19779 | if (PyErr_Occurred()) SWIG_fail; | |
19780 | } | |
19781 | resultobj = SWIG_FromInt((int)result); | |
19782 | return resultobj; | |
19783 | fail: | |
19784 | return NULL; | |
19785 | } | |
19786 | ||
19787 | ||
19788 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
19789 | PyObject *obj; | |
19790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19791 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
19792 | Py_INCREF(obj); | |
19793 | return Py_BuildValue((char *)""); | |
19794 | } | |
19795 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
19796 | PyObject *resultobj; | |
19797 | wxPrintDialogData *result; | |
19798 | ||
19799 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
19800 | { | |
19801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19802 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
19803 | ||
19804 | wxPyEndAllowThreads(__tstate); | |
19805 | if (PyErr_Occurred()) SWIG_fail; | |
19806 | } | |
19807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
19808 | return resultobj; | |
19809 | fail: | |
19810 | return NULL; | |
19811 | } | |
19812 | ||
19813 | ||
19814 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
19815 | PyObject *resultobj; | |
19816 | wxPrintData *arg1 = 0 ; | |
19817 | wxPrintDialogData *result; | |
19818 | PyObject * obj0 = 0 ; | |
19819 | ||
19820 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
19821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19823 | SWIG_fail; | |
19824 | if (arg1 == NULL) { | |
19825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19826 | SWIG_fail; | |
19827 | } | |
19828 | { | |
19829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19830 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
19831 | ||
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
19842 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
19843 | int argc; | |
19844 | PyObject *argv[2]; | |
19845 | int ii; | |
19846 | ||
19847 | argc = PyObject_Length(args); | |
19848 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
19849 | argv[ii] = PyTuple_GetItem(args,ii); | |
19850 | } | |
19851 | if (argc == 0) { | |
19852 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
19853 | } | |
19854 | if (argc == 1) { | |
19855 | int _v; | |
19856 | { | |
19857 | void *ptr; | |
19858 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
19859 | _v = 0; | |
19860 | PyErr_Clear(); | |
19861 | } else { | |
19862 | _v = 1; | |
19863 | } | |
19864 | } | |
19865 | if (_v) { | |
19866 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
19867 | } | |
19868 | } | |
19869 | ||
19870 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
19871 | return NULL; | |
19872 | } | |
19873 | ||
19874 | ||
19875 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19876 | PyObject *resultobj; | |
19877 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19878 | PyObject * obj0 = 0 ; | |
19879 | char *kwnames[] = { | |
19880 | (char *) "self", NULL | |
19881 | }; | |
19882 | ||
19883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
19884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19886 | { | |
19887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19888 | delete arg1; | |
19889 | ||
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
19893 | Py_INCREF(Py_None); resultobj = Py_None; | |
19894 | return resultobj; | |
19895 | fail: | |
19896 | return NULL; | |
19897 | } | |
19898 | ||
19899 | ||
19900 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19901 | PyObject *resultobj; | |
19902 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19903 | int result; | |
19904 | PyObject * obj0 = 0 ; | |
19905 | char *kwnames[] = { | |
19906 | (char *) "self", NULL | |
19907 | }; | |
19908 | ||
19909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
19910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19912 | { | |
19913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19914 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
19915 | ||
19916 | wxPyEndAllowThreads(__tstate); | |
19917 | if (PyErr_Occurred()) SWIG_fail; | |
19918 | } | |
19919 | resultobj = SWIG_FromInt((int)result); | |
19920 | return resultobj; | |
19921 | fail: | |
19922 | return NULL; | |
19923 | } | |
19924 | ||
19925 | ||
19926 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19927 | PyObject *resultobj; | |
19928 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19929 | int result; | |
19930 | PyObject * obj0 = 0 ; | |
19931 | char *kwnames[] = { | |
19932 | (char *) "self", NULL | |
19933 | }; | |
19934 | ||
19935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
19936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19938 | { | |
19939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19940 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
19941 | ||
19942 | wxPyEndAllowThreads(__tstate); | |
19943 | if (PyErr_Occurred()) SWIG_fail; | |
19944 | } | |
19945 | resultobj = SWIG_FromInt((int)result); | |
19946 | return resultobj; | |
19947 | fail: | |
19948 | return NULL; | |
19949 | } | |
19950 | ||
19951 | ||
19952 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19953 | PyObject *resultobj; | |
19954 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19955 | int result; | |
19956 | PyObject * obj0 = 0 ; | |
19957 | char *kwnames[] = { | |
19958 | (char *) "self", NULL | |
19959 | }; | |
19960 | ||
19961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
19962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19964 | { | |
19965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19966 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
19967 | ||
19968 | wxPyEndAllowThreads(__tstate); | |
19969 | if (PyErr_Occurred()) SWIG_fail; | |
19970 | } | |
19971 | resultobj = SWIG_FromInt((int)result); | |
19972 | return resultobj; | |
19973 | fail: | |
19974 | return NULL; | |
19975 | } | |
19976 | ||
19977 | ||
19978 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19979 | PyObject *resultobj; | |
19980 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19981 | int result; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self", NULL | |
19985 | }; | |
19986 | ||
19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
19988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
19989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19990 | { | |
19991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19992 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
19993 | ||
19994 | wxPyEndAllowThreads(__tstate); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | resultobj = SWIG_FromInt((int)result); | |
19998 | return resultobj; | |
19999 | fail: | |
20000 | return NULL; | |
20001 | } | |
20002 | ||
20003 | ||
20004 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20005 | PyObject *resultobj; | |
20006 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20007 | int result; | |
20008 | PyObject * obj0 = 0 ; | |
20009 | char *kwnames[] = { | |
20010 | (char *) "self", NULL | |
20011 | }; | |
20012 | ||
20013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20016 | { | |
20017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20018 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20019 | ||
20020 | wxPyEndAllowThreads(__tstate); | |
20021 | if (PyErr_Occurred()) SWIG_fail; | |
20022 | } | |
20023 | resultobj = SWIG_FromInt((int)result); | |
20024 | return resultobj; | |
20025 | fail: | |
20026 | return NULL; | |
20027 | } | |
20028 | ||
20029 | ||
20030 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20031 | PyObject *resultobj; | |
20032 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20033 | bool result; | |
20034 | PyObject * obj0 = 0 ; | |
20035 | char *kwnames[] = { | |
20036 | (char *) "self", NULL | |
20037 | }; | |
20038 | ||
20039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20042 | { | |
20043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20044 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20045 | ||
20046 | wxPyEndAllowThreads(__tstate); | |
20047 | if (PyErr_Occurred()) SWIG_fail; | |
20048 | } | |
20049 | { | |
20050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20051 | } | |
20052 | return resultobj; | |
20053 | fail: | |
20054 | return NULL; | |
20055 | } | |
20056 | ||
20057 | ||
20058 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20059 | PyObject *resultobj; | |
20060 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20061 | bool result; | |
20062 | PyObject * obj0 = 0 ; | |
20063 | char *kwnames[] = { | |
20064 | (char *) "self", NULL | |
20065 | }; | |
20066 | ||
20067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20070 | { | |
20071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20072 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20073 | ||
20074 | wxPyEndAllowThreads(__tstate); | |
20075 | if (PyErr_Occurred()) SWIG_fail; | |
20076 | } | |
20077 | { | |
20078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20079 | } | |
20080 | return resultobj; | |
20081 | fail: | |
20082 | return NULL; | |
20083 | } | |
20084 | ||
20085 | ||
20086 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20087 | PyObject *resultobj; | |
20088 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20089 | bool result; | |
20090 | PyObject * obj0 = 0 ; | |
20091 | char *kwnames[] = { | |
20092 | (char *) "self", NULL | |
20093 | }; | |
20094 | ||
20095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
20096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20098 | { | |
20099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20100 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
20101 | ||
20102 | wxPyEndAllowThreads(__tstate); | |
20103 | if (PyErr_Occurred()) SWIG_fail; | |
20104 | } | |
20105 | { | |
20106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20107 | } | |
20108 | return resultobj; | |
20109 | fail: | |
20110 | return NULL; | |
20111 | } | |
20112 | ||
20113 | ||
20114 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20115 | PyObject *resultobj; | |
20116 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20117 | bool result; | |
20118 | PyObject * obj0 = 0 ; | |
20119 | char *kwnames[] = { | |
20120 | (char *) "self", NULL | |
20121 | }; | |
20122 | ||
20123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
20124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20126 | { | |
20127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20128 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
20129 | ||
20130 | wxPyEndAllowThreads(__tstate); | |
20131 | if (PyErr_Occurred()) SWIG_fail; | |
20132 | } | |
20133 | { | |
20134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20135 | } | |
20136 | return resultobj; | |
20137 | fail: | |
20138 | return NULL; | |
20139 | } | |
20140 | ||
20141 | ||
20142 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20143 | PyObject *resultobj; | |
20144 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20145 | bool result; | |
20146 | PyObject * obj0 = 0 ; | |
20147 | char *kwnames[] = { | |
20148 | (char *) "self", NULL | |
20149 | }; | |
20150 | ||
20151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
20152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20154 | { | |
20155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20156 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
20157 | ||
20158 | wxPyEndAllowThreads(__tstate); | |
20159 | if (PyErr_Occurred()) SWIG_fail; | |
20160 | } | |
20161 | { | |
20162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20163 | } | |
20164 | return resultobj; | |
20165 | fail: | |
20166 | return NULL; | |
20167 | } | |
20168 | ||
20169 | ||
20170 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20171 | PyObject *resultobj; | |
20172 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20173 | int arg2 ; | |
20174 | PyObject * obj0 = 0 ; | |
20175 | PyObject * obj1 = 0 ; | |
20176 | char *kwnames[] = { | |
20177 | (char *) "self",(char *) "v", NULL | |
20178 | }; | |
20179 | ||
20180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
20181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20183 | arg2 = (int) SWIG_AsInt(obj1); | |
20184 | if (PyErr_Occurred()) SWIG_fail; | |
20185 | { | |
20186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20187 | (arg1)->SetFromPage(arg2); | |
20188 | ||
20189 | wxPyEndAllowThreads(__tstate); | |
20190 | if (PyErr_Occurred()) SWIG_fail; | |
20191 | } | |
20192 | Py_INCREF(Py_None); resultobj = Py_None; | |
20193 | return resultobj; | |
20194 | fail: | |
20195 | return NULL; | |
20196 | } | |
20197 | ||
20198 | ||
20199 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20200 | PyObject *resultobj; | |
20201 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20202 | int arg2 ; | |
20203 | PyObject * obj0 = 0 ; | |
20204 | PyObject * obj1 = 0 ; | |
20205 | char *kwnames[] = { | |
20206 | (char *) "self",(char *) "v", NULL | |
20207 | }; | |
20208 | ||
20209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
20210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20212 | arg2 = (int) SWIG_AsInt(obj1); | |
20213 | if (PyErr_Occurred()) SWIG_fail; | |
20214 | { | |
20215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20216 | (arg1)->SetToPage(arg2); | |
20217 | ||
20218 | wxPyEndAllowThreads(__tstate); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | Py_INCREF(Py_None); resultobj = Py_None; | |
20222 | return resultobj; | |
20223 | fail: | |
20224 | return NULL; | |
20225 | } | |
20226 | ||
20227 | ||
20228 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20229 | PyObject *resultobj; | |
20230 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20231 | int arg2 ; | |
20232 | PyObject * obj0 = 0 ; | |
20233 | PyObject * obj1 = 0 ; | |
20234 | char *kwnames[] = { | |
20235 | (char *) "self",(char *) "v", NULL | |
20236 | }; | |
20237 | ||
20238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
20239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20241 | arg2 = (int) SWIG_AsInt(obj1); | |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
20243 | { | |
20244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20245 | (arg1)->SetMinPage(arg2); | |
20246 | ||
20247 | wxPyEndAllowThreads(__tstate); | |
20248 | if (PyErr_Occurred()) SWIG_fail; | |
20249 | } | |
20250 | Py_INCREF(Py_None); resultobj = Py_None; | |
20251 | return resultobj; | |
20252 | fail: | |
20253 | return NULL; | |
20254 | } | |
20255 | ||
20256 | ||
20257 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20258 | PyObject *resultobj; | |
20259 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20260 | int arg2 ; | |
20261 | PyObject * obj0 = 0 ; | |
20262 | PyObject * obj1 = 0 ; | |
20263 | char *kwnames[] = { | |
20264 | (char *) "self",(char *) "v", NULL | |
20265 | }; | |
20266 | ||
20267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
20268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20270 | arg2 = (int) SWIG_AsInt(obj1); | |
20271 | if (PyErr_Occurred()) SWIG_fail; | |
20272 | { | |
20273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20274 | (arg1)->SetMaxPage(arg2); | |
20275 | ||
20276 | wxPyEndAllowThreads(__tstate); | |
20277 | if (PyErr_Occurred()) SWIG_fail; | |
20278 | } | |
20279 | Py_INCREF(Py_None); resultobj = Py_None; | |
20280 | return resultobj; | |
20281 | fail: | |
20282 | return NULL; | |
20283 | } | |
20284 | ||
20285 | ||
20286 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20287 | PyObject *resultobj; | |
20288 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20289 | int arg2 ; | |
20290 | PyObject * obj0 = 0 ; | |
20291 | PyObject * obj1 = 0 ; | |
20292 | char *kwnames[] = { | |
20293 | (char *) "self",(char *) "v", NULL | |
20294 | }; | |
20295 | ||
20296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
20297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20299 | arg2 = (int) SWIG_AsInt(obj1); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | { | |
20302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20303 | (arg1)->SetNoCopies(arg2); | |
20304 | ||
20305 | wxPyEndAllowThreads(__tstate); | |
20306 | if (PyErr_Occurred()) SWIG_fail; | |
20307 | } | |
20308 | Py_INCREF(Py_None); resultobj = Py_None; | |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
20315 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20316 | PyObject *resultobj; | |
20317 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20318 | bool arg2 ; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | PyObject * obj1 = 0 ; | |
20321 | char *kwnames[] = { | |
20322 | (char *) "self",(char *) "flag", NULL | |
20323 | }; | |
20324 | ||
20325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
20326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20328 | arg2 = (bool) SWIG_AsBool(obj1); | |
20329 | if (PyErr_Occurred()) SWIG_fail; | |
20330 | { | |
20331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20332 | (arg1)->SetAllPages(arg2); | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | Py_INCREF(Py_None); resultobj = Py_None; | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
20344 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20345 | PyObject *resultobj; | |
20346 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20347 | bool arg2 ; | |
20348 | PyObject * obj0 = 0 ; | |
20349 | PyObject * obj1 = 0 ; | |
20350 | char *kwnames[] = { | |
20351 | (char *) "self",(char *) "flag", NULL | |
20352 | }; | |
20353 | ||
20354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
20355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20357 | arg2 = (bool) SWIG_AsBool(obj1); | |
20358 | if (PyErr_Occurred()) SWIG_fail; | |
20359 | { | |
20360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20361 | (arg1)->SetSelection(arg2); | |
20362 | ||
20363 | wxPyEndAllowThreads(__tstate); | |
20364 | if (PyErr_Occurred()) SWIG_fail; | |
20365 | } | |
20366 | Py_INCREF(Py_None); resultobj = Py_None; | |
20367 | return resultobj; | |
20368 | fail: | |
20369 | return NULL; | |
20370 | } | |
20371 | ||
20372 | ||
20373 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20374 | PyObject *resultobj; | |
20375 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20376 | bool arg2 ; | |
20377 | PyObject * obj0 = 0 ; | |
20378 | PyObject * obj1 = 0 ; | |
20379 | char *kwnames[] = { | |
20380 | (char *) "self",(char *) "flag", NULL | |
20381 | }; | |
20382 | ||
20383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
20384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20386 | arg2 = (bool) SWIG_AsBool(obj1); | |
20387 | if (PyErr_Occurred()) SWIG_fail; | |
20388 | { | |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | (arg1)->SetCollate(arg2); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | Py_INCREF(Py_None); resultobj = Py_None; | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj; | |
20404 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20405 | bool arg2 ; | |
20406 | PyObject * obj0 = 0 ; | |
20407 | PyObject * obj1 = 0 ; | |
20408 | char *kwnames[] = { | |
20409 | (char *) "self",(char *) "flag", NULL | |
20410 | }; | |
20411 | ||
20412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20415 | arg2 = (bool) SWIG_AsBool(obj1); | |
20416 | if (PyErr_Occurred()) SWIG_fail; | |
20417 | { | |
20418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20419 | (arg1)->SetPrintToFile(arg2); | |
20420 | ||
20421 | wxPyEndAllowThreads(__tstate); | |
20422 | if (PyErr_Occurred()) SWIG_fail; | |
20423 | } | |
20424 | Py_INCREF(Py_None); resultobj = Py_None; | |
20425 | return resultobj; | |
20426 | fail: | |
20427 | return NULL; | |
20428 | } | |
20429 | ||
20430 | ||
20431 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20432 | PyObject *resultobj; | |
20433 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20434 | bool arg2 ; | |
20435 | PyObject * obj0 = 0 ; | |
20436 | PyObject * obj1 = 0 ; | |
20437 | char *kwnames[] = { | |
20438 | (char *) "self",(char *) "flag", NULL | |
20439 | }; | |
20440 | ||
20441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20444 | arg2 = (bool) SWIG_AsBool(obj1); | |
20445 | if (PyErr_Occurred()) SWIG_fail; | |
20446 | { | |
20447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20448 | (arg1)->SetSetupDialog(arg2); | |
20449 | ||
20450 | wxPyEndAllowThreads(__tstate); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | Py_INCREF(Py_None); resultobj = Py_None; | |
20454 | return resultobj; | |
20455 | fail: | |
20456 | return NULL; | |
20457 | } | |
20458 | ||
20459 | ||
20460 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20461 | PyObject *resultobj; | |
20462 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20463 | bool arg2 ; | |
20464 | PyObject * obj0 = 0 ; | |
20465 | PyObject * obj1 = 0 ; | |
20466 | char *kwnames[] = { | |
20467 | (char *) "self",(char *) "flag", NULL | |
20468 | }; | |
20469 | ||
20470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20473 | arg2 = (bool) SWIG_AsBool(obj1); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | { | |
20476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20477 | (arg1)->EnablePrintToFile(arg2); | |
20478 | ||
20479 | wxPyEndAllowThreads(__tstate); | |
20480 | if (PyErr_Occurred()) SWIG_fail; | |
20481 | } | |
20482 | Py_INCREF(Py_None); resultobj = Py_None; | |
20483 | return resultobj; | |
20484 | fail: | |
20485 | return NULL; | |
20486 | } | |
20487 | ||
20488 | ||
20489 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20490 | PyObject *resultobj; | |
20491 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20492 | bool arg2 ; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | PyObject * obj1 = 0 ; | |
20495 | char *kwnames[] = { | |
20496 | (char *) "self",(char *) "flag", NULL | |
20497 | }; | |
20498 | ||
20499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
20500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20502 | arg2 = (bool) SWIG_AsBool(obj1); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | { | |
20505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20506 | (arg1)->EnableSelection(arg2); | |
20507 | ||
20508 | wxPyEndAllowThreads(__tstate); | |
20509 | if (PyErr_Occurred()) SWIG_fail; | |
20510 | } | |
20511 | Py_INCREF(Py_None); resultobj = Py_None; | |
20512 | return resultobj; | |
20513 | fail: | |
20514 | return NULL; | |
20515 | } | |
20516 | ||
20517 | ||
20518 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20519 | PyObject *resultobj; | |
20520 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20521 | bool arg2 ; | |
20522 | PyObject * obj0 = 0 ; | |
20523 | PyObject * obj1 = 0 ; | |
20524 | char *kwnames[] = { | |
20525 | (char *) "self",(char *) "flag", NULL | |
20526 | }; | |
20527 | ||
20528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
20529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20531 | arg2 = (bool) SWIG_AsBool(obj1); | |
20532 | if (PyErr_Occurred()) SWIG_fail; | |
20533 | { | |
20534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20535 | (arg1)->EnablePageNumbers(arg2); | |
20536 | ||
20537 | wxPyEndAllowThreads(__tstate); | |
20538 | if (PyErr_Occurred()) SWIG_fail; | |
20539 | } | |
20540 | Py_INCREF(Py_None); resultobj = Py_None; | |
20541 | return resultobj; | |
20542 | fail: | |
20543 | return NULL; | |
20544 | } | |
20545 | ||
20546 | ||
20547 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20548 | PyObject *resultobj; | |
20549 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20550 | bool arg2 ; | |
20551 | PyObject * obj0 = 0 ; | |
20552 | PyObject * obj1 = 0 ; | |
20553 | char *kwnames[] = { | |
20554 | (char *) "self",(char *) "flag", NULL | |
20555 | }; | |
20556 | ||
20557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
20558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20560 | arg2 = (bool) SWIG_AsBool(obj1); | |
20561 | if (PyErr_Occurred()) SWIG_fail; | |
20562 | { | |
20563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20564 | (arg1)->EnableHelp(arg2); | |
20565 | ||
20566 | wxPyEndAllowThreads(__tstate); | |
20567 | if (PyErr_Occurred()) SWIG_fail; | |
20568 | } | |
20569 | Py_INCREF(Py_None); resultobj = Py_None; | |
20570 | return resultobj; | |
20571 | fail: | |
20572 | return NULL; | |
20573 | } | |
20574 | ||
20575 | ||
20576 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20577 | PyObject *resultobj; | |
20578 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20579 | bool result; | |
20580 | PyObject * obj0 = 0 ; | |
20581 | char *kwnames[] = { | |
20582 | (char *) "self", NULL | |
20583 | }; | |
20584 | ||
20585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
20586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20588 | { | |
20589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20590 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
20591 | ||
20592 | wxPyEndAllowThreads(__tstate); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
20595 | { | |
20596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20597 | } | |
20598 | return resultobj; | |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
20604 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20605 | PyObject *resultobj; | |
20606 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20607 | bool result; | |
20608 | PyObject * obj0 = 0 ; | |
20609 | char *kwnames[] = { | |
20610 | (char *) "self", NULL | |
20611 | }; | |
20612 | ||
20613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
20614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20616 | { | |
20617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20618 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
20619 | ||
20620 | wxPyEndAllowThreads(__tstate); | |
20621 | if (PyErr_Occurred()) SWIG_fail; | |
20622 | } | |
20623 | { | |
20624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20625 | } | |
20626 | return resultobj; | |
20627 | fail: | |
20628 | return NULL; | |
20629 | } | |
20630 | ||
20631 | ||
20632 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20633 | PyObject *resultobj; | |
20634 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20635 | bool result; | |
20636 | PyObject * obj0 = 0 ; | |
20637 | char *kwnames[] = { | |
20638 | (char *) "self", NULL | |
20639 | }; | |
20640 | ||
20641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
20642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20644 | { | |
20645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20646 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
20647 | ||
20648 | wxPyEndAllowThreads(__tstate); | |
20649 | if (PyErr_Occurred()) SWIG_fail; | |
20650 | } | |
20651 | { | |
20652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20653 | } | |
20654 | return resultobj; | |
20655 | fail: | |
20656 | return NULL; | |
20657 | } | |
20658 | ||
20659 | ||
20660 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20661 | PyObject *resultobj; | |
20662 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20663 | bool result; | |
20664 | PyObject * obj0 = 0 ; | |
20665 | char *kwnames[] = { | |
20666 | (char *) "self", NULL | |
20667 | }; | |
20668 | ||
20669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
20670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20672 | { | |
20673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20674 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
20675 | ||
20676 | wxPyEndAllowThreads(__tstate); | |
20677 | if (PyErr_Occurred()) SWIG_fail; | |
20678 | } | |
20679 | { | |
20680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20681 | } | |
20682 | return resultobj; | |
20683 | fail: | |
20684 | return NULL; | |
20685 | } | |
20686 | ||
20687 | ||
20688 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20689 | PyObject *resultobj; | |
20690 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20691 | bool result; | |
20692 | PyObject * obj0 = 0 ; | |
20693 | char *kwnames[] = { | |
20694 | (char *) "self", NULL | |
20695 | }; | |
20696 | ||
20697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
20698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20700 | { | |
20701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20702 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
20703 | ||
20704 | wxPyEndAllowThreads(__tstate); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
20707 | { | |
20708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20709 | } | |
20710 | return resultobj; | |
20711 | fail: | |
20712 | return NULL; | |
20713 | } | |
20714 | ||
20715 | ||
20716 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20717 | PyObject *resultobj; | |
20718 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20719 | wxPrintData *result; | |
20720 | PyObject * obj0 = 0 ; | |
20721 | char *kwnames[] = { | |
20722 | (char *) "self", NULL | |
20723 | }; | |
20724 | ||
20725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
20726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20728 | { | |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | { | |
20731 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
20732 | result = (wxPrintData *) &_result_ref; | |
20733 | } | |
20734 | ||
20735 | wxPyEndAllowThreads(__tstate); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
20738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
20739 | return resultobj; | |
20740 | fail: | |
20741 | return NULL; | |
20742 | } | |
20743 | ||
20744 | ||
20745 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20746 | PyObject *resultobj; | |
20747 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20748 | wxPrintData *arg2 = 0 ; | |
20749 | PyObject * obj0 = 0 ; | |
20750 | PyObject * obj1 = 0 ; | |
20751 | char *kwnames[] = { | |
20752 | (char *) "self",(char *) "printData", NULL | |
20753 | }; | |
20754 | ||
20755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
20756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
20759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20760 | SWIG_fail; | |
20761 | if (arg2 == NULL) { | |
20762 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20763 | SWIG_fail; | |
20764 | } | |
20765 | { | |
20766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20767 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
20768 | ||
20769 | wxPyEndAllowThreads(__tstate); | |
20770 | if (PyErr_Occurred()) SWIG_fail; | |
20771 | } | |
20772 | Py_INCREF(Py_None); resultobj = Py_None; | |
20773 | return resultobj; | |
20774 | fail: | |
20775 | return NULL; | |
20776 | } | |
20777 | ||
20778 | ||
20779 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
20780 | PyObject *obj; | |
20781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20782 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
20783 | Py_INCREF(obj); | |
20784 | return Py_BuildValue((char *)""); | |
20785 | } | |
20786 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20787 | PyObject *resultobj; | |
20788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20789 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
20790 | wxPrintDialog *result; | |
20791 | PyObject * obj0 = 0 ; | |
20792 | PyObject * obj1 = 0 ; | |
20793 | char *kwnames[] = { | |
20794 | (char *) "parent",(char *) "data", NULL | |
20795 | }; | |
20796 | ||
20797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
20798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20800 | if (obj1) { | |
20801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
20802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20803 | } | |
20804 | { | |
20805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20806 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
20807 | ||
20808 | wxPyEndAllowThreads(__tstate); | |
20809 | if (PyErr_Occurred()) SWIG_fail; | |
20810 | } | |
20811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
20812 | return resultobj; | |
20813 | fail: | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
20818 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20819 | PyObject *resultobj; | |
20820 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
20821 | wxPrintDialogData *result; | |
20822 | PyObject * obj0 = 0 ; | |
20823 | char *kwnames[] = { | |
20824 | (char *) "self", NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
20828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
20829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20830 | { | |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | { | |
20833 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
20834 | result = (wxPrintDialogData *) &_result_ref; | |
20835 | } | |
20836 | ||
20837 | wxPyEndAllowThreads(__tstate); | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | } | |
20840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
20841 | return resultobj; | |
20842 | fail: | |
20843 | return NULL; | |
20844 | } | |
20845 | ||
20846 | ||
20847 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20848 | PyObject *resultobj; | |
20849 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
20850 | wxDC *result; | |
20851 | PyObject * obj0 = 0 ; | |
20852 | char *kwnames[] = { | |
20853 | (char *) "self", NULL | |
20854 | }; | |
20855 | ||
20856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
20857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
20858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20859 | { | |
20860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20861 | result = (wxDC *)(arg1)->GetPrintDC(); | |
20862 | ||
20863 | wxPyEndAllowThreads(__tstate); | |
20864 | if (PyErr_Occurred()) SWIG_fail; | |
20865 | } | |
20866 | { | |
20867 | resultobj = wxPyMake_wxObject(result); | |
20868 | } | |
20869 | return resultobj; | |
20870 | fail: | |
20871 | return NULL; | |
20872 | } | |
20873 | ||
20874 | ||
20875 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20876 | PyObject *resultobj; | |
20877 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
20878 | int result; | |
20879 | PyObject * obj0 = 0 ; | |
20880 | char *kwnames[] = { | |
20881 | (char *) "self", NULL | |
20882 | }; | |
20883 | ||
20884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
20885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
20886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20887 | { | |
20888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20889 | result = (int)(arg1)->ShowModal(); | |
20890 | ||
20891 | wxPyEndAllowThreads(__tstate); | |
20892 | if (PyErr_Occurred()) SWIG_fail; | |
20893 | } | |
20894 | resultobj = SWIG_FromInt((int)result); | |
20895 | return resultobj; | |
20896 | fail: | |
20897 | return NULL; | |
20898 | } | |
20899 | ||
20900 | ||
20901 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
20902 | PyObject *obj; | |
20903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20904 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
20905 | Py_INCREF(obj); | |
20906 | return Py_BuildValue((char *)""); | |
20907 | } | |
20908 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20909 | PyObject *resultobj; | |
20910 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
20911 | wxPrinter *result; | |
20912 | PyObject * obj0 = 0 ; | |
20913 | char *kwnames[] = { | |
20914 | (char *) "data", NULL | |
20915 | }; | |
20916 | ||
20917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
20918 | if (obj0) { | |
20919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20921 | } | |
20922 | { | |
20923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20924 | result = (wxPrinter *)new wxPrinter(arg1); | |
20925 | ||
20926 | wxPyEndAllowThreads(__tstate); | |
20927 | if (PyErr_Occurred()) SWIG_fail; | |
20928 | } | |
20929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
20930 | return resultobj; | |
20931 | fail: | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj; | |
20938 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
20939 | PyObject * obj0 = 0 ; | |
20940 | char *kwnames[] = { | |
20941 | (char *) "self", NULL | |
20942 | }; | |
20943 | ||
20944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
20945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
20946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20947 | { | |
20948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20949 | delete arg1; | |
20950 | ||
20951 | wxPyEndAllowThreads(__tstate); | |
20952 | if (PyErr_Occurred()) SWIG_fail; | |
20953 | } | |
20954 | Py_INCREF(Py_None); resultobj = Py_None; | |
20955 | return resultobj; | |
20956 | fail: | |
20957 | return NULL; | |
20958 | } | |
20959 | ||
20960 | ||
20961 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20962 | PyObject *resultobj; | |
20963 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
20964 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20965 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
20966 | PyObject * obj0 = 0 ; | |
20967 | PyObject * obj1 = 0 ; | |
20968 | PyObject * obj2 = 0 ; | |
20969 | char *kwnames[] = { | |
20970 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
20971 | }; | |
20972 | ||
20973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
20975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20978 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
20979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20980 | { | |
20981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20982 | (arg1)->CreateAbortWindow(arg2,arg3); | |
20983 | ||
20984 | wxPyEndAllowThreads(__tstate); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | } | |
20987 | Py_INCREF(Py_None); resultobj = Py_None; | |
20988 | return resultobj; | |
20989 | fail: | |
20990 | return NULL; | |
20991 | } | |
20992 | ||
20993 | ||
20994 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20995 | PyObject *resultobj; | |
20996 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
20997 | wxPrintDialogData *result; | |
20998 | PyObject * obj0 = 0 ; | |
20999 | char *kwnames[] = { | |
21000 | (char *) "self", NULL | |
21001 | }; | |
21002 | ||
21003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21006 | { | |
21007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21008 | { | |
21009 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21010 | result = (wxPrintDialogData *) &_result_ref; | |
21011 | } | |
21012 | ||
21013 | wxPyEndAllowThreads(__tstate); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | } | |
21016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21017 | return resultobj; | |
21018 | fail: | |
21019 | return NULL; | |
21020 | } | |
21021 | ||
21022 | ||
21023 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21024 | PyObject *resultobj; | |
21025 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21026 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21027 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21028 | int arg4 = (int) True ; | |
21029 | bool result; | |
21030 | PyObject * obj0 = 0 ; | |
21031 | PyObject * obj1 = 0 ; | |
21032 | PyObject * obj2 = 0 ; | |
21033 | PyObject * obj3 = 0 ; | |
21034 | char *kwnames[] = { | |
21035 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21036 | }; | |
21037 | ||
21038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21043 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21045 | if (obj3) { | |
21046 | arg4 = (int) SWIG_AsInt(obj3); | |
21047 | if (PyErr_Occurred()) SWIG_fail; | |
21048 | } | |
21049 | { | |
21050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21051 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21052 | ||
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
21056 | { | |
21057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21058 | } | |
21059 | return resultobj; | |
21060 | fail: | |
21061 | return NULL; | |
21062 | } | |
21063 | ||
21064 | ||
21065 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21066 | PyObject *resultobj; | |
21067 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21068 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21069 | wxDC *result; | |
21070 | PyObject * obj0 = 0 ; | |
21071 | PyObject * obj1 = 0 ; | |
21072 | char *kwnames[] = { | |
21073 | (char *) "self",(char *) "parent", NULL | |
21074 | }; | |
21075 | ||
21076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21081 | { | |
21082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21083 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21084 | ||
21085 | wxPyEndAllowThreads(__tstate); | |
21086 | if (PyErr_Occurred()) SWIG_fail; | |
21087 | } | |
21088 | { | |
21089 | resultobj = wxPyMake_wxObject(result); | |
21090 | } | |
21091 | return resultobj; | |
21092 | fail: | |
21093 | return NULL; | |
21094 | } | |
21095 | ||
21096 | ||
21097 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21098 | PyObject *resultobj; | |
21099 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21101 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21102 | wxString *arg4 = 0 ; | |
21103 | bool temp4 = False ; | |
21104 | PyObject * obj0 = 0 ; | |
21105 | PyObject * obj1 = 0 ; | |
21106 | PyObject * obj2 = 0 ; | |
21107 | PyObject * obj3 = 0 ; | |
21108 | char *kwnames[] = { | |
21109 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
21110 | }; | |
21111 | ||
21112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21117 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21119 | { | |
21120 | arg4 = wxString_in_helper(obj3); | |
21121 | if (arg4 == NULL) SWIG_fail; | |
21122 | temp4 = True; | |
21123 | } | |
21124 | { | |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | Py_INCREF(Py_None); resultobj = Py_None; | |
21132 | { | |
21133 | if (temp4) | |
21134 | delete arg4; | |
21135 | } | |
21136 | return resultobj; | |
21137 | fail: | |
21138 | { | |
21139 | if (temp4) | |
21140 | delete arg4; | |
21141 | } | |
21142 | return NULL; | |
21143 | } | |
21144 | ||
21145 | ||
21146 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21147 | PyObject *resultobj; | |
21148 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21150 | bool result; | |
21151 | PyObject * obj0 = 0 ; | |
21152 | PyObject * obj1 = 0 ; | |
21153 | char *kwnames[] = { | |
21154 | (char *) "self",(char *) "parent", NULL | |
21155 | }; | |
21156 | ||
21157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
21158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21160 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21162 | { | |
21163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21164 | result = (bool)(arg1)->Setup(arg2); | |
21165 | ||
21166 | wxPyEndAllowThreads(__tstate); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
21169 | { | |
21170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21171 | } | |
21172 | return resultobj; | |
21173 | fail: | |
21174 | return NULL; | |
21175 | } | |
21176 | ||
21177 | ||
21178 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21179 | PyObject *resultobj; | |
21180 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21181 | bool result; | |
21182 | PyObject * obj0 = 0 ; | |
21183 | char *kwnames[] = { | |
21184 | (char *) "self", NULL | |
21185 | }; | |
21186 | ||
21187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
21188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21190 | { | |
21191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21192 | result = (bool)(arg1)->GetAbort(); | |
21193 | ||
21194 | wxPyEndAllowThreads(__tstate); | |
21195 | if (PyErr_Occurred()) SWIG_fail; | |
21196 | } | |
21197 | { | |
21198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21199 | } | |
21200 | return resultobj; | |
21201 | fail: | |
21202 | return NULL; | |
21203 | } | |
21204 | ||
21205 | ||
21206 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21207 | PyObject *resultobj; | |
21208 | int result; | |
21209 | char *kwnames[] = { | |
21210 | NULL | |
21211 | }; | |
21212 | ||
21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
21214 | { | |
21215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21216 | result = (int)wxPrinter::GetLastError(); | |
21217 | ||
21218 | wxPyEndAllowThreads(__tstate); | |
21219 | if (PyErr_Occurred()) SWIG_fail; | |
21220 | } | |
21221 | resultobj = SWIG_FromInt((int)result); | |
21222 | return resultobj; | |
21223 | fail: | |
21224 | return NULL; | |
21225 | } | |
21226 | ||
21227 | ||
21228 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
21229 | PyObject *obj; | |
21230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21231 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
21232 | Py_INCREF(obj); | |
21233 | return Py_BuildValue((char *)""); | |
21234 | } | |
21235 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21236 | PyObject *resultobj; | |
21237 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
21238 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21239 | wxPyPrintout *result; | |
21240 | bool temp1 = False ; | |
21241 | PyObject * obj0 = 0 ; | |
21242 | char *kwnames[] = { | |
21243 | (char *) "title", NULL | |
21244 | }; | |
21245 | ||
21246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
21247 | if (obj0) { | |
21248 | { | |
21249 | arg1 = wxString_in_helper(obj0); | |
21250 | if (arg1 == NULL) SWIG_fail; | |
21251 | temp1 = True; | |
21252 | } | |
21253 | } | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | { | |
21262 | resultobj = wxPyMake_wxObject(result); | |
21263 | } | |
21264 | { | |
21265 | if (temp1) | |
21266 | delete arg1; | |
21267 | } | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | { | |
21271 | if (temp1) | |
21272 | delete arg1; | |
21273 | } | |
21274 | return NULL; | |
21275 | } | |
21276 | ||
21277 | ||
21278 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21279 | PyObject *resultobj; | |
21280 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21281 | PyObject *arg2 = (PyObject *) 0 ; | |
21282 | PyObject *arg3 = (PyObject *) 0 ; | |
21283 | PyObject * obj0 = 0 ; | |
21284 | PyObject * obj1 = 0 ; | |
21285 | PyObject * obj2 = 0 ; | |
21286 | char *kwnames[] = { | |
21287 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21288 | }; | |
21289 | ||
21290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21293 | arg2 = obj1; | |
21294 | arg3 = obj2; | |
21295 | { | |
21296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21297 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21298 | ||
21299 | wxPyEndAllowThreads(__tstate); | |
21300 | if (PyErr_Occurred()) SWIG_fail; | |
21301 | } | |
21302 | Py_INCREF(Py_None); resultobj = Py_None; | |
21303 | return resultobj; | |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj; | |
21311 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21312 | wxString result; | |
21313 | PyObject * obj0 = 0 ; | |
21314 | char *kwnames[] = { | |
21315 | (char *) "self", NULL | |
21316 | }; | |
21317 | ||
21318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
21319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21321 | { | |
21322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21323 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
21324 | ||
21325 | wxPyEndAllowThreads(__tstate); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
21328 | { | |
21329 | #if wxUSE_UNICODE | |
21330 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21331 | #else | |
21332 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21333 | #endif | |
21334 | } | |
21335 | return resultobj; | |
21336 | fail: | |
21337 | return NULL; | |
21338 | } | |
21339 | ||
21340 | ||
21341 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21342 | PyObject *resultobj; | |
21343 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21344 | wxDC *result; | |
21345 | PyObject * obj0 = 0 ; | |
21346 | char *kwnames[] = { | |
21347 | (char *) "self", NULL | |
21348 | }; | |
21349 | ||
21350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
21351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21353 | { | |
21354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21355 | result = (wxDC *)(arg1)->GetDC(); | |
21356 | ||
21357 | wxPyEndAllowThreads(__tstate); | |
21358 | if (PyErr_Occurred()) SWIG_fail; | |
21359 | } | |
21360 | { | |
21361 | resultobj = wxPyMake_wxObject(result); | |
21362 | } | |
21363 | return resultobj; | |
21364 | fail: | |
21365 | return NULL; | |
21366 | } | |
21367 | ||
21368 | ||
21369 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21370 | PyObject *resultobj; | |
21371 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21372 | wxDC *arg2 = (wxDC *) 0 ; | |
21373 | PyObject * obj0 = 0 ; | |
21374 | PyObject * obj1 = 0 ; | |
21375 | char *kwnames[] = { | |
21376 | (char *) "self",(char *) "dc", NULL | |
21377 | }; | |
21378 | ||
21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
21380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21384 | { | |
21385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21386 | (arg1)->SetDC(arg2); | |
21387 | ||
21388 | wxPyEndAllowThreads(__tstate); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
21390 | } | |
21391 | Py_INCREF(Py_None); resultobj = Py_None; | |
21392 | return resultobj; | |
21393 | fail: | |
21394 | return NULL; | |
21395 | } | |
21396 | ||
21397 | ||
21398 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21399 | PyObject *resultobj; | |
21400 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21401 | int arg2 ; | |
21402 | int arg3 ; | |
21403 | PyObject * obj0 = 0 ; | |
21404 | PyObject * obj1 = 0 ; | |
21405 | PyObject * obj2 = 0 ; | |
21406 | char *kwnames[] = { | |
21407 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21408 | }; | |
21409 | ||
21410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21413 | arg2 = (int) SWIG_AsInt(obj1); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | arg3 = (int) SWIG_AsInt(obj2); | |
21416 | if (PyErr_Occurred()) SWIG_fail; | |
21417 | { | |
21418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21419 | (arg1)->SetPageSizePixels(arg2,arg3); | |
21420 | ||
21421 | wxPyEndAllowThreads(__tstate); | |
21422 | if (PyErr_Occurred()) SWIG_fail; | |
21423 | } | |
21424 | Py_INCREF(Py_None); resultobj = Py_None; | |
21425 | return resultobj; | |
21426 | fail: | |
21427 | return NULL; | |
21428 | } | |
21429 | ||
21430 | ||
21431 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21432 | PyObject *resultobj; | |
21433 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21434 | int *arg2 = (int *) 0 ; | |
21435 | int *arg3 = (int *) 0 ; | |
21436 | int temp2 ; | |
21437 | int temp3 ; | |
21438 | PyObject * obj0 = 0 ; | |
21439 | char *kwnames[] = { | |
21440 | (char *) "self", NULL | |
21441 | }; | |
21442 | ||
21443 | arg2 = &temp2; | |
21444 | arg3 = &temp3; | |
21445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
21446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21448 | { | |
21449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21450 | (arg1)->GetPageSizePixels(arg2,arg3); | |
21451 | ||
21452 | wxPyEndAllowThreads(__tstate); | |
21453 | if (PyErr_Occurred()) SWIG_fail; | |
21454 | } | |
21455 | Py_INCREF(Py_None); resultobj = Py_None; | |
21456 | { | |
21457 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21458 | resultobj = t_output_helper(resultobj,o); | |
21459 | } | |
21460 | { | |
21461 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21462 | resultobj = t_output_helper(resultobj,o); | |
21463 | } | |
21464 | return resultobj; | |
21465 | fail: | |
21466 | return NULL; | |
21467 | } | |
21468 | ||
21469 | ||
21470 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21471 | PyObject *resultobj; | |
21472 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21473 | int arg2 ; | |
21474 | int arg3 ; | |
21475 | PyObject * obj0 = 0 ; | |
21476 | PyObject * obj1 = 0 ; | |
21477 | PyObject * obj2 = 0 ; | |
21478 | char *kwnames[] = { | |
21479 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21480 | }; | |
21481 | ||
21482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21485 | arg2 = (int) SWIG_AsInt(obj1); | |
21486 | if (PyErr_Occurred()) SWIG_fail; | |
21487 | arg3 = (int) SWIG_AsInt(obj2); | |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
21489 | { | |
21490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21491 | (arg1)->SetPageSizeMM(arg2,arg3); | |
21492 | ||
21493 | wxPyEndAllowThreads(__tstate); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
21496 | Py_INCREF(Py_None); resultobj = Py_None; | |
21497 | return resultobj; | |
21498 | fail: | |
21499 | return NULL; | |
21500 | } | |
21501 | ||
21502 | ||
21503 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21504 | PyObject *resultobj; | |
21505 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21506 | int *arg2 = (int *) 0 ; | |
21507 | int *arg3 = (int *) 0 ; | |
21508 | int temp2 ; | |
21509 | int temp3 ; | |
21510 | PyObject * obj0 = 0 ; | |
21511 | char *kwnames[] = { | |
21512 | (char *) "self", NULL | |
21513 | }; | |
21514 | ||
21515 | arg2 = &temp2; | |
21516 | arg3 = &temp3; | |
21517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
21518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21520 | { | |
21521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21522 | (arg1)->GetPageSizeMM(arg2,arg3); | |
21523 | ||
21524 | wxPyEndAllowThreads(__tstate); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | Py_INCREF(Py_None); resultobj = Py_None; | |
21528 | { | |
21529 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21530 | resultobj = t_output_helper(resultobj,o); | |
21531 | } | |
21532 | { | |
21533 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21534 | resultobj = t_output_helper(resultobj,o); | |
21535 | } | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21543 | PyObject *resultobj; | |
21544 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21545 | int arg2 ; | |
21546 | int arg3 ; | |
21547 | PyObject * obj0 = 0 ; | |
21548 | PyObject * obj1 = 0 ; | |
21549 | PyObject * obj2 = 0 ; | |
21550 | char *kwnames[] = { | |
21551 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21552 | }; | |
21553 | ||
21554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21557 | arg2 = (int) SWIG_AsInt(obj1); | |
21558 | if (PyErr_Occurred()) SWIG_fail; | |
21559 | arg3 = (int) SWIG_AsInt(obj2); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | { | |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | (arg1)->SetPPIScreen(arg2,arg3); | |
21564 | ||
21565 | wxPyEndAllowThreads(__tstate); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | } | |
21568 | Py_INCREF(Py_None); resultobj = Py_None; | |
21569 | return resultobj; | |
21570 | fail: | |
21571 | return NULL; | |
21572 | } | |
21573 | ||
21574 | ||
21575 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21576 | PyObject *resultobj; | |
21577 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21578 | int *arg2 = (int *) 0 ; | |
21579 | int *arg3 = (int *) 0 ; | |
21580 | int temp2 ; | |
21581 | int temp3 ; | |
21582 | PyObject * obj0 = 0 ; | |
21583 | char *kwnames[] = { | |
21584 | (char *) "self", NULL | |
21585 | }; | |
21586 | ||
21587 | arg2 = &temp2; | |
21588 | arg3 = &temp3; | |
21589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
21590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21592 | { | |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21594 | (arg1)->GetPPIScreen(arg2,arg3); | |
21595 | ||
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
21599 | Py_INCREF(Py_None); resultobj = Py_None; | |
21600 | { | |
21601 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21602 | resultobj = t_output_helper(resultobj,o); | |
21603 | } | |
21604 | { | |
21605 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21606 | resultobj = t_output_helper(resultobj,o); | |
21607 | } | |
21608 | return resultobj; | |
21609 | fail: | |
21610 | return NULL; | |
21611 | } | |
21612 | ||
21613 | ||
21614 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21615 | PyObject *resultobj; | |
21616 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21617 | int arg2 ; | |
21618 | int arg3 ; | |
21619 | PyObject * obj0 = 0 ; | |
21620 | PyObject * obj1 = 0 ; | |
21621 | PyObject * obj2 = 0 ; | |
21622 | char *kwnames[] = { | |
21623 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21624 | }; | |
21625 | ||
21626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21629 | arg2 = (int) SWIG_AsInt(obj1); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | arg3 = (int) SWIG_AsInt(obj2); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | { | |
21634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21635 | (arg1)->SetPPIPrinter(arg2,arg3); | |
21636 | ||
21637 | wxPyEndAllowThreads(__tstate); | |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
21639 | } | |
21640 | Py_INCREF(Py_None); resultobj = Py_None; | |
21641 | return resultobj; | |
21642 | fail: | |
21643 | return NULL; | |
21644 | } | |
21645 | ||
21646 | ||
21647 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21648 | PyObject *resultobj; | |
21649 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21650 | int *arg2 = (int *) 0 ; | |
21651 | int *arg3 = (int *) 0 ; | |
21652 | int temp2 ; | |
21653 | int temp3 ; | |
21654 | PyObject * obj0 = 0 ; | |
21655 | char *kwnames[] = { | |
21656 | (char *) "self", NULL | |
21657 | }; | |
21658 | ||
21659 | arg2 = &temp2; | |
21660 | arg3 = &temp3; | |
21661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
21662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21664 | { | |
21665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21666 | (arg1)->GetPPIPrinter(arg2,arg3); | |
21667 | ||
21668 | wxPyEndAllowThreads(__tstate); | |
21669 | if (PyErr_Occurred()) SWIG_fail; | |
21670 | } | |
21671 | Py_INCREF(Py_None); resultobj = Py_None; | |
21672 | { | |
21673 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21674 | resultobj = t_output_helper(resultobj,o); | |
21675 | } | |
21676 | { | |
21677 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21678 | resultobj = t_output_helper(resultobj,o); | |
21679 | } | |
21680 | return resultobj; | |
21681 | fail: | |
21682 | return NULL; | |
21683 | } | |
21684 | ||
21685 | ||
21686 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21687 | PyObject *resultobj; | |
21688 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21689 | bool result; | |
21690 | PyObject * obj0 = 0 ; | |
21691 | char *kwnames[] = { | |
21692 | (char *) "self", NULL | |
21693 | }; | |
21694 | ||
21695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
21696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21698 | { | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = (bool)(arg1)->IsPreview(); | |
21701 | ||
21702 | wxPyEndAllowThreads(__tstate); | |
21703 | if (PyErr_Occurred()) SWIG_fail; | |
21704 | } | |
21705 | { | |
21706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21707 | } | |
21708 | return resultobj; | |
21709 | fail: | |
21710 | return NULL; | |
21711 | } | |
21712 | ||
21713 | ||
21714 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21715 | PyObject *resultobj; | |
21716 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21717 | bool arg2 ; | |
21718 | PyObject * obj0 = 0 ; | |
21719 | PyObject * obj1 = 0 ; | |
21720 | char *kwnames[] = { | |
21721 | (char *) "self",(char *) "p", NULL | |
21722 | }; | |
21723 | ||
21724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
21725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21727 | arg2 = (bool) SWIG_AsBool(obj1); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | (arg1)->SetIsPreview(arg2); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | Py_INCREF(Py_None); resultobj = Py_None; | |
21737 | return resultobj; | |
21738 | fail: | |
21739 | return NULL; | |
21740 | } | |
21741 | ||
21742 | ||
21743 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21744 | PyObject *resultobj; | |
21745 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21746 | int arg2 ; | |
21747 | int arg3 ; | |
21748 | bool result; | |
21749 | PyObject * obj0 = 0 ; | |
21750 | PyObject * obj1 = 0 ; | |
21751 | PyObject * obj2 = 0 ; | |
21752 | char *kwnames[] = { | |
21753 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
21754 | }; | |
21755 | ||
21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21759 | arg2 = (int) SWIG_AsInt(obj1); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | arg3 = (int) SWIG_AsInt(obj2); | |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
21763 | { | |
21764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21765 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
21766 | ||
21767 | wxPyEndAllowThreads(__tstate); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | } | |
21770 | { | |
21771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21772 | } | |
21773 | return resultobj; | |
21774 | fail: | |
21775 | return NULL; | |
21776 | } | |
21777 | ||
21778 | ||
21779 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21780 | PyObject *resultobj; | |
21781 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21782 | PyObject * obj0 = 0 ; | |
21783 | char *kwnames[] = { | |
21784 | (char *) "self", NULL | |
21785 | }; | |
21786 | ||
21787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
21788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21790 | { | |
21791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21792 | (arg1)->base_OnEndDocument(); | |
21793 | ||
21794 | wxPyEndAllowThreads(__tstate); | |
21795 | if (PyErr_Occurred()) SWIG_fail; | |
21796 | } | |
21797 | Py_INCREF(Py_None); resultobj = Py_None; | |
21798 | return resultobj; | |
21799 | fail: | |
21800 | return NULL; | |
21801 | } | |
21802 | ||
21803 | ||
21804 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21805 | PyObject *resultobj; | |
21806 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21807 | PyObject * obj0 = 0 ; | |
21808 | char *kwnames[] = { | |
21809 | (char *) "self", NULL | |
21810 | }; | |
21811 | ||
21812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
21813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21815 | { | |
21816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21817 | (arg1)->base_OnBeginPrinting(); | |
21818 | ||
21819 | wxPyEndAllowThreads(__tstate); | |
21820 | if (PyErr_Occurred()) SWIG_fail; | |
21821 | } | |
21822 | Py_INCREF(Py_None); resultobj = Py_None; | |
21823 | return resultobj; | |
21824 | fail: | |
21825 | return NULL; | |
21826 | } | |
21827 | ||
21828 | ||
21829 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21830 | PyObject *resultobj; | |
21831 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21832 | PyObject * obj0 = 0 ; | |
21833 | char *kwnames[] = { | |
21834 | (char *) "self", NULL | |
21835 | }; | |
21836 | ||
21837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
21838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21840 | { | |
21841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21842 | (arg1)->base_OnEndPrinting(); | |
21843 | ||
21844 | wxPyEndAllowThreads(__tstate); | |
21845 | if (PyErr_Occurred()) SWIG_fail; | |
21846 | } | |
21847 | Py_INCREF(Py_None); resultobj = Py_None; | |
21848 | return resultobj; | |
21849 | fail: | |
21850 | return NULL; | |
21851 | } | |
21852 | ||
21853 | ||
21854 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21855 | PyObject *resultobj; | |
21856 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21857 | PyObject * obj0 = 0 ; | |
21858 | char *kwnames[] = { | |
21859 | (char *) "self", NULL | |
21860 | }; | |
21861 | ||
21862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
21863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21865 | { | |
21866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21867 | (arg1)->base_OnPreparePrinting(); | |
21868 | ||
21869 | wxPyEndAllowThreads(__tstate); | |
21870 | if (PyErr_Occurred()) SWIG_fail; | |
21871 | } | |
21872 | Py_INCREF(Py_None); resultobj = Py_None; | |
21873 | return resultobj; | |
21874 | fail: | |
21875 | return NULL; | |
21876 | } | |
21877 | ||
21878 | ||
21879 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21880 | PyObject *resultobj; | |
21881 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21882 | int arg2 ; | |
21883 | bool result; | |
21884 | PyObject * obj0 = 0 ; | |
21885 | PyObject * obj1 = 0 ; | |
21886 | char *kwnames[] = { | |
21887 | (char *) "self",(char *) "page", NULL | |
21888 | }; | |
21889 | ||
21890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
21891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21893 | arg2 = (int) SWIG_AsInt(obj1); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | { | |
21896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21897 | result = (bool)(arg1)->base_HasPage(arg2); | |
21898 | ||
21899 | wxPyEndAllowThreads(__tstate); | |
21900 | if (PyErr_Occurred()) SWIG_fail; | |
21901 | } | |
21902 | { | |
21903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21904 | } | |
21905 | return resultobj; | |
21906 | fail: | |
21907 | return NULL; | |
21908 | } | |
21909 | ||
21910 | ||
21911 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21912 | PyObject *resultobj; | |
21913 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21914 | int *arg2 = (int *) 0 ; | |
21915 | int *arg3 = (int *) 0 ; | |
21916 | int *arg4 = (int *) 0 ; | |
21917 | int *arg5 = (int *) 0 ; | |
21918 | int temp2 ; | |
21919 | int temp3 ; | |
21920 | int temp4 ; | |
21921 | int temp5 ; | |
21922 | PyObject * obj0 = 0 ; | |
21923 | char *kwnames[] = { | |
21924 | (char *) "self", NULL | |
21925 | }; | |
21926 | ||
21927 | arg2 = &temp2; | |
21928 | arg3 = &temp3; | |
21929 | arg4 = &temp4; | |
21930 | arg5 = &temp5; | |
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
21932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21934 | { | |
21935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21936 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
21937 | ||
21938 | wxPyEndAllowThreads(__tstate); | |
21939 | if (PyErr_Occurred()) SWIG_fail; | |
21940 | } | |
21941 | Py_INCREF(Py_None); resultobj = Py_None; | |
21942 | { | |
21943 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21944 | resultobj = t_output_helper(resultobj,o); | |
21945 | } | |
21946 | { | |
21947 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21948 | resultobj = t_output_helper(resultobj,o); | |
21949 | } | |
21950 | { | |
21951 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
21952 | resultobj = t_output_helper(resultobj,o); | |
21953 | } | |
21954 | { | |
21955 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
21956 | resultobj = t_output_helper(resultobj,o); | |
21957 | } | |
21958 | return resultobj; | |
21959 | fail: | |
21960 | return NULL; | |
21961 | } | |
21962 | ||
21963 | ||
21964 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
21965 | PyObject *obj; | |
21966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21967 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
21968 | Py_INCREF(obj); | |
21969 | return Py_BuildValue((char *)""); | |
21970 | } | |
21971 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21972 | PyObject *resultobj; | |
21973 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21974 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21975 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21976 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21977 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21978 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21979 | long arg5 = (long) 0 ; | |
21980 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
21981 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21982 | wxPreviewCanvas *result; | |
21983 | wxPoint temp3 ; | |
21984 | wxSize temp4 ; | |
21985 | bool temp6 = False ; | |
21986 | PyObject * obj0 = 0 ; | |
21987 | PyObject * obj1 = 0 ; | |
21988 | PyObject * obj2 = 0 ; | |
21989 | PyObject * obj3 = 0 ; | |
21990 | PyObject * obj4 = 0 ; | |
21991 | PyObject * obj5 = 0 ; | |
21992 | char *kwnames[] = { | |
21993 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21994 | }; | |
21995 | ||
21996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
21998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22001 | if (obj2) { | |
22002 | { | |
22003 | arg3 = &temp3; | |
22004 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22005 | } | |
22006 | } | |
22007 | if (obj3) { | |
22008 | { | |
22009 | arg4 = &temp4; | |
22010 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22011 | } | |
22012 | } | |
22013 | if (obj4) { | |
22014 | arg5 = (long) SWIG_AsLong(obj4); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | if (obj5) { | |
22018 | { | |
22019 | arg6 = wxString_in_helper(obj5); | |
22020 | if (arg6 == NULL) SWIG_fail; | |
22021 | temp6 = True; | |
22022 | } | |
22023 | } | |
22024 | { | |
22025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22026 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22027 | ||
22028 | wxPyEndAllowThreads(__tstate); | |
22029 | if (PyErr_Occurred()) SWIG_fail; | |
22030 | } | |
22031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22032 | { | |
22033 | if (temp6) | |
22034 | delete arg6; | |
22035 | } | |
22036 | return resultobj; | |
22037 | fail: | |
22038 | { | |
22039 | if (temp6) | |
22040 | delete arg6; | |
22041 | } | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
22046 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22047 | PyObject *obj; | |
22048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22049 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22050 | Py_INCREF(obj); | |
22051 | return Py_BuildValue((char *)""); | |
22052 | } | |
22053 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22054 | PyObject *resultobj; | |
22055 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22056 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22057 | wxString *arg3 = 0 ; | |
22058 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22059 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22060 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22061 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22062 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22063 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22064 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22065 | wxPreviewFrame *result; | |
22066 | bool temp3 = False ; | |
22067 | wxPoint temp4 ; | |
22068 | wxSize temp5 ; | |
22069 | bool temp7 = False ; | |
22070 | PyObject * obj0 = 0 ; | |
22071 | PyObject * obj1 = 0 ; | |
22072 | PyObject * obj2 = 0 ; | |
22073 | PyObject * obj3 = 0 ; | |
22074 | PyObject * obj4 = 0 ; | |
22075 | PyObject * obj5 = 0 ; | |
22076 | PyObject * obj6 = 0 ; | |
22077 | char *kwnames[] = { | |
22078 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22079 | }; | |
22080 | ||
22081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22086 | { | |
22087 | arg3 = wxString_in_helper(obj2); | |
22088 | if (arg3 == NULL) SWIG_fail; | |
22089 | temp3 = True; | |
22090 | } | |
22091 | if (obj3) { | |
22092 | { | |
22093 | arg4 = &temp4; | |
22094 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22095 | } | |
22096 | } | |
22097 | if (obj4) { | |
22098 | { | |
22099 | arg5 = &temp5; | |
22100 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22101 | } | |
22102 | } | |
22103 | if (obj5) { | |
22104 | arg6 = (long) SWIG_AsLong(obj5); | |
22105 | if (PyErr_Occurred()) SWIG_fail; | |
22106 | } | |
22107 | if (obj6) { | |
22108 | { | |
22109 | arg7 = wxString_in_helper(obj6); | |
22110 | if (arg7 == NULL) SWIG_fail; | |
22111 | temp7 = True; | |
22112 | } | |
22113 | } | |
22114 | { | |
22115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22116 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22117 | ||
22118 | wxPyEndAllowThreads(__tstate); | |
22119 | if (PyErr_Occurred()) SWIG_fail; | |
22120 | } | |
22121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
22122 | { | |
22123 | if (temp3) | |
22124 | delete arg3; | |
22125 | } | |
22126 | { | |
22127 | if (temp7) | |
22128 | delete arg7; | |
22129 | } | |
22130 | return resultobj; | |
22131 | fail: | |
22132 | { | |
22133 | if (temp3) | |
22134 | delete arg3; | |
22135 | } | |
22136 | { | |
22137 | if (temp7) | |
22138 | delete arg7; | |
22139 | } | |
22140 | return NULL; | |
22141 | } | |
22142 | ||
22143 | ||
22144 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22145 | PyObject *resultobj; | |
22146 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22147 | PyObject * obj0 = 0 ; | |
22148 | char *kwnames[] = { | |
22149 | (char *) "self", NULL | |
22150 | }; | |
22151 | ||
22152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
22153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22155 | { | |
22156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22157 | (arg1)->Initialize(); | |
22158 | ||
22159 | wxPyEndAllowThreads(__tstate); | |
22160 | if (PyErr_Occurred()) SWIG_fail; | |
22161 | } | |
22162 | Py_INCREF(Py_None); resultobj = Py_None; | |
22163 | return resultobj; | |
22164 | fail: | |
22165 | return NULL; | |
22166 | } | |
22167 | ||
22168 | ||
22169 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22170 | PyObject *resultobj; | |
22171 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22172 | PyObject * obj0 = 0 ; | |
22173 | char *kwnames[] = { | |
22174 | (char *) "self", NULL | |
22175 | }; | |
22176 | ||
22177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
22178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22180 | { | |
22181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22182 | (arg1)->CreateControlBar(); | |
22183 | ||
22184 | wxPyEndAllowThreads(__tstate); | |
22185 | if (PyErr_Occurred()) SWIG_fail; | |
22186 | } | |
22187 | Py_INCREF(Py_None); resultobj = Py_None; | |
22188 | return resultobj; | |
22189 | fail: | |
22190 | return NULL; | |
22191 | } | |
22192 | ||
22193 | ||
22194 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22195 | PyObject *resultobj; | |
22196 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22197 | PyObject * obj0 = 0 ; | |
22198 | char *kwnames[] = { | |
22199 | (char *) "self", NULL | |
22200 | }; | |
22201 | ||
22202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
22203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22205 | { | |
22206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22207 | (arg1)->CreateCanvas(); | |
22208 | ||
22209 | wxPyEndAllowThreads(__tstate); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | } | |
22212 | Py_INCREF(Py_None); resultobj = Py_None; | |
22213 | return resultobj; | |
22214 | fail: | |
22215 | return NULL; | |
22216 | } | |
22217 | ||
22218 | ||
22219 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22220 | PyObject *resultobj; | |
22221 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22222 | wxPreviewControlBar *result; | |
22223 | PyObject * obj0 = 0 ; | |
22224 | char *kwnames[] = { | |
22225 | (char *) "self", NULL | |
22226 | }; | |
22227 | ||
22228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
22229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22231 | { | |
22232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22233 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
22234 | ||
22235 | wxPyEndAllowThreads(__tstate); | |
22236 | if (PyErr_Occurred()) SWIG_fail; | |
22237 | } | |
22238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
22239 | return resultobj; | |
22240 | fail: | |
22241 | return NULL; | |
22242 | } | |
22243 | ||
22244 | ||
22245 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
22246 | PyObject *obj; | |
22247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22248 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
22249 | Py_INCREF(obj); | |
22250 | return Py_BuildValue((char *)""); | |
22251 | } | |
22252 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22253 | PyObject *resultobj; | |
22254 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22255 | long arg2 ; | |
22256 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22257 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22258 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22259 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22260 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22261 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
22262 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22263 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22264 | wxPreviewControlBar *result; | |
22265 | wxPoint temp4 ; | |
22266 | wxSize temp5 ; | |
22267 | bool temp7 = False ; | |
22268 | PyObject * obj0 = 0 ; | |
22269 | PyObject * obj1 = 0 ; | |
22270 | PyObject * obj2 = 0 ; | |
22271 | PyObject * obj3 = 0 ; | |
22272 | PyObject * obj4 = 0 ; | |
22273 | PyObject * obj5 = 0 ; | |
22274 | PyObject * obj6 = 0 ; | |
22275 | char *kwnames[] = { | |
22276 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22277 | }; | |
22278 | ||
22279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22282 | arg2 = (long) SWIG_AsLong(obj1); | |
22283 | if (PyErr_Occurred()) SWIG_fail; | |
22284 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
22285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22286 | if (obj3) { | |
22287 | { | |
22288 | arg4 = &temp4; | |
22289 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22290 | } | |
22291 | } | |
22292 | if (obj4) { | |
22293 | { | |
22294 | arg5 = &temp5; | |
22295 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22296 | } | |
22297 | } | |
22298 | if (obj5) { | |
22299 | arg6 = (long) SWIG_AsLong(obj5); | |
22300 | if (PyErr_Occurred()) SWIG_fail; | |
22301 | } | |
22302 | if (obj6) { | |
22303 | { | |
22304 | arg7 = wxString_in_helper(obj6); | |
22305 | if (arg7 == NULL) SWIG_fail; | |
22306 | temp7 = True; | |
22307 | } | |
22308 | } | |
22309 | { | |
22310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22311 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22312 | ||
22313 | wxPyEndAllowThreads(__tstate); | |
22314 | if (PyErr_Occurred()) SWIG_fail; | |
22315 | } | |
22316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
22317 | { | |
22318 | if (temp7) | |
22319 | delete arg7; | |
22320 | } | |
22321 | return resultobj; | |
22322 | fail: | |
22323 | { | |
22324 | if (temp7) | |
22325 | delete arg7; | |
22326 | } | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
22331 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22332 | PyObject *resultobj; | |
22333 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22334 | int result; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | char *kwnames[] = { | |
22337 | (char *) "self", NULL | |
22338 | }; | |
22339 | ||
22340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
22341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22343 | { | |
22344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22345 | result = (int)(arg1)->GetZoomControl(); | |
22346 | ||
22347 | wxPyEndAllowThreads(__tstate); | |
22348 | if (PyErr_Occurred()) SWIG_fail; | |
22349 | } | |
22350 | resultobj = SWIG_FromInt((int)result); | |
22351 | return resultobj; | |
22352 | fail: | |
22353 | return NULL; | |
22354 | } | |
22355 | ||
22356 | ||
22357 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22358 | PyObject *resultobj; | |
22359 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22360 | int arg2 ; | |
22361 | PyObject * obj0 = 0 ; | |
22362 | PyObject * obj1 = 0 ; | |
22363 | char *kwnames[] = { | |
22364 | (char *) "self",(char *) "zoom", NULL | |
22365 | }; | |
22366 | ||
22367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
22368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22370 | arg2 = (int) SWIG_AsInt(obj1); | |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | { | |
22373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22374 | (arg1)->SetZoomControl(arg2); | |
22375 | ||
22376 | wxPyEndAllowThreads(__tstate); | |
22377 | if (PyErr_Occurred()) SWIG_fail; | |
22378 | } | |
22379 | Py_INCREF(Py_None); resultobj = Py_None; | |
22380 | return resultobj; | |
22381 | fail: | |
22382 | return NULL; | |
22383 | } | |
22384 | ||
22385 | ||
22386 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22387 | PyObject *resultobj; | |
22388 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22389 | wxPrintPreview *result; | |
22390 | PyObject * obj0 = 0 ; | |
22391 | char *kwnames[] = { | |
22392 | (char *) "self", NULL | |
22393 | }; | |
22394 | ||
22395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
22396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22398 | { | |
22399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22400 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
22401 | ||
22402 | wxPyEndAllowThreads(__tstate); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | } | |
22405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
22406 | return resultobj; | |
22407 | fail: | |
22408 | return NULL; | |
22409 | } | |
22410 | ||
22411 | ||
22412 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22413 | PyObject *resultobj; | |
22414 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22415 | PyObject * obj0 = 0 ; | |
22416 | char *kwnames[] = { | |
22417 | (char *) "self", NULL | |
22418 | }; | |
22419 | ||
22420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
22421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22423 | { | |
22424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22425 | (arg1)->OnNext(); | |
22426 | ||
22427 | wxPyEndAllowThreads(__tstate); | |
22428 | if (PyErr_Occurred()) SWIG_fail; | |
22429 | } | |
22430 | Py_INCREF(Py_None); resultobj = Py_None; | |
22431 | return resultobj; | |
22432 | fail: | |
22433 | return NULL; | |
22434 | } | |
22435 | ||
22436 | ||
22437 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22438 | PyObject *resultobj; | |
22439 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22440 | PyObject * obj0 = 0 ; | |
22441 | char *kwnames[] = { | |
22442 | (char *) "self", NULL | |
22443 | }; | |
22444 | ||
22445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
22446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22448 | { | |
22449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22450 | (arg1)->OnPrevious(); | |
22451 | ||
22452 | wxPyEndAllowThreads(__tstate); | |
22453 | if (PyErr_Occurred()) SWIG_fail; | |
22454 | } | |
22455 | Py_INCREF(Py_None); resultobj = Py_None; | |
22456 | return resultobj; | |
22457 | fail: | |
22458 | return NULL; | |
22459 | } | |
22460 | ||
22461 | ||
22462 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22463 | PyObject *resultobj; | |
22464 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22465 | PyObject * obj0 = 0 ; | |
22466 | char *kwnames[] = { | |
22467 | (char *) "self", NULL | |
22468 | }; | |
22469 | ||
22470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
22471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22473 | { | |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | (arg1)->OnFirst(); | |
22476 | ||
22477 | wxPyEndAllowThreads(__tstate); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | } | |
22480 | Py_INCREF(Py_None); resultobj = Py_None; | |
22481 | return resultobj; | |
22482 | fail: | |
22483 | return NULL; | |
22484 | } | |
22485 | ||
22486 | ||
22487 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22488 | PyObject *resultobj; | |
22489 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22490 | PyObject * obj0 = 0 ; | |
22491 | char *kwnames[] = { | |
22492 | (char *) "self", NULL | |
22493 | }; | |
22494 | ||
22495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
22496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22498 | { | |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | (arg1)->OnLast(); | |
22501 | ||
22502 | wxPyEndAllowThreads(__tstate); | |
22503 | if (PyErr_Occurred()) SWIG_fail; | |
22504 | } | |
22505 | Py_INCREF(Py_None); resultobj = Py_None; | |
22506 | return resultobj; | |
22507 | fail: | |
22508 | return NULL; | |
22509 | } | |
22510 | ||
22511 | ||
22512 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22513 | PyObject *resultobj; | |
22514 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22515 | PyObject * obj0 = 0 ; | |
22516 | char *kwnames[] = { | |
22517 | (char *) "self", NULL | |
22518 | }; | |
22519 | ||
22520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
22521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22523 | { | |
22524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22525 | (arg1)->OnGoto(); | |
22526 | ||
22527 | wxPyEndAllowThreads(__tstate); | |
22528 | if (PyErr_Occurred()) SWIG_fail; | |
22529 | } | |
22530 | Py_INCREF(Py_None); resultobj = Py_None; | |
22531 | return resultobj; | |
22532 | fail: | |
22533 | return NULL; | |
22534 | } | |
22535 | ||
22536 | ||
22537 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
22538 | PyObject *obj; | |
22539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22540 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
22541 | Py_INCREF(obj); | |
22542 | return Py_BuildValue((char *)""); | |
22543 | } | |
22544 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
22545 | PyObject *resultobj; | |
22546 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22547 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22548 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
22549 | wxPrintPreview *result; | |
22550 | PyObject * obj0 = 0 ; | |
22551 | PyObject * obj1 = 0 ; | |
22552 | PyObject * obj2 = 0 ; | |
22553 | ||
22554 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22559 | if (obj2) { | |
22560 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
22561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22562 | } | |
22563 | { | |
22564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22565 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22566 | ||
22567 | wxPyEndAllowThreads(__tstate); | |
22568 | if (PyErr_Occurred()) SWIG_fail; | |
22569 | } | |
22570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22571 | return resultobj; | |
22572 | fail: | |
22573 | return NULL; | |
22574 | } | |
22575 | ||
22576 | ||
22577 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
22578 | PyObject *resultobj; | |
22579 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22580 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22581 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
22582 | wxPrintPreview *result; | |
22583 | PyObject * obj0 = 0 ; | |
22584 | PyObject * obj1 = 0 ; | |
22585 | PyObject * obj2 = 0 ; | |
22586 | ||
22587 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22592 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
22593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
22609 | int argc; | |
22610 | PyObject *argv[4]; | |
22611 | int ii; | |
22612 | ||
22613 | argc = PyObject_Length(args); | |
22614 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
22615 | argv[ii] = PyTuple_GetItem(args,ii); | |
22616 | } | |
22617 | if ((argc >= 2) && (argc <= 3)) { | |
22618 | int _v; | |
22619 | { | |
22620 | void *ptr; | |
22621 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22622 | _v = 0; | |
22623 | PyErr_Clear(); | |
22624 | } else { | |
22625 | _v = 1; | |
22626 | } | |
22627 | } | |
22628 | if (_v) { | |
22629 | { | |
22630 | void *ptr; | |
22631 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22632 | _v = 0; | |
22633 | PyErr_Clear(); | |
22634 | } else { | |
22635 | _v = 1; | |
22636 | } | |
22637 | } | |
22638 | if (_v) { | |
22639 | if (argc <= 2) { | |
22640 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
22641 | } | |
22642 | { | |
22643 | void *ptr; | |
22644 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
22645 | _v = 0; | |
22646 | PyErr_Clear(); | |
22647 | } else { | |
22648 | _v = 1; | |
22649 | } | |
22650 | } | |
22651 | if (_v) { | |
22652 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
22653 | } | |
22654 | } | |
22655 | } | |
22656 | } | |
22657 | if (argc == 3) { | |
22658 | int _v; | |
22659 | { | |
22660 | void *ptr; | |
22661 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22662 | _v = 0; | |
22663 | PyErr_Clear(); | |
22664 | } else { | |
22665 | _v = 1; | |
22666 | } | |
22667 | } | |
22668 | if (_v) { | |
22669 | { | |
22670 | void *ptr; | |
22671 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22672 | _v = 0; | |
22673 | PyErr_Clear(); | |
22674 | } else { | |
22675 | _v = 1; | |
22676 | } | |
22677 | } | |
22678 | if (_v) { | |
22679 | { | |
22680 | void *ptr; | |
22681 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
22682 | _v = 0; | |
22683 | PyErr_Clear(); | |
22684 | } else { | |
22685 | _v = 1; | |
22686 | } | |
22687 | } | |
22688 | if (_v) { | |
22689 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
22690 | } | |
22691 | } | |
22692 | } | |
22693 | } | |
22694 | ||
22695 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
22696 | return NULL; | |
22697 | } | |
22698 | ||
22699 | ||
22700 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22701 | PyObject *resultobj; | |
22702 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22703 | int arg2 ; | |
22704 | bool result; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | PyObject * obj1 = 0 ; | |
22707 | char *kwnames[] = { | |
22708 | (char *) "self",(char *) "pageNum", NULL | |
22709 | }; | |
22710 | ||
22711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
22712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22714 | arg2 = (int) SWIG_AsInt(obj1); | |
22715 | if (PyErr_Occurred()) SWIG_fail; | |
22716 | { | |
22717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22718 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
22719 | ||
22720 | wxPyEndAllowThreads(__tstate); | |
22721 | if (PyErr_Occurred()) SWIG_fail; | |
22722 | } | |
22723 | { | |
22724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22725 | } | |
22726 | return resultobj; | |
22727 | fail: | |
22728 | return NULL; | |
22729 | } | |
22730 | ||
22731 | ||
22732 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22733 | PyObject *resultobj; | |
22734 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22735 | int result; | |
22736 | PyObject * obj0 = 0 ; | |
22737 | char *kwnames[] = { | |
22738 | (char *) "self", NULL | |
22739 | }; | |
22740 | ||
22741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
22742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | result = (int)(arg1)->GetCurrentPage(); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
22751 | resultobj = SWIG_FromInt((int)result); | |
22752 | return resultobj; | |
22753 | fail: | |
22754 | return NULL; | |
22755 | } | |
22756 | ||
22757 | ||
22758 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22759 | PyObject *resultobj; | |
22760 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22761 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | PyObject * obj1 = 0 ; | |
22764 | char *kwnames[] = { | |
22765 | (char *) "self",(char *) "printout", NULL | |
22766 | }; | |
22767 | ||
22768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
22769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22773 | { | |
22774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22775 | (arg1)->SetPrintout(arg2); | |
22776 | ||
22777 | wxPyEndAllowThreads(__tstate); | |
22778 | if (PyErr_Occurred()) SWIG_fail; | |
22779 | } | |
22780 | Py_INCREF(Py_None); resultobj = Py_None; | |
22781 | return resultobj; | |
22782 | fail: | |
22783 | return NULL; | |
22784 | } | |
22785 | ||
22786 | ||
22787 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22788 | PyObject *resultobj; | |
22789 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22790 | wxPyPrintout *result; | |
22791 | PyObject * obj0 = 0 ; | |
22792 | char *kwnames[] = { | |
22793 | (char *) "self", NULL | |
22794 | }; | |
22795 | ||
22796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
22797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22799 | { | |
22800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22801 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
22802 | ||
22803 | wxPyEndAllowThreads(__tstate); | |
22804 | if (PyErr_Occurred()) SWIG_fail; | |
22805 | } | |
22806 | { | |
22807 | resultobj = wxPyMake_wxObject(result); | |
22808 | } | |
22809 | return resultobj; | |
22810 | fail: | |
22811 | return NULL; | |
22812 | } | |
22813 | ||
22814 | ||
22815 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22816 | PyObject *resultobj; | |
22817 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22818 | wxPyPrintout *result; | |
22819 | PyObject * obj0 = 0 ; | |
22820 | char *kwnames[] = { | |
22821 | (char *) "self", NULL | |
22822 | }; | |
22823 | ||
22824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
22825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22827 | { | |
22828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22829 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
22830 | ||
22831 | wxPyEndAllowThreads(__tstate); | |
22832 | if (PyErr_Occurred()) SWIG_fail; | |
22833 | } | |
22834 | { | |
22835 | resultobj = wxPyMake_wxObject(result); | |
22836 | } | |
22837 | return resultobj; | |
22838 | fail: | |
22839 | return NULL; | |
22840 | } | |
22841 | ||
22842 | ||
22843 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22844 | PyObject *resultobj; | |
22845 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22846 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22847 | PyObject * obj0 = 0 ; | |
22848 | PyObject * obj1 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "self",(char *) "frame", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
22854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22856 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22858 | { | |
22859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22860 | (arg1)->SetFrame(arg2); | |
22861 | ||
22862 | wxPyEndAllowThreads(__tstate); | |
22863 | if (PyErr_Occurred()) SWIG_fail; | |
22864 | } | |
22865 | Py_INCREF(Py_None); resultobj = Py_None; | |
22866 | return resultobj; | |
22867 | fail: | |
22868 | return NULL; | |
22869 | } | |
22870 | ||
22871 | ||
22872 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22873 | PyObject *resultobj; | |
22874 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22875 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22876 | PyObject * obj0 = 0 ; | |
22877 | PyObject * obj1 = 0 ; | |
22878 | char *kwnames[] = { | |
22879 | (char *) "self",(char *) "canvas", NULL | |
22880 | }; | |
22881 | ||
22882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
22883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22885 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
22886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22887 | { | |
22888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22889 | (arg1)->SetCanvas(arg2); | |
22890 | ||
22891 | wxPyEndAllowThreads(__tstate); | |
22892 | if (PyErr_Occurred()) SWIG_fail; | |
22893 | } | |
22894 | Py_INCREF(Py_None); resultobj = Py_None; | |
22895 | return resultobj; | |
22896 | fail: | |
22897 | return NULL; | |
22898 | } | |
22899 | ||
22900 | ||
22901 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22902 | PyObject *resultobj; | |
22903 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22904 | wxFrame *result; | |
22905 | PyObject * obj0 = 0 ; | |
22906 | char *kwnames[] = { | |
22907 | (char *) "self", NULL | |
22908 | }; | |
22909 | ||
22910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
22911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22913 | { | |
22914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22915 | result = (wxFrame *)(arg1)->GetFrame(); | |
22916 | ||
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
22920 | { | |
22921 | resultobj = wxPyMake_wxObject(result); | |
22922 | } | |
22923 | return resultobj; | |
22924 | fail: | |
22925 | return NULL; | |
22926 | } | |
22927 | ||
22928 | ||
22929 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22930 | PyObject *resultobj; | |
22931 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22932 | wxPreviewCanvas *result; | |
22933 | PyObject * obj0 = 0 ; | |
22934 | char *kwnames[] = { | |
22935 | (char *) "self", NULL | |
22936 | }; | |
22937 | ||
22938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
22939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22941 | { | |
22942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22943 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
22944 | ||
22945 | wxPyEndAllowThreads(__tstate); | |
22946 | if (PyErr_Occurred()) SWIG_fail; | |
22947 | } | |
22948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
22949 | return resultobj; | |
22950 | fail: | |
22951 | return NULL; | |
22952 | } | |
22953 | ||
22954 | ||
22955 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22956 | PyObject *resultobj; | |
22957 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22958 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22959 | wxDC *arg3 = 0 ; | |
22960 | bool result; | |
22961 | PyObject * obj0 = 0 ; | |
22962 | PyObject * obj1 = 0 ; | |
22963 | PyObject * obj2 = 0 ; | |
22964 | char *kwnames[] = { | |
22965 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
22966 | }; | |
22967 | ||
22968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22971 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
22972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22973 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
22974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22975 | SWIG_fail; | |
22976 | if (arg3 == NULL) { | |
22977 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22978 | SWIG_fail; | |
22979 | } | |
22980 | { | |
22981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22982 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
22983 | ||
22984 | wxPyEndAllowThreads(__tstate); | |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
22986 | } | |
22987 | { | |
22988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22989 | } | |
22990 | return resultobj; | |
22991 | fail: | |
22992 | return NULL; | |
22993 | } | |
22994 | ||
22995 | ||
22996 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22997 | PyObject *resultobj; | |
22998 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22999 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23000 | wxDC *arg3 = 0 ; | |
23001 | bool result; | |
23002 | PyObject * obj0 = 0 ; | |
23003 | PyObject * obj1 = 0 ; | |
23004 | PyObject * obj2 = 0 ; | |
23005 | char *kwnames[] = { | |
23006 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23007 | }; | |
23008 | ||
23009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23014 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23015 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23016 | SWIG_fail; | |
23017 | if (arg3 == NULL) { | |
23018 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23019 | SWIG_fail; | |
23020 | } | |
23021 | { | |
23022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23023 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23024 | ||
23025 | wxPyEndAllowThreads(__tstate); | |
23026 | if (PyErr_Occurred()) SWIG_fail; | |
23027 | } | |
23028 | { | |
23029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23030 | } | |
23031 | return resultobj; | |
23032 | fail: | |
23033 | return NULL; | |
23034 | } | |
23035 | ||
23036 | ||
23037 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23038 | PyObject *resultobj; | |
23039 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23040 | int arg2 ; | |
23041 | bool result; | |
23042 | PyObject * obj0 = 0 ; | |
23043 | PyObject * obj1 = 0 ; | |
23044 | char *kwnames[] = { | |
23045 | (char *) "self",(char *) "pageNum", NULL | |
23046 | }; | |
23047 | ||
23048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23051 | arg2 = (int) SWIG_AsInt(obj1); | |
23052 | if (PyErr_Occurred()) SWIG_fail; | |
23053 | { | |
23054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23055 | result = (bool)(arg1)->RenderPage(arg2); | |
23056 | ||
23057 | wxPyEndAllowThreads(__tstate); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | } | |
23060 | { | |
23061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23062 | } | |
23063 | return resultobj; | |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
23069 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23070 | PyObject *resultobj; | |
23071 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23072 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23073 | PyObject * obj0 = 0 ; | |
23074 | PyObject * obj1 = 0 ; | |
23075 | char *kwnames[] = { | |
23076 | (char *) "self",(char *) "canvas", NULL | |
23077 | }; | |
23078 | ||
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23084 | { | |
23085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23086 | (arg1)->AdjustScrollbars(arg2); | |
23087 | ||
23088 | wxPyEndAllowThreads(__tstate); | |
23089 | if (PyErr_Occurred()) SWIG_fail; | |
23090 | } | |
23091 | Py_INCREF(Py_None); resultobj = Py_None; | |
23092 | return resultobj; | |
23093 | fail: | |
23094 | return NULL; | |
23095 | } | |
23096 | ||
23097 | ||
23098 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23099 | PyObject *resultobj; | |
23100 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23101 | wxPrintDialogData *result; | |
23102 | PyObject * obj0 = 0 ; | |
23103 | char *kwnames[] = { | |
23104 | (char *) "self", NULL | |
23105 | }; | |
23106 | ||
23107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
23108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23110 | { | |
23111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23112 | { | |
23113 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
23114 | result = (wxPrintDialogData *) &_result_ref; | |
23115 | } | |
23116 | ||
23117 | wxPyEndAllowThreads(__tstate); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
23120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
23121 | return resultobj; | |
23122 | fail: | |
23123 | return NULL; | |
23124 | } | |
23125 | ||
23126 | ||
23127 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23128 | PyObject *resultobj; | |
23129 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23130 | int arg2 ; | |
23131 | PyObject * obj0 = 0 ; | |
23132 | PyObject * obj1 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self",(char *) "percent", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23140 | arg2 = (int) SWIG_AsInt(obj1); | |
23141 | if (PyErr_Occurred()) SWIG_fail; | |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | (arg1)->SetZoom(arg2); | |
23145 | ||
23146 | wxPyEndAllowThreads(__tstate); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | } | |
23149 | Py_INCREF(Py_None); resultobj = Py_None; | |
23150 | return resultobj; | |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
23156 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23157 | PyObject *resultobj; | |
23158 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23159 | int result; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | char *kwnames[] = { | |
23162 | (char *) "self", NULL | |
23163 | }; | |
23164 | ||
23165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
23166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23168 | { | |
23169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23170 | result = (int)(arg1)->GetZoom(); | |
23171 | ||
23172 | wxPyEndAllowThreads(__tstate); | |
23173 | if (PyErr_Occurred()) SWIG_fail; | |
23174 | } | |
23175 | resultobj = SWIG_FromInt((int)result); | |
23176 | return resultobj; | |
23177 | fail: | |
23178 | return NULL; | |
23179 | } | |
23180 | ||
23181 | ||
23182 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23183 | PyObject *resultobj; | |
23184 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23185 | int result; | |
23186 | PyObject * obj0 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
23192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23194 | { | |
23195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23196 | result = (int)(arg1)->GetMaxPage(); | |
23197 | ||
23198 | wxPyEndAllowThreads(__tstate); | |
23199 | if (PyErr_Occurred()) SWIG_fail; | |
23200 | } | |
23201 | resultobj = SWIG_FromInt((int)result); | |
23202 | return resultobj; | |
23203 | fail: | |
23204 | return NULL; | |
23205 | } | |
23206 | ||
23207 | ||
23208 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23209 | PyObject *resultobj; | |
23210 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23211 | int result; | |
23212 | PyObject * obj0 = 0 ; | |
23213 | char *kwnames[] = { | |
23214 | (char *) "self", NULL | |
23215 | }; | |
23216 | ||
23217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
23218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23220 | { | |
23221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23222 | result = (int)(arg1)->GetMinPage(); | |
23223 | ||
23224 | wxPyEndAllowThreads(__tstate); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | } | |
23227 | resultobj = SWIG_FromInt((int)result); | |
23228 | return resultobj; | |
23229 | fail: | |
23230 | return NULL; | |
23231 | } | |
23232 | ||
23233 | ||
23234 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23235 | PyObject *resultobj; | |
23236 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23237 | bool result; | |
23238 | PyObject * obj0 = 0 ; | |
23239 | char *kwnames[] = { | |
23240 | (char *) "self", NULL | |
23241 | }; | |
23242 | ||
23243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
23244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23246 | { | |
23247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23248 | result = (bool)(arg1)->Ok(); | |
23249 | ||
23250 | wxPyEndAllowThreads(__tstate); | |
23251 | if (PyErr_Occurred()) SWIG_fail; | |
23252 | } | |
23253 | { | |
23254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23255 | } | |
23256 | return resultobj; | |
23257 | fail: | |
23258 | return NULL; | |
23259 | } | |
23260 | ||
23261 | ||
23262 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23263 | PyObject *resultobj; | |
23264 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23265 | bool arg2 ; | |
23266 | PyObject * obj0 = 0 ; | |
23267 | PyObject * obj1 = 0 ; | |
23268 | char *kwnames[] = { | |
23269 | (char *) "self",(char *) "ok", NULL | |
23270 | }; | |
23271 | ||
23272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
23273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23275 | arg2 = (bool) SWIG_AsBool(obj1); | |
23276 | if (PyErr_Occurred()) SWIG_fail; | |
23277 | { | |
23278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23279 | (arg1)->SetOk(arg2); | |
23280 | ||
23281 | wxPyEndAllowThreads(__tstate); | |
23282 | if (PyErr_Occurred()) SWIG_fail; | |
23283 | } | |
23284 | Py_INCREF(Py_None); resultobj = Py_None; | |
23285 | return resultobj; | |
23286 | fail: | |
23287 | return NULL; | |
23288 | } | |
23289 | ||
23290 | ||
23291 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23292 | PyObject *resultobj; | |
23293 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23294 | bool arg2 ; | |
23295 | bool result; | |
23296 | PyObject * obj0 = 0 ; | |
23297 | PyObject * obj1 = 0 ; | |
23298 | char *kwnames[] = { | |
23299 | (char *) "self",(char *) "interactive", NULL | |
23300 | }; | |
23301 | ||
23302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
23303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23305 | arg2 = (bool) SWIG_AsBool(obj1); | |
23306 | if (PyErr_Occurred()) SWIG_fail; | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | result = (bool)(arg1)->Print(arg2); | |
23310 | ||
23311 | wxPyEndAllowThreads(__tstate); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
23313 | } | |
23314 | { | |
23315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23316 | } | |
23317 | return resultobj; | |
23318 | fail: | |
23319 | return NULL; | |
23320 | } | |
23321 | ||
23322 | ||
23323 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23324 | PyObject *resultobj; | |
23325 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23326 | PyObject * obj0 = 0 ; | |
23327 | char *kwnames[] = { | |
23328 | (char *) "self", NULL | |
23329 | }; | |
23330 | ||
23331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
23332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23334 | { | |
23335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23336 | (arg1)->DetermineScaling(); | |
23337 | ||
23338 | wxPyEndAllowThreads(__tstate); | |
23339 | if (PyErr_Occurred()) SWIG_fail; | |
23340 | } | |
23341 | Py_INCREF(Py_None); resultobj = Py_None; | |
23342 | return resultobj; | |
23343 | fail: | |
23344 | return NULL; | |
23345 | } | |
23346 | ||
23347 | ||
23348 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
23349 | PyObject *obj; | |
23350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23351 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
23352 | Py_INCREF(obj); | |
23353 | return Py_BuildValue((char *)""); | |
23354 | } | |
23355 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23356 | PyObject *resultobj; | |
23357 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23358 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23359 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23360 | wxPyPrintPreview *result; | |
23361 | PyObject * obj0 = 0 ; | |
23362 | PyObject * obj1 = 0 ; | |
23363 | PyObject * obj2 = 0 ; | |
23364 | ||
23365 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23368 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23370 | if (obj2) { | |
23371 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23373 | } | |
23374 | { | |
23375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23376 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23377 | ||
23378 | wxPyEndAllowThreads(__tstate); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
23380 | } | |
23381 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23382 | return resultobj; | |
23383 | fail: | |
23384 | return NULL; | |
23385 | } | |
23386 | ||
23387 | ||
23388 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23389 | PyObject *resultobj; | |
23390 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23391 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23392 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23393 | wxPyPrintPreview *result; | |
23394 | PyObject * obj0 = 0 ; | |
23395 | PyObject * obj1 = 0 ; | |
23396 | PyObject * obj2 = 0 ; | |
23397 | ||
23398 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23403 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23405 | { | |
23406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23407 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23408 | ||
23409 | wxPyEndAllowThreads(__tstate); | |
23410 | if (PyErr_Occurred()) SWIG_fail; | |
23411 | } | |
23412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23413 | return resultobj; | |
23414 | fail: | |
23415 | return NULL; | |
23416 | } | |
23417 | ||
23418 | ||
23419 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
23420 | int argc; | |
23421 | PyObject *argv[4]; | |
23422 | int ii; | |
23423 | ||
23424 | argc = PyObject_Length(args); | |
23425 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23426 | argv[ii] = PyTuple_GetItem(args,ii); | |
23427 | } | |
23428 | if ((argc >= 2) && (argc <= 3)) { | |
23429 | int _v; | |
23430 | { | |
23431 | void *ptr; | |
23432 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23433 | _v = 0; | |
23434 | PyErr_Clear(); | |
23435 | } else { | |
23436 | _v = 1; | |
23437 | } | |
23438 | } | |
23439 | if (_v) { | |
23440 | { | |
23441 | void *ptr; | |
23442 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23443 | _v = 0; | |
23444 | PyErr_Clear(); | |
23445 | } else { | |
23446 | _v = 1; | |
23447 | } | |
23448 | } | |
23449 | if (_v) { | |
23450 | if (argc <= 2) { | |
23451 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23452 | } | |
23453 | { | |
23454 | void *ptr; | |
23455 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23456 | _v = 0; | |
23457 | PyErr_Clear(); | |
23458 | } else { | |
23459 | _v = 1; | |
23460 | } | |
23461 | } | |
23462 | if (_v) { | |
23463 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23464 | } | |
23465 | } | |
23466 | } | |
23467 | } | |
23468 | if (argc == 3) { | |
23469 | int _v; | |
23470 | { | |
23471 | void *ptr; | |
23472 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23473 | _v = 0; | |
23474 | PyErr_Clear(); | |
23475 | } else { | |
23476 | _v = 1; | |
23477 | } | |
23478 | } | |
23479 | if (_v) { | |
23480 | { | |
23481 | void *ptr; | |
23482 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23483 | _v = 0; | |
23484 | PyErr_Clear(); | |
23485 | } else { | |
23486 | _v = 1; | |
23487 | } | |
23488 | } | |
23489 | if (_v) { | |
23490 | { | |
23491 | void *ptr; | |
23492 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23493 | _v = 0; | |
23494 | PyErr_Clear(); | |
23495 | } else { | |
23496 | _v = 1; | |
23497 | } | |
23498 | } | |
23499 | if (_v) { | |
23500 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
23501 | } | |
23502 | } | |
23503 | } | |
23504 | } | |
23505 | ||
23506 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
23507 | return NULL; | |
23508 | } | |
23509 | ||
23510 | ||
23511 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23512 | PyObject *resultobj; | |
23513 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23514 | PyObject *arg2 = (PyObject *) 0 ; | |
23515 | PyObject *arg3 = (PyObject *) 0 ; | |
23516 | PyObject * obj0 = 0 ; | |
23517 | PyObject * obj1 = 0 ; | |
23518 | PyObject * obj2 = 0 ; | |
23519 | char *kwnames[] = { | |
23520 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23521 | }; | |
23522 | ||
23523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23526 | arg2 = obj1; | |
23527 | arg3 = obj2; | |
23528 | { | |
23529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23530 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23531 | ||
23532 | wxPyEndAllowThreads(__tstate); | |
23533 | if (PyErr_Occurred()) SWIG_fail; | |
23534 | } | |
23535 | Py_INCREF(Py_None); resultobj = Py_None; | |
23536 | return resultobj; | |
23537 | fail: | |
23538 | return NULL; | |
23539 | } | |
23540 | ||
23541 | ||
23542 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23543 | PyObject *resultobj; | |
23544 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23545 | int arg2 ; | |
23546 | bool result; | |
23547 | PyObject * obj0 = 0 ; | |
23548 | PyObject * obj1 = 0 ; | |
23549 | char *kwnames[] = { | |
23550 | (char *) "self",(char *) "pageNum", NULL | |
23551 | }; | |
23552 | ||
23553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23556 | arg2 = (int) SWIG_AsInt(obj1); | |
23557 | if (PyErr_Occurred()) SWIG_fail; | |
23558 | { | |
23559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23560 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
23561 | ||
23562 | wxPyEndAllowThreads(__tstate); | |
23563 | if (PyErr_Occurred()) SWIG_fail; | |
23564 | } | |
23565 | { | |
23566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23567 | } | |
23568 | return resultobj; | |
23569 | fail: | |
23570 | return NULL; | |
23571 | } | |
23572 | ||
23573 | ||
23574 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23575 | PyObject *resultobj; | |
23576 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23577 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23578 | wxDC *arg3 = 0 ; | |
23579 | bool result; | |
23580 | PyObject * obj0 = 0 ; | |
23581 | PyObject * obj1 = 0 ; | |
23582 | PyObject * obj2 = 0 ; | |
23583 | char *kwnames[] = { | |
23584 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23585 | }; | |
23586 | ||
23587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23592 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23594 | SWIG_fail; | |
23595 | if (arg3 == NULL) { | |
23596 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23597 | SWIG_fail; | |
23598 | } | |
23599 | { | |
23600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23601 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
23602 | ||
23603 | wxPyEndAllowThreads(__tstate); | |
23604 | if (PyErr_Occurred()) SWIG_fail; | |
23605 | } | |
23606 | { | |
23607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23608 | } | |
23609 | return resultobj; | |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
23615 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23616 | PyObject *resultobj; | |
23617 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23618 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23619 | wxDC *arg3 = 0 ; | |
23620 | bool result; | |
23621 | PyObject * obj0 = 0 ; | |
23622 | PyObject * obj1 = 0 ; | |
23623 | PyObject * obj2 = 0 ; | |
23624 | char *kwnames[] = { | |
23625 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23626 | }; | |
23627 | ||
23628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23633 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23635 | SWIG_fail; | |
23636 | if (arg3 == NULL) { | |
23637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23638 | SWIG_fail; | |
23639 | } | |
23640 | { | |
23641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23642 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
23643 | ||
23644 | wxPyEndAllowThreads(__tstate); | |
23645 | if (PyErr_Occurred()) SWIG_fail; | |
23646 | } | |
23647 | { | |
23648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23649 | } | |
23650 | return resultobj; | |
23651 | fail: | |
23652 | return NULL; | |
23653 | } | |
23654 | ||
23655 | ||
23656 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23657 | PyObject *resultobj; | |
23658 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23659 | int arg2 ; | |
23660 | bool result; | |
23661 | PyObject * obj0 = 0 ; | |
23662 | PyObject * obj1 = 0 ; | |
23663 | char *kwnames[] = { | |
23664 | (char *) "self",(char *) "pageNum", NULL | |
23665 | }; | |
23666 | ||
23667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23670 | arg2 = (int) SWIG_AsInt(obj1); | |
23671 | if (PyErr_Occurred()) SWIG_fail; | |
23672 | { | |
23673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23674 | result = (bool)(arg1)->base_RenderPage(arg2); | |
23675 | ||
23676 | wxPyEndAllowThreads(__tstate); | |
23677 | if (PyErr_Occurred()) SWIG_fail; | |
23678 | } | |
23679 | { | |
23680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23681 | } | |
23682 | return resultobj; | |
23683 | fail: | |
23684 | return NULL; | |
23685 | } | |
23686 | ||
23687 | ||
23688 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23689 | PyObject *resultobj; | |
23690 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23691 | int arg2 ; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | PyObject * obj1 = 0 ; | |
23694 | char *kwnames[] = { | |
23695 | (char *) "self",(char *) "percent", NULL | |
23696 | }; | |
23697 | ||
23698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23701 | arg2 = (int) SWIG_AsInt(obj1); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | (arg1)->base_SetZoom(arg2); | |
23706 | ||
23707 | wxPyEndAllowThreads(__tstate); | |
23708 | if (PyErr_Occurred()) SWIG_fail; | |
23709 | } | |
23710 | Py_INCREF(Py_None); resultobj = Py_None; | |
23711 | return resultobj; | |
23712 | fail: | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
23717 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23718 | PyObject *resultobj; | |
23719 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23720 | bool arg2 ; | |
23721 | bool result; | |
23722 | PyObject * obj0 = 0 ; | |
23723 | PyObject * obj1 = 0 ; | |
23724 | char *kwnames[] = { | |
23725 | (char *) "self",(char *) "interactive", NULL | |
23726 | }; | |
23727 | ||
23728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
23729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23731 | arg2 = (bool) SWIG_AsBool(obj1); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | { | |
23734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23735 | result = (bool)(arg1)->base_Print(arg2); | |
23736 | ||
23737 | wxPyEndAllowThreads(__tstate); | |
23738 | if (PyErr_Occurred()) SWIG_fail; | |
23739 | } | |
23740 | { | |
23741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23742 | } | |
23743 | return resultobj; | |
23744 | fail: | |
23745 | return NULL; | |
23746 | } | |
23747 | ||
23748 | ||
23749 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23750 | PyObject *resultobj; | |
23751 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23752 | PyObject * obj0 = 0 ; | |
23753 | char *kwnames[] = { | |
23754 | (char *) "self", NULL | |
23755 | }; | |
23756 | ||
23757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
23758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23760 | { | |
23761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23762 | (arg1)->base_DetermineScaling(); | |
23763 | ||
23764 | wxPyEndAllowThreads(__tstate); | |
23765 | if (PyErr_Occurred()) SWIG_fail; | |
23766 | } | |
23767 | Py_INCREF(Py_None); resultobj = Py_None; | |
23768 | return resultobj; | |
23769 | fail: | |
23770 | return NULL; | |
23771 | } | |
23772 | ||
23773 | ||
23774 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
23775 | PyObject *obj; | |
23776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23777 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
23778 | Py_INCREF(obj); | |
23779 | return Py_BuildValue((char *)""); | |
23780 | } | |
23781 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23784 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23785 | wxString *arg3 = 0 ; | |
23786 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23787 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23788 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23789 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23790 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
23791 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
23792 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23793 | wxPyPreviewFrame *result; | |
23794 | bool temp3 = False ; | |
23795 | wxPoint temp4 ; | |
23796 | wxSize temp5 ; | |
23797 | bool temp7 = False ; | |
23798 | PyObject * obj0 = 0 ; | |
23799 | PyObject * obj1 = 0 ; | |
23800 | PyObject * obj2 = 0 ; | |
23801 | PyObject * obj3 = 0 ; | |
23802 | PyObject * obj4 = 0 ; | |
23803 | PyObject * obj5 = 0 ; | |
23804 | PyObject * obj6 = 0 ; | |
23805 | char *kwnames[] = { | |
23806 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
23807 | }; | |
23808 | ||
23809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23814 | { | |
23815 | arg3 = wxString_in_helper(obj2); | |
23816 | if (arg3 == NULL) SWIG_fail; | |
23817 | temp3 = True; | |
23818 | } | |
23819 | if (obj3) { | |
23820 | { | |
23821 | arg4 = &temp4; | |
23822 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23823 | } | |
23824 | } | |
23825 | if (obj4) { | |
23826 | { | |
23827 | arg5 = &temp5; | |
23828 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23829 | } | |
23830 | } | |
23831 | if (obj5) { | |
23832 | arg6 = (long) SWIG_AsLong(obj5); | |
23833 | if (PyErr_Occurred()) SWIG_fail; | |
23834 | } | |
23835 | if (obj6) { | |
23836 | { | |
23837 | arg7 = wxString_in_helper(obj6); | |
23838 | if (arg7 == NULL) SWIG_fail; | |
23839 | temp7 = True; | |
23840 | } | |
23841 | } | |
23842 | { | |
23843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23844 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
23845 | ||
23846 | wxPyEndAllowThreads(__tstate); | |
23847 | if (PyErr_Occurred()) SWIG_fail; | |
23848 | } | |
23849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
23850 | { | |
23851 | if (temp3) | |
23852 | delete arg3; | |
23853 | } | |
23854 | { | |
23855 | if (temp7) | |
23856 | delete arg7; | |
23857 | } | |
23858 | return resultobj; | |
23859 | fail: | |
23860 | { | |
23861 | if (temp3) | |
23862 | delete arg3; | |
23863 | } | |
23864 | { | |
23865 | if (temp7) | |
23866 | delete arg7; | |
23867 | } | |
23868 | return NULL; | |
23869 | } | |
23870 | ||
23871 | ||
23872 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23873 | PyObject *resultobj; | |
23874 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
23875 | PyObject *arg2 = (PyObject *) 0 ; | |
23876 | PyObject *arg3 = (PyObject *) 0 ; | |
23877 | PyObject * obj0 = 0 ; | |
23878 | PyObject * obj1 = 0 ; | |
23879 | PyObject * obj2 = 0 ; | |
23880 | char *kwnames[] = { | |
23881 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23882 | }; | |
23883 | ||
23884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
23886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23887 | arg2 = obj1; | |
23888 | arg3 = obj2; | |
23889 | { | |
23890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23891 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23892 | ||
23893 | wxPyEndAllowThreads(__tstate); | |
23894 | if (PyErr_Occurred()) SWIG_fail; | |
23895 | } | |
23896 | Py_INCREF(Py_None); resultobj = Py_None; | |
23897 | return resultobj; | |
23898 | fail: | |
23899 | return NULL; | |
23900 | } | |
23901 | ||
23902 | ||
23903 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23904 | PyObject *resultobj; | |
23905 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
23906 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23907 | PyObject * obj0 = 0 ; | |
23908 | PyObject * obj1 = 0 ; | |
23909 | char *kwnames[] = { | |
23910 | (char *) "self",(char *) "canvas", NULL | |
23911 | }; | |
23912 | ||
23913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
23915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23916 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23918 | { | |
23919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23920 | (arg1)->SetPreviewCanvas(arg2); | |
23921 | ||
23922 | wxPyEndAllowThreads(__tstate); | |
23923 | if (PyErr_Occurred()) SWIG_fail; | |
23924 | } | |
23925 | Py_INCREF(Py_None); resultobj = Py_None; | |
23926 | return resultobj; | |
23927 | fail: | |
23928 | return NULL; | |
23929 | } | |
23930 | ||
23931 | ||
23932 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23933 | PyObject *resultobj; | |
23934 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
23935 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
23936 | PyObject * obj0 = 0 ; | |
23937 | PyObject * obj1 = 0 ; | |
23938 | char *kwnames[] = { | |
23939 | (char *) "self",(char *) "bar", NULL | |
23940 | }; | |
23941 | ||
23942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
23943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
23944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23945 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
23946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23947 | { | |
23948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23949 | (arg1)->SetControlBar(arg2); | |
23950 | ||
23951 | wxPyEndAllowThreads(__tstate); | |
23952 | if (PyErr_Occurred()) SWIG_fail; | |
23953 | } | |
23954 | Py_INCREF(Py_None); resultobj = Py_None; | |
23955 | return resultobj; | |
23956 | fail: | |
23957 | return NULL; | |
23958 | } | |
23959 | ||
23960 | ||
23961 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23962 | PyObject *resultobj; | |
23963 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
23964 | PyObject * obj0 = 0 ; | |
23965 | char *kwnames[] = { | |
23966 | (char *) "self", NULL | |
23967 | }; | |
23968 | ||
23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23972 | { | |
23973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23974 | (arg1)->base_Initialize(); | |
23975 | ||
23976 | wxPyEndAllowThreads(__tstate); | |
23977 | if (PyErr_Occurred()) SWIG_fail; | |
23978 | } | |
23979 | Py_INCREF(Py_None); resultobj = Py_None; | |
23980 | return resultobj; | |
23981 | fail: | |
23982 | return NULL; | |
23983 | } | |
23984 | ||
23985 | ||
23986 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23987 | PyObject *resultobj; | |
23988 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
23989 | PyObject * obj0 = 0 ; | |
23990 | char *kwnames[] = { | |
23991 | (char *) "self", NULL | |
23992 | }; | |
23993 | ||
23994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
23995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
23996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23997 | { | |
23998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23999 | (arg1)->base_CreateCanvas(); | |
24000 | ||
24001 | wxPyEndAllowThreads(__tstate); | |
24002 | if (PyErr_Occurred()) SWIG_fail; | |
24003 | } | |
24004 | Py_INCREF(Py_None); resultobj = Py_None; | |
24005 | return resultobj; | |
24006 | fail: | |
24007 | return NULL; | |
24008 | } | |
24009 | ||
24010 | ||
24011 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24012 | PyObject *resultobj; | |
24013 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24014 | PyObject * obj0 = 0 ; | |
24015 | char *kwnames[] = { | |
24016 | (char *) "self", NULL | |
24017 | }; | |
24018 | ||
24019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24022 | { | |
24023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24024 | (arg1)->base_CreateControlBar(); | |
24025 | ||
24026 | wxPyEndAllowThreads(__tstate); | |
24027 | if (PyErr_Occurred()) SWIG_fail; | |
24028 | } | |
24029 | Py_INCREF(Py_None); resultobj = Py_None; | |
24030 | return resultobj; | |
24031 | fail: | |
24032 | return NULL; | |
24033 | } | |
24034 | ||
24035 | ||
24036 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24037 | PyObject *obj; | |
24038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24039 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24040 | Py_INCREF(obj); | |
24041 | return Py_BuildValue((char *)""); | |
24042 | } | |
24043 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24044 | PyObject *resultobj; | |
24045 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24046 | long arg2 ; | |
24047 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24048 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24049 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24050 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24051 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24052 | long arg6 = (long) 0 ; | |
24053 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24054 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24055 | wxPyPreviewControlBar *result; | |
24056 | wxPoint temp4 ; | |
24057 | wxSize temp5 ; | |
24058 | bool temp7 = False ; | |
24059 | PyObject * obj0 = 0 ; | |
24060 | PyObject * obj1 = 0 ; | |
24061 | PyObject * obj2 = 0 ; | |
24062 | PyObject * obj3 = 0 ; | |
24063 | PyObject * obj4 = 0 ; | |
24064 | PyObject * obj5 = 0 ; | |
24065 | PyObject * obj6 = 0 ; | |
24066 | char *kwnames[] = { | |
24067 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24068 | }; | |
24069 | ||
24070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24073 | arg2 = (long) SWIG_AsLong(obj1); | |
24074 | if (PyErr_Occurred()) SWIG_fail; | |
24075 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24077 | if (obj3) { | |
24078 | { | |
24079 | arg4 = &temp4; | |
24080 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24081 | } | |
24082 | } | |
24083 | if (obj4) { | |
24084 | { | |
24085 | arg5 = &temp5; | |
24086 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24087 | } | |
24088 | } | |
24089 | if (obj5) { | |
24090 | arg6 = (long) SWIG_AsLong(obj5); | |
24091 | if (PyErr_Occurred()) SWIG_fail; | |
24092 | } | |
24093 | if (obj6) { | |
24094 | { | |
24095 | arg7 = wxString_in_helper(obj6); | |
24096 | if (arg7 == NULL) SWIG_fail; | |
24097 | temp7 = True; | |
24098 | } | |
24099 | } | |
24100 | { | |
24101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24102 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24103 | ||
24104 | wxPyEndAllowThreads(__tstate); | |
24105 | if (PyErr_Occurred()) SWIG_fail; | |
24106 | } | |
24107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
24108 | { | |
24109 | if (temp7) | |
24110 | delete arg7; | |
24111 | } | |
24112 | return resultobj; | |
24113 | fail: | |
24114 | { | |
24115 | if (temp7) | |
24116 | delete arg7; | |
24117 | } | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24125 | PyObject *arg2 = (PyObject *) 0 ; | |
24126 | PyObject *arg3 = (PyObject *) 0 ; | |
24127 | PyObject * obj0 = 0 ; | |
24128 | PyObject * obj1 = 0 ; | |
24129 | PyObject * obj2 = 0 ; | |
24130 | char *kwnames[] = { | |
24131 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24132 | }; | |
24133 | ||
24134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24137 | arg2 = obj1; | |
24138 | arg3 = obj2; | |
24139 | { | |
24140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24141 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24142 | ||
24143 | wxPyEndAllowThreads(__tstate); | |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
24145 | } | |
24146 | Py_INCREF(Py_None); resultobj = Py_None; | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | return NULL; | |
24150 | } | |
24151 | ||
24152 | ||
24153 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24154 | PyObject *resultobj; | |
24155 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24156 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
24157 | PyObject * obj0 = 0 ; | |
24158 | PyObject * obj1 = 0 ; | |
24159 | char *kwnames[] = { | |
24160 | (char *) "self",(char *) "preview", NULL | |
24161 | }; | |
24162 | ||
24163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
24164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24166 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
24167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24168 | { | |
24169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24170 | (arg1)->SetPrintPreview(arg2); | |
24171 | ||
24172 | wxPyEndAllowThreads(__tstate); | |
24173 | if (PyErr_Occurred()) SWIG_fail; | |
24174 | } | |
24175 | Py_INCREF(Py_None); resultobj = Py_None; | |
24176 | return resultobj; | |
24177 | fail: | |
24178 | return NULL; | |
24179 | } | |
24180 | ||
24181 | ||
24182 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24183 | PyObject *resultobj; | |
24184 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24185 | PyObject * obj0 = 0 ; | |
24186 | char *kwnames[] = { | |
24187 | (char *) "self", NULL | |
24188 | }; | |
24189 | ||
24190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
24191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24193 | { | |
24194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24195 | (arg1)->base_CreateButtons(); | |
24196 | ||
24197 | wxPyEndAllowThreads(__tstate); | |
24198 | if (PyErr_Occurred()) SWIG_fail; | |
24199 | } | |
24200 | Py_INCREF(Py_None); resultobj = Py_None; | |
24201 | return resultobj; | |
24202 | fail: | |
24203 | return NULL; | |
24204 | } | |
24205 | ||
24206 | ||
24207 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24208 | PyObject *resultobj; | |
24209 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24210 | int arg2 ; | |
24211 | PyObject * obj0 = 0 ; | |
24212 | PyObject * obj1 = 0 ; | |
24213 | char *kwnames[] = { | |
24214 | (char *) "self",(char *) "zoom", NULL | |
24215 | }; | |
24216 | ||
24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
24218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24220 | arg2 = (int) SWIG_AsInt(obj1); | |
24221 | if (PyErr_Occurred()) SWIG_fail; | |
24222 | { | |
24223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24224 | (arg1)->base_SetZoomControl(arg2); | |
24225 | ||
24226 | wxPyEndAllowThreads(__tstate); | |
24227 | if (PyErr_Occurred()) SWIG_fail; | |
24228 | } | |
24229 | Py_INCREF(Py_None); resultobj = Py_None; | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
24236 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
24237 | PyObject *obj; | |
24238 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24239 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
24240 | Py_INCREF(obj); | |
24241 | return Py_BuildValue((char *)""); | |
24242 | } | |
24243 | static PyMethodDef SwigMethods[] = { | |
24244 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
24245 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
24246 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
24247 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24248 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
24249 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, | |
24250 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24251 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24252 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24253 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24254 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
24255 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24256 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24257 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
24258 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
24259 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
24260 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
24261 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
24262 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24263 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24264 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
24265 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
24266 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24267 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
24268 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24269 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24270 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
24271 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
24272 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
24273 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, | |
24274 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24275 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24276 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
24277 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
24278 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
24279 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24280 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24281 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
24282 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24283 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24284 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24285 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24286 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
24287 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, | |
24288 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacGetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, | |
24289 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
24290 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
24291 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
24292 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24293 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
24294 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
24295 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24296 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24297 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
24298 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24299 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24300 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24301 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24302 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24303 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24304 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24305 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24306 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24307 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24308 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24309 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24310 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
24311 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
24312 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
24313 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, | |
24314 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
24315 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
24316 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24317 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24318 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24319 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
24320 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
24321 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
24322 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
24323 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
24324 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
24325 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, | |
24326 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24327 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24328 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24329 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
24330 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
24331 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24332 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24333 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
24334 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
24335 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
24336 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24337 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
24338 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
24339 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24340 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24341 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
24342 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24343 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24344 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24345 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24346 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24347 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24348 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24349 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
24350 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
24351 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
24352 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
24353 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
24354 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, | |
24355 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24356 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24357 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24358 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
24359 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
24360 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24361 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24362 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24363 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
24364 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
24365 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
24366 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
24367 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
24368 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
24369 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24370 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24371 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24372 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24373 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24374 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24375 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24376 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24377 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24378 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24379 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
24380 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
24381 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
24382 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, | |
24383 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
24384 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24385 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24386 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
24387 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
24388 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
24389 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
24390 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24391 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24392 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24393 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24394 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24395 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
24396 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
24397 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
24398 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24399 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24400 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24401 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24402 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24403 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24404 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24405 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24406 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24407 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24408 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24409 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24410 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24411 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24412 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
24413 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
24414 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24415 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24416 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24417 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24418 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24419 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24420 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
24421 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
24422 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24423 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24424 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24425 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24426 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24427 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
24428 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24429 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24430 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24431 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24432 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
24433 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
24434 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24435 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24436 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
24437 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
24438 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
24439 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24440 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24441 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24442 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24443 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24444 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24445 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
24446 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24447 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
24448 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24449 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24450 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
24451 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
24452 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24453 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
24454 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24455 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24456 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
24457 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24458 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24459 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
24460 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
24461 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
24462 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
24463 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
24464 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24465 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24466 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24467 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24468 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24469 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
24470 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
24471 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
24472 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
24473 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
24474 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
24475 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
24476 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24477 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24478 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24479 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24480 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
24481 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
24482 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
24483 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
24484 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24485 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24486 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24487 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
24488 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24489 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24490 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
24491 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
24492 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
24493 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
24494 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24495 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24496 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24497 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
24498 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24499 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
24500 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
24501 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
24502 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
24503 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
24504 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24505 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
24506 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24507 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
24508 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24509 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24510 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24511 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24512 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24513 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24514 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, | |
24515 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, | |
24516 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24517 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24518 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24519 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
24520 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
24521 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
24522 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24523 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24524 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24525 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24526 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24527 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24528 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24529 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24530 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
24531 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
24532 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
24533 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
24534 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
24535 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24536 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24537 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24538 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24539 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24540 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
24541 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
24542 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24543 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24544 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24545 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24546 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24547 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24548 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24549 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24550 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24551 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24552 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24553 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24554 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24555 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24556 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
24557 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
24558 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
24559 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24560 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24561 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24562 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
24563 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24564 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24565 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
24566 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24567 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
24568 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
24569 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
24570 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
24571 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
24572 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24573 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24574 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24575 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24576 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24577 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24578 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24579 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24580 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24581 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24582 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24583 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24584 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24585 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
24586 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24587 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
24588 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
24589 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
24590 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
24591 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
24593 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
24594 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24596 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
24597 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
24598 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24600 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24601 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
24602 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24603 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24605 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
24606 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24610 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24611 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24612 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24613 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24614 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
24615 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
24619 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
24621 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
24622 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
24627 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
24629 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24630 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
24633 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
24640 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
24644 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, | |
24668 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24676 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24680 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, | |
24692 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24702 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, | |
24716 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24721 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
24722 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
24728 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24736 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
24737 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
24740 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
24747 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
24758 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
24762 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
24778 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
24784 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
24790 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24791 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
24794 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
24798 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
24799 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24807 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
24827 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
24832 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
24837 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
24848 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
24871 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
24873 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
24879 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
24889 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
24890 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
24913 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
24914 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
24923 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
24931 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
24937 | { NULL, NULL } | |
24938 | }; | |
24939 | ||
24940 | ||
24941 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
24942 | ||
24943 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
24944 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24945 | } | |
24946 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
24947 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
24948 | } | |
24949 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
24950 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
24951 | } | |
24952 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
24953 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
24954 | } | |
24955 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
24956 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
24957 | } | |
24958 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
24959 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
24960 | } | |
24961 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
24962 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
24963 | } | |
24964 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
24965 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
24966 | } | |
24967 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
24968 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
24969 | } | |
24970 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
24971 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
24972 | } | |
24973 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
24974 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
24975 | } | |
24976 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
24977 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
24978 | } | |
24979 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
24980 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
24981 | } | |
24982 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
24983 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
24984 | } | |
24985 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
24986 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
24987 | } | |
24988 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
24989 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
24990 | } | |
24991 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
24992 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
24993 | } | |
24994 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
24995 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
24996 | } | |
24997 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
24998 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
24999 | } | |
25000 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25001 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25002 | } | |
25003 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25004 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25005 | } | |
25006 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25007 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25008 | } | |
25009 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25010 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25011 | } | |
25012 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25013 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25014 | } | |
25015 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25016 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25017 | } | |
25018 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25019 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25020 | } | |
25021 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25022 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25023 | } | |
25024 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25025 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25026 | } | |
25027 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25028 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25029 | } | |
25030 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25031 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25032 | } | |
25033 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25034 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25035 | } | |
25036 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25037 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25038 | } | |
25039 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25040 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25041 | } | |
25042 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25043 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25044 | } | |
25045 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25046 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25047 | } | |
25048 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25049 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25050 | } | |
25051 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25052 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25053 | } | |
25054 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25055 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25056 | } | |
25057 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25058 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25059 | } | |
25060 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25061 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25062 | } | |
25063 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25064 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25065 | } | |
25066 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
25067 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25068 | } | |
25069 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
25070 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25071 | } | |
25072 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
25073 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25074 | } | |
25075 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
25076 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25077 | } | |
25078 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
25079 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25080 | } | |
25081 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25082 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25083 | } | |
25084 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25085 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25086 | } | |
25087 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25088 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25089 | } | |
25090 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25091 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25092 | } | |
25093 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
25094 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25095 | } | |
25096 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25097 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25098 | } | |
25099 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25100 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25101 | } | |
25102 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
25103 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25104 | } | |
25105 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
25106 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25107 | } | |
25108 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
25109 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25110 | } | |
25111 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
25112 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25113 | } | |
25114 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
25115 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
25116 | } | |
25117 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
25118 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
25119 | } | |
25120 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25121 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25122 | } | |
25123 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
25124 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25125 | } | |
25126 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
25127 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25128 | } | |
25129 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
25130 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
25131 | } | |
25132 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
25133 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25134 | } | |
25135 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
25136 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
25137 | } | |
25138 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
25139 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
25140 | } | |
25141 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
25142 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
25143 | } | |
25144 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25145 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25146 | } | |
25147 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25148 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25149 | } | |
25150 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
25151 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
25152 | } | |
25153 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
25154 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
25155 | } | |
25156 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25157 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25158 | } | |
25159 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25160 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25161 | } | |
25162 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25163 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25164 | } | |
25165 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25166 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25167 | } | |
25168 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
25169 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25170 | } | |
25171 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25172 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25173 | } | |
25174 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25175 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25176 | } | |
25177 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
25178 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
25179 | } | |
25180 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
25181 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25182 | } | |
25183 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
25184 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25185 | } | |
25186 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
25187 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25188 | } | |
25189 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25190 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25191 | } | |
25192 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25193 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25194 | } | |
25195 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
25196 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25197 | } | |
25198 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
25199 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25200 | } | |
25201 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
25202 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25203 | } | |
25204 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
25205 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25206 | } | |
25207 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
25208 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25209 | } | |
25210 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
25211 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25212 | } | |
25213 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
25214 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25215 | } | |
25216 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
25217 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25218 | } | |
25219 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
25220 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25221 | } | |
25222 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
25223 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25224 | } | |
25225 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
25226 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
25227 | } | |
25228 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
25229 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
25230 | } | |
25231 | static void *_p_wxTipWindowTo_p_wxFrame(void *x) { | |
25232 | return (void *)((wxFrame *) ((wxTipWindow *) x)); | |
25233 | } | |
25234 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
25235 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
25236 | } | |
25237 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
25238 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25239 | } | |
25240 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
25241 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
25242 | } | |
25243 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
25244 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
25245 | } | |
25246 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
25247 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
25248 | } | |
25249 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25250 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25251 | } | |
25252 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
25253 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25254 | } | |
25255 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
25256 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25257 | } | |
25258 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
25259 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25260 | } | |
25261 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25262 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25263 | } | |
25264 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25265 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25266 | } | |
25267 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25268 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25269 | } | |
25270 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25271 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25272 | } | |
25273 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25274 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25275 | } | |
25276 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25277 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25278 | } | |
25279 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25280 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25281 | } | |
25282 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25283 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25284 | } | |
25285 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25286 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25287 | } | |
25288 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
25289 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25290 | } | |
25291 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25292 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25293 | } | |
25294 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
25295 | return (void *)((wxObject *) ((wxFontData *) x)); | |
25296 | } | |
25297 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
25298 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
25299 | } | |
25300 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25301 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25302 | } | |
25303 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25304 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25305 | } | |
25306 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25307 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25308 | } | |
25309 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
25310 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
25311 | } | |
25312 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
25313 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25314 | } | |
25315 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
25316 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25317 | } | |
25318 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25319 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25320 | } | |
25321 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25322 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25323 | } | |
25324 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25325 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25326 | } | |
25327 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25328 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25329 | } | |
25330 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25331 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25332 | } | |
25333 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25334 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25335 | } | |
25336 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
25337 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25338 | } | |
25339 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25340 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25341 | } | |
25342 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25343 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25344 | } | |
25345 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
25346 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25347 | } | |
25348 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25349 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25350 | } | |
25351 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
25352 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
25353 | } | |
25354 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25355 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25356 | } | |
25357 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
25358 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25359 | } | |
25360 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
25361 | return (void *)((wxObject *) ((wxColourData *) x)); | |
25362 | } | |
25363 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25364 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25365 | } | |
25366 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25367 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25368 | } | |
25369 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
25370 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
25371 | } | |
25372 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
25373 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25374 | } | |
25375 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
25376 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25377 | } | |
25378 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
25379 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25380 | } | |
25381 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
25382 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25383 | } | |
25384 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
25385 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25386 | } | |
25387 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
25388 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25389 | } | |
25390 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
25391 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25392 | } | |
25393 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
25394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25395 | } | |
25396 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25397 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25398 | } | |
25399 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
25400 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
25401 | } | |
25402 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25403 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25404 | } | |
25405 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25406 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25407 | } | |
25408 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25409 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25410 | } | |
25411 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25412 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25413 | } | |
25414 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25415 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25416 | } | |
25417 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25418 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25419 | } | |
25420 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25421 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25422 | } | |
25423 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25424 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25425 | } | |
25426 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25427 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25428 | } | |
25429 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25430 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25431 | } | |
25432 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25433 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25434 | } | |
25435 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25436 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25437 | } | |
25438 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25439 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25440 | } | |
25441 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25442 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25443 | } | |
25444 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25445 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25446 | } | |
25447 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25448 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25449 | } | |
25450 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25451 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25452 | } | |
25453 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25454 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25455 | } | |
25456 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25457 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25458 | } | |
25459 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25460 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25461 | } | |
25462 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25463 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25464 | } | |
25465 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25466 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25467 | } | |
25468 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
25469 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25470 | } | |
25471 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
25472 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25473 | } | |
25474 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
25475 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25476 | } | |
25477 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
25478 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25479 | } | |
25480 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
25481 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25482 | } | |
25483 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25484 | return (void *)((wxObject *) ((wxImage *) x)); | |
25485 | } | |
25486 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
25487 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25488 | } | |
25489 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
25490 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
25491 | } | |
25492 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25493 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25494 | } | |
25495 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
25496 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25497 | } | |
25498 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
25499 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
25500 | } | |
25501 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
25502 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25503 | } | |
25504 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25505 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25506 | } | |
25507 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25508 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25509 | } | |
25510 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25511 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25512 | } | |
25513 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25514 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25515 | } | |
25516 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25517 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25518 | } | |
25519 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25520 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25521 | } | |
25522 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
25523 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25524 | } | |
25525 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
25526 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
25527 | } | |
25528 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
25529 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
25530 | } | |
25531 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
25532 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
25533 | } | |
25534 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
25535 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
25536 | } | |
25537 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
25538 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25539 | } | |
25540 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
25541 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
25542 | } | |
25543 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
25544 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25545 | } | |
25546 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
25547 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25548 | } | |
25549 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
25550 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25551 | } | |
25552 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
25553 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
25554 | } | |
25555 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
25556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25557 | } | |
25558 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
25559 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
25560 | } | |
25561 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
25562 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
25563 | } | |
25564 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
25565 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
25566 | } | |
25567 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
25568 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
25569 | } | |
25570 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
25571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25572 | } | |
25573 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
25574 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25575 | } | |
25576 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
25577 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25578 | } | |
25579 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
25580 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25581 | } | |
25582 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
25583 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25584 | } | |
25585 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
25586 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25587 | } | |
25588 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25589 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25590 | } | |
25591 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25592 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25593 | } | |
25594 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25595 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25596 | } | |
25597 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25598 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25599 | } | |
25600 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25601 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25602 | } | |
25603 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25604 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25605 | } | |
25606 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25607 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25608 | } | |
25609 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25610 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25611 | } | |
25612 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25613 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25614 | } | |
25615 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
25616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25617 | } | |
25618 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
25619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25620 | } | |
25621 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25622 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25623 | } | |
25624 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25625 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25626 | } | |
25627 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25628 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25629 | } | |
25630 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25631 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25632 | } | |
25633 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
25634 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
25635 | } | |
25636 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
25637 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
25638 | } | |
25639 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25640 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25641 | } | |
25642 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25643 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25644 | } | |
25645 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
25646 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25647 | } | |
25648 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
25649 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25650 | } | |
25651 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
25652 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25653 | } | |
25654 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
25655 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25656 | } | |
25657 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
25658 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
25659 | } | |
25660 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
25661 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
25662 | } | |
25663 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
25664 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
25665 | } | |
25666 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
25667 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
25668 | } | |
25669 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
25670 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
25671 | } | |
25672 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
25673 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
25674 | } | |
25675 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
25676 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
25677 | } | |
25678 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
25679 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
25680 | } | |
25681 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
25682 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
25683 | } | |
25684 | static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { | |
25685 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); | |
25686 | } | |
25687 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
25688 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
25689 | } | |
25690 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
25691 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
25692 | } | |
25693 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
25694 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
25695 | } | |
25696 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
25697 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
25698 | } | |
25699 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
25700 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
25701 | } | |
25702 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
25703 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25704 | } | |
25705 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
25706 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25707 | } | |
25708 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
25709 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
25710 | } | |
25711 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
25712 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
25713 | } | |
25714 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
25715 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
25716 | } | |
25717 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
25718 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25719 | } | |
25720 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
25721 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25722 | } | |
25723 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
25724 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25725 | } | |
25726 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
25727 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
25728 | } | |
25729 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25730 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25731 | } | |
25732 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
25733 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25734 | } | |
25735 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
25736 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25737 | } | |
25738 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
25739 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25740 | } | |
25741 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
25742 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25743 | } | |
25744 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
25745 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25746 | } | |
25747 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
25748 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25749 | } | |
25750 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
25751 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25752 | } | |
25753 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
25754 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
25755 | } | |
25756 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
25757 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
25758 | } | |
25759 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
25760 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
25761 | } | |
25762 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
25763 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25764 | } | |
25765 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
25766 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25767 | } | |
25768 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
25769 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25770 | } | |
25771 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
25772 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
25773 | } | |
25774 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
25775 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25776 | } | |
25777 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
25778 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
25779 | } | |
25780 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
25781 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
25782 | } | |
25783 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
25784 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
25785 | } | |
25786 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
25787 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
25788 | } | |
25789 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
25790 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
25791 | } | |
25792 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
25793 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25794 | } | |
25795 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
25796 | return (void *)((wxWindow *) ((wxControl *) x)); | |
25797 | } | |
25798 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
25799 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25800 | } | |
25801 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
25802 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25803 | } | |
25804 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
25805 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25806 | } | |
25807 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
25808 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
25809 | } | |
25810 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
25811 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
25812 | } | |
25813 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
25814 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25815 | } | |
25816 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
25817 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25818 | } | |
25819 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
25820 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25821 | } | |
25822 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
25823 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
25824 | } | |
25825 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
25826 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25827 | } | |
25828 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
25829 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
25830 | } | |
25831 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
25832 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25833 | } | |
25834 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
25835 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25836 | } | |
25837 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
25838 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25839 | } | |
25840 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
25841 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
25842 | } | |
25843 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
25844 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25845 | } | |
25846 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
25847 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25848 | } | |
25849 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
25850 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25851 | } | |
25852 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
25853 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25854 | } | |
25855 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
25856 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25857 | } | |
25858 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
25859 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
25860 | } | |
25861 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
25862 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
25863 | } | |
25864 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
25865 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
25866 | } | |
25867 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
25868 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
25869 | } | |
25870 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
25871 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
25872 | } | |
25873 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
25874 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
25875 | } | |
25876 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
25877 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
25878 | } | |
25879 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
25880 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25881 | } | |
25882 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
25883 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25884 | } | |
25885 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
25886 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
25887 | } | |
25888 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
25889 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
25890 | } | |
25891 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
25892 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
25893 | } | |
25894 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
25895 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
25896 | } | |
25897 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
25898 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25899 | } | |
25900 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
25901 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25902 | } | |
25903 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
25904 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25905 | } | |
25906 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
25907 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25908 | } | |
25909 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
25910 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
25911 | } | |
25912 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
25913 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25914 | } | |
25915 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
25916 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
25917 | } | |
25918 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
25919 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25920 | } | |
25921 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
25922 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25923 | } | |
25924 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
25925 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
25926 | } | |
25927 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
25928 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25929 | } | |
25930 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
25931 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25932 | } | |
25933 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
25934 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25935 | } | |
25936 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
25937 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25938 | } | |
25939 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
25940 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25941 | } | |
25942 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
25943 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25944 | } | |
25945 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
25946 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25947 | } | |
25948 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
25949 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25950 | } | |
25951 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
25952 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
25953 | } | |
25954 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
25955 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25956 | } | |
25957 | 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}}; | |
25958 | 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}}; | |
25959 | 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}}; | |
25960 | 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}}; | |
25961 | 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}}; | |
25962 | 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}}; | |
25963 | 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}}; | |
25964 | 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}}; | |
25965 | 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}}; | |
25966 | 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}}; | |
25967 | 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}}; | |
25968 | 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}}; | |
25969 | 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}}; | |
25970 | 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}}; | |
25971 | 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}}; | |
25972 | 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}}; | |
25973 | 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}}; | |
25974 | 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}}; | |
25975 | 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}}; | |
25976 | 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}}; | |
25977 | 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}}; | |
25978 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
25979 | 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}}; | |
25980 | 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}}; | |
25981 | 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}}; | |
25982 | 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}}; | |
25983 | 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}}; | |
25984 | 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}}; | |
25985 | 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}}; | |
25986 | 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}}; | |
25987 | 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}}; | |
25988 | 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}}; | |
25989 | 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}}; | |
25990 | 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}}; | |
25991 | 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}}; | |
25992 | 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}}; | |
25993 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
25994 | 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}}; | |
25995 | 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}}; | |
25996 | 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}}; | |
25997 | 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}}; | |
25998 | 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}}; | |
25999 | 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}}; | |
26000 | 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}}; | |
26001 | 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}}; | |
26002 | 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}}; | |
26003 | 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}}; | |
26004 | 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}}; | |
26005 | 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}}; | |
26006 | 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}}; | |
26007 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26008 | 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}}; | |
26009 | 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}}; | |
26010 | static swig_type_info _swigt__p_wxPyScrolledWindow[] = {{"_p_wxPyScrolledWindow", 0, "wxPyScrolledWindow *", 0, 0, 0, 0},{"_p_wxPyScrolledWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26011 | 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}}; | |
26012 | 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}}; | |
26013 | 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}}; | |
26014 | 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}}; | |
26015 | 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}}; | |
26016 | 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}}; | |
26017 | 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}}; | |
26018 | 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}}; | |
26019 | 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}}; | |
26020 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26021 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0, 0, 0, 0},{"_p_wxScrolledWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26022 | 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}}; | |
26023 | 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}}; | |
26024 | 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}}; | |
26025 | 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}}; | |
26026 | 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}}; | |
26027 | 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}}; | |
26028 | 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}}; | |
26029 | 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}}; | |
26030 | 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}}; | |
26031 | 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}}; | |
26032 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyScrolledWindow", _p_wxPyScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26033 | 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}}; | |
26034 | 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}}; | |
26035 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26036 | 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}}; | |
26037 | 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}}; | |
26038 | 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}}; | |
26039 | 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}}; | |
26040 | 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}}; | |
26041 | 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}}; | |
26042 | 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}}; | |
26043 | 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}}; | |
26044 | ||
26045 | static swig_type_info *swig_types_initial[] = { | |
26046 | _swigt__p_wxQueryLayoutInfoEvent, | |
26047 | _swigt__p_wxPreviewFrame, | |
26048 | _swigt__p_wxPyPreviewFrame, | |
26049 | _swigt__p_wxPyPanel, | |
26050 | _swigt__p_wxMenu, | |
26051 | _swigt__p_wxFontData, | |
26052 | _swigt__p_wxEvent, | |
26053 | _swigt__p_wxPrintData, | |
26054 | _swigt__p_wxTaskBarIcon, | |
26055 | _swigt__p_wxIconBundle, | |
26056 | _swigt__p_wxLayoutAlgorithm, | |
26057 | _swigt__p_wxFindDialogEvent, | |
26058 | _swigt__p_wxPreviewCanvas, | |
26059 | _swigt__p_wxFont, | |
26060 | _swigt__p_wxSplitterEvent, | |
26061 | _swigt__p_wxRegion, | |
26062 | _swigt__p_wxFindReplaceData, | |
26063 | _swigt__p_int, | |
26064 | _swigt__p_wxSize, | |
26065 | _swigt__p_wxDC, | |
26066 | _swigt__p_wxIcon, | |
26067 | _swigt__p_wxVisualAttributes, | |
26068 | _swigt__p_wxMDIChildFrame, | |
26069 | _swigt__p_wxColourData, | |
26070 | _swigt__p_wxNotifyEvent, | |
26071 | _swigt__p_wxPyWindow, | |
26072 | _swigt__p_wxSplashScreen, | |
26073 | _swigt__p_wxFindReplaceDialog, | |
26074 | _swigt__p_wxProgressDialog, | |
26075 | _swigt__p_wxMessageDialog, | |
26076 | _swigt__p_wxTextEntryDialog, | |
26077 | _swigt__p_wxSingleChoiceDialog, | |
26078 | _swigt__p_wxMultiChoiceDialog, | |
26079 | _swigt__p_wxFileDialog, | |
26080 | _swigt__p_wxPrinter, | |
26081 | _swigt__p_wxArrayInt, | |
26082 | _swigt__p_wxEvtHandler, | |
26083 | _swigt__p_wxCalculateLayoutEvent, | |
26084 | _swigt__p_wxPyHtmlListBox, | |
26085 | _swigt__p_wxPyVListBox, | |
26086 | _swigt__p_wxRect, | |
26087 | _swigt__p_char, | |
26088 | _swigt__p_wxMiniFrame, | |
26089 | _swigt__p_wxFrame, | |
26090 | _swigt__p_wxPyPrintout, | |
26091 | _swigt__p_wxTaskBarIconEvent, | |
26092 | _swigt__p_wxScrollWinEvent, | |
26093 | _swigt__p_wxStatusBar, | |
26094 | _swigt__p_wxMDIParentFrame, | |
26095 | _swigt__p_wxPoint, | |
26096 | _swigt__p_wxObject, | |
26097 | _swigt__p_wxOutputStream, | |
26098 | _swigt__p_unsigned_long, | |
26099 | _swigt__p_wxPyScrolledWindow, | |
26100 | _swigt__p_wxMDIClientWindow, | |
26101 | _swigt__p_wxTipWindow, | |
26102 | _swigt__p_wxPyPopupTransientWindow, | |
26103 | _swigt__p_wxSashLayoutWindow, | |
26104 | _swigt__p_wxSplitterWindow, | |
26105 | _swigt__p_wxPyVScrolledWindow, | |
26106 | _swigt__p_wxPopupWindow, | |
26107 | _swigt__p_wxSashWindow, | |
26108 | _swigt__p_wxTopLevelWindow, | |
26109 | _swigt__p_wxWindow, | |
26110 | _swigt__p_wxScrolledWindow, | |
26111 | _swigt__p_wxSplashScreenWindow, | |
26112 | _swigt__p_wxMenuBar, | |
26113 | _swigt__p_wxPrintPreview, | |
26114 | _swigt__p_wxSashEvent, | |
26115 | _swigt__p_wxString, | |
26116 | _swigt__p_wxPyPrintPreview, | |
26117 | _swigt__p_wxFontDialog, | |
26118 | _swigt__p_wxDirDialog, | |
26119 | _swigt__p_wxColourDialog, | |
26120 | _swigt__p_wxDialog, | |
26121 | _swigt__p_wxPanel, | |
26122 | _swigt__p_wxPageSetupDialog, | |
26123 | _swigt__p_wxPrintDialog, | |
26124 | _swigt__p_wxFileSystem, | |
26125 | _swigt__p_wxBitmap, | |
26126 | _swigt__p_wxCommandEvent, | |
26127 | _swigt__p_wxPreviewControlBar, | |
26128 | _swigt__p_wxPyPreviewControlBar, | |
26129 | _swigt__p_wxColour, | |
26130 | _swigt__p_wxToolBar, | |
26131 | _swigt__p_wxPageSetupDialogData, | |
26132 | _swigt__p_wxPrintDialogData, | |
26133 | 0 | |
26134 | }; | |
26135 | ||
26136 | ||
26137 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26138 | ||
26139 | static swig_const_info swig_const_table[] = { | |
26140 | {0}}; | |
26141 | ||
26142 | #ifdef __cplusplus | |
26143 | } | |
26144 | #endif | |
26145 | ||
26146 | #ifdef __cplusplus | |
26147 | extern "C" | |
26148 | #endif | |
26149 | SWIGEXPORT(void) SWIG_init(void) { | |
26150 | static PyObject *SWIG_globals = 0; | |
26151 | static int typeinit = 0; | |
26152 | PyObject *m, *d; | |
26153 | int i; | |
26154 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26155 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26156 | d = PyModule_GetDict(m); | |
26157 | ||
26158 | if (!typeinit) { | |
26159 | for (i = 0; swig_types_initial[i]; i++) { | |
26160 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26161 | } | |
26162 | typeinit = 1; | |
26163 | } | |
26164 | SWIG_InstallConstants(d,swig_const_table); | |
26165 | ||
26166 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26167 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
26168 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
26169 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
26170 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
26171 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
26172 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
26173 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
26174 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
26175 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
26176 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
26177 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
26178 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
26179 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
26180 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
26181 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
26182 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
26183 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
26184 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
26185 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
26186 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
26187 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
26188 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
26189 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
26190 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
26191 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
26192 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
26193 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
26194 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
26195 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
26196 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
26197 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
26198 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
26199 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
26200 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
26201 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
26202 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
26203 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
26204 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
26205 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
26206 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
26207 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
26208 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
26209 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
26210 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
26211 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
26212 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
26213 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
26214 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
26215 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
26216 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
26217 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
26218 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
26219 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
26220 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
26221 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
26222 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
26223 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
26224 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
26225 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
26226 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
26227 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
26228 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
26229 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
26230 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
26231 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
26232 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
26233 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
26234 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
26235 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
26236 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
26237 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
26238 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
26239 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
26240 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
26241 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
26242 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
26243 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
26244 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
26245 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
26246 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
26247 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
26248 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
26249 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
26250 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
26251 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
26252 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
26253 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
26254 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
26255 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
26256 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
26257 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
26258 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
26259 | ||
26260 | // Map renamed classes back to their common name for OOR | |
26261 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
26262 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
26263 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
26264 | ||
26265 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
26266 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
26267 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
26268 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
26269 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
26270 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
26271 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
26272 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26273 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
26274 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
26275 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26276 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
26277 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
26278 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
26279 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
26280 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
26281 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
26282 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
26283 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
26284 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
26285 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
26286 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
26287 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
26288 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
26289 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
26290 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
26291 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
26292 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
26293 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
26294 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
26295 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
26296 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
26297 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
26298 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
26299 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
26300 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
26301 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
26302 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
26303 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
26304 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
26305 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
26306 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
26307 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
26308 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
26309 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
26310 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
26311 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
26312 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
26313 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
26314 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
26315 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
26316 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
26317 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
26318 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
26319 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
26320 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
26321 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
26322 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
26323 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
26324 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
26325 | ||
26326 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
26327 | ||
26328 | } | |
26329 |