]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxPreviewFrame swig_types[1] | |
211 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[2] | |
212 | #define SWIGTYPE_p_wxPyPanel swig_types[3] | |
213 | #define SWIGTYPE_p_wxMenu swig_types[4] | |
f20a2e1f RD |
214 | #define SWIGTYPE_p_wxFontData swig_types[5] |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxPrintData swig_types[7] | |
d55e5bfc RD |
217 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[8] |
218 | #define SWIGTYPE_p_wxIconBundle swig_types[9] | |
219 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[10] | |
220 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[12] | |
222 | #define SWIGTYPE_p_wxFont swig_types[13] | |
223 | #define SWIGTYPE_p_wxSplitterEvent swig_types[14] | |
224 | #define SWIGTYPE_p_wxRegion swig_types[15] | |
225 | #define SWIGTYPE_p_wxFindReplaceData swig_types[16] | |
226 | #define SWIGTYPE_p_int swig_types[17] | |
227 | #define SWIGTYPE_p_wxSize swig_types[18] | |
228 | #define SWIGTYPE_p_wxDC swig_types[19] | |
229 | #define SWIGTYPE_p_wxIcon swig_types[20] | |
f20a2e1f RD |
230 | #define SWIGTYPE_p_wxVisualAttributes swig_types[21] |
231 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[22] | |
232 | #define SWIGTYPE_p_wxColourData swig_types[23] | |
233 | #define SWIGTYPE_p_wxNotifyEvent swig_types[24] | |
234 | #define SWIGTYPE_p_wxPyWindow swig_types[25] | |
235 | #define SWIGTYPE_p_wxSplashScreen swig_types[26] | |
236 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[27] | |
237 | #define SWIGTYPE_p_wxProgressDialog swig_types[28] | |
238 | #define SWIGTYPE_p_wxMessageDialog swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[30] | |
240 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[31] | |
241 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[32] | |
242 | #define SWIGTYPE_p_wxFileDialog swig_types[33] | |
243 | #define SWIGTYPE_p_wxPrinter swig_types[34] | |
244 | #define SWIGTYPE_p_wxArrayInt swig_types[35] | |
245 | #define SWIGTYPE_p_wxEvtHandler swig_types[36] | |
246 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[38] | |
248 | #define SWIGTYPE_p_wxPyVListBox swig_types[39] | |
249 | #define SWIGTYPE_p_wxRect swig_types[40] | |
250 | #define SWIGTYPE_p_char swig_types[41] | |
251 | #define SWIGTYPE_p_wxMiniFrame swig_types[42] | |
252 | #define SWIGTYPE_p_wxFrame swig_types[43] | |
253 | #define SWIGTYPE_p_wxPyPrintout swig_types[44] | |
254 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxStatusBar swig_types[47] | |
257 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[48] | |
258 | #define SWIGTYPE_p_wxPoint swig_types[49] | |
259 | #define SWIGTYPE_p_wxObject swig_types[50] | |
260 | #define SWIGTYPE_p_wxOutputStream swig_types[51] | |
261 | #define SWIGTYPE_p_unsigned_long swig_types[52] | |
262 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[53] | |
263 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[54] | |
264 | #define SWIGTYPE_p_wxTipWindow swig_types[55] | |
265 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxSplitterWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxPopupWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxSashWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxScrolledWindow swig_types[64] | |
274 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[65] | |
275 | #define SWIGTYPE_p_wxMenuBar swig_types[66] | |
276 | #define SWIGTYPE_p_wxPrintPreview swig_types[67] | |
277 | #define SWIGTYPE_p_wxSashEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxString swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[70] | |
280 | #define SWIGTYPE_p_wxFontDialog swig_types[71] | |
281 | #define SWIGTYPE_p_wxDirDialog swig_types[72] | |
282 | #define SWIGTYPE_p_wxColourDialog swig_types[73] | |
283 | #define SWIGTYPE_p_wxDialog swig_types[74] | |
284 | #define SWIGTYPE_p_wxPanel swig_types[75] | |
285 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[76] | |
286 | #define SWIGTYPE_p_wxPrintDialog swig_types[77] | |
287 | #define SWIGTYPE_p_wxFileSystem swig_types[78] | |
288 | #define SWIGTYPE_p_wxBitmap swig_types[79] | |
289 | #define SWIGTYPE_p_wxCommandEvent swig_types[80] | |
290 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxColour swig_types[83] | |
293 | #define SWIGTYPE_p_wxToolBar swig_types[84] | |
294 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[85] | |
295 | #define SWIGTYPE_p_wxPrintDialogData swig_types[86] | |
296 | static swig_type_info *swig_types[88]; | |
d55e5bfc RD |
297 | |
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _windows_.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_windows_ | |
305 | ||
306 | #define SWIG_name "_windows_" | |
307 | ||
308 | /* Auxiliar swig macros */ | |
309 | ||
310 | #ifdef __cplusplus | |
311 | #define SWIGSTATICINLINE(a) static inline a | |
312 | #define SWIGSTATIC(a) static a | |
313 | #define swig_new_array(type, size) (new type[(size)]) | |
314 | #define swig_delete_array(cptr) delete[] cptr | |
315 | #define swig_const_cast(type,a) const_cast<type>(a) | |
316 | #define swig_static_cast(type,a) static_cast<type>(a) | |
317 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
318 | ||
319 | #ifdef HAVE_NUMERIC_CAST | |
320 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
321 | #else | |
322 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
323 | #endif | |
324 | ||
325 | #else /* C case */ | |
326 | ||
327 | #define SWIGSTATICINLINE(a) static a | |
328 | #define SWIGSTATIC(a) static a | |
329 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
330 | #define swig_delete_array(cptr) free((char*)cptr) | |
331 | #define swig_const_cast(type,a) (type)(a) | |
332 | #define swig_static_cast(type,a) (type)(a) | |
333 | #define swig_reinterpret_cast(type,a) (type)(a) | |
334 | #define swig_numeric_cast(type,a) (type)(a) | |
335 | ||
336 | #endif /* __cplusplus */ | |
337 | ||
338 | ||
339 | #define SWIG_FromSignedChar PyInt_FromLong | |
340 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
341 | #define SWIG_FromShort PyInt_FromLong | |
342 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
343 | #define SWIG_FromInt PyInt_FromLong | |
344 | #define SWIG_FromLong PyInt_FromLong | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | #define SWIG_FromFloat PyFloat_FromDouble | |
348 | #define SWIG_FromDouble PyFloat_FromDouble | |
349 | ||
350 | ||
351 | #include "wx/wxPython/wxPython.h" | |
352 | #include "wx/wxPython/pyclasses.h" | |
353 | ||
354 | ||
355 | static const wxString wxPyEmptyString(wxEmptyString); | |
356 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
357 | ||
358 | ||
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
438 | } | |
439 | ||
440 | ||
441 | SWIGSTATICINLINE(bool) | |
442 | SWIG_AsBool(PyObject *obj) | |
443 | { | |
444 | return PyObject_IsTrue(obj) ? true : false; | |
445 | } | |
446 | ||
447 | ||
448 | SWIGSTATICINLINE(int) | |
449 | SWIG_CheckBool(PyObject* obj) | |
450 | { | |
451 | SWIG_AsBool(obj); | |
452 | if (PyErr_Occurred()) { | |
453 | PyErr_Clear(); | |
454 | return 0; | |
455 | } else { | |
456 | return 1; | |
457 | } | |
458 | } | |
459 | ||
460 | ||
461 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
462 | PyObject* o2; | |
463 | PyObject* o3; | |
464 | ||
465 | if (!target) { | |
466 | target = o; | |
467 | } else if (target == Py_None) { | |
468 | Py_DECREF(Py_None); | |
469 | target = o; | |
470 | } else { | |
471 | if (!PyTuple_Check(target)) { | |
472 | o2 = target; | |
473 | target = PyTuple_New(1); | |
474 | PyTuple_SetItem(target, 0, o2); | |
475 | } | |
476 | o3 = PyTuple_New(1); | |
477 | PyTuple_SetItem(o3, 0, o); | |
478 | ||
479 | o2 = target; | |
480 | target = PySequence_Concat(o2, o3); | |
481 | Py_DECREF(o2); | |
482 | Py_DECREF(o3); | |
483 | } | |
484 | return target; | |
485 | } | |
486 | ||
487 | ||
488 | SWIGSTATICINLINE(double) | |
489 | SWIG_AsDouble(PyObject *obj) | |
490 | { | |
491 | if (PyNumber_Check(obj)) | |
492 | return PyFloat_AsDouble(obj); | |
493 | else { | |
494 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
495 | obj->ob_type->tp_name); | |
496 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
497 | Py_DECREF(errmsg); | |
498 | return 0; | |
499 | } | |
500 | } | |
501 | ||
502 | ||
503 | SWIGSTATICINLINE(int) | |
504 | SWIG_CheckDouble(PyObject* obj) | |
505 | { | |
506 | SWIG_AsDouble(obj); | |
507 | if (PyErr_Occurred()) { | |
508 | PyErr_Clear(); | |
509 | return 0; | |
510 | } else { | |
511 | return 1; | |
512 | } | |
513 | } | |
514 | ||
515 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
516 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
517 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
518 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
519 | ||
520 | ||
521 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ | |
522 | wxRect r; | |
523 | self->GetFieldRect(i, r); | |
524 | return r; | |
525 | } | |
526 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
527 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
528 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
529 | ||
530 | #include <wx/popupwin.h> | |
531 | ||
532 | ||
533 | class wxPopupWindow : public wxWindow { | |
534 | public: | |
535 | wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
536 | wxPopupWindow() { wxPyRaiseNotImplemented(); } | |
537 | }; | |
538 | ||
539 | class wxPyPopupTransientWindow : public wxPopupWindow | |
540 | { | |
541 | public: | |
542 | wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } | |
543 | wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } | |
544 | }; | |
545 | ||
546 | ||
547 | #include <wx/tipwin.h> | |
548 | ||
549 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
550 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
551 | } | |
552 | ||
553 | #include <wx/tipwin.h> | |
554 | ||
555 | ||
556 | #include <wx/vscroll.h> | |
557 | ||
558 | ||
559 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
560 | { | |
561 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
562 | public: | |
563 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
564 | ||
565 | wxPyVScrolledWindow(wxWindow *parent, | |
566 | wxWindowID id = wxID_ANY, | |
567 | const wxPoint& pos = wxDefaultPosition, | |
568 | const wxSize& size = wxDefaultSize, | |
569 | long style = 0, | |
570 | const wxString& name = wxPyPanelNameStr) | |
571 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
572 | {} | |
573 | ||
574 | // Overridable virtuals | |
575 | ||
576 | // this function must be overridden in the derived class and it should | |
577 | // return the height of the given line in pixels | |
578 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
579 | ||
580 | ||
581 | // this function doesn't have to be overridden but it may be useful to do | |
582 | // it if calculating the lines heights is a relatively expensive operation | |
583 | // as it gives the user code a possibility to calculate several of them at | |
584 | // once | |
585 | // | |
586 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
587 | // shouldn't rely on the latter being called for all lines in the interval | |
588 | // specified here. It is also possible that OnGetLineHeight() will be | |
589 | // called for the lines outside of this interval, so this is really just a | |
590 | // hint, not a promise. | |
591 | // | |
592 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
593 | // usual | |
594 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
595 | ||
596 | ||
597 | // when the number of lines changes, we try to estimate the total height | |
598 | // of all lines which is a rather expensive operation in terms of lines | |
599 | // access, so if the user code may estimate the average height | |
600 | // better/faster than we do, it should override this function to implement | |
601 | // its own logic | |
602 | // | |
603 | // this function should return the best guess for the total height it may | |
604 | // make | |
605 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
606 | ||
607 | ||
608 | // Also expose some other interesting protected methods | |
609 | ||
610 | ||
611 | // find the index of the line we need to show at the top of the window such | |
612 | // that the last (fully or partially) visible line is the given one | |
613 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
614 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
615 | ||
616 | // get the total height of the lines between lineMin (inclusive) and | |
617 | // lineMax (exclusive) | |
618 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
619 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
620 | ||
621 | ||
622 | PYPRIVATE; | |
623 | }; | |
624 | ||
625 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
626 | ||
627 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
628 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
629 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
630 | ||
631 | ||
632 | SWIGSTATICINLINE(unsigned long) | |
633 | SWIG_AsUnsignedLong(PyObject * obj) | |
634 | { | |
635 | if (PyLong_Check(obj)) { | |
636 | return PyLong_AsUnsignedLong(obj); | |
637 | } else { | |
638 | long i = SWIG_AsLong(obj); | |
639 | if ( !PyErr_Occurred() && (i < 0)) { | |
640 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
641 | } | |
642 | return i; | |
643 | } | |
644 | } | |
645 | ||
646 | ||
647 | SWIGSTATICINLINE(int) | |
648 | SWIG_CheckUnsignedLong(PyObject* obj) | |
649 | { | |
650 | SWIG_AsUnsignedLong(obj); | |
651 | if (PyErr_Occurred()) { | |
652 | PyErr_Clear(); | |
653 | return 0; | |
654 | } else { | |
655 | return 1; | |
656 | } | |
657 | } | |
658 | ||
659 | ||
660 | SWIGSTATICINLINE(PyObject* ) | |
661 | SWIG_FromUnsignedLong(unsigned long value) | |
662 | { | |
663 | return (value > LONG_MAX) ? | |
664 | PyLong_FromUnsignedLong(value) | |
665 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
666 | } | |
667 | ||
668 | ||
669 | #include <wx/vlbox.h> | |
670 | ||
671 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
672 | ||
673 | class wxPyVListBox : public wxVListBox | |
674 | { | |
675 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
676 | public: | |
677 | wxPyVListBox() : wxVListBox() {} | |
678 | ||
679 | wxPyVListBox(wxWindow *parent, | |
680 | wxWindowID id = wxID_ANY, | |
681 | const wxPoint& pos = wxDefaultPosition, | |
682 | const wxSize& size = wxDefaultSize, | |
683 | long style = 0, | |
684 | const wxString& name = wxPyVListBoxNameStr) | |
685 | : wxVListBox(parent, id, pos, size, style, name) | |
686 | {} | |
687 | ||
688 | // Overridable virtuals | |
689 | ||
690 | // the derived class must implement this function to actually draw the item | |
691 | // with the given index on the provided DC | |
692 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
693 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
694 | ||
695 | ||
696 | // the derived class must implement this method to return the height of the | |
697 | // specified item | |
698 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
699 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
700 | ||
701 | ||
702 | // this method may be used to draw separators between the lines; note that | |
703 | // the rectangle may be modified, typically to deflate it a bit before | |
704 | // passing to OnDrawItem() | |
705 | // | |
706 | // the base class version doesn't do anything | |
707 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
708 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
709 | ||
710 | ||
711 | // this method is used to draw the items background and, maybe, a border | |
712 | // around it | |
713 | // | |
714 | // the base class version implements a reasonable default behaviour which | |
715 | // consists in drawing the selected item with the standard background | |
716 | // colour and drawing a border around the item if it is either selected or | |
717 | // current | |
718 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
719 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
720 | ||
721 | ||
722 | PYPRIVATE; | |
723 | }; | |
724 | ||
725 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
726 | ||
727 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
728 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
729 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
730 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
731 | ||
732 | ||
733 | ||
734 | #include <wx/htmllbox.h> | |
735 | ||
736 | ||
737 | class wxPyHtmlListBox : public wxHtmlListBox | |
738 | { | |
739 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
740 | public: | |
741 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
742 | ||
743 | wxPyHtmlListBox(wxWindow *parent, | |
744 | wxWindowID id = wxID_ANY, | |
745 | const wxPoint& pos = wxDefaultPosition, | |
746 | const wxSize& size = wxDefaultSize, | |
747 | long style = 0, | |
748 | const wxString& name = wxPyVListBoxNameStr) | |
749 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
750 | {} | |
751 | ||
752 | // Overridable virtuals | |
753 | ||
754 | // this method must be implemented in the derived class and should return | |
755 | // the body (i.e. without <html>) of the HTML for the given item | |
756 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
757 | ||
758 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
759 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
760 | ||
761 | // TODO: | |
762 | // // this method allows to customize the selection appearance: it may be used | |
763 | // // to specify the colour of the text which normally has the given colour | |
764 | // // colFg when it is inside the selection | |
765 | // // | |
766 | // // by default, the original colour is not used at all and all text has the | |
767 | // // same (default for this system) colour inside selection | |
768 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
769 | ||
770 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
771 | // // background colour -- this is even more rarely used as you can change it | |
772 | // // globally using SetSelectionBackground() | |
773 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
774 | ||
775 | ||
776 | PYPRIVATE; | |
777 | }; | |
778 | ||
779 | ||
780 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
781 | ||
782 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
783 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
784 | ||
785 | ||
786 | ||
787 | ||
788 | ||
789 | #ifdef __WXMAC__ | |
790 | // implement dummy classes and such for wxMac | |
791 | ||
792 | class wxTaskBarIcon : public wxEvtHandler | |
793 | { | |
794 | public: | |
795 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
796 | }; | |
797 | ||
798 | ||
799 | class wxTaskBarIconEvent : public wxEvent | |
800 | { | |
801 | public: | |
802 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
803 | { wxPyRaiseNotImplemented(); } | |
804 | virtual wxEvent* Clone() const { return NULL; } | |
805 | }; | |
806 | ||
807 | enum { | |
808 | wxEVT_TASKBAR_MOVE = 0, | |
809 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
810 | wxEVT_TASKBAR_LEFT_UP = 0, | |
811 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
812 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
813 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
814 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
815 | }; | |
816 | #endif | |
817 | ||
818 | void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ | |
819 | ||
820 | ||
821 | ||
822 | } | |
823 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
824 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
825 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
826 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
827 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
828 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
829 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
830 | wxArrayString arr; | |
831 | self->GetFilenames(arr); | |
832 | return wxArrayString2PyList_helper(arr); | |
833 | } | |
834 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
835 | wxArrayString arr; | |
836 | self->GetPaths(arr); | |
837 | return wxArrayString2PyList_helper(arr); | |
838 | } | |
839 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
840 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
841 | } | |
842 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
843 | return new wxSingleChoiceDialog(parent, message, caption, | |
844 | choices, choices_array, NULL, style, pos); | |
845 | } | |
846 | ||
847 | #include <wx/mdi.h> | |
848 | ||
849 | // C++ version of Python aware wxWindow | |
850 | class wxPyWindow : public wxWindow | |
851 | { | |
852 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
853 | public: | |
854 | wxPyWindow() : wxWindow() {} | |
855 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
856 | const wxPoint& pos = wxDefaultPosition, | |
857 | const wxSize& size = wxDefaultSize, | |
858 | long style = 0, | |
859 | const wxString& name = wxPyPanelNameStr) | |
860 | : wxWindow(parent, id, pos, size, style, name) {} | |
861 | ||
a5ee0656 | 862 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc RD |
863 | |
864 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
865 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
866 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
867 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
868 | ||
869 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
870 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
871 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
872 | ||
873 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
874 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
875 | ||
876 | DEC_PYCALLBACK__(InitDialog); | |
877 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
878 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
879 | DEC_PYCALLBACK_BOOL_(Validate); | |
880 | ||
881 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
882 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
883 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
884 | ||
885 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
886 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
887 | ||
a5ee0656 | 888 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 889 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 890 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
891 | |
892 | PYPRIVATE; | |
893 | }; | |
894 | ||
895 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
896 | ||
897 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
898 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
899 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
900 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
901 | ||
902 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
903 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
904 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
905 | ||
906 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
907 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
908 | ||
909 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
910 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
911 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
912 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
913 | ||
914 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
915 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
916 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
917 | ||
918 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
919 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
920 | ||
a5ee0656 | 921 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
d55e5bfc | 922 | IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); |
a5ee0656 | 923 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
d55e5bfc RD |
924 | |
925 | ||
926 | // C++ version of Python aware wxPanel | |
927 | class wxPyPanel : public wxPanel | |
928 | { | |
929 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
930 | public: | |
931 | wxPyPanel() : wxPanel() {} | |
932 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
933 | const wxPoint& pos = wxDefaultPosition, | |
934 | const wxSize& size = wxDefaultSize, | |
935 | long style = 0, | |
936 | const wxString& name = wxPyPanelNameStr) | |
937 | : wxPanel(parent, id, pos, size, style, name) {} | |
938 | ||
a5ee0656 RD |
939 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
940 | ||
d55e5bfc RD |
941 | |
942 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
943 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
944 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
945 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
946 | ||
947 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
948 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
949 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
950 | ||
951 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
952 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
953 | ||
954 | DEC_PYCALLBACK__(InitDialog); | |
955 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
956 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
957 | DEC_PYCALLBACK_BOOL_(Validate); | |
958 | ||
959 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
960 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
961 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
962 | ||
963 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
964 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
965 | ||
a5ee0656 | 966 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 967 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 968 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
969 | |
970 | PYPRIVATE; | |
971 | }; | |
972 | ||
973 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
974 | ||
975 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
976 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
977 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
978 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
979 | ||
980 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
981 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
982 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
983 | ||
984 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
985 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
986 | ||
987 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
988 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
989 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
990 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
991 | ||
992 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
993 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
994 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
995 | ||
996 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
997 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
998 | ||
a5ee0656 | 999 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
d55e5bfc | 1000 | IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); |
a5ee0656 | 1001 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 1002 | |
a5ee0656 | 1003 | |
d55e5bfc RD |
1004 | // C++ version of Python aware wxScrolledWindow |
1005 | class wxPyScrolledWindow : public wxScrolledWindow | |
1006 | { | |
1007 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
1008 | public: | |
1009 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
1010 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
1011 | const wxPoint& pos = wxDefaultPosition, | |
1012 | const wxSize& size = wxDefaultSize, | |
1013 | long style = 0, | |
1014 | const wxString& name = wxPyPanelNameStr) | |
1015 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
1016 | ||
a5ee0656 | 1017 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
d55e5bfc RD |
1018 | |
1019 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1020 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1021 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1022 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1023 | ||
1024 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1025 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1026 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1027 | ||
1028 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1029 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1030 | ||
1031 | DEC_PYCALLBACK__(InitDialog); | |
1032 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1033 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1034 | DEC_PYCALLBACK_BOOL_(Validate); | |
1035 | ||
1036 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1037 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1038 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1039 | ||
1040 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1041 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1042 | ||
a5ee0656 | 1043 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1044 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
a5ee0656 | 1045 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1046 | |
1047 | PYPRIVATE; | |
1048 | }; | |
1049 | ||
1050 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
1051 | ||
1052 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
1053 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
1054 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
1055 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
1056 | ||
1057 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
1058 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
1059 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
1060 | ||
1061 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
1062 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
1063 | ||
1064 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
1065 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
1066 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
1067 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
1068 | ||
1069 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
1070 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
1071 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
1072 | ||
1073 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
1074 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
1075 | ||
a5ee0656 | 1076 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
d55e5bfc | 1077 | IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); |
a5ee0656 RD |
1078 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
1079 | ||
d55e5bfc RD |
1080 | |
1081 | ||
1082 | #include "wx/wxPython/printfw.h" | |
1083 | ||
1084 | ||
1085 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
1086 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1087 | ||
1088 | ||
1089 | ||
1090 | // Since this one would be tough and ugly to do with the Macros... | |
1091 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1092 | bool hadErr = False; | |
1093 | bool found; | |
1094 | ||
1095 | bool blocked = wxPyBeginBlockThreads(); | |
1096 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1097 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1098 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1099 | PyObject* val; | |
1100 | ||
1101 | val = PyTuple_GetItem(result, 0); | |
1102 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1103 | else hadErr = True; | |
1104 | ||
1105 | val = PyTuple_GetItem(result, 1); | |
1106 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1107 | else hadErr = True; | |
1108 | ||
1109 | val = PyTuple_GetItem(result, 2); | |
1110 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1111 | else hadErr = True; | |
1112 | ||
1113 | val = PyTuple_GetItem(result, 3); | |
1114 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1115 | else hadErr = True; | |
1116 | } | |
1117 | else | |
1118 | hadErr = True; | |
1119 | ||
1120 | if (hadErr) { | |
1121 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1122 | PyErr_Print(); | |
1123 | } | |
1124 | Py_DECREF(result); | |
1125 | } | |
1126 | wxPyEndBlockThreads(blocked); | |
1127 | if (! found) | |
1128 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1129 | } | |
1130 | ||
1131 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1132 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1133 | } | |
1134 | ||
1135 | ||
1136 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1137 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1138 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1139 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1140 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1141 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1142 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1143 | ||
1144 | ||
1145 | ||
1146 | ||
1147 | ||
1148 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1149 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1150 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1151 | ||
1152 | ||
1153 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1154 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1155 | bool rval=False; \ | |
1156 | bool found; \ | |
1157 | bool blocked = wxPyBeginBlockThreads(); \ | |
1158 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
1159 | PyObject* win = wxPyMake_wxObject(a); \ | |
1160 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
1161 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
1162 | Py_DECREF(win); \ | |
1163 | Py_DECREF(dc); \ | |
1164 | } \ | |
1165 | wxPyEndBlockThreads(blocked); \ | |
1166 | if (! found) \ | |
1167 | rval = PCLASS::CBNAME(a, b); \ | |
1168 | return rval; \ | |
1169 | } \ | |
1170 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1171 | return PCLASS::CBNAME(a, b); \ | |
1172 | } | |
1173 | ||
1174 | ||
1175 | ||
1176 | ||
1177 | class wxPyPrintPreview : public wxPrintPreview | |
1178 | { | |
1179 | DECLARE_CLASS(wxPyPrintPreview) | |
1180 | public: | |
1181 | wxPyPrintPreview(wxPyPrintout* printout, | |
1182 | wxPyPrintout* printoutForPrinting, | |
1183 | wxPrintDialogData* data=NULL) | |
1184 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1185 | {} | |
1186 | wxPyPrintPreview(wxPyPrintout* printout, | |
1187 | wxPyPrintout* printoutForPrinting, | |
1188 | wxPrintData* data=NULL) | |
1189 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1190 | {} | |
1191 | ||
1192 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1193 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1194 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1195 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1196 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1197 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1198 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1199 | ||
1200 | PYPRIVATE; | |
1201 | }; | |
1202 | ||
1203 | // Stupid renamed classes... Fix this in 2.5... | |
1204 | #if defined(__WXMSW__) | |
1205 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1206 | #elif defined(__WXMAC__) | |
1207 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1208 | #else | |
1209 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1210 | #endif | |
1211 | ||
1212 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1213 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1214 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1215 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1216 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1217 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1218 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1219 | ||
1220 | ||
1221 | class wxPyPreviewFrame : public wxPreviewFrame | |
1222 | { | |
1223 | DECLARE_CLASS(wxPyPreviewFrame); | |
1224 | public: | |
1225 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1226 | const wxString& title, | |
1227 | const wxPoint& pos = wxDefaultPosition, | |
1228 | const wxSize& size = wxDefaultSize, | |
1229 | long style = wxDEFAULT_FRAME_STYLE, | |
1230 | const wxString& name = wxPyFrameNameStr) | |
1231 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1232 | {} | |
1233 | ||
1234 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1235 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1236 | ||
1237 | DEC_PYCALLBACK_VOID_(Initialize); | |
1238 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1239 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1240 | ||
1241 | PYPRIVATE; | |
1242 | }; | |
1243 | ||
1244 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1245 | ||
1246 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1247 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1248 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1249 | ||
1250 | ||
1251 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1252 | { | |
1253 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1254 | public: | |
1255 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1256 | long buttons, | |
1257 | wxWindow *parent, | |
1258 | const wxPoint& pos = wxDefaultPosition, | |
1259 | const wxSize& size = wxDefaultSize, | |
1260 | long style = 0, | |
1261 | const wxString& name = wxPyPanelNameStr) | |
1262 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1263 | {} | |
1264 | ||
1265 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1266 | ||
1267 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1268 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1269 | ||
1270 | PYPRIVATE; | |
1271 | }; | |
1272 | ||
1273 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1274 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1275 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1276 | ||
1277 | #ifdef __cplusplus | |
1278 | extern "C" { | |
1279 | #endif | |
1280 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1281 | PyObject *resultobj; | |
1282 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1283 | int arg2 = (int) (int)-1 ; | |
1284 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1285 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1286 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1287 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1288 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1289 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1290 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1291 | wxPanel *result; | |
1292 | wxPoint temp3 ; | |
1293 | wxSize temp4 ; | |
1294 | bool temp6 = False ; | |
1295 | PyObject * obj0 = 0 ; | |
1296 | PyObject * obj1 = 0 ; | |
1297 | PyObject * obj2 = 0 ; | |
1298 | PyObject * obj3 = 0 ; | |
1299 | PyObject * obj4 = 0 ; | |
1300 | PyObject * obj5 = 0 ; | |
1301 | char *kwnames[] = { | |
1302 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1303 | }; | |
1304 | ||
1305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1308 | if (obj1) { | |
1309 | arg2 = (int const) SWIG_AsInt(obj1); | |
1310 | if (PyErr_Occurred()) SWIG_fail; | |
1311 | } | |
1312 | if (obj2) { | |
1313 | { | |
1314 | arg3 = &temp3; | |
1315 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1316 | } | |
1317 | } | |
1318 | if (obj3) { | |
1319 | { | |
1320 | arg4 = &temp4; | |
1321 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1322 | } | |
1323 | } | |
1324 | if (obj4) { | |
1325 | arg5 = (long) SWIG_AsLong(obj4); | |
1326 | if (PyErr_Occurred()) SWIG_fail; | |
1327 | } | |
1328 | if (obj5) { | |
1329 | { | |
1330 | arg6 = wxString_in_helper(obj5); | |
1331 | if (arg6 == NULL) SWIG_fail; | |
1332 | temp6 = True; | |
1333 | } | |
1334 | } | |
1335 | { | |
1336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1337 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1338 | ||
1339 | wxPyEndAllowThreads(__tstate); | |
1340 | if (PyErr_Occurred()) SWIG_fail; | |
1341 | } | |
e058867b RD |
1342 | { |
1343 | resultobj = wxPyMake_wxObject(result); | |
1344 | } | |
d55e5bfc RD |
1345 | { |
1346 | if (temp6) | |
1347 | delete arg6; | |
1348 | } | |
1349 | return resultobj; | |
1350 | fail: | |
1351 | { | |
1352 | if (temp6) | |
1353 | delete arg6; | |
1354 | } | |
1355 | return NULL; | |
1356 | } | |
1357 | ||
1358 | ||
1359 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject *resultobj; | |
1361 | wxPanel *result; | |
1362 | char *kwnames[] = { | |
1363 | NULL | |
1364 | }; | |
1365 | ||
1366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1367 | { | |
1368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1369 | result = (wxPanel *)new wxPanel(); | |
1370 | ||
1371 | wxPyEndAllowThreads(__tstate); | |
1372 | if (PyErr_Occurred()) SWIG_fail; | |
1373 | } | |
e058867b RD |
1374 | { |
1375 | resultobj = wxPyMake_wxObject(result); | |
1376 | } | |
d55e5bfc RD |
1377 | return resultobj; |
1378 | fail: | |
1379 | return NULL; | |
1380 | } | |
1381 | ||
1382 | ||
1383 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1384 | PyObject *resultobj; | |
1385 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1386 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1387 | int arg3 = (int) (int)-1 ; | |
1388 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1389 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1390 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1391 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1392 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1393 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1394 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1395 | bool result; | |
1396 | wxPoint temp4 ; | |
1397 | wxSize temp5 ; | |
1398 | bool temp7 = False ; | |
1399 | PyObject * obj0 = 0 ; | |
1400 | PyObject * obj1 = 0 ; | |
1401 | PyObject * obj2 = 0 ; | |
1402 | PyObject * obj3 = 0 ; | |
1403 | PyObject * obj4 = 0 ; | |
1404 | PyObject * obj5 = 0 ; | |
1405 | PyObject * obj6 = 0 ; | |
1406 | char *kwnames[] = { | |
1407 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1408 | }; | |
1409 | ||
1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1413 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1415 | if (obj2) { | |
1416 | arg3 = (int const) SWIG_AsInt(obj2); | |
1417 | if (PyErr_Occurred()) SWIG_fail; | |
1418 | } | |
1419 | if (obj3) { | |
1420 | { | |
1421 | arg4 = &temp4; | |
1422 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1423 | } | |
1424 | } | |
1425 | if (obj4) { | |
1426 | { | |
1427 | arg5 = &temp5; | |
1428 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1429 | } | |
1430 | } | |
1431 | if (obj5) { | |
1432 | arg6 = (long) SWIG_AsLong(obj5); | |
1433 | if (PyErr_Occurred()) SWIG_fail; | |
1434 | } | |
1435 | if (obj6) { | |
1436 | { | |
1437 | arg7 = wxString_in_helper(obj6); | |
1438 | if (arg7 == NULL) SWIG_fail; | |
1439 | temp7 = True; | |
1440 | } | |
1441 | } | |
1442 | { | |
1443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1444 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1445 | ||
1446 | wxPyEndAllowThreads(__tstate); | |
1447 | if (PyErr_Occurred()) SWIG_fail; | |
1448 | } | |
1449 | { | |
1450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1451 | } | |
1452 | { | |
1453 | if (temp7) | |
1454 | delete arg7; | |
1455 | } | |
1456 | return resultobj; | |
1457 | fail: | |
1458 | { | |
1459 | if (temp7) | |
1460 | delete arg7; | |
1461 | } | |
1462 | return NULL; | |
1463 | } | |
1464 | ||
1465 | ||
1466 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1467 | PyObject *resultobj; | |
1468 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1469 | PyObject * obj0 = 0 ; | |
1470 | char *kwnames[] = { | |
1471 | (char *) "self", NULL | |
1472 | }; | |
1473 | ||
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1477 | { | |
1478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1479 | (arg1)->InitDialog(); | |
1480 | ||
1481 | wxPyEndAllowThreads(__tstate); | |
1482 | if (PyErr_Occurred()) SWIG_fail; | |
1483 | } | |
1484 | Py_INCREF(Py_None); resultobj = Py_None; | |
1485 | return resultobj; | |
1486 | fail: | |
1487 | return NULL; | |
1488 | } | |
1489 | ||
1490 | ||
f20a2e1f RD |
1491 | static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1492 | PyObject *resultobj; | |
1493 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1494 | wxVisualAttributes result; | |
1495 | PyObject * obj0 = 0 ; | |
1496 | char *kwnames[] = { | |
1497 | (char *) "variant", NULL | |
1498 | }; | |
1499 | ||
1500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1501 | if (obj0) { | |
1502 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1503 | if (PyErr_Occurred()) SWIG_fail; | |
1504 | } | |
1505 | { | |
1506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1507 | result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1508 | ||
1509 | wxPyEndAllowThreads(__tstate); | |
1510 | if (PyErr_Occurred()) SWIG_fail; | |
1511 | } | |
1512 | { | |
1513 | wxVisualAttributes * resultptr; | |
1514 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1516 | } | |
1517 | return resultobj; | |
1518 | fail: | |
1519 | return NULL; | |
1520 | } | |
1521 | ||
1522 | ||
d55e5bfc RD |
1523 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { |
1524 | PyObject *obj; | |
1525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1526 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1527 | Py_INCREF(obj); | |
1528 | return Py_BuildValue((char *)""); | |
1529 | } | |
1530 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject *resultobj; | |
1532 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1533 | int arg2 = (int) (int)-1 ; | |
1534 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1535 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1536 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1537 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1538 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1539 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1540 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1541 | wxScrolledWindow *result; | |
1542 | wxPoint temp3 ; | |
1543 | wxSize temp4 ; | |
1544 | bool temp6 = False ; | |
1545 | PyObject * obj0 = 0 ; | |
1546 | PyObject * obj1 = 0 ; | |
1547 | PyObject * obj2 = 0 ; | |
1548 | PyObject * obj3 = 0 ; | |
1549 | PyObject * obj4 = 0 ; | |
1550 | PyObject * obj5 = 0 ; | |
1551 | char *kwnames[] = { | |
1552 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1553 | }; | |
1554 | ||
1555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1558 | if (obj1) { | |
1559 | arg2 = (int const) SWIG_AsInt(obj1); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
1562 | if (obj2) { | |
1563 | { | |
1564 | arg3 = &temp3; | |
1565 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1566 | } | |
1567 | } | |
1568 | if (obj3) { | |
1569 | { | |
1570 | arg4 = &temp4; | |
1571 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1572 | } | |
1573 | } | |
1574 | if (obj4) { | |
1575 | arg5 = (long) SWIG_AsLong(obj4); | |
1576 | if (PyErr_Occurred()) SWIG_fail; | |
1577 | } | |
1578 | if (obj5) { | |
1579 | { | |
1580 | arg6 = wxString_in_helper(obj5); | |
1581 | if (arg6 == NULL) SWIG_fail; | |
1582 | temp6 = True; | |
1583 | } | |
1584 | } | |
1585 | { | |
1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1587 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1588 | ||
1589 | wxPyEndAllowThreads(__tstate); | |
1590 | if (PyErr_Occurred()) SWIG_fail; | |
1591 | } | |
1592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1593 | { | |
1594 | if (temp6) | |
1595 | delete arg6; | |
1596 | } | |
1597 | return resultobj; | |
1598 | fail: | |
1599 | { | |
1600 | if (temp6) | |
1601 | delete arg6; | |
1602 | } | |
1603 | return NULL; | |
1604 | } | |
1605 | ||
1606 | ||
1607 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject *resultobj; | |
1609 | wxScrolledWindow *result; | |
1610 | char *kwnames[] = { | |
1611 | NULL | |
1612 | }; | |
1613 | ||
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1615 | { | |
1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1617 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1618 | ||
1619 | wxPyEndAllowThreads(__tstate); | |
1620 | if (PyErr_Occurred()) SWIG_fail; | |
1621 | } | |
1622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1623 | return resultobj; | |
1624 | fail: | |
1625 | return NULL; | |
1626 | } | |
1627 | ||
1628 | ||
1629 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1630 | PyObject *resultobj; | |
1631 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1632 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1633 | int arg3 = (int) (int)-1 ; | |
1634 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1635 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1636 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1637 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1638 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1639 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1640 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1641 | bool result; | |
1642 | wxPoint temp4 ; | |
1643 | wxSize temp5 ; | |
1644 | bool temp7 = False ; | |
1645 | PyObject * obj0 = 0 ; | |
1646 | PyObject * obj1 = 0 ; | |
1647 | PyObject * obj2 = 0 ; | |
1648 | PyObject * obj3 = 0 ; | |
1649 | PyObject * obj4 = 0 ; | |
1650 | PyObject * obj5 = 0 ; | |
1651 | PyObject * obj6 = 0 ; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1661 | if (obj2) { | |
1662 | arg3 = (int const) SWIG_AsInt(obj2); | |
1663 | if (PyErr_Occurred()) SWIG_fail; | |
1664 | } | |
1665 | if (obj3) { | |
1666 | { | |
1667 | arg4 = &temp4; | |
1668 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1669 | } | |
1670 | } | |
1671 | if (obj4) { | |
1672 | { | |
1673 | arg5 = &temp5; | |
1674 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1675 | } | |
1676 | } | |
1677 | if (obj5) { | |
1678 | arg6 = (long) SWIG_AsLong(obj5); | |
1679 | if (PyErr_Occurred()) SWIG_fail; | |
1680 | } | |
1681 | if (obj6) { | |
1682 | { | |
1683 | arg7 = wxString_in_helper(obj6); | |
1684 | if (arg7 == NULL) SWIG_fail; | |
1685 | temp7 = True; | |
1686 | } | |
1687 | } | |
1688 | { | |
1689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1690 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1691 | ||
1692 | wxPyEndAllowThreads(__tstate); | |
1693 | if (PyErr_Occurred()) SWIG_fail; | |
1694 | } | |
1695 | { | |
1696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1697 | } | |
1698 | { | |
1699 | if (temp7) | |
1700 | delete arg7; | |
1701 | } | |
1702 | return resultobj; | |
1703 | fail: | |
1704 | { | |
1705 | if (temp7) | |
1706 | delete arg7; | |
1707 | } | |
1708 | return NULL; | |
1709 | } | |
1710 | ||
1711 | ||
1712 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject *resultobj; | |
1714 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1715 | int arg2 ; | |
1716 | int arg3 ; | |
1717 | int arg4 ; | |
1718 | int arg5 ; | |
1719 | int arg6 = (int) 0 ; | |
1720 | int arg7 = (int) 0 ; | |
1721 | bool arg8 = (bool) False ; | |
1722 | PyObject * obj0 = 0 ; | |
1723 | PyObject * obj1 = 0 ; | |
1724 | PyObject * obj2 = 0 ; | |
1725 | PyObject * obj3 = 0 ; | |
1726 | PyObject * obj4 = 0 ; | |
1727 | PyObject * obj5 = 0 ; | |
1728 | PyObject * obj6 = 0 ; | |
1729 | PyObject * obj7 = 0 ; | |
1730 | char *kwnames[] = { | |
1731 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1732 | }; | |
1733 | ||
1734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1737 | arg2 = (int) SWIG_AsInt(obj1); | |
1738 | if (PyErr_Occurred()) SWIG_fail; | |
1739 | arg3 = (int) SWIG_AsInt(obj2); | |
1740 | if (PyErr_Occurred()) SWIG_fail; | |
1741 | arg4 = (int) SWIG_AsInt(obj3); | |
1742 | if (PyErr_Occurred()) SWIG_fail; | |
1743 | arg5 = (int) SWIG_AsInt(obj4); | |
1744 | if (PyErr_Occurred()) SWIG_fail; | |
1745 | if (obj5) { | |
1746 | arg6 = (int) SWIG_AsInt(obj5); | |
1747 | if (PyErr_Occurred()) SWIG_fail; | |
1748 | } | |
1749 | if (obj6) { | |
1750 | arg7 = (int) SWIG_AsInt(obj6); | |
1751 | if (PyErr_Occurred()) SWIG_fail; | |
1752 | } | |
1753 | if (obj7) { | |
1754 | arg8 = (bool) SWIG_AsBool(obj7); | |
1755 | if (PyErr_Occurred()) SWIG_fail; | |
1756 | } | |
1757 | { | |
1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1759 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1760 | ||
1761 | wxPyEndAllowThreads(__tstate); | |
1762 | if (PyErr_Occurred()) SWIG_fail; | |
1763 | } | |
1764 | Py_INCREF(Py_None); resultobj = Py_None; | |
1765 | return resultobj; | |
1766 | fail: | |
1767 | return NULL; | |
1768 | } | |
1769 | ||
1770 | ||
1771 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1772 | PyObject *resultobj; | |
1773 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1774 | int arg2 ; | |
1775 | int arg3 ; | |
1776 | PyObject * obj0 = 0 ; | |
1777 | PyObject * obj1 = 0 ; | |
1778 | PyObject * obj2 = 0 ; | |
1779 | char *kwnames[] = { | |
1780 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1781 | }; | |
1782 | ||
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1786 | arg2 = (int) SWIG_AsInt(obj1); | |
1787 | if (PyErr_Occurred()) SWIG_fail; | |
1788 | arg3 = (int) SWIG_AsInt(obj2); | |
1789 | if (PyErr_Occurred()) SWIG_fail; | |
1790 | { | |
1791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1792 | (arg1)->Scroll(arg2,arg3); | |
1793 | ||
1794 | wxPyEndAllowThreads(__tstate); | |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
1796 | } | |
1797 | Py_INCREF(Py_None); resultobj = Py_None; | |
1798 | return resultobj; | |
1799 | fail: | |
1800 | return NULL; | |
1801 | } | |
1802 | ||
1803 | ||
1804 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject *resultobj; | |
1806 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1807 | int arg2 ; | |
1808 | int result; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | PyObject * obj1 = 0 ; | |
1811 | char *kwnames[] = { | |
1812 | (char *) "self",(char *) "orient", NULL | |
1813 | }; | |
1814 | ||
1815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1818 | arg2 = (int) SWIG_AsInt(obj1); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | { | |
1821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1822 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1823 | ||
1824 | wxPyEndAllowThreads(__tstate); | |
1825 | if (PyErr_Occurred()) SWIG_fail; | |
1826 | } | |
1827 | resultobj = SWIG_FromInt((int)result); | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | return NULL; | |
1831 | } | |
1832 | ||
1833 | ||
1834 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject *resultobj; | |
1836 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1837 | int arg2 ; | |
1838 | int arg3 ; | |
1839 | PyObject * obj0 = 0 ; | |
1840 | PyObject * obj1 = 0 ; | |
1841 | PyObject * obj2 = 0 ; | |
1842 | char *kwnames[] = { | |
1843 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1844 | }; | |
1845 | ||
1846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1849 | arg2 = (int) SWIG_AsInt(obj1); | |
1850 | if (PyErr_Occurred()) SWIG_fail; | |
1851 | arg3 = (int) SWIG_AsInt(obj2); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | { | |
1854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1855 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1856 | ||
1857 | wxPyEndAllowThreads(__tstate); | |
1858 | if (PyErr_Occurred()) SWIG_fail; | |
1859 | } | |
1860 | Py_INCREF(Py_None); resultobj = Py_None; | |
1861 | return resultobj; | |
1862 | fail: | |
1863 | return NULL; | |
1864 | } | |
1865 | ||
1866 | ||
1867 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
1869 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1870 | int arg2 ; | |
1871 | int arg3 ; | |
1872 | PyObject * obj0 = 0 ; | |
1873 | PyObject * obj1 = 0 ; | |
1874 | PyObject * obj2 = 0 ; | |
1875 | char *kwnames[] = { | |
1876 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1877 | }; | |
1878 | ||
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1882 | arg2 = (int) SWIG_AsInt(obj1); | |
1883 | if (PyErr_Occurred()) SWIG_fail; | |
1884 | arg3 = (int) SWIG_AsInt(obj2); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | { | |
1887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1888 | (arg1)->SetScrollRate(arg2,arg3); | |
1889 | ||
1890 | wxPyEndAllowThreads(__tstate); | |
1891 | if (PyErr_Occurred()) SWIG_fail; | |
1892 | } | |
1893 | Py_INCREF(Py_None); resultobj = Py_None; | |
1894 | return resultobj; | |
1895 | fail: | |
1896 | return NULL; | |
1897 | } | |
1898 | ||
1899 | ||
1900 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1901 | PyObject *resultobj; | |
1902 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1903 | int *arg2 = (int *) 0 ; | |
1904 | int *arg3 = (int *) 0 ; | |
1905 | int temp2 ; | |
1906 | int temp3 ; | |
1907 | PyObject * obj0 = 0 ; | |
1908 | char *kwnames[] = { | |
1909 | (char *) "self", NULL | |
1910 | }; | |
1911 | ||
1912 | arg2 = &temp2; | |
1913 | arg3 = &temp3; | |
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1917 | { | |
1918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1919 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1920 | ||
1921 | wxPyEndAllowThreads(__tstate); | |
1922 | if (PyErr_Occurred()) SWIG_fail; | |
1923 | } | |
1924 | Py_INCREF(Py_None); resultobj = Py_None; | |
1925 | { | |
1926 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1927 | resultobj = t_output_helper(resultobj,o); | |
1928 | } | |
1929 | { | |
1930 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1931 | resultobj = t_output_helper(resultobj,o); | |
1932 | } | |
1933 | return resultobj; | |
1934 | fail: | |
1935 | return NULL; | |
1936 | } | |
1937 | ||
1938 | ||
1939 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject *resultobj; | |
1941 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1942 | bool arg2 ; | |
1943 | bool arg3 ; | |
1944 | PyObject * obj0 = 0 ; | |
1945 | PyObject * obj1 = 0 ; | |
1946 | PyObject * obj2 = 0 ; | |
1947 | char *kwnames[] = { | |
1948 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1949 | }; | |
1950 | ||
1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1954 | arg2 = (bool) SWIG_AsBool(obj1); | |
1955 | if (PyErr_Occurred()) SWIG_fail; | |
1956 | arg3 = (bool) SWIG_AsBool(obj2); | |
1957 | if (PyErr_Occurred()) SWIG_fail; | |
1958 | { | |
1959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1960 | (arg1)->EnableScrolling(arg2,arg3); | |
1961 | ||
1962 | wxPyEndAllowThreads(__tstate); | |
1963 | if (PyErr_Occurred()) SWIG_fail; | |
1964 | } | |
1965 | Py_INCREF(Py_None); resultobj = Py_None; | |
1966 | return resultobj; | |
1967 | fail: | |
1968 | return NULL; | |
1969 | } | |
1970 | ||
1971 | ||
1972 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1973 | PyObject *resultobj; | |
1974 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1975 | int *arg2 = (int *) 0 ; | |
1976 | int *arg3 = (int *) 0 ; | |
1977 | int temp2 ; | |
1978 | int temp3 ; | |
1979 | PyObject * obj0 = 0 ; | |
1980 | char *kwnames[] = { | |
1981 | (char *) "self", NULL | |
1982 | }; | |
1983 | ||
1984 | arg2 = &temp2; | |
1985 | arg3 = &temp3; | |
1986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1989 | { | |
1990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1991 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1992 | ||
1993 | wxPyEndAllowThreads(__tstate); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
1996 | Py_INCREF(Py_None); resultobj = Py_None; | |
1997 | { | |
1998 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1999 | resultobj = t_output_helper(resultobj,o); | |
2000 | } | |
2001 | { | |
2002 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
2003 | resultobj = t_output_helper(resultobj,o); | |
2004 | } | |
2005 | return resultobj; | |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2012 | PyObject *resultobj; | |
2013 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2014 | double arg2 ; | |
2015 | double arg3 ; | |
2016 | PyObject * obj0 = 0 ; | |
2017 | PyObject * obj1 = 0 ; | |
2018 | PyObject * obj2 = 0 ; | |
2019 | char *kwnames[] = { | |
2020 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
2021 | }; | |
2022 | ||
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2026 | arg2 = (double) SWIG_AsDouble(obj1); | |
2027 | if (PyErr_Occurred()) SWIG_fail; | |
2028 | arg3 = (double) SWIG_AsDouble(obj2); | |
2029 | if (PyErr_Occurred()) SWIG_fail; | |
2030 | { | |
2031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2032 | (arg1)->SetScale(arg2,arg3); | |
2033 | ||
2034 | wxPyEndAllowThreads(__tstate); | |
2035 | if (PyErr_Occurred()) SWIG_fail; | |
2036 | } | |
2037 | Py_INCREF(Py_None); resultobj = Py_None; | |
2038 | return resultobj; | |
2039 | fail: | |
2040 | return NULL; | |
2041 | } | |
2042 | ||
2043 | ||
2044 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2045 | PyObject *resultobj; | |
2046 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2047 | double result; | |
2048 | PyObject * obj0 = 0 ; | |
2049 | char *kwnames[] = { | |
2050 | (char *) "self", NULL | |
2051 | }; | |
2052 | ||
2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
2054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2056 | { | |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2058 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
2063 | resultobj = SWIG_FromDouble((double)result); | |
2064 | return resultobj; | |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2070 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2071 | PyObject *resultobj; | |
2072 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2073 | double result; | |
2074 | PyObject * obj0 = 0 ; | |
2075 | char *kwnames[] = { | |
2076 | (char *) "self", NULL | |
2077 | }; | |
2078 | ||
2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
2080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2082 | { | |
2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2084 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
2085 | ||
2086 | wxPyEndAllowThreads(__tstate); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | } | |
2089 | resultobj = SWIG_FromDouble((double)result); | |
2090 | return resultobj; | |
2091 | fail: | |
2092 | return NULL; | |
2093 | } | |
2094 | ||
2095 | ||
2096 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2097 | PyObject *resultobj; | |
2098 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2099 | wxPoint *arg2 = 0 ; | |
2100 | wxPoint result; | |
2101 | wxPoint temp2 ; | |
2102 | PyObject * obj0 = 0 ; | |
2103 | PyObject * obj1 = 0 ; | |
2104 | ||
2105 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
2106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2108 | { | |
2109 | arg2 = &temp2; | |
2110 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2111 | } | |
2112 | { | |
2113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2114 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
2115 | ||
2116 | wxPyEndAllowThreads(__tstate); | |
2117 | if (PyErr_Occurred()) SWIG_fail; | |
2118 | } | |
2119 | { | |
2120 | wxPoint * resultptr; | |
2121 | resultptr = new wxPoint((wxPoint &) result); | |
2122 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2123 | } | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2131 | PyObject *resultobj; | |
2132 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2133 | int arg2 ; | |
2134 | int arg3 ; | |
2135 | int *arg4 = (int *) 0 ; | |
2136 | int *arg5 = (int *) 0 ; | |
2137 | int temp4 ; | |
2138 | int temp5 ; | |
2139 | PyObject * obj0 = 0 ; | |
2140 | PyObject * obj1 = 0 ; | |
2141 | PyObject * obj2 = 0 ; | |
2142 | ||
2143 | arg4 = &temp4; | |
2144 | arg5 = &temp5; | |
2145 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2148 | arg2 = (int) SWIG_AsInt(obj1); | |
2149 | if (PyErr_Occurred()) SWIG_fail; | |
2150 | arg3 = (int) SWIG_AsInt(obj2); | |
2151 | if (PyErr_Occurred()) SWIG_fail; | |
2152 | { | |
2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2154 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2155 | ||
2156 | wxPyEndAllowThreads(__tstate); | |
2157 | if (PyErr_Occurred()) SWIG_fail; | |
2158 | } | |
2159 | Py_INCREF(Py_None); resultobj = Py_None; | |
2160 | { | |
2161 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2162 | resultobj = t_output_helper(resultobj,o); | |
2163 | } | |
2164 | { | |
2165 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2166 | resultobj = t_output_helper(resultobj,o); | |
2167 | } | |
2168 | return resultobj; | |
2169 | fail: | |
2170 | return NULL; | |
2171 | } | |
2172 | ||
2173 | ||
2174 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2175 | int argc; | |
2176 | PyObject *argv[4]; | |
2177 | int ii; | |
2178 | ||
2179 | argc = PyObject_Length(args); | |
2180 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2181 | argv[ii] = PyTuple_GetItem(args,ii); | |
2182 | } | |
2183 | if (argc == 2) { | |
2184 | int _v; | |
2185 | { | |
2186 | void *ptr; | |
2187 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2188 | _v = 0; | |
2189 | PyErr_Clear(); | |
2190 | } else { | |
2191 | _v = 1; | |
2192 | } | |
2193 | } | |
2194 | if (_v) { | |
2195 | { | |
2196 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2197 | } | |
2198 | if (_v) { | |
2199 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2200 | } | |
2201 | } | |
2202 | } | |
2203 | if (argc == 3) { | |
2204 | int _v; | |
2205 | { | |
2206 | void *ptr; | |
2207 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2208 | _v = 0; | |
2209 | PyErr_Clear(); | |
2210 | } else { | |
2211 | _v = 1; | |
2212 | } | |
2213 | } | |
2214 | if (_v) { | |
2215 | _v = SWIG_CheckInt(argv[1]); | |
2216 | if (_v) { | |
2217 | _v = SWIG_CheckInt(argv[2]); | |
2218 | if (_v) { | |
2219 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2220 | } | |
2221 | } | |
2222 | } | |
2223 | } | |
2224 | ||
2225 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2226 | return NULL; | |
2227 | } | |
2228 | ||
2229 | ||
2230 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2231 | PyObject *resultobj; | |
2232 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2233 | wxPoint *arg2 = 0 ; | |
2234 | wxPoint result; | |
2235 | wxPoint temp2 ; | |
2236 | PyObject * obj0 = 0 ; | |
2237 | PyObject * obj1 = 0 ; | |
2238 | ||
2239 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2242 | { | |
2243 | arg2 = &temp2; | |
2244 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2245 | } | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | { | |
2254 | wxPoint * resultptr; | |
2255 | resultptr = new wxPoint((wxPoint &) result); | |
2256 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2257 | } | |
2258 | return resultobj; | |
2259 | fail: | |
2260 | return NULL; | |
2261 | } | |
2262 | ||
2263 | ||
2264 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2265 | PyObject *resultobj; | |
2266 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2267 | int arg2 ; | |
2268 | int arg3 ; | |
2269 | int *arg4 = (int *) 0 ; | |
2270 | int *arg5 = (int *) 0 ; | |
2271 | int temp4 ; | |
2272 | int temp5 ; | |
2273 | PyObject * obj0 = 0 ; | |
2274 | PyObject * obj1 = 0 ; | |
2275 | PyObject * obj2 = 0 ; | |
2276 | ||
2277 | arg4 = &temp4; | |
2278 | arg5 = &temp5; | |
2279 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2282 | arg2 = (int) SWIG_AsInt(obj1); | |
2283 | if (PyErr_Occurred()) SWIG_fail; | |
2284 | arg3 = (int) SWIG_AsInt(obj2); | |
2285 | if (PyErr_Occurred()) SWIG_fail; | |
2286 | { | |
2287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2288 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2289 | ||
2290 | wxPyEndAllowThreads(__tstate); | |
2291 | if (PyErr_Occurred()) SWIG_fail; | |
2292 | } | |
2293 | Py_INCREF(Py_None); resultobj = Py_None; | |
2294 | { | |
2295 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2296 | resultobj = t_output_helper(resultobj,o); | |
2297 | } | |
2298 | { | |
2299 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2300 | resultobj = t_output_helper(resultobj,o); | |
2301 | } | |
2302 | return resultobj; | |
2303 | fail: | |
2304 | return NULL; | |
2305 | } | |
2306 | ||
2307 | ||
2308 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2309 | int argc; | |
2310 | PyObject *argv[4]; | |
2311 | int ii; | |
2312 | ||
2313 | argc = PyObject_Length(args); | |
2314 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2315 | argv[ii] = PyTuple_GetItem(args,ii); | |
2316 | } | |
2317 | if (argc == 2) { | |
2318 | int _v; | |
2319 | { | |
2320 | void *ptr; | |
2321 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2322 | _v = 0; | |
2323 | PyErr_Clear(); | |
2324 | } else { | |
2325 | _v = 1; | |
2326 | } | |
2327 | } | |
2328 | if (_v) { | |
2329 | { | |
2330 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2331 | } | |
2332 | if (_v) { | |
2333 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2334 | } | |
2335 | } | |
2336 | } | |
2337 | if (argc == 3) { | |
2338 | int _v; | |
2339 | { | |
2340 | void *ptr; | |
2341 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2342 | _v = 0; | |
2343 | PyErr_Clear(); | |
2344 | } else { | |
2345 | _v = 1; | |
2346 | } | |
2347 | } | |
2348 | if (_v) { | |
2349 | _v = SWIG_CheckInt(argv[1]); | |
2350 | if (_v) { | |
2351 | _v = SWIG_CheckInt(argv[2]); | |
2352 | if (_v) { | |
2353 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2354 | } | |
2355 | } | |
2356 | } | |
2357 | } | |
2358 | ||
2359 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2360 | return NULL; | |
2361 | } | |
2362 | ||
2363 | ||
2364 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2365 | PyObject *resultobj; | |
2366 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2367 | PyObject * obj0 = 0 ; | |
2368 | char *kwnames[] = { | |
2369 | (char *) "self", NULL | |
2370 | }; | |
2371 | ||
2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2375 | { | |
2376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2377 | (arg1)->AdjustScrollbars(); | |
2378 | ||
2379 | wxPyEndAllowThreads(__tstate); | |
2380 | if (PyErr_Occurred()) SWIG_fail; | |
2381 | } | |
2382 | Py_INCREF(Py_None); resultobj = Py_None; | |
2383 | return resultobj; | |
2384 | fail: | |
2385 | return NULL; | |
2386 | } | |
2387 | ||
2388 | ||
2389 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2390 | PyObject *resultobj; | |
2391 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2392 | wxScrollWinEvent *arg2 = 0 ; | |
2393 | int result; | |
2394 | PyObject * obj0 = 0 ; | |
2395 | PyObject * obj1 = 0 ; | |
2396 | char *kwnames[] = { | |
2397 | (char *) "self",(char *) "event", NULL | |
2398 | }; | |
2399 | ||
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2405 | SWIG_fail; | |
2406 | if (arg2 == NULL) { | |
2407 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2408 | SWIG_fail; | |
2409 | } | |
2410 | { | |
2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2412 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2413 | ||
2414 | wxPyEndAllowThreads(__tstate); | |
2415 | if (PyErr_Occurred()) SWIG_fail; | |
2416 | } | |
2417 | resultobj = SWIG_FromInt((int)result); | |
2418 | return resultobj; | |
2419 | fail: | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
2424 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2425 | PyObject *resultobj; | |
2426 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2427 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2428 | PyObject * obj0 = 0 ; | |
2429 | PyObject * obj1 = 0 ; | |
2430 | char *kwnames[] = { | |
2431 | (char *) "self",(char *) "target", NULL | |
2432 | }; | |
2433 | ||
2434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2439 | { | |
2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2441 | (arg1)->SetTargetWindow(arg2); | |
2442 | ||
2443 | wxPyEndAllowThreads(__tstate); | |
2444 | if (PyErr_Occurred()) SWIG_fail; | |
2445 | } | |
2446 | Py_INCREF(Py_None); resultobj = Py_None; | |
2447 | return resultobj; | |
2448 | fail: | |
2449 | return NULL; | |
2450 | } | |
2451 | ||
2452 | ||
2453 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2454 | PyObject *resultobj; | |
2455 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2456 | wxWindow *result; | |
2457 | PyObject * obj0 = 0 ; | |
2458 | char *kwnames[] = { | |
2459 | (char *) "self", NULL | |
2460 | }; | |
2461 | ||
2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2465 | { | |
2466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2467 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2468 | ||
2469 | wxPyEndAllowThreads(__tstate); | |
2470 | if (PyErr_Occurred()) SWIG_fail; | |
2471 | } | |
2472 | { | |
2473 | resultobj = wxPyMake_wxObject(result); | |
2474 | } | |
2475 | return resultobj; | |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
2481 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2482 | PyObject *resultobj; | |
2483 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2484 | wxRect *arg2 = 0 ; | |
2485 | wxRect temp2 ; | |
2486 | PyObject * obj0 = 0 ; | |
2487 | PyObject * obj1 = 0 ; | |
2488 | char *kwnames[] = { | |
2489 | (char *) "self",(char *) "rect", NULL | |
2490 | }; | |
2491 | ||
2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2495 | { | |
2496 | arg2 = &temp2; | |
2497 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2498 | } | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2516 | wxRect result; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "self", NULL | |
2520 | }; | |
2521 | ||
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2525 | { | |
2526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2527 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2528 | ||
2529 | wxPyEndAllowThreads(__tstate); | |
2530 | if (PyErr_Occurred()) SWIG_fail; | |
2531 | } | |
2532 | { | |
2533 | wxRect * resultptr; | |
2534 | resultptr = new wxRect((wxRect &) result); | |
2535 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2536 | } | |
2537 | return resultobj; | |
2538 | fail: | |
2539 | return NULL; | |
2540 | } | |
2541 | ||
2542 | ||
f20a2e1f RD |
2543 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2544 | PyObject *resultobj; | |
2545 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2546 | wxVisualAttributes result; | |
2547 | PyObject * obj0 = 0 ; | |
2548 | char *kwnames[] = { | |
2549 | (char *) "variant", NULL | |
2550 | }; | |
2551 | ||
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2553 | if (obj0) { | |
2554 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2555 | if (PyErr_Occurred()) SWIG_fail; | |
2556 | } | |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | { | |
2565 | wxVisualAttributes * resultptr; | |
2566 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2567 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2568 | } | |
2569 | return resultobj; | |
2570 | fail: | |
2571 | return NULL; | |
2572 | } | |
2573 | ||
2574 | ||
d55e5bfc RD |
2575 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
2576 | PyObject *obj; | |
2577 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2578 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2579 | Py_INCREF(obj); | |
2580 | return Py_BuildValue((char *)""); | |
2581 | } | |
2582 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2583 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2584 | return 1; | |
2585 | } | |
2586 | ||
2587 | ||
2588 | static PyObject *_wrap_FrameNameStr_get() { | |
2589 | PyObject *pyobj; | |
2590 | ||
2591 | { | |
2592 | #if wxUSE_UNICODE | |
2593 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2594 | #else | |
2595 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2596 | #endif | |
2597 | } | |
2598 | return pyobj; | |
2599 | } | |
2600 | ||
2601 | ||
2602 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2603 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2604 | return 1; | |
2605 | } | |
2606 | ||
2607 | ||
2608 | static PyObject *_wrap_DialogNameStr_get() { | |
2609 | PyObject *pyobj; | |
2610 | ||
2611 | { | |
2612 | #if wxUSE_UNICODE | |
2613 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2614 | #else | |
2615 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2616 | #endif | |
2617 | } | |
2618 | return pyobj; | |
2619 | } | |
2620 | ||
2621 | ||
2622 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2623 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2624 | return 1; | |
2625 | } | |
2626 | ||
2627 | ||
2628 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2629 | PyObject *pyobj; | |
2630 | ||
2631 | { | |
2632 | #if wxUSE_UNICODE | |
2633 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2634 | #else | |
2635 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2636 | #endif | |
2637 | } | |
2638 | return pyobj; | |
2639 | } | |
2640 | ||
2641 | ||
2642 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2643 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2644 | return 1; | |
2645 | } | |
2646 | ||
2647 | ||
2648 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2649 | PyObject *pyobj; | |
2650 | ||
2651 | { | |
2652 | #if wxUSE_UNICODE | |
2653 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2654 | #else | |
2655 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2656 | #endif | |
2657 | } | |
2658 | return pyobj; | |
2659 | } | |
2660 | ||
2661 | ||
2662 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject *resultobj; | |
2664 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2665 | bool arg2 = (bool) True ; | |
2666 | PyObject * obj0 = 0 ; | |
2667 | PyObject * obj1 = 0 ; | |
2668 | char *kwnames[] = { | |
2669 | (char *) "self",(char *) "maximize", NULL | |
2670 | }; | |
2671 | ||
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2675 | if (obj1) { | |
2676 | arg2 = (bool) SWIG_AsBool(obj1); | |
2677 | if (PyErr_Occurred()) SWIG_fail; | |
2678 | } | |
2679 | { | |
2680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2681 | (arg1)->Maximize(arg2); | |
2682 | ||
2683 | wxPyEndAllowThreads(__tstate); | |
2684 | if (PyErr_Occurred()) SWIG_fail; | |
2685 | } | |
2686 | Py_INCREF(Py_None); resultobj = Py_None; | |
2687 | return resultobj; | |
2688 | fail: | |
2689 | return NULL; | |
2690 | } | |
2691 | ||
2692 | ||
2693 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2694 | PyObject *resultobj; | |
2695 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2696 | PyObject * obj0 = 0 ; | |
2697 | char *kwnames[] = { | |
2698 | (char *) "self", NULL | |
2699 | }; | |
2700 | ||
2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2704 | { | |
2705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2706 | (arg1)->Restore(); | |
2707 | ||
2708 | wxPyEndAllowThreads(__tstate); | |
2709 | if (PyErr_Occurred()) SWIG_fail; | |
2710 | } | |
2711 | Py_INCREF(Py_None); resultobj = Py_None; | |
2712 | return resultobj; | |
2713 | fail: | |
2714 | return NULL; | |
2715 | } | |
2716 | ||
2717 | ||
2718 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2719 | PyObject *resultobj; | |
2720 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2721 | bool arg2 = (bool) True ; | |
2722 | PyObject * obj0 = 0 ; | |
2723 | PyObject * obj1 = 0 ; | |
2724 | char *kwnames[] = { | |
2725 | (char *) "self",(char *) "iconize", NULL | |
2726 | }; | |
2727 | ||
2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2731 | if (obj1) { | |
2732 | arg2 = (bool) SWIG_AsBool(obj1); | |
2733 | if (PyErr_Occurred()) SWIG_fail; | |
2734 | } | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | (arg1)->Iconize(arg2); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
2742 | Py_INCREF(Py_None); resultobj = Py_None; | |
2743 | return resultobj; | |
2744 | fail: | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2752 | bool result; | |
2753 | PyObject * obj0 = 0 ; | |
2754 | char *kwnames[] = { | |
2755 | (char *) "self", NULL | |
2756 | }; | |
2757 | ||
2758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2761 | { | |
2762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2763 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2764 | ||
2765 | wxPyEndAllowThreads(__tstate); | |
2766 | if (PyErr_Occurred()) SWIG_fail; | |
2767 | } | |
2768 | { | |
2769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2770 | } | |
2771 | return resultobj; | |
2772 | fail: | |
2773 | return NULL; | |
2774 | } | |
2775 | ||
2776 | ||
2777 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2778 | PyObject *resultobj; | |
2779 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2780 | bool result; | |
2781 | PyObject * obj0 = 0 ; | |
2782 | char *kwnames[] = { | |
2783 | (char *) "self", NULL | |
2784 | }; | |
2785 | ||
2786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2789 | { | |
2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2791 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2792 | ||
2793 | wxPyEndAllowThreads(__tstate); | |
2794 | if (PyErr_Occurred()) SWIG_fail; | |
2795 | } | |
2796 | { | |
2797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2798 | } | |
2799 | return resultobj; | |
2800 | fail: | |
2801 | return NULL; | |
2802 | } | |
2803 | ||
2804 | ||
2805 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject *resultobj; | |
2807 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2808 | wxIcon result; | |
2809 | PyObject * obj0 = 0 ; | |
2810 | char *kwnames[] = { | |
2811 | (char *) "self", NULL | |
2812 | }; | |
2813 | ||
2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2817 | { | |
2818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2819 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2820 | ||
2821 | wxPyEndAllowThreads(__tstate); | |
2822 | if (PyErr_Occurred()) SWIG_fail; | |
2823 | } | |
2824 | { | |
2825 | wxIcon * resultptr; | |
2826 | resultptr = new wxIcon((wxIcon &) result); | |
2827 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2828 | } | |
2829 | return resultobj; | |
2830 | fail: | |
2831 | return NULL; | |
2832 | } | |
2833 | ||
2834 | ||
2835 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2836 | PyObject *resultobj; | |
2837 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2838 | wxIcon *arg2 = 0 ; | |
2839 | PyObject * obj0 = 0 ; | |
2840 | PyObject * obj1 = 0 ; | |
2841 | char *kwnames[] = { | |
2842 | (char *) "self",(char *) "icon", NULL | |
2843 | }; | |
2844 | ||
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2848 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2849 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2850 | SWIG_fail; | |
2851 | if (arg2 == NULL) { | |
2852 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2853 | SWIG_fail; | |
2854 | } | |
2855 | { | |
2856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2857 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2858 | ||
2859 | wxPyEndAllowThreads(__tstate); | |
2860 | if (PyErr_Occurred()) SWIG_fail; | |
2861 | } | |
2862 | Py_INCREF(Py_None); resultobj = Py_None; | |
2863 | return resultobj; | |
2864 | fail: | |
2865 | return NULL; | |
2866 | } | |
2867 | ||
2868 | ||
2869 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2870 | PyObject *resultobj; | |
2871 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2872 | wxIconBundle *arg2 = 0 ; | |
2873 | PyObject * obj0 = 0 ; | |
2874 | PyObject * obj1 = 0 ; | |
2875 | char *kwnames[] = { | |
2876 | (char *) "self",(char *) "icons", NULL | |
2877 | }; | |
2878 | ||
2879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2883 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2884 | SWIG_fail; | |
2885 | if (arg2 == NULL) { | |
2886 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2887 | SWIG_fail; | |
2888 | } | |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
2896 | Py_INCREF(Py_None); resultobj = Py_None; | |
2897 | return resultobj; | |
2898 | fail: | |
2899 | return NULL; | |
2900 | } | |
2901 | ||
2902 | ||
2903 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2904 | PyObject *resultobj; | |
2905 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2906 | bool arg2 ; | |
2907 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2908 | bool result; | |
2909 | PyObject * obj0 = 0 ; | |
2910 | PyObject * obj1 = 0 ; | |
2911 | PyObject * obj2 = 0 ; | |
2912 | char *kwnames[] = { | |
2913 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2914 | }; | |
2915 | ||
2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2919 | arg2 = (bool) SWIG_AsBool(obj1); | |
2920 | if (PyErr_Occurred()) SWIG_fail; | |
2921 | if (obj2) { | |
2922 | arg3 = (long) SWIG_AsLong(obj2); | |
2923 | if (PyErr_Occurred()) SWIG_fail; | |
2924 | } | |
2925 | { | |
2926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2927 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2928 | ||
2929 | wxPyEndAllowThreads(__tstate); | |
2930 | if (PyErr_Occurred()) SWIG_fail; | |
2931 | } | |
2932 | { | |
2933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2934 | } | |
2935 | return resultobj; | |
2936 | fail: | |
2937 | return NULL; | |
2938 | } | |
2939 | ||
2940 | ||
2941 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2942 | PyObject *resultobj; | |
2943 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2944 | bool result; | |
2945 | PyObject * obj0 = 0 ; | |
2946 | char *kwnames[] = { | |
2947 | (char *) "self", NULL | |
2948 | }; | |
2949 | ||
2950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2953 | { | |
2954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2955 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2956 | ||
2957 | wxPyEndAllowThreads(__tstate); | |
2958 | if (PyErr_Occurred()) SWIG_fail; | |
2959 | } | |
2960 | { | |
2961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2962 | } | |
2963 | return resultobj; | |
2964 | fail: | |
2965 | return NULL; | |
2966 | } | |
2967 | ||
2968 | ||
2969 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2970 | PyObject *resultobj; | |
2971 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2972 | wxString *arg2 = 0 ; | |
2973 | bool temp2 = False ; | |
2974 | PyObject * obj0 = 0 ; | |
2975 | PyObject * obj1 = 0 ; | |
2976 | char *kwnames[] = { | |
2977 | (char *) "self",(char *) "title", NULL | |
2978 | }; | |
2979 | ||
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2983 | { | |
2984 | arg2 = wxString_in_helper(obj1); | |
2985 | if (arg2 == NULL) SWIG_fail; | |
2986 | temp2 = True; | |
2987 | } | |
2988 | { | |
2989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2990 | (arg1)->SetTitle((wxString const &)*arg2); | |
2991 | ||
2992 | wxPyEndAllowThreads(__tstate); | |
2993 | if (PyErr_Occurred()) SWIG_fail; | |
2994 | } | |
2995 | Py_INCREF(Py_None); resultobj = Py_None; | |
2996 | { | |
2997 | if (temp2) | |
2998 | delete arg2; | |
2999 | } | |
3000 | return resultobj; | |
3001 | fail: | |
3002 | { | |
3003 | if (temp2) | |
3004 | delete arg2; | |
3005 | } | |
3006 | return NULL; | |
3007 | } | |
3008 | ||
3009 | ||
3010 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3011 | PyObject *resultobj; | |
3012 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3013 | wxString result; | |
3014 | PyObject * obj0 = 0 ; | |
3015 | char *kwnames[] = { | |
3016 | (char *) "self", NULL | |
3017 | }; | |
3018 | ||
3019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3022 | { | |
3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3024 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3025 | ||
3026 | wxPyEndAllowThreads(__tstate); | |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
3028 | } | |
3029 | { | |
3030 | #if wxUSE_UNICODE | |
3031 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3032 | #else | |
3033 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3034 | #endif | |
3035 | } | |
3036 | return resultobj; | |
3037 | fail: | |
3038 | return NULL; | |
3039 | } | |
3040 | ||
3041 | ||
3042 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3043 | PyObject *resultobj; | |
3044 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3045 | wxRegion *arg2 = 0 ; | |
3046 | bool result; | |
3047 | PyObject * obj0 = 0 ; | |
3048 | PyObject * obj1 = 0 ; | |
3049 | char *kwnames[] = { | |
3050 | (char *) "self",(char *) "region", NULL | |
3051 | }; | |
3052 | ||
3053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3058 | SWIG_fail; | |
3059 | if (arg2 == NULL) { | |
3060 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3061 | SWIG_fail; | |
3062 | } | |
3063 | { | |
3064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3065 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3066 | ||
3067 | wxPyEndAllowThreads(__tstate); | |
3068 | if (PyErr_Occurred()) SWIG_fail; | |
3069 | } | |
3070 | { | |
3071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3072 | } | |
3073 | return resultobj; | |
3074 | fail: | |
3075 | return NULL; | |
3076 | } | |
3077 | ||
3078 | ||
3079 | static PyObject *_wrap_TopLevelWindow_MacSetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3080 | PyObject *resultobj; | |
3081 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3082 | bool arg2 ; | |
3083 | PyObject * obj0 = 0 ; | |
3084 | PyObject * obj1 = 0 ; | |
3085 | char *kwnames[] = { | |
3086 | (char *) "self",(char *) "on", NULL | |
3087 | }; | |
3088 | ||
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_MacSetMetalAppearance",kwnames,&obj0,&obj1)) goto fail; | |
3090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3092 | arg2 = (bool) SWIG_AsBool(obj1); | |
3093 | if (PyErr_Occurred()) SWIG_fail; | |
3094 | { | |
3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3096 | (arg1)->MacSetMetalAppearance(arg2); | |
3097 | ||
3098 | wxPyEndAllowThreads(__tstate); | |
3099 | if (PyErr_Occurred()) SWIG_fail; | |
3100 | } | |
3101 | Py_INCREF(Py_None); resultobj = Py_None; | |
3102 | return resultobj; | |
3103 | fail: | |
3104 | return NULL; | |
3105 | } | |
3106 | ||
3107 | ||
3108 | static PyObject *_wrap_TopLevelWindow_MacGetMetalAppearance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3109 | PyObject *resultobj; | |
3110 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3111 | bool result; | |
3112 | PyObject * obj0 = 0 ; | |
3113 | char *kwnames[] = { | |
3114 | (char *) "self", NULL | |
3115 | }; | |
3116 | ||
3117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_MacGetMetalAppearance",kwnames,&obj0)) goto fail; | |
3118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3120 | { | |
3121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3122 | result = (bool)((wxTopLevelWindow const *)arg1)->MacGetMetalAppearance(); | |
3123 | ||
3124 | wxPyEndAllowThreads(__tstate); | |
3125 | if (PyErr_Occurred()) SWIG_fail; | |
3126 | } | |
3127 | { | |
3128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3129 | } | |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
3136 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3137 | PyObject *obj; | |
3138 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3139 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3140 | Py_INCREF(obj); | |
3141 | return Py_BuildValue((char *)""); | |
3142 | } | |
3143 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3144 | PyObject *resultobj; | |
3145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3146 | int arg2 ; | |
3147 | wxString *arg3 = 0 ; | |
3148 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3149 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3150 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3151 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3152 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3153 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3154 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3155 | wxFrame *result; | |
3156 | bool temp3 = False ; | |
3157 | wxPoint temp4 ; | |
3158 | wxSize temp5 ; | |
3159 | bool temp7 = False ; | |
3160 | PyObject * obj0 = 0 ; | |
3161 | PyObject * obj1 = 0 ; | |
3162 | PyObject * obj2 = 0 ; | |
3163 | PyObject * obj3 = 0 ; | |
3164 | PyObject * obj4 = 0 ; | |
3165 | PyObject * obj5 = 0 ; | |
3166 | PyObject * obj6 = 0 ; | |
3167 | char *kwnames[] = { | |
3168 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3169 | }; | |
3170 | ||
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3174 | arg2 = (int const) SWIG_AsInt(obj1); | |
3175 | if (PyErr_Occurred()) SWIG_fail; | |
3176 | { | |
3177 | arg3 = wxString_in_helper(obj2); | |
3178 | if (arg3 == NULL) SWIG_fail; | |
3179 | temp3 = True; | |
3180 | } | |
3181 | if (obj3) { | |
3182 | { | |
3183 | arg4 = &temp4; | |
3184 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3185 | } | |
3186 | } | |
3187 | if (obj4) { | |
3188 | { | |
3189 | arg5 = &temp5; | |
3190 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3191 | } | |
3192 | } | |
3193 | if (obj5) { | |
3194 | arg6 = (long) SWIG_AsLong(obj5); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | if (obj6) { | |
3198 | { | |
3199 | arg7 = wxString_in_helper(obj6); | |
3200 | if (arg7 == NULL) SWIG_fail; | |
3201 | temp7 = True; | |
3202 | } | |
3203 | } | |
3204 | { | |
3205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3206 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3207 | ||
3208 | wxPyEndAllowThreads(__tstate); | |
3209 | if (PyErr_Occurred()) SWIG_fail; | |
3210 | } | |
3211 | { | |
3212 | resultobj = wxPyMake_wxObject(result); | |
3213 | } | |
3214 | { | |
3215 | if (temp3) | |
3216 | delete arg3; | |
3217 | } | |
3218 | { | |
3219 | if (temp7) | |
3220 | delete arg7; | |
3221 | } | |
3222 | return resultobj; | |
3223 | fail: | |
3224 | { | |
3225 | if (temp3) | |
3226 | delete arg3; | |
3227 | } | |
3228 | { | |
3229 | if (temp7) | |
3230 | delete arg7; | |
3231 | } | |
3232 | return NULL; | |
3233 | } | |
3234 | ||
3235 | ||
3236 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject *resultobj; | |
3238 | wxFrame *result; | |
3239 | char *kwnames[] = { | |
3240 | NULL | |
3241 | }; | |
3242 | ||
3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3244 | { | |
3245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3246 | result = (wxFrame *)new wxFrame(); | |
3247 | ||
3248 | wxPyEndAllowThreads(__tstate); | |
3249 | if (PyErr_Occurred()) SWIG_fail; | |
3250 | } | |
3251 | { | |
3252 | resultobj = wxPyMake_wxObject(result); | |
3253 | } | |
3254 | return resultobj; | |
3255 | fail: | |
3256 | return NULL; | |
3257 | } | |
3258 | ||
3259 | ||
3260 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3261 | PyObject *resultobj; | |
3262 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3263 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3264 | int arg3 ; | |
3265 | wxString *arg4 = 0 ; | |
3266 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3267 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3268 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3269 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3270 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3271 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3272 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3273 | bool result; | |
3274 | bool temp4 = False ; | |
3275 | wxPoint temp5 ; | |
3276 | wxSize temp6 ; | |
3277 | bool temp8 = False ; | |
3278 | PyObject * obj0 = 0 ; | |
3279 | PyObject * obj1 = 0 ; | |
3280 | PyObject * obj2 = 0 ; | |
3281 | PyObject * obj3 = 0 ; | |
3282 | PyObject * obj4 = 0 ; | |
3283 | PyObject * obj5 = 0 ; | |
3284 | PyObject * obj6 = 0 ; | |
3285 | PyObject * obj7 = 0 ; | |
3286 | char *kwnames[] = { | |
3287 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3288 | }; | |
3289 | ||
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3295 | arg3 = (int const) SWIG_AsInt(obj2); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | { | |
3298 | arg4 = wxString_in_helper(obj3); | |
3299 | if (arg4 == NULL) SWIG_fail; | |
3300 | temp4 = True; | |
3301 | } | |
3302 | if (obj4) { | |
3303 | { | |
3304 | arg5 = &temp5; | |
3305 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3306 | } | |
3307 | } | |
3308 | if (obj5) { | |
3309 | { | |
3310 | arg6 = &temp6; | |
3311 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3312 | } | |
3313 | } | |
3314 | if (obj6) { | |
3315 | arg7 = (long) SWIG_AsLong(obj6); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | if (obj7) { | |
3319 | { | |
3320 | arg8 = wxString_in_helper(obj7); | |
3321 | if (arg8 == NULL) SWIG_fail; | |
3322 | temp8 = True; | |
3323 | } | |
3324 | } | |
3325 | { | |
3326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3327 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3328 | ||
3329 | wxPyEndAllowThreads(__tstate); | |
3330 | if (PyErr_Occurred()) SWIG_fail; | |
3331 | } | |
3332 | { | |
3333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3334 | } | |
3335 | { | |
3336 | if (temp4) | |
3337 | delete arg4; | |
3338 | } | |
3339 | { | |
3340 | if (temp8) | |
3341 | delete arg8; | |
3342 | } | |
3343 | return resultobj; | |
3344 | fail: | |
3345 | { | |
3346 | if (temp4) | |
3347 | delete arg4; | |
3348 | } | |
3349 | { | |
3350 | if (temp8) | |
3351 | delete arg8; | |
3352 | } | |
3353 | return NULL; | |
3354 | } | |
3355 | ||
3356 | ||
3357 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject *resultobj; | |
3359 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3360 | wxPoint result; | |
3361 | PyObject * obj0 = 0 ; | |
3362 | char *kwnames[] = { | |
3363 | (char *) "self", NULL | |
3364 | }; | |
3365 | ||
3366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3369 | { | |
3370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3371 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3372 | ||
3373 | wxPyEndAllowThreads(__tstate); | |
3374 | if (PyErr_Occurred()) SWIG_fail; | |
3375 | } | |
3376 | { | |
3377 | wxPoint * resultptr; | |
3378 | resultptr = new wxPoint((wxPoint &) result); | |
3379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3380 | } | |
3381 | return resultobj; | |
3382 | fail: | |
3383 | return NULL; | |
3384 | } | |
3385 | ||
3386 | ||
3387 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3388 | PyObject *resultobj; | |
3389 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3390 | PyObject * obj0 = 0 ; | |
3391 | char *kwnames[] = { | |
3392 | (char *) "self", NULL | |
3393 | }; | |
3394 | ||
3395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3398 | { | |
3399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3400 | (arg1)->SendSizeEvent(); | |
3401 | ||
3402 | wxPyEndAllowThreads(__tstate); | |
3403 | if (PyErr_Occurred()) SWIG_fail; | |
3404 | } | |
3405 | Py_INCREF(Py_None); resultobj = Py_None; | |
3406 | return resultobj; | |
3407 | fail: | |
3408 | return NULL; | |
3409 | } | |
3410 | ||
3411 | ||
3412 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3413 | PyObject *resultobj; | |
3414 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3415 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3416 | PyObject * obj0 = 0 ; | |
3417 | PyObject * obj1 = 0 ; | |
3418 | char *kwnames[] = { | |
3419 | (char *) "self",(char *) "menubar", NULL | |
3420 | }; | |
3421 | ||
3422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3427 | { | |
3428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3429 | (arg1)->SetMenuBar(arg2); | |
3430 | ||
3431 | wxPyEndAllowThreads(__tstate); | |
3432 | if (PyErr_Occurred()) SWIG_fail; | |
3433 | } | |
3434 | Py_INCREF(Py_None); resultobj = Py_None; | |
3435 | return resultobj; | |
3436 | fail: | |
3437 | return NULL; | |
3438 | } | |
3439 | ||
3440 | ||
3441 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3442 | PyObject *resultobj; | |
3443 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3444 | wxMenuBar *result; | |
3445 | PyObject * obj0 = 0 ; | |
3446 | char *kwnames[] = { | |
3447 | (char *) "self", NULL | |
3448 | }; | |
3449 | ||
3450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3453 | { | |
3454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3455 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3456 | ||
3457 | wxPyEndAllowThreads(__tstate); | |
3458 | if (PyErr_Occurred()) SWIG_fail; | |
3459 | } | |
3460 | { | |
3461 | resultobj = wxPyMake_wxObject(result); | |
3462 | } | |
3463 | return resultobj; | |
3464 | fail: | |
3465 | return NULL; | |
3466 | } | |
3467 | ||
3468 | ||
3469 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3470 | PyObject *resultobj; | |
3471 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3472 | int arg2 ; | |
3473 | bool result; | |
3474 | PyObject * obj0 = 0 ; | |
3475 | PyObject * obj1 = 0 ; | |
3476 | char *kwnames[] = { | |
3477 | (char *) "self",(char *) "winid", NULL | |
3478 | }; | |
3479 | ||
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3483 | arg2 = (int) SWIG_AsInt(obj1); | |
3484 | if (PyErr_Occurred()) SWIG_fail; | |
3485 | { | |
3486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3487 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3488 | ||
3489 | wxPyEndAllowThreads(__tstate); | |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
3491 | } | |
3492 | { | |
3493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3494 | } | |
3495 | return resultobj; | |
3496 | fail: | |
3497 | return NULL; | |
3498 | } | |
3499 | ||
3500 | ||
3501 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3502 | PyObject *resultobj; | |
3503 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3504 | int arg2 = (int) 1 ; | |
3505 | long arg3 = (long) wxST_SIZEGRIP ; | |
3506 | int arg4 = (int) 0 ; | |
3507 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3508 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3509 | wxStatusBar *result; | |
3510 | bool temp5 = False ; | |
3511 | PyObject * obj0 = 0 ; | |
3512 | PyObject * obj1 = 0 ; | |
3513 | PyObject * obj2 = 0 ; | |
3514 | PyObject * obj3 = 0 ; | |
3515 | PyObject * obj4 = 0 ; | |
3516 | char *kwnames[] = { | |
3517 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3518 | }; | |
3519 | ||
3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3523 | if (obj1) { | |
3524 | arg2 = (int) SWIG_AsInt(obj1); | |
3525 | if (PyErr_Occurred()) SWIG_fail; | |
3526 | } | |
3527 | if (obj2) { | |
3528 | arg3 = (long) SWIG_AsLong(obj2); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
3531 | if (obj3) { | |
3532 | arg4 = (int) SWIG_AsInt(obj3); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
3534 | } | |
3535 | if (obj4) { | |
3536 | { | |
3537 | arg5 = wxString_in_helper(obj4); | |
3538 | if (arg5 == NULL) SWIG_fail; | |
3539 | temp5 = True; | |
3540 | } | |
3541 | } | |
3542 | { | |
3543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3544 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3545 | ||
3546 | wxPyEndAllowThreads(__tstate); | |
3547 | if (PyErr_Occurred()) SWIG_fail; | |
3548 | } | |
3549 | { | |
3550 | resultobj = wxPyMake_wxObject(result); | |
3551 | } | |
3552 | { | |
3553 | if (temp5) | |
3554 | delete arg5; | |
3555 | } | |
3556 | return resultobj; | |
3557 | fail: | |
3558 | { | |
3559 | if (temp5) | |
3560 | delete arg5; | |
3561 | } | |
3562 | return NULL; | |
3563 | } | |
3564 | ||
3565 | ||
3566 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3567 | PyObject *resultobj; | |
3568 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3569 | wxStatusBar *result; | |
3570 | PyObject * obj0 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "self", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
3585 | { | |
3586 | resultobj = wxPyMake_wxObject(result); | |
3587 | } | |
3588 | return resultobj; | |
3589 | fail: | |
3590 | return NULL; | |
3591 | } | |
3592 | ||
3593 | ||
3594 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3595 | PyObject *resultobj; | |
3596 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3597 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3598 | PyObject * obj0 = 0 ; | |
3599 | PyObject * obj1 = 0 ; | |
3600 | char *kwnames[] = { | |
3601 | (char *) "self",(char *) "statBar", NULL | |
3602 | }; | |
3603 | ||
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3609 | { | |
3610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3611 | (arg1)->SetStatusBar(arg2); | |
3612 | ||
3613 | wxPyEndAllowThreads(__tstate); | |
3614 | if (PyErr_Occurred()) SWIG_fail; | |
3615 | } | |
3616 | Py_INCREF(Py_None); resultobj = Py_None; | |
3617 | return resultobj; | |
3618 | fail: | |
3619 | return NULL; | |
3620 | } | |
3621 | ||
3622 | ||
3623 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3624 | PyObject *resultobj; | |
3625 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3626 | wxString *arg2 = 0 ; | |
3627 | int arg3 = (int) 0 ; | |
3628 | bool temp2 = False ; | |
3629 | PyObject * obj0 = 0 ; | |
3630 | PyObject * obj1 = 0 ; | |
3631 | PyObject * obj2 = 0 ; | |
3632 | char *kwnames[] = { | |
3633 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3634 | }; | |
3635 | ||
3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3639 | { | |
3640 | arg2 = wxString_in_helper(obj1); | |
3641 | if (arg2 == NULL) SWIG_fail; | |
3642 | temp2 = True; | |
3643 | } | |
3644 | if (obj2) { | |
3645 | arg3 = (int) SWIG_AsInt(obj2); | |
3646 | if (PyErr_Occurred()) SWIG_fail; | |
3647 | } | |
3648 | { | |
3649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3650 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3651 | ||
3652 | wxPyEndAllowThreads(__tstate); | |
3653 | if (PyErr_Occurred()) SWIG_fail; | |
3654 | } | |
3655 | Py_INCREF(Py_None); resultobj = Py_None; | |
3656 | { | |
3657 | if (temp2) | |
3658 | delete arg2; | |
3659 | } | |
3660 | return resultobj; | |
3661 | fail: | |
3662 | { | |
3663 | if (temp2) | |
3664 | delete arg2; | |
3665 | } | |
3666 | return NULL; | |
3667 | } | |
3668 | ||
3669 | ||
3670 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3671 | PyObject *resultobj; | |
3672 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3673 | int arg2 ; | |
3674 | int *arg3 = (int *) 0 ; | |
3675 | PyObject * obj0 = 0 ; | |
3676 | PyObject * obj1 = 0 ; | |
3677 | char *kwnames[] = { | |
3678 | (char *) "self",(char *) "widths", NULL | |
3679 | }; | |
3680 | ||
3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3684 | { | |
3685 | arg2 = PyList_Size(obj1); | |
3686 | arg3 = int_LIST_helper(obj1); | |
3687 | if (arg3 == NULL) SWIG_fail; | |
3688 | } | |
3689 | { | |
3690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3691 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3692 | ||
3693 | wxPyEndAllowThreads(__tstate); | |
3694 | if (PyErr_Occurred()) SWIG_fail; | |
3695 | } | |
3696 | Py_INCREF(Py_None); resultobj = Py_None; | |
3697 | { | |
3698 | if (arg3) delete [] arg3; | |
3699 | } | |
3700 | return resultobj; | |
3701 | fail: | |
3702 | { | |
3703 | if (arg3) delete [] arg3; | |
3704 | } | |
3705 | return NULL; | |
3706 | } | |
3707 | ||
3708 | ||
3709 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3710 | PyObject *resultobj; | |
3711 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3712 | wxString *arg2 = 0 ; | |
3713 | int arg3 = (int) 0 ; | |
3714 | bool temp2 = False ; | |
3715 | PyObject * obj0 = 0 ; | |
3716 | PyObject * obj1 = 0 ; | |
3717 | PyObject * obj2 = 0 ; | |
3718 | char *kwnames[] = { | |
3719 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3720 | }; | |
3721 | ||
3722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3725 | { | |
3726 | arg2 = wxString_in_helper(obj1); | |
3727 | if (arg2 == NULL) SWIG_fail; | |
3728 | temp2 = True; | |
3729 | } | |
3730 | if (obj2) { | |
3731 | arg3 = (int) SWIG_AsInt(obj2); | |
3732 | if (PyErr_Occurred()) SWIG_fail; | |
3733 | } | |
3734 | { | |
3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3736 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3737 | ||
3738 | wxPyEndAllowThreads(__tstate); | |
3739 | if (PyErr_Occurred()) SWIG_fail; | |
3740 | } | |
3741 | Py_INCREF(Py_None); resultobj = Py_None; | |
3742 | { | |
3743 | if (temp2) | |
3744 | delete arg2; | |
3745 | } | |
3746 | return resultobj; | |
3747 | fail: | |
3748 | { | |
3749 | if (temp2) | |
3750 | delete arg2; | |
3751 | } | |
3752 | return NULL; | |
3753 | } | |
3754 | ||
3755 | ||
3756 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3757 | PyObject *resultobj; | |
3758 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3759 | int arg2 = (int) 0 ; | |
3760 | PyObject * obj0 = 0 ; | |
3761 | PyObject * obj1 = 0 ; | |
3762 | char *kwnames[] = { | |
3763 | (char *) "self",(char *) "number", NULL | |
3764 | }; | |
3765 | ||
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3769 | if (obj1) { | |
3770 | arg2 = (int) SWIG_AsInt(obj1); | |
3771 | if (PyErr_Occurred()) SWIG_fail; | |
3772 | } | |
3773 | { | |
3774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3775 | (arg1)->PopStatusText(arg2); | |
3776 | ||
3777 | wxPyEndAllowThreads(__tstate); | |
3778 | if (PyErr_Occurred()) SWIG_fail; | |
3779 | } | |
3780 | Py_INCREF(Py_None); resultobj = Py_None; | |
3781 | return resultobj; | |
3782 | fail: | |
3783 | return NULL; | |
3784 | } | |
3785 | ||
3786 | ||
3787 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3788 | PyObject *resultobj; | |
3789 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3790 | int arg2 ; | |
3791 | PyObject * obj0 = 0 ; | |
3792 | PyObject * obj1 = 0 ; | |
3793 | char *kwnames[] = { | |
3794 | (char *) "self",(char *) "n", NULL | |
3795 | }; | |
3796 | ||
3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3800 | arg2 = (int) SWIG_AsInt(obj1); | |
3801 | if (PyErr_Occurred()) SWIG_fail; | |
3802 | { | |
3803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3804 | (arg1)->SetStatusBarPane(arg2); | |
3805 | ||
3806 | wxPyEndAllowThreads(__tstate); | |
3807 | if (PyErr_Occurred()) SWIG_fail; | |
3808 | } | |
3809 | Py_INCREF(Py_None); resultobj = Py_None; | |
3810 | return resultobj; | |
3811 | fail: | |
3812 | return NULL; | |
3813 | } | |
3814 | ||
3815 | ||
3816 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3817 | PyObject *resultobj; | |
3818 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3819 | int result; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3828 | { | |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
3835 | resultobj = SWIG_FromInt((int)result); | |
3836 | return resultobj; | |
3837 | fail: | |
3838 | return NULL; | |
3839 | } | |
3840 | ||
3841 | ||
3842 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3843 | PyObject *resultobj; | |
3844 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3845 | long arg2 = (long) -1 ; | |
3846 | int arg3 = (int) -1 ; | |
3847 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3848 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3849 | wxToolBar *result; | |
3850 | bool temp4 = False ; | |
3851 | PyObject * obj0 = 0 ; | |
3852 | PyObject * obj1 = 0 ; | |
3853 | PyObject * obj2 = 0 ; | |
3854 | PyObject * obj3 = 0 ; | |
3855 | char *kwnames[] = { | |
3856 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3857 | }; | |
3858 | ||
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3862 | if (obj1) { | |
3863 | arg2 = (long) SWIG_AsLong(obj1); | |
3864 | if (PyErr_Occurred()) SWIG_fail; | |
3865 | } | |
3866 | if (obj2) { | |
3867 | arg3 = (int) SWIG_AsInt(obj2); | |
3868 | if (PyErr_Occurred()) SWIG_fail; | |
3869 | } | |
3870 | if (obj3) { | |
3871 | { | |
3872 | arg4 = wxString_in_helper(obj3); | |
3873 | if (arg4 == NULL) SWIG_fail; | |
3874 | temp4 = True; | |
3875 | } | |
3876 | } | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
3884 | { | |
3885 | resultobj = wxPyMake_wxObject(result); | |
3886 | } | |
3887 | { | |
3888 | if (temp4) | |
3889 | delete arg4; | |
3890 | } | |
3891 | return resultobj; | |
3892 | fail: | |
3893 | { | |
3894 | if (temp4) | |
3895 | delete arg4; | |
3896 | } | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
3901 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3902 | PyObject *resultobj; | |
3903 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3904 | wxToolBar *result; | |
3905 | PyObject * obj0 = 0 ; | |
3906 | char *kwnames[] = { | |
3907 | (char *) "self", NULL | |
3908 | }; | |
3909 | ||
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
3920 | { | |
3921 | resultobj = wxPyMake_wxObject(result); | |
3922 | } | |
3923 | return resultobj; | |
3924 | fail: | |
3925 | return NULL; | |
3926 | } | |
3927 | ||
3928 | ||
3929 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3930 | PyObject *resultobj; | |
3931 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3932 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | PyObject * obj1 = 0 ; | |
3935 | char *kwnames[] = { | |
3936 | (char *) "self",(char *) "toolbar", NULL | |
3937 | }; | |
3938 | ||
3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3942 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3944 | { | |
3945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3946 | (arg1)->SetToolBar(arg2); | |
3947 | ||
3948 | wxPyEndAllowThreads(__tstate); | |
3949 | if (PyErr_Occurred()) SWIG_fail; | |
3950 | } | |
3951 | Py_INCREF(Py_None); resultobj = Py_None; | |
3952 | return resultobj; | |
3953 | fail: | |
3954 | return NULL; | |
3955 | } | |
3956 | ||
3957 | ||
3958 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3959 | PyObject *resultobj; | |
3960 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3961 | wxString *arg2 = 0 ; | |
3962 | bool arg3 ; | |
3963 | bool temp2 = False ; | |
3964 | PyObject * obj0 = 0 ; | |
3965 | PyObject * obj1 = 0 ; | |
3966 | PyObject * obj2 = 0 ; | |
3967 | char *kwnames[] = { | |
3968 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3969 | }; | |
3970 | ||
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3974 | { | |
3975 | arg2 = wxString_in_helper(obj1); | |
3976 | if (arg2 == NULL) SWIG_fail; | |
3977 | temp2 = True; | |
3978 | } | |
3979 | arg3 = (bool) SWIG_AsBool(obj2); | |
3980 | if (PyErr_Occurred()) SWIG_fail; | |
3981 | { | |
3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3983 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3984 | ||
3985 | wxPyEndAllowThreads(__tstate); | |
3986 | if (PyErr_Occurred()) SWIG_fail; | |
3987 | } | |
3988 | Py_INCREF(Py_None); resultobj = Py_None; | |
3989 | { | |
3990 | if (temp2) | |
3991 | delete arg2; | |
3992 | } | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | { | |
3996 | if (temp2) | |
3997 | delete arg2; | |
3998 | } | |
3999 | return NULL; | |
4000 | } | |
4001 | ||
4002 | ||
4003 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4004 | PyObject *resultobj; | |
4005 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4006 | wxMenu *arg2 = (wxMenu *) NULL ; | |
4007 | PyObject * obj0 = 0 ; | |
4008 | PyObject * obj1 = 0 ; | |
4009 | char *kwnames[] = { | |
4010 | (char *) "self",(char *) "menu", NULL | |
4011 | }; | |
4012 | ||
4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
4014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4016 | if (obj1) { | |
4017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
4018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4019 | } | |
4020 | { | |
4021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4022 | (arg1)->DoMenuUpdates(arg2); | |
4023 | ||
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
4027 | Py_INCREF(Py_None); resultobj = Py_None; | |
4028 | return resultobj; | |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
f20a2e1f RD |
4034 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4035 | PyObject *resultobj; | |
4036 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4037 | wxVisualAttributes result; | |
4038 | PyObject * obj0 = 0 ; | |
4039 | char *kwnames[] = { | |
4040 | (char *) "variant", NULL | |
4041 | }; | |
4042 | ||
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4044 | if (obj0) { | |
4045 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | } | |
4048 | { | |
4049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4050 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4051 | ||
4052 | wxPyEndAllowThreads(__tstate); | |
4053 | if (PyErr_Occurred()) SWIG_fail; | |
4054 | } | |
4055 | { | |
4056 | wxVisualAttributes * resultptr; | |
4057 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4059 | } | |
4060 | return resultobj; | |
4061 | fail: | |
4062 | return NULL; | |
4063 | } | |
4064 | ||
4065 | ||
d55e5bfc RD |
4066 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { |
4067 | PyObject *obj; | |
4068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4069 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4070 | Py_INCREF(obj); | |
4071 | return Py_BuildValue((char *)""); | |
4072 | } | |
4073 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4074 | PyObject *resultobj; | |
4075 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4076 | int arg2 ; | |
4077 | wxString *arg3 = 0 ; | |
4078 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4079 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4080 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4081 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4082 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4083 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4084 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4085 | wxDialog *result; | |
4086 | bool temp3 = False ; | |
4087 | wxPoint temp4 ; | |
4088 | wxSize temp5 ; | |
4089 | bool temp7 = False ; | |
4090 | PyObject * obj0 = 0 ; | |
4091 | PyObject * obj1 = 0 ; | |
4092 | PyObject * obj2 = 0 ; | |
4093 | PyObject * obj3 = 0 ; | |
4094 | PyObject * obj4 = 0 ; | |
4095 | PyObject * obj5 = 0 ; | |
4096 | PyObject * obj6 = 0 ; | |
4097 | char *kwnames[] = { | |
4098 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4099 | }; | |
4100 | ||
4101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4104 | arg2 = (int const) SWIG_AsInt(obj1); | |
4105 | if (PyErr_Occurred()) SWIG_fail; | |
4106 | { | |
4107 | arg3 = wxString_in_helper(obj2); | |
4108 | if (arg3 == NULL) SWIG_fail; | |
4109 | temp3 = True; | |
4110 | } | |
4111 | if (obj3) { | |
4112 | { | |
4113 | arg4 = &temp4; | |
4114 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4115 | } | |
4116 | } | |
4117 | if (obj4) { | |
4118 | { | |
4119 | arg5 = &temp5; | |
4120 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4121 | } | |
4122 | } | |
4123 | if (obj5) { | |
4124 | arg6 = (long) SWIG_AsLong(obj5); | |
4125 | if (PyErr_Occurred()) SWIG_fail; | |
4126 | } | |
4127 | if (obj6) { | |
4128 | { | |
4129 | arg7 = wxString_in_helper(obj6); | |
4130 | if (arg7 == NULL) SWIG_fail; | |
4131 | temp7 = True; | |
4132 | } | |
4133 | } | |
4134 | { | |
4135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4136 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4137 | ||
4138 | wxPyEndAllowThreads(__tstate); | |
4139 | if (PyErr_Occurred()) SWIG_fail; | |
4140 | } | |
e058867b RD |
4141 | { |
4142 | resultobj = wxPyMake_wxObject(result); | |
4143 | } | |
d55e5bfc RD |
4144 | { |
4145 | if (temp3) | |
4146 | delete arg3; | |
4147 | } | |
4148 | { | |
4149 | if (temp7) | |
4150 | delete arg7; | |
4151 | } | |
4152 | return resultobj; | |
4153 | fail: | |
4154 | { | |
4155 | if (temp3) | |
4156 | delete arg3; | |
4157 | } | |
4158 | { | |
4159 | if (temp7) | |
4160 | delete arg7; | |
4161 | } | |
4162 | return NULL; | |
4163 | } | |
4164 | ||
4165 | ||
4166 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4167 | PyObject *resultobj; | |
4168 | wxDialog *result; | |
4169 | char *kwnames[] = { | |
4170 | NULL | |
4171 | }; | |
4172 | ||
4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4174 | { | |
4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4176 | result = (wxDialog *)new wxDialog(); | |
4177 | ||
4178 | wxPyEndAllowThreads(__tstate); | |
4179 | if (PyErr_Occurred()) SWIG_fail; | |
4180 | } | |
e058867b RD |
4181 | { |
4182 | resultobj = wxPyMake_wxObject(result); | |
4183 | } | |
d55e5bfc RD |
4184 | return resultobj; |
4185 | fail: | |
4186 | return NULL; | |
4187 | } | |
4188 | ||
4189 | ||
4190 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4191 | PyObject *resultobj; | |
4192 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4193 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4194 | int arg3 ; | |
4195 | wxString *arg4 = 0 ; | |
4196 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4197 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4198 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4199 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4200 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4201 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4202 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4203 | bool result; | |
4204 | bool temp4 = False ; | |
4205 | wxPoint temp5 ; | |
4206 | wxSize temp6 ; | |
4207 | bool temp8 = False ; | |
4208 | PyObject * obj0 = 0 ; | |
4209 | PyObject * obj1 = 0 ; | |
4210 | PyObject * obj2 = 0 ; | |
4211 | PyObject * obj3 = 0 ; | |
4212 | PyObject * obj4 = 0 ; | |
4213 | PyObject * obj5 = 0 ; | |
4214 | PyObject * obj6 = 0 ; | |
4215 | PyObject * obj7 = 0 ; | |
4216 | char *kwnames[] = { | |
4217 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4218 | }; | |
4219 | ||
4220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4225 | arg3 = (int const) SWIG_AsInt(obj2); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | { | |
4228 | arg4 = wxString_in_helper(obj3); | |
4229 | if (arg4 == NULL) SWIG_fail; | |
4230 | temp4 = True; | |
4231 | } | |
4232 | if (obj4) { | |
4233 | { | |
4234 | arg5 = &temp5; | |
4235 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4236 | } | |
4237 | } | |
4238 | if (obj5) { | |
4239 | { | |
4240 | arg6 = &temp6; | |
4241 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4242 | } | |
4243 | } | |
4244 | if (obj6) { | |
4245 | arg7 = (long) SWIG_AsLong(obj6); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | } | |
4248 | if (obj7) { | |
4249 | { | |
4250 | arg8 = wxString_in_helper(obj7); | |
4251 | if (arg8 == NULL) SWIG_fail; | |
4252 | temp8 = True; | |
4253 | } | |
4254 | } | |
4255 | { | |
4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4257 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4258 | ||
4259 | wxPyEndAllowThreads(__tstate); | |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | { | |
4263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4264 | } | |
4265 | { | |
4266 | if (temp4) | |
4267 | delete arg4; | |
4268 | } | |
4269 | { | |
4270 | if (temp8) | |
4271 | delete arg8; | |
4272 | } | |
4273 | return resultobj; | |
4274 | fail: | |
4275 | { | |
4276 | if (temp4) | |
4277 | delete arg4; | |
4278 | } | |
4279 | { | |
4280 | if (temp8) | |
4281 | delete arg8; | |
4282 | } | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
4287 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4288 | PyObject *resultobj; | |
4289 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4290 | int arg2 ; | |
4291 | PyObject * obj0 = 0 ; | |
4292 | PyObject * obj1 = 0 ; | |
4293 | char *kwnames[] = { | |
4294 | (char *) "self",(char *) "returnCode", NULL | |
4295 | }; | |
4296 | ||
4297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4300 | arg2 = (int) SWIG_AsInt(obj1); | |
4301 | if (PyErr_Occurred()) SWIG_fail; | |
4302 | { | |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | (arg1)->SetReturnCode(arg2); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4309 | Py_INCREF(Py_None); resultobj = Py_None; | |
4310 | return resultobj; | |
4311 | fail: | |
4312 | return NULL; | |
4313 | } | |
4314 | ||
4315 | ||
4316 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
4318 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4319 | int result; | |
4320 | PyObject * obj0 = 0 ; | |
4321 | char *kwnames[] = { | |
4322 | (char *) "self", NULL | |
4323 | }; | |
4324 | ||
4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4328 | { | |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4331 | ||
4332 | wxPyEndAllowThreads(__tstate); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
4335 | resultobj = SWIG_FromInt((int)result); | |
4336 | return resultobj; | |
4337 | fail: | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4343 | PyObject *resultobj; | |
4344 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4345 | wxString *arg2 = 0 ; | |
4346 | wxSizer *result; | |
4347 | bool temp2 = False ; | |
4348 | PyObject * obj0 = 0 ; | |
4349 | PyObject * obj1 = 0 ; | |
4350 | char *kwnames[] = { | |
4351 | (char *) "self",(char *) "message", NULL | |
4352 | }; | |
4353 | ||
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4357 | { | |
4358 | arg2 = wxString_in_helper(obj1); | |
4359 | if (arg2 == NULL) SWIG_fail; | |
4360 | temp2 = True; | |
4361 | } | |
4362 | { | |
4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4364 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4365 | ||
4366 | wxPyEndAllowThreads(__tstate); | |
4367 | if (PyErr_Occurred()) SWIG_fail; | |
4368 | } | |
4369 | { | |
4370 | resultobj = wxPyMake_wxSizer(result); | |
4371 | } | |
4372 | { | |
4373 | if (temp2) | |
4374 | delete arg2; | |
4375 | } | |
4376 | return resultobj; | |
4377 | fail: | |
4378 | { | |
4379 | if (temp2) | |
4380 | delete arg2; | |
4381 | } | |
4382 | return NULL; | |
4383 | } | |
4384 | ||
4385 | ||
4386 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4387 | PyObject *resultobj; | |
4388 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4389 | long arg2 ; | |
4390 | wxSizer *result; | |
4391 | PyObject * obj0 = 0 ; | |
4392 | PyObject * obj1 = 0 ; | |
4393 | char *kwnames[] = { | |
4394 | (char *) "self",(char *) "flags", NULL | |
4395 | }; | |
4396 | ||
4397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4400 | arg2 = (long) SWIG_AsLong(obj1); | |
4401 | if (PyErr_Occurred()) SWIG_fail; | |
4402 | { | |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4409 | { | |
4410 | resultobj = wxPyMake_wxSizer(result); | |
4411 | } | |
4412 | return resultobj; | |
4413 | fail: | |
4414 | return NULL; | |
4415 | } | |
4416 | ||
4417 | ||
4418 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4419 | PyObject *resultobj; | |
4420 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4421 | bool result; | |
4422 | PyObject * obj0 = 0 ; | |
4423 | char *kwnames[] = { | |
4424 | (char *) "self", NULL | |
4425 | }; | |
4426 | ||
4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4430 | { | |
4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4432 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4433 | ||
4434 | wxPyEndAllowThreads(__tstate); | |
4435 | if (PyErr_Occurred()) SWIG_fail; | |
4436 | } | |
4437 | { | |
4438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4439 | } | |
4440 | return resultobj; | |
4441 | fail: | |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
4446 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4447 | PyObject *resultobj; | |
4448 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4449 | int result; | |
4450 | PyObject * obj0 = 0 ; | |
4451 | char *kwnames[] = { | |
4452 | (char *) "self", NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4458 | { | |
4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4460 | result = (int)(arg1)->ShowModal(); | |
4461 | ||
4462 | wxPyEndAllowThreads(__tstate); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
4465 | resultobj = SWIG_FromInt((int)result); | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | return NULL; | |
4469 | } | |
4470 | ||
4471 | ||
4472 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4473 | PyObject *resultobj; | |
4474 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4475 | int arg2 ; | |
4476 | PyObject * obj0 = 0 ; | |
4477 | PyObject * obj1 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self",(char *) "retCode", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4485 | arg2 = (int) SWIG_AsInt(obj1); | |
4486 | if (PyErr_Occurred()) SWIG_fail; | |
4487 | { | |
4488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4489 | (arg1)->EndModal(arg2); | |
4490 | ||
4491 | wxPyEndAllowThreads(__tstate); | |
4492 | if (PyErr_Occurred()) SWIG_fail; | |
4493 | } | |
4494 | Py_INCREF(Py_None); resultobj = Py_None; | |
4495 | return resultobj; | |
4496 | fail: | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
f20a2e1f RD |
4501 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4502 | PyObject *resultobj; | |
4503 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4504 | wxVisualAttributes result; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "variant", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4511 | if (obj0) { | |
4512 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4515 | { | |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4517 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4518 | ||
4519 | wxPyEndAllowThreads(__tstate); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
4521 | } | |
4522 | { | |
4523 | wxVisualAttributes * resultptr; | |
4524 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4526 | } | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | return NULL; | |
4530 | } | |
4531 | ||
4532 | ||
d55e5bfc RD |
4533 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { |
4534 | PyObject *obj; | |
4535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4536 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4537 | Py_INCREF(obj); | |
4538 | return Py_BuildValue((char *)""); | |
4539 | } | |
4540 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4541 | PyObject *resultobj; | |
4542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4543 | int arg2 ; | |
4544 | wxString *arg3 = 0 ; | |
4545 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4546 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4547 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4548 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4549 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4550 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4551 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4552 | wxMiniFrame *result; | |
4553 | bool temp3 = False ; | |
4554 | wxPoint temp4 ; | |
4555 | wxSize temp5 ; | |
4556 | bool temp7 = False ; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | PyObject * obj1 = 0 ; | |
4559 | PyObject * obj2 = 0 ; | |
4560 | PyObject * obj3 = 0 ; | |
4561 | PyObject * obj4 = 0 ; | |
4562 | PyObject * obj5 = 0 ; | |
4563 | PyObject * obj6 = 0 ; | |
4564 | char *kwnames[] = { | |
4565 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4566 | }; | |
4567 | ||
4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4571 | arg2 = (int const) SWIG_AsInt(obj1); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | { | |
4574 | arg3 = wxString_in_helper(obj2); | |
4575 | if (arg3 == NULL) SWIG_fail; | |
4576 | temp3 = True; | |
4577 | } | |
4578 | if (obj3) { | |
4579 | { | |
4580 | arg4 = &temp4; | |
4581 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4582 | } | |
4583 | } | |
4584 | if (obj4) { | |
4585 | { | |
4586 | arg5 = &temp5; | |
4587 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4588 | } | |
4589 | } | |
4590 | if (obj5) { | |
4591 | arg6 = (long) SWIG_AsLong(obj5); | |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
4593 | } | |
4594 | if (obj6) { | |
4595 | { | |
4596 | arg7 = wxString_in_helper(obj6); | |
4597 | if (arg7 == NULL) SWIG_fail; | |
4598 | temp7 = True; | |
4599 | } | |
4600 | } | |
4601 | { | |
4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4603 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4604 | ||
4605 | wxPyEndAllowThreads(__tstate); | |
4606 | if (PyErr_Occurred()) SWIG_fail; | |
4607 | } | |
4608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4609 | { | |
4610 | if (temp3) | |
4611 | delete arg3; | |
4612 | } | |
4613 | { | |
4614 | if (temp7) | |
4615 | delete arg7; | |
4616 | } | |
4617 | return resultobj; | |
4618 | fail: | |
4619 | { | |
4620 | if (temp3) | |
4621 | delete arg3; | |
4622 | } | |
4623 | { | |
4624 | if (temp7) | |
4625 | delete arg7; | |
4626 | } | |
4627 | return NULL; | |
4628 | } | |
4629 | ||
4630 | ||
4631 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4632 | PyObject *resultobj; | |
4633 | wxMiniFrame *result; | |
4634 | char *kwnames[] = { | |
4635 | NULL | |
4636 | }; | |
4637 | ||
4638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4639 | { | |
4640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4641 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4642 | ||
4643 | wxPyEndAllowThreads(__tstate); | |
4644 | if (PyErr_Occurred()) SWIG_fail; | |
4645 | } | |
4646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4647 | return resultobj; | |
4648 | fail: | |
4649 | return NULL; | |
4650 | } | |
4651 | ||
4652 | ||
4653 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject *resultobj; | |
4655 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4656 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4657 | int arg3 ; | |
4658 | wxString *arg4 = 0 ; | |
4659 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4660 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4661 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4662 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4663 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4664 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4665 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4666 | bool result; | |
4667 | bool temp4 = False ; | |
4668 | wxPoint temp5 ; | |
4669 | wxSize temp6 ; | |
4670 | bool temp8 = False ; | |
4671 | PyObject * obj0 = 0 ; | |
4672 | PyObject * obj1 = 0 ; | |
4673 | PyObject * obj2 = 0 ; | |
4674 | PyObject * obj3 = 0 ; | |
4675 | PyObject * obj4 = 0 ; | |
4676 | PyObject * obj5 = 0 ; | |
4677 | PyObject * obj6 = 0 ; | |
4678 | PyObject * obj7 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, | |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4686 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4688 | arg3 = (int const) SWIG_AsInt(obj2); | |
4689 | if (PyErr_Occurred()) SWIG_fail; | |
4690 | { | |
4691 | arg4 = wxString_in_helper(obj3); | |
4692 | if (arg4 == NULL) SWIG_fail; | |
4693 | temp4 = True; | |
4694 | } | |
4695 | if (obj4) { | |
4696 | { | |
4697 | arg5 = &temp5; | |
4698 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4699 | } | |
4700 | } | |
4701 | if (obj5) { | |
4702 | { | |
4703 | arg6 = &temp6; | |
4704 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4705 | } | |
4706 | } | |
4707 | if (obj6) { | |
4708 | arg7 = (long) SWIG_AsLong(obj6); | |
4709 | if (PyErr_Occurred()) SWIG_fail; | |
4710 | } | |
4711 | if (obj7) { | |
4712 | { | |
4713 | arg8 = wxString_in_helper(obj7); | |
4714 | if (arg8 == NULL) SWIG_fail; | |
4715 | temp8 = True; | |
4716 | } | |
4717 | } | |
4718 | { | |
4719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4720 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4721 | ||
4722 | wxPyEndAllowThreads(__tstate); | |
4723 | if (PyErr_Occurred()) SWIG_fail; | |
4724 | } | |
4725 | { | |
4726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4727 | } | |
4728 | { | |
4729 | if (temp4) | |
4730 | delete arg4; | |
4731 | } | |
4732 | { | |
4733 | if (temp8) | |
4734 | delete arg8; | |
4735 | } | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | { | |
4739 | if (temp4) | |
4740 | delete arg4; | |
4741 | } | |
4742 | { | |
4743 | if (temp8) | |
4744 | delete arg8; | |
4745 | } | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4751 | PyObject *obj; | |
4752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4753 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4754 | Py_INCREF(obj); | |
4755 | return Py_BuildValue((char *)""); | |
4756 | } | |
4757 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject *resultobj; | |
4759 | wxBitmap *arg1 = 0 ; | |
4760 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4761 | int arg3 ; | |
4762 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4763 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4764 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4765 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4766 | long arg6 = (long) wxNO_BORDER ; | |
4767 | wxSplashScreenWindow *result; | |
4768 | wxPoint temp4 ; | |
4769 | wxSize temp5 ; | |
4770 | PyObject * obj0 = 0 ; | |
4771 | PyObject * obj1 = 0 ; | |
4772 | PyObject * obj2 = 0 ; | |
4773 | PyObject * obj3 = 0 ; | |
4774 | PyObject * obj4 = 0 ; | |
4775 | PyObject * obj5 = 0 ; | |
4776 | char *kwnames[] = { | |
4777 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4778 | }; | |
4779 | ||
4780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4782 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4783 | SWIG_fail; | |
4784 | if (arg1 == NULL) { | |
4785 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4786 | SWIG_fail; | |
4787 | } | |
4788 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4790 | arg3 = (int) SWIG_AsInt(obj2); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | if (obj3) { | |
4793 | { | |
4794 | arg4 = &temp4; | |
4795 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4796 | } | |
4797 | } | |
4798 | if (obj4) { | |
4799 | { | |
4800 | arg5 = &temp5; | |
4801 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4802 | } | |
4803 | } | |
4804 | if (obj5) { | |
4805 | arg6 = (long) SWIG_AsLong(obj5); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | { | |
4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4810 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4811 | ||
4812 | wxPyEndAllowThreads(__tstate); | |
4813 | if (PyErr_Occurred()) SWIG_fail; | |
4814 | } | |
4815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4816 | return resultobj; | |
4817 | fail: | |
4818 | return NULL; | |
4819 | } | |
4820 | ||
4821 | ||
4822 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4823 | PyObject *resultobj; | |
4824 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4825 | wxBitmap *arg2 = 0 ; | |
4826 | PyObject * obj0 = 0 ; | |
4827 | PyObject * obj1 = 0 ; | |
4828 | char *kwnames[] = { | |
4829 | (char *) "self",(char *) "bitmap", NULL | |
4830 | }; | |
4831 | ||
4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4837 | SWIG_fail; | |
4838 | if (arg2 == NULL) { | |
4839 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4840 | SWIG_fail; | |
4841 | } | |
4842 | { | |
4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4844 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4845 | ||
4846 | wxPyEndAllowThreads(__tstate); | |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
4849 | Py_INCREF(Py_None); resultobj = Py_None; | |
4850 | return resultobj; | |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
4856 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject *resultobj; | |
4858 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4859 | wxBitmap *result; | |
4860 | PyObject * obj0 = 0 ; | |
4861 | char *kwnames[] = { | |
4862 | (char *) "self", NULL | |
4863 | }; | |
4864 | ||
4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4868 | { | |
4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4870 | { | |
4871 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4872 | result = (wxBitmap *) &_result_ref; | |
4873 | } | |
4874 | ||
4875 | wxPyEndAllowThreads(__tstate); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | { | |
4879 | wxBitmap* resultptr = new wxBitmap(*result); | |
4880 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4881 | } | |
4882 | return resultobj; | |
4883 | fail: | |
4884 | return NULL; | |
4885 | } | |
4886 | ||
4887 | ||
4888 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4889 | PyObject *obj; | |
4890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4891 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4892 | Py_INCREF(obj); | |
4893 | return Py_BuildValue((char *)""); | |
4894 | } | |
4895 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject *resultobj; | |
4897 | wxBitmap *arg1 = 0 ; | |
4898 | long arg2 ; | |
4899 | int arg3 ; | |
4900 | wxWindow *arg4 = (wxWindow *) 0 ; | |
4901 | int arg5 ; | |
4902 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
4903 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4904 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4905 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4906 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4907 | wxSplashScreen *result; | |
4908 | wxPoint temp6 ; | |
4909 | wxSize temp7 ; | |
4910 | PyObject * obj0 = 0 ; | |
4911 | PyObject * obj1 = 0 ; | |
4912 | PyObject * obj2 = 0 ; | |
4913 | PyObject * obj3 = 0 ; | |
4914 | PyObject * obj4 = 0 ; | |
4915 | PyObject * obj5 = 0 ; | |
4916 | PyObject * obj6 = 0 ; | |
4917 | PyObject * obj7 = 0 ; | |
4918 | char *kwnames[] = { | |
4919 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4920 | }; | |
4921 | ||
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4925 | SWIG_fail; | |
4926 | if (arg1 == NULL) { | |
4927 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4928 | SWIG_fail; | |
4929 | } | |
4930 | arg2 = (long) SWIG_AsLong(obj1); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | arg3 = (int) SWIG_AsInt(obj2); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4936 | arg5 = (int) SWIG_AsInt(obj4); | |
4937 | if (PyErr_Occurred()) SWIG_fail; | |
4938 | if (obj5) { | |
4939 | { | |
4940 | arg6 = &temp6; | |
4941 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4942 | } | |
4943 | } | |
4944 | if (obj6) { | |
4945 | { | |
4946 | arg7 = &temp7; | |
4947 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4948 | } | |
4949 | } | |
4950 | if (obj7) { | |
4951 | arg8 = (long) SWIG_AsLong(obj7); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | } | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4957 | ||
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
4965 | } | |
4966 | ||
4967 | ||
4968 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject *resultobj; | |
4970 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4971 | long result; | |
4972 | PyObject * obj0 = 0 ; | |
4973 | char *kwnames[] = { | |
4974 | (char *) "self", NULL | |
4975 | }; | |
4976 | ||
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4980 | { | |
4981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4982 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4983 | ||
4984 | wxPyEndAllowThreads(__tstate); | |
4985 | if (PyErr_Occurred()) SWIG_fail; | |
4986 | } | |
4987 | resultobj = SWIG_FromLong((long)result); | |
4988 | return resultobj; | |
4989 | fail: | |
4990 | return NULL; | |
4991 | } | |
4992 | ||
4993 | ||
4994 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4995 | PyObject *resultobj; | |
4996 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4997 | wxSplashScreenWindow *result; | |
4998 | PyObject * obj0 = 0 ; | |
4999 | char *kwnames[] = { | |
5000 | (char *) "self", NULL | |
5001 | }; | |
5002 | ||
5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
5004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5006 | { | |
5007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5008 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
5009 | ||
5010 | wxPyEndAllowThreads(__tstate); | |
5011 | if (PyErr_Occurred()) SWIG_fail; | |
5012 | } | |
5013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
5014 | return resultobj; | |
5015 | fail: | |
5016 | return NULL; | |
5017 | } | |
5018 | ||
5019 | ||
5020 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5021 | PyObject *resultobj; | |
5022 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5023 | int result; | |
5024 | PyObject * obj0 = 0 ; | |
5025 | char *kwnames[] = { | |
5026 | (char *) "self", NULL | |
5027 | }; | |
5028 | ||
5029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
5030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5032 | { | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5034 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | resultobj = SWIG_FromInt((int)result); | |
5040 | return resultobj; | |
5041 | fail: | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
5046 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
5047 | PyObject *obj; | |
5048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5049 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
5050 | Py_INCREF(obj); | |
5051 | return Py_BuildValue((char *)""); | |
5052 | } | |
5053 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5054 | PyObject *resultobj; | |
5055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5056 | int arg2 = (int) -1 ; | |
5057 | long arg3 = (long) wxST_SIZEGRIP ; | |
5058 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
5059 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5060 | wxStatusBar *result; | |
5061 | bool temp4 = False ; | |
5062 | PyObject * obj0 = 0 ; | |
5063 | PyObject * obj1 = 0 ; | |
5064 | PyObject * obj2 = 0 ; | |
5065 | PyObject * obj3 = 0 ; | |
5066 | char *kwnames[] = { | |
5067 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5068 | }; | |
5069 | ||
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5073 | if (obj1) { | |
5074 | arg2 = (int) SWIG_AsInt(obj1); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | if (obj2) { | |
5078 | arg3 = (long) SWIG_AsLong(obj2); | |
5079 | if (PyErr_Occurred()) SWIG_fail; | |
5080 | } | |
5081 | if (obj3) { | |
5082 | { | |
5083 | arg4 = wxString_in_helper(obj3); | |
5084 | if (arg4 == NULL) SWIG_fail; | |
5085 | temp4 = True; | |
5086 | } | |
5087 | } | |
5088 | { | |
5089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5090 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5091 | ||
5092 | wxPyEndAllowThreads(__tstate); | |
5093 | if (PyErr_Occurred()) SWIG_fail; | |
5094 | } | |
5095 | { | |
5096 | resultobj = wxPyMake_wxObject(result); | |
5097 | } | |
5098 | { | |
5099 | if (temp4) | |
5100 | delete arg4; | |
5101 | } | |
5102 | return resultobj; | |
5103 | fail: | |
5104 | { | |
5105 | if (temp4) | |
5106 | delete arg4; | |
5107 | } | |
5108 | return NULL; | |
5109 | } | |
5110 | ||
5111 | ||
5112 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5113 | PyObject *resultobj; | |
5114 | wxStatusBar *result; | |
5115 | char *kwnames[] = { | |
5116 | NULL | |
5117 | }; | |
5118 | ||
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5120 | { | |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | result = (wxStatusBar *)new wxStatusBar(); | |
5123 | ||
5124 | wxPyEndAllowThreads(__tstate); | |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | } | |
5127 | { | |
5128 | resultobj = wxPyMake_wxObject(result); | |
5129 | } | |
5130 | return resultobj; | |
5131 | fail: | |
5132 | return NULL; | |
5133 | } | |
5134 | ||
5135 | ||
5136 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5137 | PyObject *resultobj; | |
5138 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5139 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5140 | int arg3 ; | |
5141 | long arg4 = (long) wxST_SIZEGRIP ; | |
5142 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5143 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5144 | bool result; | |
5145 | bool temp5 = False ; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | PyObject * obj2 = 0 ; | |
5149 | PyObject * obj3 = 0 ; | |
5150 | PyObject * obj4 = 0 ; | |
5151 | char *kwnames[] = { | |
5152 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5153 | }; | |
5154 | ||
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5160 | arg3 = (int) SWIG_AsInt(obj2); | |
5161 | if (PyErr_Occurred()) SWIG_fail; | |
5162 | if (obj3) { | |
5163 | arg4 = (long) SWIG_AsLong(obj3); | |
5164 | if (PyErr_Occurred()) SWIG_fail; | |
5165 | } | |
5166 | if (obj4) { | |
5167 | { | |
5168 | arg5 = wxString_in_helper(obj4); | |
5169 | if (arg5 == NULL) SWIG_fail; | |
5170 | temp5 = True; | |
5171 | } | |
5172 | } | |
5173 | { | |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
5180 | { | |
5181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5182 | } | |
5183 | { | |
5184 | if (temp5) | |
5185 | delete arg5; | |
5186 | } | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | { | |
5190 | if (temp5) | |
5191 | delete arg5; | |
5192 | } | |
5193 | return NULL; | |
5194 | } | |
5195 | ||
5196 | ||
5197 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject *resultobj; | |
5199 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5200 | int arg2 = (int) 1 ; | |
5201 | PyObject * obj0 = 0 ; | |
5202 | PyObject * obj1 = 0 ; | |
5203 | char *kwnames[] = { | |
5204 | (char *) "self",(char *) "number", NULL | |
5205 | }; | |
5206 | ||
5207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5210 | if (obj1) { | |
5211 | arg2 = (int) SWIG_AsInt(obj1); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | { | |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5216 | (arg1)->SetFieldsCount(arg2); | |
5217 | ||
5218 | wxPyEndAllowThreads(__tstate); | |
5219 | if (PyErr_Occurred()) SWIG_fail; | |
5220 | } | |
5221 | Py_INCREF(Py_None); resultobj = Py_None; | |
5222 | return resultobj; | |
5223 | fail: | |
5224 | return NULL; | |
5225 | } | |
5226 | ||
5227 | ||
5228 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5229 | PyObject *resultobj; | |
5230 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5231 | int result; | |
5232 | PyObject * obj0 = 0 ; | |
5233 | char *kwnames[] = { | |
5234 | (char *) "self", NULL | |
5235 | }; | |
5236 | ||
5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5240 | { | |
5241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5242 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5243 | ||
5244 | wxPyEndAllowThreads(__tstate); | |
5245 | if (PyErr_Occurred()) SWIG_fail; | |
5246 | } | |
5247 | resultobj = SWIG_FromInt((int)result); | |
5248 | return resultobj; | |
5249 | fail: | |
5250 | return NULL; | |
5251 | } | |
5252 | ||
5253 | ||
5254 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5255 | PyObject *resultobj; | |
5256 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5257 | wxString *arg2 = 0 ; | |
5258 | int arg3 = (int) 0 ; | |
5259 | bool temp2 = False ; | |
5260 | PyObject * obj0 = 0 ; | |
5261 | PyObject * obj1 = 0 ; | |
5262 | PyObject * obj2 = 0 ; | |
5263 | char *kwnames[] = { | |
5264 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5265 | }; | |
5266 | ||
5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5270 | { | |
5271 | arg2 = wxString_in_helper(obj1); | |
5272 | if (arg2 == NULL) SWIG_fail; | |
5273 | temp2 = True; | |
5274 | } | |
5275 | if (obj2) { | |
5276 | arg3 = (int) SWIG_AsInt(obj2); | |
5277 | if (PyErr_Occurred()) SWIG_fail; | |
5278 | } | |
5279 | { | |
5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5281 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5282 | ||
5283 | wxPyEndAllowThreads(__tstate); | |
5284 | if (PyErr_Occurred()) SWIG_fail; | |
5285 | } | |
5286 | Py_INCREF(Py_None); resultobj = Py_None; | |
5287 | { | |
5288 | if (temp2) | |
5289 | delete arg2; | |
5290 | } | |
5291 | return resultobj; | |
5292 | fail: | |
5293 | { | |
5294 | if (temp2) | |
5295 | delete arg2; | |
5296 | } | |
5297 | return NULL; | |
5298 | } | |
5299 | ||
5300 | ||
5301 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5302 | PyObject *resultobj; | |
5303 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5304 | int arg2 = (int) 0 ; | |
5305 | wxString result; | |
5306 | PyObject * obj0 = 0 ; | |
5307 | PyObject * obj1 = 0 ; | |
5308 | char *kwnames[] = { | |
5309 | (char *) "self",(char *) "number", NULL | |
5310 | }; | |
5311 | ||
5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5315 | if (obj1) { | |
5316 | arg2 = (int) SWIG_AsInt(obj1); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | { | |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5321 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
5325 | } | |
5326 | { | |
5327 | #if wxUSE_UNICODE | |
5328 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5329 | #else | |
5330 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5331 | #endif | |
5332 | } | |
5333 | return resultobj; | |
5334 | fail: | |
5335 | return NULL; | |
5336 | } | |
5337 | ||
5338 | ||
5339 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject *resultobj; | |
5341 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5342 | wxString *arg2 = 0 ; | |
5343 | int arg3 = (int) 0 ; | |
5344 | bool temp2 = False ; | |
5345 | PyObject * obj0 = 0 ; | |
5346 | PyObject * obj1 = 0 ; | |
5347 | PyObject * obj2 = 0 ; | |
5348 | char *kwnames[] = { | |
5349 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5350 | }; | |
5351 | ||
5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5355 | { | |
5356 | arg2 = wxString_in_helper(obj1); | |
5357 | if (arg2 == NULL) SWIG_fail; | |
5358 | temp2 = True; | |
5359 | } | |
5360 | if (obj2) { | |
5361 | arg3 = (int) SWIG_AsInt(obj2); | |
5362 | if (PyErr_Occurred()) SWIG_fail; | |
5363 | } | |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5367 | ||
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | Py_INCREF(Py_None); resultobj = Py_None; | |
5372 | { | |
5373 | if (temp2) | |
5374 | delete arg2; | |
5375 | } | |
5376 | return resultobj; | |
5377 | fail: | |
5378 | { | |
5379 | if (temp2) | |
5380 | delete arg2; | |
5381 | } | |
5382 | return NULL; | |
5383 | } | |
5384 | ||
5385 | ||
5386 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5387 | PyObject *resultobj; | |
5388 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5389 | int arg2 = (int) 0 ; | |
5390 | PyObject * obj0 = 0 ; | |
5391 | PyObject * obj1 = 0 ; | |
5392 | char *kwnames[] = { | |
5393 | (char *) "self",(char *) "number", NULL | |
5394 | }; | |
5395 | ||
5396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5399 | if (obj1) { | |
5400 | arg2 = (int) SWIG_AsInt(obj1); | |
5401 | if (PyErr_Occurred()) SWIG_fail; | |
5402 | } | |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | (arg1)->PopStatusText(arg2); | |
5406 | ||
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | Py_INCREF(Py_None); resultobj = Py_None; | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
5417 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5418 | PyObject *resultobj; | |
5419 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5420 | int arg2 ; | |
5421 | int *arg3 = (int *) 0 ; | |
5422 | PyObject * obj0 = 0 ; | |
5423 | PyObject * obj1 = 0 ; | |
5424 | char *kwnames[] = { | |
5425 | (char *) "self",(char *) "widths", NULL | |
5426 | }; | |
5427 | ||
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5431 | { | |
5432 | arg2 = PyList_Size(obj1); | |
5433 | arg3 = int_LIST_helper(obj1); | |
5434 | if (arg3 == NULL) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | { | |
5445 | if (arg3) delete [] arg3; | |
5446 | } | |
5447 | return resultobj; | |
5448 | fail: | |
5449 | { | |
5450 | if (arg3) delete [] arg3; | |
5451 | } | |
5452 | return NULL; | |
5453 | } | |
5454 | ||
5455 | ||
5456 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5457 | PyObject *resultobj; | |
5458 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5459 | int arg2 ; | |
5460 | wxRect result; | |
5461 | PyObject * obj0 = 0 ; | |
5462 | PyObject * obj1 = 0 ; | |
5463 | char *kwnames[] = { | |
5464 | (char *) "self",(char *) "i", NULL | |
5465 | }; | |
5466 | ||
5467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5470 | arg2 = (int) SWIG_AsInt(obj1); | |
5471 | if (PyErr_Occurred()) SWIG_fail; | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5474 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
5479 | { | |
5480 | wxRect * resultptr; | |
5481 | resultptr = new wxRect((wxRect &) result); | |
5482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5483 | } | |
5484 | return resultobj; | |
5485 | fail: | |
5486 | return NULL; | |
5487 | } | |
5488 | ||
5489 | ||
5490 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject *resultobj; | |
5492 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5493 | int arg2 ; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "height", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5503 | arg2 = (int) SWIG_AsInt(obj1); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | (arg1)->SetMinHeight(arg2); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | Py_INCREF(Py_None); resultobj = Py_None; | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5522 | int result; | |
5523 | PyObject * obj0 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "self", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | resultobj = SWIG_FromInt((int)result); | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
5545 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5546 | PyObject *resultobj; | |
5547 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5548 | int result; | |
5549 | PyObject * obj0 = 0 ; | |
5550 | char *kwnames[] = { | |
5551 | (char *) "self", NULL | |
5552 | }; | |
5553 | ||
5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5557 | { | |
5558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5559 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5560 | ||
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
5564 | resultobj = SWIG_FromInt((int)result); | |
5565 | return resultobj; | |
5566 | fail: | |
5567 | return NULL; | |
5568 | } | |
5569 | ||
5570 | ||
f20a2e1f RD |
5571 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5572 | PyObject *resultobj; | |
5573 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5574 | wxVisualAttributes result; | |
5575 | PyObject * obj0 = 0 ; | |
5576 | char *kwnames[] = { | |
5577 | (char *) "variant", NULL | |
5578 | }; | |
5579 | ||
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5581 | if (obj0) { | |
5582 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5583 | if (PyErr_Occurred()) SWIG_fail; | |
5584 | } | |
5585 | { | |
5586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5587 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5588 | ||
5589 | wxPyEndAllowThreads(__tstate); | |
5590 | if (PyErr_Occurred()) SWIG_fail; | |
5591 | } | |
5592 | { | |
5593 | wxVisualAttributes * resultptr; | |
5594 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5596 | } | |
5597 | return resultobj; | |
5598 | fail: | |
5599 | return NULL; | |
5600 | } | |
5601 | ||
5602 | ||
d55e5bfc RD |
5603 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { |
5604 | PyObject *obj; | |
5605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5606 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5607 | Py_INCREF(obj); | |
5608 | return Py_BuildValue((char *)""); | |
5609 | } | |
5610 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5611 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5612 | return 1; | |
5613 | } | |
5614 | ||
5615 | ||
5616 | static PyObject *_wrap_SplitterNameStr_get() { | |
5617 | PyObject *pyobj; | |
5618 | ||
5619 | { | |
5620 | #if wxUSE_UNICODE | |
5621 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5622 | #else | |
5623 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5624 | #endif | |
5625 | } | |
5626 | return pyobj; | |
5627 | } | |
5628 | ||
5629 | ||
5630 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5631 | PyObject *resultobj; | |
5632 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5633 | int arg2 = (int) -1 ; | |
5634 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5635 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5636 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5637 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5638 | long arg5 = (long) wxSP_3D ; | |
5639 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5640 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5641 | wxSplitterWindow *result; | |
5642 | wxPoint temp3 ; | |
5643 | wxSize temp4 ; | |
5644 | bool temp6 = False ; | |
5645 | PyObject * obj0 = 0 ; | |
5646 | PyObject * obj1 = 0 ; | |
5647 | PyObject * obj2 = 0 ; | |
5648 | PyObject * obj3 = 0 ; | |
5649 | PyObject * obj4 = 0 ; | |
5650 | PyObject * obj5 = 0 ; | |
5651 | char *kwnames[] = { | |
5652 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5653 | }; | |
5654 | ||
5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5658 | if (obj1) { | |
5659 | arg2 = (int) SWIG_AsInt(obj1); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
5662 | if (obj2) { | |
5663 | { | |
5664 | arg3 = &temp3; | |
5665 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5666 | } | |
5667 | } | |
5668 | if (obj3) { | |
5669 | { | |
5670 | arg4 = &temp4; | |
5671 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5672 | } | |
5673 | } | |
5674 | if (obj4) { | |
5675 | arg5 = (long) SWIG_AsLong(obj4); | |
5676 | if (PyErr_Occurred()) SWIG_fail; | |
5677 | } | |
5678 | if (obj5) { | |
5679 | { | |
5680 | arg6 = wxString_in_helper(obj5); | |
5681 | if (arg6 == NULL) SWIG_fail; | |
5682 | temp6 = True; | |
5683 | } | |
5684 | } | |
5685 | { | |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
5692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5693 | { | |
5694 | if (temp6) | |
5695 | delete arg6; | |
5696 | } | |
5697 | return resultobj; | |
5698 | fail: | |
5699 | { | |
5700 | if (temp6) | |
5701 | delete arg6; | |
5702 | } | |
5703 | return NULL; | |
5704 | } | |
5705 | ||
5706 | ||
5707 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject *resultobj; | |
5709 | wxSplitterWindow *result; | |
5710 | char *kwnames[] = { | |
5711 | NULL | |
5712 | }; | |
5713 | ||
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5715 | { | |
5716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5717 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5718 | ||
5719 | wxPyEndAllowThreads(__tstate); | |
5720 | if (PyErr_Occurred()) SWIG_fail; | |
5721 | } | |
5722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5723 | return resultobj; | |
5724 | fail: | |
5725 | return NULL; | |
5726 | } | |
5727 | ||
5728 | ||
5729 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5730 | PyObject *resultobj; | |
5731 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5733 | int arg3 = (int) -1 ; | |
5734 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5735 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5736 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5737 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5738 | long arg6 = (long) wxSP_3D ; | |
5739 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5740 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5741 | bool result; | |
5742 | wxPoint temp4 ; | |
5743 | wxSize temp5 ; | |
5744 | bool temp7 = False ; | |
5745 | PyObject * obj0 = 0 ; | |
5746 | PyObject * obj1 = 0 ; | |
5747 | PyObject * obj2 = 0 ; | |
5748 | PyObject * obj3 = 0 ; | |
5749 | PyObject * obj4 = 0 ; | |
5750 | PyObject * obj5 = 0 ; | |
5751 | PyObject * obj6 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5761 | if (obj2) { | |
5762 | arg3 = (int) SWIG_AsInt(obj2); | |
5763 | if (PyErr_Occurred()) SWIG_fail; | |
5764 | } | |
5765 | if (obj3) { | |
5766 | { | |
5767 | arg4 = &temp4; | |
5768 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5769 | } | |
5770 | } | |
5771 | if (obj4) { | |
5772 | { | |
5773 | arg5 = &temp5; | |
5774 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5775 | } | |
5776 | } | |
5777 | if (obj5) { | |
5778 | arg6 = (long) SWIG_AsLong(obj5); | |
5779 | if (PyErr_Occurred()) SWIG_fail; | |
5780 | } | |
5781 | if (obj6) { | |
5782 | { | |
5783 | arg7 = wxString_in_helper(obj6); | |
5784 | if (arg7 == NULL) SWIG_fail; | |
5785 | temp7 = True; | |
5786 | } | |
5787 | } | |
5788 | { | |
5789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5790 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5791 | ||
5792 | wxPyEndAllowThreads(__tstate); | |
5793 | if (PyErr_Occurred()) SWIG_fail; | |
5794 | } | |
5795 | { | |
5796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5797 | } | |
5798 | { | |
5799 | if (temp7) | |
5800 | delete arg7; | |
5801 | } | |
5802 | return resultobj; | |
5803 | fail: | |
5804 | { | |
5805 | if (temp7) | |
5806 | delete arg7; | |
5807 | } | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
5812 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject *resultobj; | |
5814 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5815 | wxWindow *result; | |
5816 | PyObject * obj0 = 0 ; | |
5817 | char *kwnames[] = { | |
5818 | (char *) "self", NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5824 | { | |
5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5826 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5827 | ||
5828 | wxPyEndAllowThreads(__tstate); | |
5829 | if (PyErr_Occurred()) SWIG_fail; | |
5830 | } | |
5831 | { | |
5832 | resultobj = wxPyMake_wxObject(result); | |
5833 | } | |
5834 | return resultobj; | |
5835 | fail: | |
5836 | return NULL; | |
5837 | } | |
5838 | ||
5839 | ||
5840 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5841 | PyObject *resultobj; | |
5842 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5843 | wxWindow *result; | |
5844 | PyObject * obj0 = 0 ; | |
5845 | char *kwnames[] = { | |
5846 | (char *) "self", NULL | |
5847 | }; | |
5848 | ||
5849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5852 | { | |
5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5854 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5855 | ||
5856 | wxPyEndAllowThreads(__tstate); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | } | |
5859 | { | |
5860 | resultobj = wxPyMake_wxObject(result); | |
5861 | } | |
5862 | return resultobj; | |
5863 | fail: | |
5864 | return NULL; | |
5865 | } | |
5866 | ||
5867 | ||
5868 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5869 | PyObject *resultobj; | |
5870 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5871 | int arg2 ; | |
5872 | PyObject * obj0 = 0 ; | |
5873 | PyObject * obj1 = 0 ; | |
5874 | char *kwnames[] = { | |
5875 | (char *) "self",(char *) "mode", NULL | |
5876 | }; | |
5877 | ||
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5881 | arg2 = (int) SWIG_AsInt(obj1); | |
5882 | if (PyErr_Occurred()) SWIG_fail; | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | (arg1)->SetSplitMode(arg2); | |
5886 | ||
5887 | wxPyEndAllowThreads(__tstate); | |
5888 | if (PyErr_Occurred()) SWIG_fail; | |
5889 | } | |
5890 | Py_INCREF(Py_None); resultobj = Py_None; | |
5891 | return resultobj; | |
5892 | fail: | |
5893 | return NULL; | |
5894 | } | |
5895 | ||
5896 | ||
5897 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject *resultobj; | |
5899 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5900 | int result; | |
5901 | PyObject * obj0 = 0 ; | |
5902 | char *kwnames[] = { | |
5903 | (char *) "self", NULL | |
5904 | }; | |
5905 | ||
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
5916 | resultobj = SWIG_FromInt((int)result); | |
5917 | return resultobj; | |
5918 | fail: | |
5919 | return NULL; | |
5920 | } | |
5921 | ||
5922 | ||
5923 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5924 | PyObject *resultobj; | |
5925 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5926 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5927 | PyObject * obj0 = 0 ; | |
5928 | PyObject * obj1 = 0 ; | |
5929 | char *kwnames[] = { | |
5930 | (char *) "self",(char *) "window", NULL | |
5931 | }; | |
5932 | ||
5933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5936 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5938 | { | |
5939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5940 | (arg1)->Initialize(arg2); | |
5941 | ||
5942 | wxPyEndAllowThreads(__tstate); | |
5943 | if (PyErr_Occurred()) SWIG_fail; | |
5944 | } | |
5945 | Py_INCREF(Py_None); resultobj = Py_None; | |
5946 | return resultobj; | |
5947 | fail: | |
5948 | return NULL; | |
5949 | } | |
5950 | ||
5951 | ||
5952 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject *resultobj; | |
5954 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5955 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5956 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5957 | int arg4 = (int) 0 ; | |
5958 | bool result; | |
5959 | PyObject * obj0 = 0 ; | |
5960 | PyObject * obj1 = 0 ; | |
5961 | PyObject * obj2 = 0 ; | |
5962 | PyObject * obj3 = 0 ; | |
5963 | char *kwnames[] = { | |
5964 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5965 | }; | |
5966 | ||
5967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5972 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5974 | if (obj3) { | |
5975 | arg4 = (int) SWIG_AsInt(obj3); | |
5976 | if (PyErr_Occurred()) SWIG_fail; | |
5977 | } | |
5978 | { | |
5979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5980 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
5981 | ||
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) SWIG_fail; | |
5984 | } | |
5985 | { | |
5986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5987 | } | |
5988 | return resultobj; | |
5989 | fail: | |
5990 | return NULL; | |
5991 | } | |
5992 | ||
5993 | ||
5994 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj; | |
5996 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5997 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5998 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5999 | int arg4 = (int) 0 ; | |
6000 | bool result; | |
6001 | PyObject * obj0 = 0 ; | |
6002 | PyObject * obj1 = 0 ; | |
6003 | PyObject * obj2 = 0 ; | |
6004 | PyObject * obj3 = 0 ; | |
6005 | char *kwnames[] = { | |
6006 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6007 | }; | |
6008 | ||
6009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6014 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6016 | if (obj3) { | |
6017 | arg4 = (int) SWIG_AsInt(obj3); | |
6018 | if (PyErr_Occurred()) SWIG_fail; | |
6019 | } | |
6020 | { | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | { | |
6028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6029 | } | |
6030 | return resultobj; | |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
6036 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject *resultobj; | |
6038 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6039 | wxWindow *arg2 = (wxWindow *) NULL ; | |
6040 | bool result; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | PyObject * obj1 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "toRemove", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
6048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6050 | if (obj1) { | |
6051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6053 | } | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | result = (bool)(arg1)->Unsplit(arg2); | |
6057 | ||
6058 | wxPyEndAllowThreads(__tstate); | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
6061 | { | |
6062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6063 | } | |
6064 | return resultobj; | |
6065 | fail: | |
6066 | return NULL; | |
6067 | } | |
6068 | ||
6069 | ||
6070 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6071 | PyObject *resultobj; | |
6072 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6073 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6074 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6075 | bool result; | |
6076 | PyObject * obj0 = 0 ; | |
6077 | PyObject * obj1 = 0 ; | |
6078 | PyObject * obj2 = 0 ; | |
6079 | char *kwnames[] = { | |
6080 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6081 | }; | |
6082 | ||
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6088 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6090 | { | |
6091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6092 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6093 | ||
6094 | wxPyEndAllowThreads(__tstate); | |
6095 | if (PyErr_Occurred()) SWIG_fail; | |
6096 | } | |
6097 | { | |
6098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6099 | } | |
6100 | return resultobj; | |
6101 | fail: | |
6102 | return NULL; | |
6103 | } | |
6104 | ||
6105 | ||
6106 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6107 | PyObject *resultobj; | |
6108 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6109 | PyObject * obj0 = 0 ; | |
6110 | char *kwnames[] = { | |
6111 | (char *) "self", NULL | |
6112 | }; | |
6113 | ||
6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6117 | { | |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | (arg1)->UpdateSize(); | |
6120 | ||
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | Py_INCREF(Py_None); resultobj = Py_None; | |
6125 | return resultobj; | |
6126 | fail: | |
6127 | return NULL; | |
6128 | } | |
6129 | ||
6130 | ||
6131 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6132 | PyObject *resultobj; | |
6133 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6134 | bool result; | |
6135 | PyObject * obj0 = 0 ; | |
6136 | char *kwnames[] = { | |
6137 | (char *) "self", NULL | |
6138 | }; | |
6139 | ||
6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6143 | { | |
6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6145 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6146 | ||
6147 | wxPyEndAllowThreads(__tstate); | |
6148 | if (PyErr_Occurred()) SWIG_fail; | |
6149 | } | |
6150 | { | |
6151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6152 | } | |
6153 | return resultobj; | |
6154 | fail: | |
6155 | return NULL; | |
6156 | } | |
6157 | ||
6158 | ||
6159 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject *resultobj; | |
6161 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6162 | int arg2 ; | |
6163 | PyObject * obj0 = 0 ; | |
6164 | PyObject * obj1 = 0 ; | |
6165 | char *kwnames[] = { | |
6166 | (char *) "self",(char *) "width", NULL | |
6167 | }; | |
6168 | ||
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6172 | arg2 = (int) SWIG_AsInt(obj1); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | (arg1)->SetSashSize(arg2); | |
6177 | ||
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
6181 | Py_INCREF(Py_None); resultobj = Py_None; | |
6182 | return resultobj; | |
6183 | fail: | |
6184 | return NULL; | |
6185 | } | |
6186 | ||
6187 | ||
6188 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6189 | PyObject *resultobj; | |
6190 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6191 | int arg2 ; | |
6192 | PyObject * obj0 = 0 ; | |
6193 | PyObject * obj1 = 0 ; | |
6194 | char *kwnames[] = { | |
6195 | (char *) "self",(char *) "width", NULL | |
6196 | }; | |
6197 | ||
6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6201 | arg2 = (int) SWIG_AsInt(obj1); | |
6202 | if (PyErr_Occurred()) SWIG_fail; | |
6203 | { | |
6204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6205 | (arg1)->SetBorderSize(arg2); | |
6206 | ||
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
6210 | Py_INCREF(Py_None); resultobj = Py_None; | |
6211 | return resultobj; | |
6212 | fail: | |
6213 | return NULL; | |
6214 | } | |
6215 | ||
6216 | ||
6217 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6218 | PyObject *resultobj; | |
6219 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6220 | int result; | |
6221 | PyObject * obj0 = 0 ; | |
6222 | char *kwnames[] = { | |
6223 | (char *) "self", NULL | |
6224 | }; | |
6225 | ||
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6229 | { | |
6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6231 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6232 | ||
6233 | wxPyEndAllowThreads(__tstate); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
6236 | resultobj = SWIG_FromInt((int)result); | |
6237 | return resultobj; | |
6238 | fail: | |
6239 | return NULL; | |
6240 | } | |
6241 | ||
6242 | ||
6243 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6244 | PyObject *resultobj; | |
6245 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6246 | int result; | |
6247 | PyObject * obj0 = 0 ; | |
6248 | char *kwnames[] = { | |
6249 | (char *) "self", NULL | |
6250 | }; | |
6251 | ||
6252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6258 | ||
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | resultobj = SWIG_FromInt((int)result); | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj; | |
6271 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6272 | int arg2 ; | |
6273 | bool arg3 = (bool) True ; | |
6274 | PyObject * obj0 = 0 ; | |
6275 | PyObject * obj1 = 0 ; | |
6276 | PyObject * obj2 = 0 ; | |
6277 | char *kwnames[] = { | |
6278 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6279 | }; | |
6280 | ||
6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6284 | arg2 = (int) SWIG_AsInt(obj1); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | if (obj2) { | |
6287 | arg3 = (bool) SWIG_AsBool(obj2); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | { | |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6292 | (arg1)->SetSashPosition(arg2,arg3); | |
6293 | ||
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
6297 | Py_INCREF(Py_None); resultobj = Py_None; | |
6298 | return resultobj; | |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
6304 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6305 | PyObject *resultobj; | |
6306 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6307 | int result; | |
6308 | PyObject * obj0 = 0 ; | |
6309 | char *kwnames[] = { | |
6310 | (char *) "self", NULL | |
6311 | }; | |
6312 | ||
6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6316 | { | |
6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6318 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6319 | ||
6320 | wxPyEndAllowThreads(__tstate); | |
6321 | if (PyErr_Occurred()) SWIG_fail; | |
6322 | } | |
6323 | resultobj = SWIG_FromInt((int)result); | |
6324 | return resultobj; | |
6325 | fail: | |
6326 | return NULL; | |
6327 | } | |
6328 | ||
6329 | ||
6330 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6331 | PyObject *resultobj; | |
6332 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6333 | int arg2 ; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | PyObject * obj1 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self",(char *) "min", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6343 | arg2 = (int) SWIG_AsInt(obj1); | |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
6345 | { | |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | (arg1)->SetMinimumPaneSize(arg2); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
6352 | Py_INCREF(Py_None); resultobj = Py_None; | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
6359 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6360 | PyObject *resultobj; | |
6361 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6362 | int result; | |
6363 | PyObject * obj0 = 0 ; | |
6364 | char *kwnames[] = { | |
6365 | (char *) "self", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6371 | { | |
6372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6373 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6374 | ||
6375 | wxPyEndAllowThreads(__tstate); | |
6376 | if (PyErr_Occurred()) SWIG_fail; | |
6377 | } | |
6378 | resultobj = SWIG_FromInt((int)result); | |
6379 | return resultobj; | |
6380 | fail: | |
6381 | return NULL; | |
6382 | } | |
6383 | ||
6384 | ||
6385 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6386 | PyObject *resultobj; | |
6387 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6388 | int arg2 ; | |
6389 | int arg3 ; | |
6390 | int arg4 = (int) 5 ; | |
6391 | bool result; | |
6392 | PyObject * obj0 = 0 ; | |
6393 | PyObject * obj1 = 0 ; | |
6394 | PyObject * obj2 = 0 ; | |
6395 | PyObject * obj3 = 0 ; | |
6396 | char *kwnames[] = { | |
6397 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6398 | }; | |
6399 | ||
6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6403 | arg2 = (int) SWIG_AsInt(obj1); | |
6404 | if (PyErr_Occurred()) SWIG_fail; | |
6405 | arg3 = (int) SWIG_AsInt(obj2); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | if (obj3) { | |
6408 | arg4 = (int) SWIG_AsInt(obj3); | |
6409 | if (PyErr_Occurred()) SWIG_fail; | |
6410 | } | |
6411 | { | |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6413 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6414 | ||
6415 | wxPyEndAllowThreads(__tstate); | |
6416 | if (PyErr_Occurred()) SWIG_fail; | |
6417 | } | |
6418 | { | |
6419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6420 | } | |
6421 | return resultobj; | |
6422 | fail: | |
6423 | return NULL; | |
6424 | } | |
6425 | ||
6426 | ||
6427 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6428 | PyObject *resultobj; | |
6429 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6430 | PyObject * obj0 = 0 ; | |
6431 | char *kwnames[] = { | |
6432 | (char *) "self", NULL | |
6433 | }; | |
6434 | ||
6435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6438 | { | |
6439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6440 | (arg1)->SizeWindows(); | |
6441 | ||
6442 | wxPyEndAllowThreads(__tstate); | |
6443 | if (PyErr_Occurred()) SWIG_fail; | |
6444 | } | |
6445 | Py_INCREF(Py_None); resultobj = Py_None; | |
6446 | return resultobj; | |
6447 | fail: | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
6452 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject *resultobj; | |
6454 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6455 | bool arg2 ; | |
6456 | PyObject * obj0 = 0 ; | |
6457 | PyObject * obj1 = 0 ; | |
6458 | char *kwnames[] = { | |
6459 | (char *) "self",(char *) "needUpdating", NULL | |
6460 | }; | |
6461 | ||
6462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6465 | arg2 = (bool) SWIG_AsBool(obj1); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | { | |
6468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6469 | (arg1)->SetNeedUpdating(arg2); | |
6470 | ||
6471 | wxPyEndAllowThreads(__tstate); | |
6472 | if (PyErr_Occurred()) SWIG_fail; | |
6473 | } | |
6474 | Py_INCREF(Py_None); resultobj = Py_None; | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | return NULL; | |
6478 | } | |
6479 | ||
6480 | ||
6481 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject *resultobj; | |
6483 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6484 | bool result; | |
6485 | PyObject * obj0 = 0 ; | |
6486 | char *kwnames[] = { | |
6487 | (char *) "self", NULL | |
6488 | }; | |
6489 | ||
6490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6493 | { | |
6494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6495 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6496 | ||
6497 | wxPyEndAllowThreads(__tstate); | |
6498 | if (PyErr_Occurred()) SWIG_fail; | |
6499 | } | |
6500 | { | |
6501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6502 | } | |
6503 | return resultobj; | |
6504 | fail: | |
6505 | return NULL; | |
6506 | } | |
6507 | ||
6508 | ||
f20a2e1f RD |
6509 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6510 | PyObject *resultobj; | |
6511 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6512 | wxVisualAttributes result; | |
6513 | PyObject * obj0 = 0 ; | |
6514 | char *kwnames[] = { | |
6515 | (char *) "variant", NULL | |
6516 | }; | |
6517 | ||
6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6519 | if (obj0) { | |
6520 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6521 | if (PyErr_Occurred()) SWIG_fail; | |
6522 | } | |
6523 | { | |
6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6525 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6526 | ||
6527 | wxPyEndAllowThreads(__tstate); | |
6528 | if (PyErr_Occurred()) SWIG_fail; | |
6529 | } | |
6530 | { | |
6531 | wxVisualAttributes * resultptr; | |
6532 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6533 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6534 | } | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
d55e5bfc RD |
6541 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { |
6542 | PyObject *obj; | |
6543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6544 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6545 | Py_INCREF(obj); | |
6546 | return Py_BuildValue((char *)""); | |
6547 | } | |
6548 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6549 | PyObject *resultobj; | |
6550 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6551 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6552 | wxSplitterEvent *result; | |
6553 | PyObject * obj0 = 0 ; | |
6554 | PyObject * obj1 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "type",(char *) "splitter", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6560 | if (obj0) { | |
6561 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6562 | if (PyErr_Occurred()) SWIG_fail; | |
6563 | } | |
6564 | if (obj1) { | |
6565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6567 | } | |
6568 | { | |
6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6570 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6571 | ||
6572 | wxPyEndAllowThreads(__tstate); | |
6573 | if (PyErr_Occurred()) SWIG_fail; | |
6574 | } | |
6575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6576 | return resultobj; | |
6577 | fail: | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
6582 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6583 | PyObject *resultobj; | |
6584 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6585 | int arg2 ; | |
6586 | PyObject * obj0 = 0 ; | |
6587 | PyObject * obj1 = 0 ; | |
6588 | char *kwnames[] = { | |
6589 | (char *) "self",(char *) "pos", NULL | |
6590 | }; | |
6591 | ||
6592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6595 | arg2 = (int) SWIG_AsInt(obj1); | |
6596 | if (PyErr_Occurred()) SWIG_fail; | |
6597 | { | |
6598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6599 | (arg1)->SetSashPosition(arg2); | |
6600 | ||
6601 | wxPyEndAllowThreads(__tstate); | |
6602 | if (PyErr_Occurred()) SWIG_fail; | |
6603 | } | |
6604 | Py_INCREF(Py_None); resultobj = Py_None; | |
6605 | return resultobj; | |
6606 | fail: | |
6607 | return NULL; | |
6608 | } | |
6609 | ||
6610 | ||
6611 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6612 | PyObject *resultobj; | |
6613 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6614 | int result; | |
6615 | PyObject * obj0 = 0 ; | |
6616 | char *kwnames[] = { | |
6617 | (char *) "self", NULL | |
6618 | }; | |
6619 | ||
6620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6623 | { | |
6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6625 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6626 | ||
6627 | wxPyEndAllowThreads(__tstate); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
6629 | } | |
6630 | resultobj = SWIG_FromInt((int)result); | |
6631 | return resultobj; | |
6632 | fail: | |
6633 | return NULL; | |
6634 | } | |
6635 | ||
6636 | ||
6637 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6638 | PyObject *resultobj; | |
6639 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6640 | wxWindow *result; | |
6641 | PyObject * obj0 = 0 ; | |
6642 | char *kwnames[] = { | |
6643 | (char *) "self", NULL | |
6644 | }; | |
6645 | ||
6646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6649 | { | |
6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6651 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6652 | ||
6653 | wxPyEndAllowThreads(__tstate); | |
6654 | if (PyErr_Occurred()) SWIG_fail; | |
6655 | } | |
6656 | { | |
6657 | resultobj = wxPyMake_wxObject(result); | |
6658 | } | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj; | |
6667 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6668 | int result; | |
6669 | PyObject * obj0 = 0 ; | |
6670 | char *kwnames[] = { | |
6671 | (char *) "self", NULL | |
6672 | }; | |
6673 | ||
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6677 | { | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
6684 | resultobj = SWIG_FromInt((int)result); | |
6685 | return resultobj; | |
6686 | fail: | |
6687 | return NULL; | |
6688 | } | |
6689 | ||
6690 | ||
6691 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6692 | PyObject *resultobj; | |
6693 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6694 | int result; | |
6695 | PyObject * obj0 = 0 ; | |
6696 | char *kwnames[] = { | |
6697 | (char *) "self", NULL | |
6698 | }; | |
6699 | ||
6700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6703 | { | |
6704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6705 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6706 | ||
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
6710 | resultobj = SWIG_FromInt((int)result); | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6718 | PyObject *obj; | |
6719 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6720 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6721 | Py_INCREF(obj); | |
6722 | return Py_BuildValue((char *)""); | |
6723 | } | |
6724 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6725 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6726 | return 1; | |
6727 | } | |
6728 | ||
6729 | ||
6730 | static PyObject *_wrap_SashNameStr_get() { | |
6731 | PyObject *pyobj; | |
6732 | ||
6733 | { | |
6734 | #if wxUSE_UNICODE | |
6735 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6736 | #else | |
6737 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6738 | #endif | |
6739 | } | |
6740 | return pyobj; | |
6741 | } | |
6742 | ||
6743 | ||
6744 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6745 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6746 | return 1; | |
6747 | } | |
6748 | ||
6749 | ||
6750 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6751 | PyObject *pyobj; | |
6752 | ||
6753 | { | |
6754 | #if wxUSE_UNICODE | |
6755 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6756 | #else | |
6757 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6758 | #endif | |
6759 | } | |
6760 | return pyobj; | |
6761 | } | |
6762 | ||
6763 | ||
6764 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6765 | PyObject *resultobj; | |
6766 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6767 | int arg2 ; | |
6768 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6769 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6770 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6771 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6772 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6773 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6774 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6775 | wxSashWindow *result; | |
6776 | wxPoint temp3 ; | |
6777 | wxSize temp4 ; | |
6778 | bool temp6 = False ; | |
6779 | PyObject * obj0 = 0 ; | |
6780 | PyObject * obj1 = 0 ; | |
6781 | PyObject * obj2 = 0 ; | |
6782 | PyObject * obj3 = 0 ; | |
6783 | PyObject * obj4 = 0 ; | |
6784 | PyObject * obj5 = 0 ; | |
6785 | char *kwnames[] = { | |
6786 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6792 | arg2 = (int) SWIG_AsInt(obj1); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | if (obj2) { | |
6795 | { | |
6796 | arg3 = &temp3; | |
6797 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6798 | } | |
6799 | } | |
6800 | if (obj3) { | |
6801 | { | |
6802 | arg4 = &temp4; | |
6803 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6804 | } | |
6805 | } | |
6806 | if (obj4) { | |
6807 | arg5 = (long) SWIG_AsLong(obj4); | |
6808 | if (PyErr_Occurred()) SWIG_fail; | |
6809 | } | |
6810 | if (obj5) { | |
6811 | { | |
6812 | arg6 = wxString_in_helper(obj5); | |
6813 | if (arg6 == NULL) SWIG_fail; | |
6814 | temp6 = True; | |
6815 | } | |
6816 | } | |
6817 | { | |
6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6819 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6820 | ||
6821 | wxPyEndAllowThreads(__tstate); | |
6822 | if (PyErr_Occurred()) SWIG_fail; | |
6823 | } | |
6824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6825 | { | |
6826 | if (temp6) | |
6827 | delete arg6; | |
6828 | } | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | { | |
6832 | if (temp6) | |
6833 | delete arg6; | |
6834 | } | |
6835 | return NULL; | |
6836 | } | |
6837 | ||
6838 | ||
6839 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6840 | PyObject *resultobj; | |
6841 | wxSashWindow *result; | |
6842 | char *kwnames[] = { | |
6843 | NULL | |
6844 | }; | |
6845 | ||
6846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6847 | { | |
6848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6849 | result = (wxSashWindow *)new wxSashWindow(); | |
6850 | ||
6851 | wxPyEndAllowThreads(__tstate); | |
6852 | if (PyErr_Occurred()) SWIG_fail; | |
6853 | } | |
6854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6855 | return resultobj; | |
6856 | fail: | |
6857 | return NULL; | |
6858 | } | |
6859 | ||
6860 | ||
6861 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6862 | PyObject *resultobj; | |
6863 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6864 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6865 | int arg3 ; | |
6866 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6867 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6868 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6869 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6870 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6871 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6872 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6873 | bool result; | |
6874 | wxPoint temp4 ; | |
6875 | wxSize temp5 ; | |
6876 | bool temp7 = False ; | |
6877 | PyObject * obj0 = 0 ; | |
6878 | PyObject * obj1 = 0 ; | |
6879 | PyObject * obj2 = 0 ; | |
6880 | PyObject * obj3 = 0 ; | |
6881 | PyObject * obj4 = 0 ; | |
6882 | PyObject * obj5 = 0 ; | |
6883 | PyObject * obj6 = 0 ; | |
6884 | char *kwnames[] = { | |
6885 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6886 | }; | |
6887 | ||
6888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6893 | arg3 = (int) SWIG_AsInt(obj2); | |
6894 | if (PyErr_Occurred()) SWIG_fail; | |
6895 | if (obj3) { | |
6896 | { | |
6897 | arg4 = &temp4; | |
6898 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6899 | } | |
6900 | } | |
6901 | if (obj4) { | |
6902 | { | |
6903 | arg5 = &temp5; | |
6904 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6905 | } | |
6906 | } | |
6907 | if (obj5) { | |
6908 | arg6 = (long) SWIG_AsLong(obj5); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
6911 | if (obj6) { | |
6912 | { | |
6913 | arg7 = wxString_in_helper(obj6); | |
6914 | if (arg7 == NULL) SWIG_fail; | |
6915 | temp7 = True; | |
6916 | } | |
6917 | } | |
6918 | { | |
6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6920 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6921 | ||
6922 | wxPyEndAllowThreads(__tstate); | |
6923 | if (PyErr_Occurred()) SWIG_fail; | |
6924 | } | |
6925 | { | |
6926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6927 | } | |
6928 | { | |
6929 | if (temp7) | |
6930 | delete arg7; | |
6931 | } | |
6932 | return resultobj; | |
6933 | fail: | |
6934 | { | |
6935 | if (temp7) | |
6936 | delete arg7; | |
6937 | } | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
6942 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6943 | PyObject *resultobj; | |
6944 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6945 | int arg2 ; | |
6946 | bool arg3 ; | |
6947 | PyObject * obj0 = 0 ; | |
6948 | PyObject * obj1 = 0 ; | |
6949 | PyObject * obj2 = 0 ; | |
6950 | char *kwnames[] = { | |
6951 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6952 | }; | |
6953 | ||
6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6957 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6958 | if (PyErr_Occurred()) SWIG_fail; | |
6959 | arg3 = (bool) SWIG_AsBool(obj2); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | Py_INCREF(Py_None); resultobj = Py_None; | |
6969 | return resultobj; | |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6976 | PyObject *resultobj; | |
6977 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6978 | int arg2 ; | |
6979 | bool result; | |
6980 | PyObject * obj0 = 0 ; | |
6981 | PyObject * obj1 = 0 ; | |
6982 | char *kwnames[] = { | |
6983 | (char *) "self",(char *) "edge", NULL | |
6984 | }; | |
6985 | ||
6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
6987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6989 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
6998 | { | |
6999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7000 | } | |
7001 | return resultobj; | |
7002 | fail: | |
7003 | return NULL; | |
7004 | } | |
7005 | ||
7006 | ||
7007 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject *resultobj; | |
7009 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7010 | int arg2 ; | |
7011 | bool arg3 ; | |
7012 | PyObject * obj0 = 0 ; | |
7013 | PyObject * obj1 = 0 ; | |
7014 | PyObject * obj2 = 0 ; | |
7015 | char *kwnames[] = { | |
7016 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
7017 | }; | |
7018 | ||
7019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7022 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | arg3 = (bool) SWIG_AsBool(obj2); | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | { | |
7027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7028 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
7029 | ||
7030 | wxPyEndAllowThreads(__tstate); | |
7031 | if (PyErr_Occurred()) SWIG_fail; | |
7032 | } | |
7033 | Py_INCREF(Py_None); resultobj = Py_None; | |
7034 | return resultobj; | |
7035 | fail: | |
7036 | return NULL; | |
7037 | } | |
7038 | ||
7039 | ||
7040 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7041 | PyObject *resultobj; | |
7042 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7043 | int arg2 ; | |
7044 | bool result; | |
7045 | PyObject * obj0 = 0 ; | |
7046 | PyObject * obj1 = 0 ; | |
7047 | char *kwnames[] = { | |
7048 | (char *) "self",(char *) "edge", NULL | |
7049 | }; | |
7050 | ||
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
7052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7054 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
7056 | { | |
7057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7058 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
7059 | ||
7060 | wxPyEndAllowThreads(__tstate); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | { | |
7064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7065 | } | |
7066 | return resultobj; | |
7067 | fail: | |
7068 | return NULL; | |
7069 | } | |
7070 | ||
7071 | ||
7072 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7073 | PyObject *resultobj; | |
7074 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7075 | int arg2 ; | |
7076 | int result; | |
7077 | PyObject * obj0 = 0 ; | |
7078 | PyObject * obj1 = 0 ; | |
7079 | char *kwnames[] = { | |
7080 | (char *) "self",(char *) "edge", NULL | |
7081 | }; | |
7082 | ||
7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7086 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7091 | ||
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
7095 | resultobj = SWIG_FromInt((int)result); | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7103 | PyObject *resultobj; | |
7104 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7105 | int arg2 ; | |
7106 | PyObject * obj0 = 0 ; | |
7107 | PyObject * obj1 = 0 ; | |
7108 | char *kwnames[] = { | |
7109 | (char *) "self",(char *) "width", NULL | |
7110 | }; | |
7111 | ||
7112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7115 | arg2 = (int) SWIG_AsInt(obj1); | |
7116 | if (PyErr_Occurred()) SWIG_fail; | |
7117 | { | |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | (arg1)->SetDefaultBorderSize(arg2); | |
7120 | ||
7121 | wxPyEndAllowThreads(__tstate); | |
7122 | if (PyErr_Occurred()) SWIG_fail; | |
7123 | } | |
7124 | Py_INCREF(Py_None); resultobj = Py_None; | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7134 | int result; | |
7135 | PyObject * obj0 = 0 ; | |
7136 | char *kwnames[] = { | |
7137 | (char *) "self", NULL | |
7138 | }; | |
7139 | ||
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7143 | { | |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
7150 | resultobj = SWIG_FromInt((int)result); | |
7151 | return resultobj; | |
7152 | fail: | |
7153 | return NULL; | |
7154 | } | |
7155 | ||
7156 | ||
7157 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7158 | PyObject *resultobj; | |
7159 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7160 | int arg2 ; | |
7161 | PyObject * obj0 = 0 ; | |
7162 | PyObject * obj1 = 0 ; | |
7163 | char *kwnames[] = { | |
7164 | (char *) "self",(char *) "width", NULL | |
7165 | }; | |
7166 | ||
7167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7170 | arg2 = (int) SWIG_AsInt(obj1); | |
7171 | if (PyErr_Occurred()) SWIG_fail; | |
7172 | { | |
7173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7174 | (arg1)->SetExtraBorderSize(arg2); | |
7175 | ||
7176 | wxPyEndAllowThreads(__tstate); | |
7177 | if (PyErr_Occurred()) SWIG_fail; | |
7178 | } | |
7179 | Py_INCREF(Py_None); resultobj = Py_None; | |
7180 | return resultobj; | |
7181 | fail: | |
7182 | return NULL; | |
7183 | } | |
7184 | ||
7185 | ||
7186 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7187 | PyObject *resultobj; | |
7188 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7189 | int result; | |
7190 | PyObject * obj0 = 0 ; | |
7191 | char *kwnames[] = { | |
7192 | (char *) "self", NULL | |
7193 | }; | |
7194 | ||
7195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7198 | { | |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
7204 | } | |
7205 | resultobj = SWIG_FromInt((int)result); | |
7206 | return resultobj; | |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7215 | int arg2 ; | |
7216 | PyObject * obj0 = 0 ; | |
7217 | PyObject * obj1 = 0 ; | |
7218 | char *kwnames[] = { | |
7219 | (char *) "self",(char *) "min", NULL | |
7220 | }; | |
7221 | ||
7222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7225 | arg2 = (int) SWIG_AsInt(obj1); | |
7226 | if (PyErr_Occurred()) SWIG_fail; | |
7227 | { | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | (arg1)->SetMinimumSizeX(arg2); | |
7230 | ||
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
7234 | Py_INCREF(Py_None); resultobj = Py_None; | |
7235 | return resultobj; | |
7236 | fail: | |
7237 | return NULL; | |
7238 | } | |
7239 | ||
7240 | ||
7241 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7242 | PyObject *resultobj; | |
7243 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7244 | int arg2 ; | |
7245 | PyObject * obj0 = 0 ; | |
7246 | PyObject * obj1 = 0 ; | |
7247 | char *kwnames[] = { | |
7248 | (char *) "self",(char *) "min", NULL | |
7249 | }; | |
7250 | ||
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7254 | arg2 = (int) SWIG_AsInt(obj1); | |
7255 | if (PyErr_Occurred()) SWIG_fail; | |
7256 | { | |
7257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7258 | (arg1)->SetMinimumSizeY(arg2); | |
7259 | ||
7260 | wxPyEndAllowThreads(__tstate); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
7263 | Py_INCREF(Py_None); resultobj = Py_None; | |
7264 | return resultobj; | |
7265 | fail: | |
7266 | return NULL; | |
7267 | } | |
7268 | ||
7269 | ||
7270 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7271 | PyObject *resultobj; | |
7272 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7273 | int result; | |
7274 | PyObject * obj0 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self", NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7282 | { | |
7283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7284 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7285 | ||
7286 | wxPyEndAllowThreads(__tstate); | |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
7288 | } | |
7289 | resultobj = SWIG_FromInt((int)result); | |
7290 | return resultobj; | |
7291 | fail: | |
7292 | return NULL; | |
7293 | } | |
7294 | ||
7295 | ||
7296 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject *resultobj; | |
7298 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7299 | int result; | |
7300 | PyObject * obj0 = 0 ; | |
7301 | char *kwnames[] = { | |
7302 | (char *) "self", NULL | |
7303 | }; | |
7304 | ||
7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7308 | { | |
7309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7310 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7311 | ||
7312 | wxPyEndAllowThreads(__tstate); | |
7313 | if (PyErr_Occurred()) SWIG_fail; | |
7314 | } | |
7315 | resultobj = SWIG_FromInt((int)result); | |
7316 | return resultobj; | |
7317 | fail: | |
7318 | return NULL; | |
7319 | } | |
7320 | ||
7321 | ||
7322 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7323 | PyObject *resultobj; | |
7324 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7325 | int arg2 ; | |
7326 | PyObject * obj0 = 0 ; | |
7327 | PyObject * obj1 = 0 ; | |
7328 | char *kwnames[] = { | |
7329 | (char *) "self",(char *) "max", NULL | |
7330 | }; | |
7331 | ||
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7335 | arg2 = (int) SWIG_AsInt(obj1); | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | { | |
7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7339 | (arg1)->SetMaximumSizeX(arg2); | |
7340 | ||
7341 | wxPyEndAllowThreads(__tstate); | |
7342 | if (PyErr_Occurred()) SWIG_fail; | |
7343 | } | |
7344 | Py_INCREF(Py_None); resultobj = Py_None; | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | return NULL; | |
7348 | } | |
7349 | ||
7350 | ||
7351 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7352 | PyObject *resultobj; | |
7353 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7354 | int arg2 ; | |
7355 | PyObject * obj0 = 0 ; | |
7356 | PyObject * obj1 = 0 ; | |
7357 | char *kwnames[] = { | |
7358 | (char *) "self",(char *) "max", NULL | |
7359 | }; | |
7360 | ||
7361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7364 | arg2 = (int) SWIG_AsInt(obj1); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | { | |
7367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7368 | (arg1)->SetMaximumSizeY(arg2); | |
7369 | ||
7370 | wxPyEndAllowThreads(__tstate); | |
7371 | if (PyErr_Occurred()) SWIG_fail; | |
7372 | } | |
7373 | Py_INCREF(Py_None); resultobj = Py_None; | |
7374 | return resultobj; | |
7375 | fail: | |
7376 | return NULL; | |
7377 | } | |
7378 | ||
7379 | ||
7380 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7381 | PyObject *resultobj; | |
7382 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7383 | int result; | |
7384 | PyObject * obj0 = 0 ; | |
7385 | char *kwnames[] = { | |
7386 | (char *) "self", NULL | |
7387 | }; | |
7388 | ||
7389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7392 | { | |
7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7394 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7395 | ||
7396 | wxPyEndAllowThreads(__tstate); | |
7397 | if (PyErr_Occurred()) SWIG_fail; | |
7398 | } | |
7399 | resultobj = SWIG_FromInt((int)result); | |
7400 | return resultobj; | |
7401 | fail: | |
7402 | return NULL; | |
7403 | } | |
7404 | ||
7405 | ||
7406 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject *resultobj; | |
7408 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7409 | int result; | |
7410 | PyObject * obj0 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "self", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7418 | { | |
7419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7420 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7421 | ||
7422 | wxPyEndAllowThreads(__tstate); | |
7423 | if (PyErr_Occurred()) SWIG_fail; | |
7424 | } | |
7425 | resultobj = SWIG_FromInt((int)result); | |
7426 | return resultobj; | |
7427 | fail: | |
7428 | return NULL; | |
7429 | } | |
7430 | ||
7431 | ||
7432 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7433 | PyObject *resultobj; | |
7434 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7435 | int arg2 ; | |
7436 | int arg3 ; | |
7437 | int arg4 = (int) 2 ; | |
7438 | int result; | |
7439 | PyObject * obj0 = 0 ; | |
7440 | PyObject * obj1 = 0 ; | |
7441 | PyObject * obj2 = 0 ; | |
7442 | PyObject * obj3 = 0 ; | |
7443 | char *kwnames[] = { | |
7444 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7445 | }; | |
7446 | ||
7447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7450 | arg2 = (int) SWIG_AsInt(obj1); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | arg3 = (int) SWIG_AsInt(obj2); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | if (obj3) { | |
7455 | arg4 = (int) SWIG_AsInt(obj3); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | } | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | resultobj = SWIG_FromInt((int)result); | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
7472 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject *resultobj; | |
7474 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7475 | PyObject * obj0 = 0 ; | |
7476 | char *kwnames[] = { | |
7477 | (char *) "self", NULL | |
7478 | }; | |
7479 | ||
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7483 | { | |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7485 | (arg1)->SizeWindows(); | |
7486 | ||
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
7490 | Py_INCREF(Py_None); resultobj = Py_None; | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | return NULL; | |
7494 | } | |
7495 | ||
7496 | ||
7497 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7498 | PyObject *obj; | |
7499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7500 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7501 | Py_INCREF(obj); | |
7502 | return Py_BuildValue((char *)""); | |
7503 | } | |
7504 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7505 | PyObject *resultobj; | |
7506 | int arg1 = (int) 0 ; | |
7507 | int arg2 = (int) wxSASH_NONE ; | |
7508 | wxSashEvent *result; | |
7509 | PyObject * obj0 = 0 ; | |
7510 | PyObject * obj1 = 0 ; | |
7511 | char *kwnames[] = { | |
7512 | (char *) "id",(char *) "edge", NULL | |
7513 | }; | |
7514 | ||
7515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7516 | if (obj0) { | |
7517 | arg1 = (int) SWIG_AsInt(obj0); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
7520 | if (obj1) { | |
7521 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7522 | if (PyErr_Occurred()) SWIG_fail; | |
7523 | } | |
7524 | { | |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7532 | return resultobj; | |
7533 | fail: | |
7534 | return NULL; | |
7535 | } | |
7536 | ||
7537 | ||
7538 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7539 | PyObject *resultobj; | |
7540 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7541 | int arg2 ; | |
7542 | PyObject * obj0 = 0 ; | |
7543 | PyObject * obj1 = 0 ; | |
7544 | char *kwnames[] = { | |
7545 | (char *) "self",(char *) "edge", NULL | |
7546 | }; | |
7547 | ||
7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7551 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | { | |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
7560 | Py_INCREF(Py_None); resultobj = Py_None; | |
7561 | return resultobj; | |
7562 | fail: | |
7563 | return NULL; | |
7564 | } | |
7565 | ||
7566 | ||
7567 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7568 | PyObject *resultobj; | |
7569 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7570 | int result; | |
7571 | PyObject * obj0 = 0 ; | |
7572 | char *kwnames[] = { | |
7573 | (char *) "self", NULL | |
7574 | }; | |
7575 | ||
7576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7579 | { | |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | resultobj = SWIG_FromInt((int)result); | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
7593 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7594 | PyObject *resultobj; | |
7595 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7596 | wxRect *arg2 = 0 ; | |
7597 | wxRect temp2 ; | |
7598 | PyObject * obj0 = 0 ; | |
7599 | PyObject * obj1 = 0 ; | |
7600 | char *kwnames[] = { | |
7601 | (char *) "self",(char *) "rect", NULL | |
7602 | }; | |
7603 | ||
7604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7607 | { | |
7608 | arg2 = &temp2; | |
7609 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7610 | } | |
7611 | { | |
7612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7613 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7614 | ||
7615 | wxPyEndAllowThreads(__tstate); | |
7616 | if (PyErr_Occurred()) SWIG_fail; | |
7617 | } | |
7618 | Py_INCREF(Py_None); resultobj = Py_None; | |
7619 | return resultobj; | |
7620 | fail: | |
7621 | return NULL; | |
7622 | } | |
7623 | ||
7624 | ||
7625 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7626 | PyObject *resultobj; | |
7627 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7628 | wxRect result; | |
7629 | PyObject * obj0 = 0 ; | |
7630 | char *kwnames[] = { | |
7631 | (char *) "self", NULL | |
7632 | }; | |
7633 | ||
7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7637 | { | |
7638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7639 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7640 | ||
7641 | wxPyEndAllowThreads(__tstate); | |
7642 | if (PyErr_Occurred()) SWIG_fail; | |
7643 | } | |
7644 | { | |
7645 | wxRect * resultptr; | |
7646 | resultptr = new wxRect((wxRect &) result); | |
7647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7648 | } | |
7649 | return resultobj; | |
7650 | fail: | |
7651 | return NULL; | |
7652 | } | |
7653 | ||
7654 | ||
7655 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7656 | PyObject *resultobj; | |
7657 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7658 | int arg2 ; | |
7659 | PyObject * obj0 = 0 ; | |
7660 | PyObject * obj1 = 0 ; | |
7661 | char *kwnames[] = { | |
7662 | (char *) "self",(char *) "status", NULL | |
7663 | }; | |
7664 | ||
7665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7668 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7669 | if (PyErr_Occurred()) SWIG_fail; | |
7670 | { | |
7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7672 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7673 | ||
7674 | wxPyEndAllowThreads(__tstate); | |
7675 | if (PyErr_Occurred()) SWIG_fail; | |
7676 | } | |
7677 | Py_INCREF(Py_None); resultobj = Py_None; | |
7678 | return resultobj; | |
7679 | fail: | |
7680 | return NULL; | |
7681 | } | |
7682 | ||
7683 | ||
7684 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7685 | PyObject *resultobj; | |
7686 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7687 | int result; | |
7688 | PyObject * obj0 = 0 ; | |
7689 | char *kwnames[] = { | |
7690 | (char *) "self", NULL | |
7691 | }; | |
7692 | ||
7693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7696 | { | |
7697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7698 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7699 | ||
7700 | wxPyEndAllowThreads(__tstate); | |
7701 | if (PyErr_Occurred()) SWIG_fail; | |
7702 | } | |
7703 | resultobj = SWIG_FromInt((int)result); | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | return NULL; | |
7707 | } | |
7708 | ||
7709 | ||
7710 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7711 | PyObject *obj; | |
7712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7713 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7714 | Py_INCREF(obj); | |
7715 | return Py_BuildValue((char *)""); | |
7716 | } | |
7717 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7718 | PyObject *resultobj; | |
7719 | int arg1 = (int) 0 ; | |
7720 | wxQueryLayoutInfoEvent *result; | |
7721 | PyObject * obj0 = 0 ; | |
7722 | char *kwnames[] = { | |
7723 | (char *) "id", NULL | |
7724 | }; | |
7725 | ||
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7727 | if (obj0) { | |
7728 | arg1 = (int) SWIG_AsInt(obj0); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | { | |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
7745 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject *resultobj; | |
7747 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7748 | int arg2 ; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | PyObject * obj1 = 0 ; | |
7751 | char *kwnames[] = { | |
7752 | (char *) "self",(char *) "length", NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7758 | arg2 = (int) SWIG_AsInt(obj1); | |
7759 | if (PyErr_Occurred()) SWIG_fail; | |
7760 | { | |
7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7762 | (arg1)->SetRequestedLength(arg2); | |
7763 | ||
7764 | wxPyEndAllowThreads(__tstate); | |
7765 | if (PyErr_Occurred()) SWIG_fail; | |
7766 | } | |
7767 | Py_INCREF(Py_None); resultobj = Py_None; | |
7768 | return resultobj; | |
7769 | fail: | |
7770 | return NULL; | |
7771 | } | |
7772 | ||
7773 | ||
7774 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7775 | PyObject *resultobj; | |
7776 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7777 | int result; | |
7778 | PyObject * obj0 = 0 ; | |
7779 | char *kwnames[] = { | |
7780 | (char *) "self", NULL | |
7781 | }; | |
7782 | ||
7783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7786 | { | |
7787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7788 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7789 | ||
7790 | wxPyEndAllowThreads(__tstate); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | resultobj = SWIG_FromInt((int)result); | |
7794 | return resultobj; | |
7795 | fail: | |
7796 | return NULL; | |
7797 | } | |
7798 | ||
7799 | ||
7800 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7801 | PyObject *resultobj; | |
7802 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7803 | int arg2 ; | |
7804 | PyObject * obj0 = 0 ; | |
7805 | PyObject * obj1 = 0 ; | |
7806 | char *kwnames[] = { | |
7807 | (char *) "self",(char *) "flags", NULL | |
7808 | }; | |
7809 | ||
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7813 | arg2 = (int) SWIG_AsInt(obj1); | |
7814 | if (PyErr_Occurred()) SWIG_fail; | |
7815 | { | |
7816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7817 | (arg1)->SetFlags(arg2); | |
7818 | ||
7819 | wxPyEndAllowThreads(__tstate); | |
7820 | if (PyErr_Occurred()) SWIG_fail; | |
7821 | } | |
7822 | Py_INCREF(Py_None); resultobj = Py_None; | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
7829 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7830 | PyObject *resultobj; | |
7831 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7832 | int result; | |
7833 | PyObject * obj0 = 0 ; | |
7834 | char *kwnames[] = { | |
7835 | (char *) "self", NULL | |
7836 | }; | |
7837 | ||
7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7841 | { | |
7842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7843 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7844 | ||
7845 | wxPyEndAllowThreads(__tstate); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | } | |
7848 | resultobj = SWIG_FromInt((int)result); | |
7849 | return resultobj; | |
7850 | fail: | |
7851 | return NULL; | |
7852 | } | |
7853 | ||
7854 | ||
7855 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7856 | PyObject *resultobj; | |
7857 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7858 | wxSize *arg2 = 0 ; | |
7859 | wxSize temp2 ; | |
7860 | PyObject * obj0 = 0 ; | |
7861 | PyObject * obj1 = 0 ; | |
7862 | char *kwnames[] = { | |
7863 | (char *) "self",(char *) "size", NULL | |
7864 | }; | |
7865 | ||
7866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7869 | { | |
7870 | arg2 = &temp2; | |
7871 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7872 | } | |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | (arg1)->SetSize((wxSize const &)*arg2); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | Py_INCREF(Py_None); resultobj = Py_None; | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj; | |
7889 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7890 | wxSize result; | |
7891 | PyObject * obj0 = 0 ; | |
7892 | char *kwnames[] = { | |
7893 | (char *) "self", NULL | |
7894 | }; | |
7895 | ||
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7899 | { | |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7901 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
7905 | } | |
7906 | { | |
7907 | wxSize * resultptr; | |
7908 | resultptr = new wxSize((wxSize &) result); | |
7909 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7910 | } | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
7917 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject *resultobj; | |
7919 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7920 | int arg2 ; | |
7921 | PyObject * obj0 = 0 ; | |
7922 | PyObject * obj1 = 0 ; | |
7923 | char *kwnames[] = { | |
7924 | (char *) "self",(char *) "orient", NULL | |
7925 | }; | |
7926 | ||
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
7928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7930 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
7931 | if (PyErr_Occurred()) SWIG_fail; | |
7932 | { | |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | Py_INCREF(Py_None); resultobj = Py_None; | |
7940 | return resultobj; | |
7941 | fail: | |
7942 | return NULL; | |
7943 | } | |
7944 | ||
7945 | ||
7946 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7947 | PyObject *resultobj; | |
7948 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7949 | int result; | |
7950 | PyObject * obj0 = 0 ; | |
7951 | char *kwnames[] = { | |
7952 | (char *) "self", NULL | |
7953 | }; | |
7954 | ||
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7958 | { | |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7961 | ||
7962 | wxPyEndAllowThreads(__tstate); | |
7963 | if (PyErr_Occurred()) SWIG_fail; | |
7964 | } | |
7965 | resultobj = SWIG_FromInt((int)result); | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | return NULL; | |
7969 | } | |
7970 | ||
7971 | ||
7972 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7973 | PyObject *resultobj; | |
7974 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7975 | int arg2 ; | |
7976 | PyObject * obj0 = 0 ; | |
7977 | PyObject * obj1 = 0 ; | |
7978 | char *kwnames[] = { | |
7979 | (char *) "self",(char *) "align", NULL | |
7980 | }; | |
7981 | ||
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7985 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | { | |
7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7989 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7990 | ||
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) SWIG_fail; | |
7993 | } | |
7994 | Py_INCREF(Py_None); resultobj = Py_None; | |
7995 | return resultobj; | |
7996 | fail: | |
7997 | return NULL; | |
7998 | } | |
7999 | ||
8000 | ||
8001 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8002 | PyObject *resultobj; | |
8003 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8004 | int result; | |
8005 | PyObject * obj0 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "self", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
8011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8013 | { | |
8014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8015 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
8016 | ||
8017 | wxPyEndAllowThreads(__tstate); | |
8018 | if (PyErr_Occurred()) SWIG_fail; | |
8019 | } | |
8020 | resultobj = SWIG_FromInt((int)result); | |
8021 | return resultobj; | |
8022 | fail: | |
8023 | return NULL; | |
8024 | } | |
8025 | ||
8026 | ||
8027 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
8028 | PyObject *obj; | |
8029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8030 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
8031 | Py_INCREF(obj); | |
8032 | return Py_BuildValue((char *)""); | |
8033 | } | |
8034 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8035 | PyObject *resultobj; | |
8036 | int arg1 = (int) 0 ; | |
8037 | wxCalculateLayoutEvent *result; | |
8038 | PyObject * obj0 = 0 ; | |
8039 | char *kwnames[] = { | |
8040 | (char *) "id", NULL | |
8041 | }; | |
8042 | ||
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
8044 | if (obj0) { | |
8045 | arg1 = (int) SWIG_AsInt(obj0); | |
8046 | if (PyErr_Occurred()) SWIG_fail; | |
8047 | } | |
8048 | { | |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8050 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
8051 | ||
8052 | wxPyEndAllowThreads(__tstate); | |
8053 | if (PyErr_Occurred()) SWIG_fail; | |
8054 | } | |
8055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
8056 | return resultobj; | |
8057 | fail: | |
8058 | return NULL; | |
8059 | } | |
8060 | ||
8061 | ||
8062 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8063 | PyObject *resultobj; | |
8064 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8065 | int arg2 ; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | PyObject * obj1 = 0 ; | |
8068 | char *kwnames[] = { | |
8069 | (char *) "self",(char *) "flags", NULL | |
8070 | }; | |
8071 | ||
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8075 | arg2 = (int) SWIG_AsInt(obj1); | |
8076 | if (PyErr_Occurred()) SWIG_fail; | |
8077 | { | |
8078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8079 | (arg1)->SetFlags(arg2); | |
8080 | ||
8081 | wxPyEndAllowThreads(__tstate); | |
8082 | if (PyErr_Occurred()) SWIG_fail; | |
8083 | } | |
8084 | Py_INCREF(Py_None); resultobj = Py_None; | |
8085 | return resultobj; | |
8086 | fail: | |
8087 | return NULL; | |
8088 | } | |
8089 | ||
8090 | ||
8091 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8092 | PyObject *resultobj; | |
8093 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8094 | int result; | |
8095 | PyObject * obj0 = 0 ; | |
8096 | char *kwnames[] = { | |
8097 | (char *) "self", NULL | |
8098 | }; | |
8099 | ||
8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8103 | { | |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | resultobj = SWIG_FromInt((int)result); | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj; | |
8119 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8120 | wxRect *arg2 = 0 ; | |
8121 | wxRect temp2 ; | |
8122 | PyObject * obj0 = 0 ; | |
8123 | PyObject * obj1 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self",(char *) "rect", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8131 | { | |
8132 | arg2 = &temp2; | |
8133 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8134 | } | |
8135 | { | |
8136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8137 | (arg1)->SetRect((wxRect const &)*arg2); | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | Py_INCREF(Py_None); resultobj = Py_None; | |
8143 | return resultobj; | |
8144 | fail: | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8150 | PyObject *resultobj; | |
8151 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8152 | wxRect result; | |
8153 | PyObject * obj0 = 0 ; | |
8154 | char *kwnames[] = { | |
8155 | (char *) "self", NULL | |
8156 | }; | |
8157 | ||
8158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8161 | { | |
8162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8163 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8164 | ||
8165 | wxPyEndAllowThreads(__tstate); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | } | |
8168 | { | |
8169 | wxRect * resultptr; | |
8170 | resultptr = new wxRect((wxRect &) result); | |
8171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8172 | } | |
8173 | return resultobj; | |
8174 | fail: | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
8179 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8180 | PyObject *obj; | |
8181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8182 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8183 | Py_INCREF(obj); | |
8184 | return Py_BuildValue((char *)""); | |
8185 | } | |
8186 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8187 | PyObject *resultobj; | |
8188 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8189 | int arg2 ; | |
8190 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8191 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8192 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8193 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8194 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8195 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8196 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8197 | wxSashLayoutWindow *result; | |
8198 | wxPoint temp3 ; | |
8199 | wxSize temp4 ; | |
8200 | bool temp6 = False ; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | PyObject * obj1 = 0 ; | |
8203 | PyObject * obj2 = 0 ; | |
8204 | PyObject * obj3 = 0 ; | |
8205 | PyObject * obj4 = 0 ; | |
8206 | PyObject * obj5 = 0 ; | |
8207 | char *kwnames[] = { | |
8208 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8209 | }; | |
8210 | ||
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8214 | arg2 = (int) SWIG_AsInt(obj1); | |
8215 | if (PyErr_Occurred()) SWIG_fail; | |
8216 | if (obj2) { | |
8217 | { | |
8218 | arg3 = &temp3; | |
8219 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8220 | } | |
8221 | } | |
8222 | if (obj3) { | |
8223 | { | |
8224 | arg4 = &temp4; | |
8225 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8226 | } | |
8227 | } | |
8228 | if (obj4) { | |
8229 | arg5 = (long) SWIG_AsLong(obj4); | |
8230 | if (PyErr_Occurred()) SWIG_fail; | |
8231 | } | |
8232 | if (obj5) { | |
8233 | { | |
8234 | arg6 = wxString_in_helper(obj5); | |
8235 | if (arg6 == NULL) SWIG_fail; | |
8236 | temp6 = True; | |
8237 | } | |
8238 | } | |
8239 | { | |
8240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8241 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8242 | ||
8243 | wxPyEndAllowThreads(__tstate); | |
8244 | if (PyErr_Occurred()) SWIG_fail; | |
8245 | } | |
8246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8247 | { | |
8248 | if (temp6) | |
8249 | delete arg6; | |
8250 | } | |
8251 | return resultobj; | |
8252 | fail: | |
8253 | { | |
8254 | if (temp6) | |
8255 | delete arg6; | |
8256 | } | |
8257 | return NULL; | |
8258 | } | |
8259 | ||
8260 | ||
8261 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8262 | PyObject *resultobj; | |
8263 | wxSashLayoutWindow *result; | |
8264 | char *kwnames[] = { | |
8265 | NULL | |
8266 | }; | |
8267 | ||
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8269 | { | |
8270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8271 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8272 | ||
8273 | wxPyEndAllowThreads(__tstate); | |
8274 | if (PyErr_Occurred()) SWIG_fail; | |
8275 | } | |
8276 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8277 | return resultobj; | |
8278 | fail: | |
8279 | return NULL; | |
8280 | } | |
8281 | ||
8282 | ||
8283 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject *resultobj; | |
8285 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8286 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8287 | int arg3 ; | |
8288 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8289 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8290 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8291 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8292 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8293 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8294 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8295 | bool result; | |
8296 | wxPoint temp4 ; | |
8297 | wxSize temp5 ; | |
8298 | bool temp7 = False ; | |
8299 | PyObject * obj0 = 0 ; | |
8300 | PyObject * obj1 = 0 ; | |
8301 | PyObject * obj2 = 0 ; | |
8302 | PyObject * obj3 = 0 ; | |
8303 | PyObject * obj4 = 0 ; | |
8304 | PyObject * obj5 = 0 ; | |
8305 | PyObject * obj6 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8313 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8315 | arg3 = (int) SWIG_AsInt(obj2); | |
8316 | if (PyErr_Occurred()) SWIG_fail; | |
8317 | if (obj3) { | |
8318 | { | |
8319 | arg4 = &temp4; | |
8320 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8321 | } | |
8322 | } | |
8323 | if (obj4) { | |
8324 | { | |
8325 | arg5 = &temp5; | |
8326 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8327 | } | |
8328 | } | |
8329 | if (obj5) { | |
8330 | arg6 = (long) SWIG_AsLong(obj5); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | if (obj6) { | |
8334 | { | |
8335 | arg7 = wxString_in_helper(obj6); | |
8336 | if (arg7 == NULL) SWIG_fail; | |
8337 | temp7 = True; | |
8338 | } | |
8339 | } | |
8340 | { | |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8343 | ||
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | { | |
8348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8349 | } | |
8350 | { | |
8351 | if (temp7) | |
8352 | delete arg7; | |
8353 | } | |
8354 | return resultobj; | |
8355 | fail: | |
8356 | { | |
8357 | if (temp7) | |
8358 | delete arg7; | |
8359 | } | |
8360 | return NULL; | |
8361 | } | |
8362 | ||
8363 | ||
8364 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8365 | PyObject *resultobj; | |
8366 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8367 | int result; | |
8368 | PyObject * obj0 = 0 ; | |
8369 | char *kwnames[] = { | |
8370 | (char *) "self", NULL | |
8371 | }; | |
8372 | ||
8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8376 | { | |
8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8378 | result = (int)(arg1)->GetAlignment(); | |
8379 | ||
8380 | wxPyEndAllowThreads(__tstate); | |
8381 | if (PyErr_Occurred()) SWIG_fail; | |
8382 | } | |
8383 | resultobj = SWIG_FromInt((int)result); | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | return NULL; | |
8387 | } | |
8388 | ||
8389 | ||
8390 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8391 | PyObject *resultobj; | |
8392 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8393 | int result; | |
8394 | PyObject * obj0 = 0 ; | |
8395 | char *kwnames[] = { | |
8396 | (char *) "self", NULL | |
8397 | }; | |
8398 | ||
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8402 | { | |
8403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8404 | result = (int)(arg1)->GetOrientation(); | |
8405 | ||
8406 | wxPyEndAllowThreads(__tstate); | |
8407 | if (PyErr_Occurred()) SWIG_fail; | |
8408 | } | |
8409 | resultobj = SWIG_FromInt((int)result); | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8417 | PyObject *resultobj; | |
8418 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8419 | int arg2 ; | |
8420 | PyObject * obj0 = 0 ; | |
8421 | PyObject * obj1 = 0 ; | |
8422 | char *kwnames[] = { | |
8423 | (char *) "self",(char *) "alignment", NULL | |
8424 | }; | |
8425 | ||
8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8429 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8430 | if (PyErr_Occurred()) SWIG_fail; | |
8431 | { | |
8432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8433 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8434 | ||
8435 | wxPyEndAllowThreads(__tstate); | |
8436 | if (PyErr_Occurred()) SWIG_fail; | |
8437 | } | |
8438 | Py_INCREF(Py_None); resultobj = Py_None; | |
8439 | return resultobj; | |
8440 | fail: | |
8441 | return NULL; | |
8442 | } | |
8443 | ||
8444 | ||
8445 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject *resultobj; | |
8447 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8448 | wxSize *arg2 = 0 ; | |
8449 | wxSize temp2 ; | |
8450 | PyObject * obj0 = 0 ; | |
8451 | PyObject * obj1 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self",(char *) "size", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8459 | { | |
8460 | arg2 = &temp2; | |
8461 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8462 | } | |
8463 | { | |
8464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8465 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8466 | ||
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) SWIG_fail; | |
8469 | } | |
8470 | Py_INCREF(Py_None); resultobj = Py_None; | |
8471 | return resultobj; | |
8472 | fail: | |
8473 | return NULL; | |
8474 | } | |
8475 | ||
8476 | ||
8477 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8478 | PyObject *resultobj; | |
8479 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8480 | int arg2 ; | |
8481 | PyObject * obj0 = 0 ; | |
8482 | PyObject * obj1 = 0 ; | |
8483 | char *kwnames[] = { | |
8484 | (char *) "self",(char *) "orientation", NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8490 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8491 | if (PyErr_Occurred()) SWIG_fail; | |
8492 | { | |
8493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8494 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8495 | ||
8496 | wxPyEndAllowThreads(__tstate); | |
8497 | if (PyErr_Occurred()) SWIG_fail; | |
8498 | } | |
8499 | Py_INCREF(Py_None); resultobj = Py_None; | |
8500 | return resultobj; | |
8501 | fail: | |
8502 | return NULL; | |
8503 | } | |
8504 | ||
8505 | ||
8506 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8507 | PyObject *obj; | |
8508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8509 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8510 | Py_INCREF(obj); | |
8511 | return Py_BuildValue((char *)""); | |
8512 | } | |
8513 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8514 | PyObject *resultobj; | |
8515 | wxLayoutAlgorithm *result; | |
8516 | char *kwnames[] = { | |
8517 | NULL | |
8518 | }; | |
8519 | ||
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8521 | { | |
8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8523 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8524 | ||
8525 | wxPyEndAllowThreads(__tstate); | |
8526 | if (PyErr_Occurred()) SWIG_fail; | |
8527 | } | |
8528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8529 | return resultobj; | |
8530 | fail: | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
8535 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8536 | PyObject *resultobj; | |
8537 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8538 | PyObject * obj0 = 0 ; | |
8539 | char *kwnames[] = { | |
8540 | (char *) "self", NULL | |
8541 | }; | |
8542 | ||
8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8546 | { | |
8547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8548 | delete arg1; | |
8549 | ||
8550 | wxPyEndAllowThreads(__tstate); | |
8551 | if (PyErr_Occurred()) SWIG_fail; | |
8552 | } | |
8553 | Py_INCREF(Py_None); resultobj = Py_None; | |
8554 | return resultobj; | |
8555 | fail: | |
8556 | return NULL; | |
8557 | } | |
8558 | ||
8559 | ||
8560 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8561 | PyObject *resultobj; | |
8562 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8563 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8564 | wxRect *arg3 = (wxRect *) NULL ; | |
8565 | bool result; | |
8566 | PyObject * obj0 = 0 ; | |
8567 | PyObject * obj1 = 0 ; | |
8568 | PyObject * obj2 = 0 ; | |
8569 | char *kwnames[] = { | |
8570 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8571 | }; | |
8572 | ||
8573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8578 | if (obj2) { | |
8579 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8581 | } | |
8582 | { | |
8583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8584 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8585 | ||
8586 | wxPyEndAllowThreads(__tstate); | |
8587 | if (PyErr_Occurred()) SWIG_fail; | |
8588 | } | |
8589 | { | |
8590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8591 | } | |
8592 | return resultobj; | |
8593 | fail: | |
8594 | return NULL; | |
8595 | } | |
8596 | ||
8597 | ||
8598 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8599 | PyObject *resultobj; | |
8600 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8601 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8602 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8603 | bool result; | |
8604 | PyObject * obj0 = 0 ; | |
8605 | PyObject * obj1 = 0 ; | |
8606 | PyObject * obj2 = 0 ; | |
8607 | char *kwnames[] = { | |
8608 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8609 | }; | |
8610 | ||
8611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8614 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8616 | if (obj2) { | |
8617 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8619 | } | |
8620 | { | |
8621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8622 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8623 | ||
8624 | wxPyEndAllowThreads(__tstate); | |
8625 | if (PyErr_Occurred()) SWIG_fail; | |
8626 | } | |
8627 | { | |
8628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8629 | } | |
8630 | return resultobj; | |
8631 | fail: | |
8632 | return NULL; | |
8633 | } | |
8634 | ||
8635 | ||
8636 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8637 | PyObject *resultobj; | |
8638 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8639 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8640 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8641 | bool result; | |
8642 | PyObject * obj0 = 0 ; | |
8643 | PyObject * obj1 = 0 ; | |
8644 | PyObject * obj2 = 0 ; | |
8645 | char *kwnames[] = { | |
8646 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8647 | }; | |
8648 | ||
8649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8654 | if (obj2) { | |
8655 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8657 | } | |
8658 | { | |
8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8660 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8661 | ||
8662 | wxPyEndAllowThreads(__tstate); | |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8664 | } | |
8665 | { | |
8666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8667 | } | |
8668 | return resultobj; | |
8669 | fail: | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
8674 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8675 | PyObject *obj; | |
8676 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8677 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8678 | Py_INCREF(obj); | |
8679 | return Py_BuildValue((char *)""); | |
8680 | } | |
8681 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8682 | PyObject *resultobj; | |
8683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8684 | int arg2 = (int) wxBORDER_NONE ; | |
8685 | wxPopupWindow *result; | |
8686 | PyObject * obj0 = 0 ; | |
8687 | PyObject * obj1 = 0 ; | |
8688 | char *kwnames[] = { | |
8689 | (char *) "parent",(char *) "flags", NULL | |
8690 | }; | |
8691 | ||
8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8695 | if (obj1) { | |
8696 | arg2 = (int) SWIG_AsInt(obj1); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | } | |
8699 | { | |
8700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8701 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8702 | ||
8703 | wxPyEndAllowThreads(__tstate); | |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
8705 | } | |
8706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8707 | return resultobj; | |
8708 | fail: | |
8709 | return NULL; | |
8710 | } | |
8711 | ||
8712 | ||
8713 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8714 | PyObject *resultobj; | |
8715 | wxPopupWindow *result; | |
8716 | char *kwnames[] = { | |
8717 | NULL | |
8718 | }; | |
8719 | ||
8720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8721 | { | |
8722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8723 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8724 | ||
8725 | wxPyEndAllowThreads(__tstate); | |
8726 | if (PyErr_Occurred()) SWIG_fail; | |
8727 | } | |
8728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | return NULL; | |
8732 | } | |
8733 | ||
8734 | ||
8735 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8736 | PyObject *obj; | |
8737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8738 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8739 | Py_INCREF(obj); | |
8740 | return Py_BuildValue((char *)""); | |
8741 | } | |
8742 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject *resultobj; | |
8744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8745 | int arg2 = (int) wxBORDER_NONE ; | |
8746 | wxPyPopupTransientWindow *result; | |
8747 | PyObject * obj0 = 0 ; | |
8748 | PyObject * obj1 = 0 ; | |
8749 | char *kwnames[] = { | |
8750 | (char *) "parent",(char *) "style", NULL | |
8751 | }; | |
8752 | ||
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8756 | if (obj1) { | |
8757 | arg2 = (int) SWIG_AsInt(obj1); | |
8758 | if (PyErr_Occurred()) SWIG_fail; | |
8759 | } | |
8760 | { | |
8761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8762 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8763 | ||
8764 | wxPyEndAllowThreads(__tstate); | |
8765 | if (PyErr_Occurred()) SWIG_fail; | |
8766 | } | |
8767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8768 | return resultobj; | |
8769 | fail: | |
8770 | return NULL; | |
8771 | } | |
8772 | ||
8773 | ||
8774 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8775 | PyObject *resultobj; | |
8776 | wxPyPopupTransientWindow *result; | |
8777 | char *kwnames[] = { | |
8778 | NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8784 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8785 | ||
8786 | wxPyEndAllowThreads(__tstate); | |
8787 | if (PyErr_Occurred()) SWIG_fail; | |
8788 | } | |
8789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8790 | return resultobj; | |
8791 | fail: | |
8792 | return NULL; | |
8793 | } | |
8794 | ||
8795 | ||
8796 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
8797 | PyObject *obj; | |
8798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8799 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8800 | Py_INCREF(obj); | |
8801 | return Py_BuildValue((char *)""); | |
8802 | } | |
8803 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8804 | PyObject *resultobj; | |
8805 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8806 | wxString *arg2 = 0 ; | |
8807 | int arg3 = (int) 100 ; | |
8808 | wxRect *arg4 = (wxRect *) NULL ; | |
8809 | wxTipWindow *result; | |
8810 | bool temp2 = False ; | |
8811 | PyObject * obj0 = 0 ; | |
8812 | PyObject * obj1 = 0 ; | |
8813 | PyObject * obj2 = 0 ; | |
8814 | PyObject * obj3 = 0 ; | |
8815 | char *kwnames[] = { | |
8816 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8817 | }; | |
8818 | ||
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8822 | { | |
8823 | arg2 = wxString_in_helper(obj1); | |
8824 | if (arg2 == NULL) SWIG_fail; | |
8825 | temp2 = True; | |
8826 | } | |
8827 | if (obj2) { | |
8828 | arg3 = (int) SWIG_AsInt(obj2); | |
8829 | if (PyErr_Occurred()) SWIG_fail; | |
8830 | } | |
8831 | if (obj3) { | |
8832 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
8833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8834 | } | |
8835 | { | |
8836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8837 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8838 | ||
8839 | wxPyEndAllowThreads(__tstate); | |
8840 | if (PyErr_Occurred()) SWIG_fail; | |
8841 | } | |
8842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
8843 | { | |
8844 | if (temp2) | |
8845 | delete arg2; | |
8846 | } | |
8847 | return resultobj; | |
8848 | fail: | |
8849 | { | |
8850 | if (temp2) | |
8851 | delete arg2; | |
8852 | } | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
8857 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject *resultobj; | |
8859 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8860 | wxRect *arg2 = 0 ; | |
8861 | wxRect temp2 ; | |
8862 | PyObject * obj0 = 0 ; | |
8863 | PyObject * obj1 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "self",(char *) "rectBound", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8871 | { | |
8872 | arg2 = &temp2; | |
8873 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8874 | } | |
8875 | { | |
8876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8877 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8878 | ||
8879 | wxPyEndAllowThreads(__tstate); | |
8880 | if (PyErr_Occurred()) SWIG_fail; | |
8881 | } | |
8882 | Py_INCREF(Py_None); resultobj = Py_None; | |
8883 | return resultobj; | |
8884 | fail: | |
8885 | return NULL; | |
8886 | } | |
8887 | ||
8888 | ||
8889 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8890 | PyObject *resultobj; | |
8891 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8892 | PyObject * obj0 = 0 ; | |
8893 | char *kwnames[] = { | |
8894 | (char *) "self", NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8900 | { | |
8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8902 | (arg1)->Close(); | |
8903 | ||
8904 | wxPyEndAllowThreads(__tstate); | |
8905 | if (PyErr_Occurred()) SWIG_fail; | |
8906 | } | |
8907 | Py_INCREF(Py_None); resultobj = Py_None; | |
8908 | return resultobj; | |
8909 | fail: | |
8910 | return NULL; | |
8911 | } | |
8912 | ||
8913 | ||
8914 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
8915 | PyObject *obj; | |
8916 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8917 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
8918 | Py_INCREF(obj); | |
8919 | return Py_BuildValue((char *)""); | |
8920 | } | |
8921 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj; | |
8923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8924 | int arg2 = (int) wxID_ANY ; | |
8925 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8926 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8927 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8928 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8929 | long arg5 = (long) 0 ; | |
8930 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8931 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8932 | wxPyVScrolledWindow *result; | |
8933 | wxPoint temp3 ; | |
8934 | wxSize temp4 ; | |
8935 | bool temp6 = False ; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | PyObject * obj1 = 0 ; | |
8938 | PyObject * obj2 = 0 ; | |
8939 | PyObject * obj3 = 0 ; | |
8940 | PyObject * obj4 = 0 ; | |
8941 | PyObject * obj5 = 0 ; | |
8942 | char *kwnames[] = { | |
8943 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8944 | }; | |
8945 | ||
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8949 | if (obj1) { | |
8950 | arg2 = (int) SWIG_AsInt(obj1); | |
8951 | if (PyErr_Occurred()) SWIG_fail; | |
8952 | } | |
8953 | if (obj2) { | |
8954 | { | |
8955 | arg3 = &temp3; | |
8956 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8957 | } | |
8958 | } | |
8959 | if (obj3) { | |
8960 | { | |
8961 | arg4 = &temp4; | |
8962 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8963 | } | |
8964 | } | |
8965 | if (obj4) { | |
8966 | arg5 = (long) SWIG_AsLong(obj4); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | } | |
8969 | if (obj5) { | |
8970 | { | |
8971 | arg6 = wxString_in_helper(obj5); | |
8972 | if (arg6 == NULL) SWIG_fail; | |
8973 | temp6 = True; | |
8974 | } | |
8975 | } | |
8976 | { | |
8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8978 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8979 | ||
8980 | wxPyEndAllowThreads(__tstate); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
8982 | } | |
8983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8984 | { | |
8985 | if (temp6) | |
8986 | delete arg6; | |
8987 | } | |
8988 | return resultobj; | |
8989 | fail: | |
8990 | { | |
8991 | if (temp6) | |
8992 | delete arg6; | |
8993 | } | |
8994 | return NULL; | |
8995 | } | |
8996 | ||
8997 | ||
8998 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8999 | PyObject *resultobj; | |
9000 | wxPyVScrolledWindow *result; | |
9001 | char *kwnames[] = { | |
9002 | NULL | |
9003 | }; | |
9004 | ||
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
9006 | { | |
9007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9008 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
9009 | ||
9010 | wxPyEndAllowThreads(__tstate); | |
9011 | if (PyErr_Occurred()) SWIG_fail; | |
9012 | } | |
9013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9014 | return resultobj; | |
9015 | fail: | |
9016 | return NULL; | |
9017 | } | |
9018 | ||
9019 | ||
9020 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9021 | PyObject *resultobj; | |
9022 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9023 | PyObject *arg2 = (PyObject *) 0 ; | |
9024 | PyObject *arg3 = (PyObject *) 0 ; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | PyObject * obj1 = 0 ; | |
9027 | PyObject * obj2 = 0 ; | |
9028 | char *kwnames[] = { | |
9029 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9030 | }; | |
9031 | ||
9032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9035 | arg2 = obj1; | |
9036 | arg3 = obj2; | |
9037 | { | |
9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9039 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9040 | ||
9041 | wxPyEndAllowThreads(__tstate); | |
9042 | if (PyErr_Occurred()) SWIG_fail; | |
9043 | } | |
9044 | Py_INCREF(Py_None); resultobj = Py_None; | |
9045 | return resultobj; | |
9046 | fail: | |
9047 | return NULL; | |
9048 | } | |
9049 | ||
9050 | ||
9051 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9052 | PyObject *resultobj; | |
9053 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9054 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9055 | int arg3 = (int) wxID_ANY ; | |
9056 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9057 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9058 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9059 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9060 | long arg6 = (long) 0 ; | |
9061 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9062 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9063 | bool result; | |
9064 | wxPoint temp4 ; | |
9065 | wxSize temp5 ; | |
9066 | bool temp7 = False ; | |
9067 | PyObject * obj0 = 0 ; | |
9068 | PyObject * obj1 = 0 ; | |
9069 | PyObject * obj2 = 0 ; | |
9070 | PyObject * obj3 = 0 ; | |
9071 | PyObject * obj4 = 0 ; | |
9072 | PyObject * obj5 = 0 ; | |
9073 | PyObject * obj6 = 0 ; | |
9074 | char *kwnames[] = { | |
9075 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9076 | }; | |
9077 | ||
9078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9081 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9083 | if (obj2) { | |
9084 | arg3 = (int) SWIG_AsInt(obj2); | |
9085 | if (PyErr_Occurred()) SWIG_fail; | |
9086 | } | |
9087 | if (obj3) { | |
9088 | { | |
9089 | arg4 = &temp4; | |
9090 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9091 | } | |
9092 | } | |
9093 | if (obj4) { | |
9094 | { | |
9095 | arg5 = &temp5; | |
9096 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9097 | } | |
9098 | } | |
9099 | if (obj5) { | |
9100 | arg6 = (long) SWIG_AsLong(obj5); | |
9101 | if (PyErr_Occurred()) SWIG_fail; | |
9102 | } | |
9103 | if (obj6) { | |
9104 | { | |
9105 | arg7 = wxString_in_helper(obj6); | |
9106 | if (arg7 == NULL) SWIG_fail; | |
9107 | temp7 = True; | |
9108 | } | |
9109 | } | |
9110 | { | |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | { | |
9118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9119 | } | |
9120 | { | |
9121 | if (temp7) | |
9122 | delete arg7; | |
9123 | } | |
9124 | return resultobj; | |
9125 | fail: | |
9126 | { | |
9127 | if (temp7) | |
9128 | delete arg7; | |
9129 | } | |
9130 | return NULL; | |
9131 | } | |
9132 | ||
9133 | ||
9134 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9135 | PyObject *resultobj; | |
9136 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9137 | size_t arg2 ; | |
9138 | PyObject * obj0 = 0 ; | |
9139 | PyObject * obj1 = 0 ; | |
9140 | char *kwnames[] = { | |
9141 | (char *) "self",(char *) "count", NULL | |
9142 | }; | |
9143 | ||
9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9147 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9148 | if (PyErr_Occurred()) SWIG_fail; | |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | (arg1)->SetLineCount(arg2); | |
9152 | ||
9153 | wxPyEndAllowThreads(__tstate); | |
9154 | if (PyErr_Occurred()) SWIG_fail; | |
9155 | } | |
9156 | Py_INCREF(Py_None); resultobj = Py_None; | |
9157 | return resultobj; | |
9158 | fail: | |
9159 | return NULL; | |
9160 | } | |
9161 | ||
9162 | ||
9163 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9164 | PyObject *resultobj; | |
9165 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9166 | size_t arg2 ; | |
9167 | bool result; | |
9168 | PyObject * obj0 = 0 ; | |
9169 | PyObject * obj1 = 0 ; | |
9170 | char *kwnames[] = { | |
9171 | (char *) "self",(char *) "line", NULL | |
9172 | }; | |
9173 | ||
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9177 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9178 | if (PyErr_Occurred()) SWIG_fail; | |
9179 | { | |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9182 | ||
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) SWIG_fail; | |
9185 | } | |
9186 | { | |
9187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9188 | } | |
9189 | return resultobj; | |
9190 | fail: | |
9191 | return NULL; | |
9192 | } | |
9193 | ||
9194 | ||
9195 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9196 | PyObject *resultobj; | |
9197 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9198 | int arg2 ; | |
9199 | bool result; | |
9200 | PyObject * obj0 = 0 ; | |
9201 | PyObject * obj1 = 0 ; | |
9202 | char *kwnames[] = { | |
9203 | (char *) "self",(char *) "lines", NULL | |
9204 | }; | |
9205 | ||
9206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9209 | arg2 = (int) SWIG_AsInt(obj1); | |
9210 | if (PyErr_Occurred()) SWIG_fail; | |
9211 | { | |
9212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9213 | result = (bool)(arg1)->ScrollLines(arg2); | |
9214 | ||
9215 | wxPyEndAllowThreads(__tstate); | |
9216 | if (PyErr_Occurred()) SWIG_fail; | |
9217 | } | |
9218 | { | |
9219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9220 | } | |
9221 | return resultobj; | |
9222 | fail: | |
9223 | return NULL; | |
9224 | } | |
9225 | ||
9226 | ||
9227 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9228 | PyObject *resultobj; | |
9229 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9230 | int arg2 ; | |
9231 | bool result; | |
9232 | PyObject * obj0 = 0 ; | |
9233 | PyObject * obj1 = 0 ; | |
9234 | char *kwnames[] = { | |
9235 | (char *) "self",(char *) "pages", NULL | |
9236 | }; | |
9237 | ||
9238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9241 | arg2 = (int) SWIG_AsInt(obj1); | |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
9243 | { | |
9244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9245 | result = (bool)(arg1)->ScrollPages(arg2); | |
9246 | ||
9247 | wxPyEndAllowThreads(__tstate); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | } | |
9250 | { | |
9251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9252 | } | |
9253 | return resultobj; | |
9254 | fail: | |
9255 | return NULL; | |
9256 | } | |
9257 | ||
9258 | ||
9259 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9260 | PyObject *resultobj; | |
9261 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9262 | size_t arg2 ; | |
9263 | PyObject * obj0 = 0 ; | |
9264 | PyObject * obj1 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self",(char *) "line", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9272 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
9274 | { | |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | (arg1)->RefreshLine(arg2); | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
9281 | Py_INCREF(Py_None); resultobj = Py_None; | |
9282 | return resultobj; | |
9283 | fail: | |
9284 | return NULL; | |
9285 | } | |
9286 | ||
9287 | ||
9288 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9289 | PyObject *resultobj; | |
9290 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9291 | size_t arg2 ; | |
9292 | size_t arg3 ; | |
9293 | PyObject * obj0 = 0 ; | |
9294 | PyObject * obj1 = 0 ; | |
9295 | PyObject * obj2 = 0 ; | |
9296 | char *kwnames[] = { | |
9297 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9298 | }; | |
9299 | ||
9300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9303 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9304 | if (PyErr_Occurred()) SWIG_fail; | |
9305 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | { | |
9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9309 | (arg1)->RefreshLines(arg2,arg3); | |
9310 | ||
9311 | wxPyEndAllowThreads(__tstate); | |
9312 | if (PyErr_Occurred()) SWIG_fail; | |
9313 | } | |
9314 | Py_INCREF(Py_None); resultobj = Py_None; | |
9315 | return resultobj; | |
9316 | fail: | |
9317 | return NULL; | |
9318 | } | |
9319 | ||
9320 | ||
9321 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9322 | PyObject *resultobj; | |
9323 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9324 | int arg2 ; | |
9325 | int arg3 ; | |
9326 | int result; | |
9327 | PyObject * obj0 = 0 ; | |
9328 | PyObject * obj1 = 0 ; | |
9329 | PyObject * obj2 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9337 | arg2 = (int) SWIG_AsInt(obj1); | |
9338 | if (PyErr_Occurred()) SWIG_fail; | |
9339 | arg3 = (int) SWIG_AsInt(obj2); | |
9340 | if (PyErr_Occurred()) SWIG_fail; | |
9341 | { | |
9342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9343 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9344 | ||
9345 | wxPyEndAllowThreads(__tstate); | |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
9347 | } | |
9348 | resultobj = SWIG_FromInt((int)result); | |
9349 | return resultobj; | |
9350 | fail: | |
9351 | return NULL; | |
9352 | } | |
9353 | ||
9354 | ||
9355 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9356 | PyObject *resultobj; | |
9357 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9358 | wxPoint *arg2 = 0 ; | |
9359 | int result; | |
9360 | wxPoint temp2 ; | |
9361 | PyObject * obj0 = 0 ; | |
9362 | PyObject * obj1 = 0 ; | |
9363 | char *kwnames[] = { | |
9364 | (char *) "self",(char *) "pt", NULL | |
9365 | }; | |
9366 | ||
9367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9370 | { | |
9371 | arg2 = &temp2; | |
9372 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9373 | } | |
9374 | { | |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | resultobj = SWIG_FromInt((int)result); | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj; | |
9390 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9391 | PyObject * obj0 = 0 ; | |
9392 | char *kwnames[] = { | |
9393 | (char *) "self", NULL | |
9394 | }; | |
9395 | ||
9396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9399 | { | |
9400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9401 | (arg1)->RefreshAll(); | |
9402 | ||
9403 | wxPyEndAllowThreads(__tstate); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
9406 | Py_INCREF(Py_None); resultobj = Py_None; | |
9407 | return resultobj; | |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
9413 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9414 | PyObject *resultobj; | |
9415 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9416 | size_t result; | |
9417 | PyObject * obj0 = 0 ; | |
9418 | char *kwnames[] = { | |
9419 | (char *) "self", NULL | |
9420 | }; | |
9421 | ||
9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9425 | { | |
9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9427 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9428 | ||
9429 | wxPyEndAllowThreads(__tstate); | |
9430 | if (PyErr_Occurred()) SWIG_fail; | |
9431 | } | |
9432 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9433 | return resultobj; | |
9434 | fail: | |
9435 | return NULL; | |
9436 | } | |
9437 | ||
9438 | ||
9439 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9440 | PyObject *resultobj; | |
9441 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9442 | size_t result; | |
9443 | PyObject * obj0 = 0 ; | |
9444 | char *kwnames[] = { | |
9445 | (char *) "self", NULL | |
9446 | }; | |
9447 | ||
9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9451 | { | |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9459 | return resultobj; | |
9460 | fail: | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
9465 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject *resultobj; | |
9467 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9468 | size_t result; | |
9469 | PyObject * obj0 = 0 ; | |
9470 | char *kwnames[] = { | |
9471 | (char *) "self", NULL | |
9472 | }; | |
9473 | ||
9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9477 | { | |
9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9479 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9480 | ||
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9485 | return resultobj; | |
9486 | fail: | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9494 | size_t arg2 ; | |
9495 | bool result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | PyObject * obj1 = 0 ; | |
9498 | char *kwnames[] = { | |
9499 | (char *) "self",(char *) "line", NULL | |
9500 | }; | |
9501 | ||
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9505 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9506 | if (PyErr_Occurred()) SWIG_fail; | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | { | |
9515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9516 | } | |
9517 | return resultobj; | |
9518 | fail: | |
9519 | return NULL; | |
9520 | } | |
9521 | ||
9522 | ||
9523 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9524 | PyObject *obj; | |
9525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9526 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9527 | Py_INCREF(obj); | |
9528 | return Py_BuildValue((char *)""); | |
9529 | } | |
9530 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9531 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9532 | return 1; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9537 | PyObject *pyobj; | |
9538 | ||
9539 | { | |
9540 | #if wxUSE_UNICODE | |
9541 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9542 | #else | |
9543 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9544 | #endif | |
9545 | } | |
9546 | return pyobj; | |
9547 | } | |
9548 | ||
9549 | ||
9550 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9551 | PyObject *resultobj; | |
9552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9553 | int arg2 = (int) wxID_ANY ; | |
9554 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9555 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9556 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9557 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9558 | long arg5 = (long) 0 ; | |
9559 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9560 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9561 | wxPyVListBox *result; | |
9562 | wxPoint temp3 ; | |
9563 | wxSize temp4 ; | |
9564 | bool temp6 = False ; | |
9565 | PyObject * obj0 = 0 ; | |
9566 | PyObject * obj1 = 0 ; | |
9567 | PyObject * obj2 = 0 ; | |
9568 | PyObject * obj3 = 0 ; | |
9569 | PyObject * obj4 = 0 ; | |
9570 | PyObject * obj5 = 0 ; | |
9571 | char *kwnames[] = { | |
9572 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9573 | }; | |
9574 | ||
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9578 | if (obj1) { | |
9579 | arg2 = (int) SWIG_AsInt(obj1); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | if (obj2) { | |
9583 | { | |
9584 | arg3 = &temp3; | |
9585 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9586 | } | |
9587 | } | |
9588 | if (obj3) { | |
9589 | { | |
9590 | arg4 = &temp4; | |
9591 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9592 | } | |
9593 | } | |
9594 | if (obj4) { | |
9595 | arg5 = (long) SWIG_AsLong(obj4); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
9598 | if (obj5) { | |
9599 | { | |
9600 | arg6 = wxString_in_helper(obj5); | |
9601 | if (arg6 == NULL) SWIG_fail; | |
9602 | temp6 = True; | |
9603 | } | |
9604 | } | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
9612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9613 | { | |
9614 | if (temp6) | |
9615 | delete arg6; | |
9616 | } | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | { | |
9620 | if (temp6) | |
9621 | delete arg6; | |
9622 | } | |
9623 | return NULL; | |
9624 | } | |
9625 | ||
9626 | ||
9627 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9628 | PyObject *resultobj; | |
9629 | wxPyVListBox *result; | |
9630 | char *kwnames[] = { | |
9631 | NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9635 | { | |
9636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9637 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9638 | ||
9639 | wxPyEndAllowThreads(__tstate); | |
9640 | if (PyErr_Occurred()) SWIG_fail; | |
9641 | } | |
9642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9643 | return resultobj; | |
9644 | fail: | |
9645 | return NULL; | |
9646 | } | |
9647 | ||
9648 | ||
9649 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9650 | PyObject *resultobj; | |
9651 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9652 | PyObject *arg2 = (PyObject *) 0 ; | |
9653 | PyObject *arg3 = (PyObject *) 0 ; | |
9654 | PyObject * obj0 = 0 ; | |
9655 | PyObject * obj1 = 0 ; | |
9656 | PyObject * obj2 = 0 ; | |
9657 | char *kwnames[] = { | |
9658 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9659 | }; | |
9660 | ||
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9664 | arg2 = obj1; | |
9665 | arg3 = obj2; | |
9666 | { | |
9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9668 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9669 | ||
9670 | wxPyEndAllowThreads(__tstate); | |
9671 | if (PyErr_Occurred()) SWIG_fail; | |
9672 | } | |
9673 | Py_INCREF(Py_None); resultobj = Py_None; | |
9674 | return resultobj; | |
9675 | fail: | |
9676 | return NULL; | |
9677 | } | |
9678 | ||
9679 | ||
9680 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9681 | PyObject *resultobj; | |
9682 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9683 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9684 | int arg3 = (int) wxID_ANY ; | |
9685 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9686 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9687 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9688 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9689 | long arg6 = (long) 0 ; | |
9690 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9691 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9692 | bool result; | |
9693 | wxPoint temp4 ; | |
9694 | wxSize temp5 ; | |
9695 | bool temp7 = False ; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | PyObject * obj1 = 0 ; | |
9698 | PyObject * obj2 = 0 ; | |
9699 | PyObject * obj3 = 0 ; | |
9700 | PyObject * obj4 = 0 ; | |
9701 | PyObject * obj5 = 0 ; | |
9702 | PyObject * obj6 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9710 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9712 | if (obj2) { | |
9713 | arg3 = (int) SWIG_AsInt(obj2); | |
9714 | if (PyErr_Occurred()) SWIG_fail; | |
9715 | } | |
9716 | if (obj3) { | |
9717 | { | |
9718 | arg4 = &temp4; | |
9719 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9720 | } | |
9721 | } | |
9722 | if (obj4) { | |
9723 | { | |
9724 | arg5 = &temp5; | |
9725 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9726 | } | |
9727 | } | |
9728 | if (obj5) { | |
9729 | arg6 = (long) SWIG_AsLong(obj5); | |
9730 | if (PyErr_Occurred()) SWIG_fail; | |
9731 | } | |
9732 | if (obj6) { | |
9733 | { | |
9734 | arg7 = wxString_in_helper(obj6); | |
9735 | if (arg7 == NULL) SWIG_fail; | |
9736 | temp7 = True; | |
9737 | } | |
9738 | } | |
9739 | { | |
9740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9741 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9742 | ||
9743 | wxPyEndAllowThreads(__tstate); | |
9744 | if (PyErr_Occurred()) SWIG_fail; | |
9745 | } | |
9746 | { | |
9747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9748 | } | |
9749 | { | |
9750 | if (temp7) | |
9751 | delete arg7; | |
9752 | } | |
9753 | return resultobj; | |
9754 | fail: | |
9755 | { | |
9756 | if (temp7) | |
9757 | delete arg7; | |
9758 | } | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
9763 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9764 | PyObject *resultobj; | |
9765 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9766 | size_t result; | |
9767 | PyObject * obj0 = 0 ; | |
9768 | char *kwnames[] = { | |
9769 | (char *) "self", NULL | |
9770 | }; | |
9771 | ||
9772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9775 | { | |
9776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9777 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9778 | ||
9779 | wxPyEndAllowThreads(__tstate); | |
9780 | if (PyErr_Occurred()) SWIG_fail; | |
9781 | } | |
9782 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9783 | return resultobj; | |
9784 | fail: | |
9785 | return NULL; | |
9786 | } | |
9787 | ||
9788 | ||
9789 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9790 | PyObject *resultobj; | |
9791 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9792 | bool result; | |
9793 | PyObject * obj0 = 0 ; | |
9794 | char *kwnames[] = { | |
9795 | (char *) "self", NULL | |
9796 | }; | |
9797 | ||
9798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9801 | { | |
9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9803 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9804 | ||
9805 | wxPyEndAllowThreads(__tstate); | |
9806 | if (PyErr_Occurred()) SWIG_fail; | |
9807 | } | |
9808 | { | |
9809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9810 | } | |
9811 | return resultobj; | |
9812 | fail: | |
9813 | return NULL; | |
9814 | } | |
9815 | ||
9816 | ||
9817 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9818 | PyObject *resultobj; | |
9819 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9820 | int result; | |
9821 | PyObject * obj0 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9829 | { | |
9830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9831 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9832 | ||
9833 | wxPyEndAllowThreads(__tstate); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
9836 | resultobj = SWIG_FromInt((int)result); | |
9837 | return resultobj; | |
9838 | fail: | |
9839 | return NULL; | |
9840 | } | |
9841 | ||
9842 | ||
9843 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9844 | PyObject *resultobj; | |
9845 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9846 | size_t arg2 ; | |
9847 | bool result; | |
9848 | PyObject * obj0 = 0 ; | |
9849 | PyObject * obj1 = 0 ; | |
9850 | char *kwnames[] = { | |
9851 | (char *) "self",(char *) "item", NULL | |
9852 | }; | |
9853 | ||
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9857 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | { | |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9861 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9862 | ||
9863 | wxPyEndAllowThreads(__tstate); | |
9864 | if (PyErr_Occurred()) SWIG_fail; | |
9865 | } | |
9866 | { | |
9867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9868 | } | |
9869 | return resultobj; | |
9870 | fail: | |
9871 | return NULL; | |
9872 | } | |
9873 | ||
9874 | ||
9875 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9876 | PyObject *resultobj; | |
9877 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9878 | size_t arg2 ; | |
9879 | bool result; | |
9880 | PyObject * obj0 = 0 ; | |
9881 | PyObject * obj1 = 0 ; | |
9882 | char *kwnames[] = { | |
9883 | (char *) "self",(char *) "item", NULL | |
9884 | }; | |
9885 | ||
9886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9889 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9890 | if (PyErr_Occurred()) SWIG_fail; | |
9891 | { | |
9892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9893 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
9894 | ||
9895 | wxPyEndAllowThreads(__tstate); | |
9896 | if (PyErr_Occurred()) SWIG_fail; | |
9897 | } | |
9898 | { | |
9899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9900 | } | |
9901 | return resultobj; | |
9902 | fail: | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
9907 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9908 | PyObject *resultobj; | |
9909 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9910 | size_t result; | |
9911 | PyObject * obj0 = 0 ; | |
9912 | char *kwnames[] = { | |
9913 | (char *) "self", NULL | |
9914 | }; | |
9915 | ||
9916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
9917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
9922 | ||
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
9926 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9927 | return resultobj; | |
9928 | fail: | |
9929 | return NULL; | |
9930 | } | |
9931 | ||
9932 | ||
9933 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9934 | PyObject *resultobj; | |
9935 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9936 | unsigned long *arg2 = 0 ; | |
9937 | int result; | |
9938 | PyObject * obj0 = 0 ; | |
9939 | PyObject * obj1 = 0 ; | |
9940 | char *kwnames[] = { | |
9941 | (char *) "self",(char *) "cookie", NULL | |
9942 | }; | |
9943 | ||
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
9945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9949 | SWIG_fail; | |
9950 | if (arg2 == NULL) { | |
9951 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9952 | SWIG_fail; | |
9953 | } | |
9954 | { | |
9955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9956 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
9957 | ||
9958 | wxPyEndAllowThreads(__tstate); | |
9959 | if (PyErr_Occurred()) SWIG_fail; | |
9960 | } | |
9961 | resultobj = SWIG_FromInt((int)result); | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | return NULL; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject *resultobj; | |
9970 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9971 | unsigned long *arg2 = 0 ; | |
9972 | int result; | |
9973 | PyObject * obj0 = 0 ; | |
9974 | PyObject * obj1 = 0 ; | |
9975 | char *kwnames[] = { | |
9976 | (char *) "self",(char *) "cookie", NULL | |
9977 | }; | |
9978 | ||
9979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
9980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
9983 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9984 | SWIG_fail; | |
9985 | if (arg2 == NULL) { | |
9986 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9987 | SWIG_fail; | |
9988 | } | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | resultobj = SWIG_FromInt((int)result); | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | return NULL; | |
10000 | } | |
10001 | ||
10002 | ||
10003 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10004 | PyObject *resultobj; | |
10005 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10006 | wxPoint result; | |
10007 | PyObject * obj0 = 0 ; | |
10008 | char *kwnames[] = { | |
10009 | (char *) "self", NULL | |
10010 | }; | |
10011 | ||
10012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
10013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10015 | { | |
10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10017 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
10018 | ||
10019 | wxPyEndAllowThreads(__tstate); | |
10020 | if (PyErr_Occurred()) SWIG_fail; | |
10021 | } | |
10022 | { | |
10023 | wxPoint * resultptr; | |
10024 | resultptr = new wxPoint((wxPoint &) result); | |
10025 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10026 | } | |
10027 | return resultobj; | |
10028 | fail: | |
10029 | return NULL; | |
10030 | } | |
10031 | ||
10032 | ||
10033 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10034 | PyObject *resultobj; | |
10035 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10036 | wxColour *result; | |
10037 | PyObject * obj0 = 0 ; | |
10038 | char *kwnames[] = { | |
10039 | (char *) "self", NULL | |
10040 | }; | |
10041 | ||
10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10045 | { | |
10046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10047 | { | |
10048 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10049 | result = (wxColour *) &_result_ref; | |
10050 | } | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10056 | return resultobj; | |
10057 | fail: | |
10058 | return NULL; | |
10059 | } | |
10060 | ||
10061 | ||
10062 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10063 | PyObject *resultobj; | |
10064 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10065 | size_t arg2 ; | |
10066 | PyObject * obj0 = 0 ; | |
10067 | PyObject * obj1 = 0 ; | |
10068 | char *kwnames[] = { | |
10069 | (char *) "self",(char *) "count", NULL | |
10070 | }; | |
10071 | ||
10072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10075 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10076 | if (PyErr_Occurred()) SWIG_fail; | |
10077 | { | |
10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10079 | (arg1)->SetItemCount(arg2); | |
10080 | ||
10081 | wxPyEndAllowThreads(__tstate); | |
10082 | if (PyErr_Occurred()) SWIG_fail; | |
10083 | } | |
10084 | Py_INCREF(Py_None); resultobj = Py_None; | |
10085 | return resultobj; | |
10086 | fail: | |
10087 | return NULL; | |
10088 | } | |
10089 | ||
10090 | ||
10091 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10092 | PyObject *resultobj; | |
10093 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10094 | PyObject * obj0 = 0 ; | |
10095 | char *kwnames[] = { | |
10096 | (char *) "self", NULL | |
10097 | }; | |
10098 | ||
10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10102 | { | |
10103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10104 | (arg1)->Clear(); | |
10105 | ||
10106 | wxPyEndAllowThreads(__tstate); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | Py_INCREF(Py_None); resultobj = Py_None; | |
10110 | return resultobj; | |
10111 | fail: | |
10112 | return NULL; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject *resultobj; | |
10118 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10119 | int arg2 ; | |
10120 | PyObject * obj0 = 0 ; | |
10121 | PyObject * obj1 = 0 ; | |
10122 | char *kwnames[] = { | |
10123 | (char *) "self",(char *) "selection", NULL | |
10124 | }; | |
10125 | ||
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10129 | arg2 = (int) SWIG_AsInt(obj1); | |
10130 | if (PyErr_Occurred()) SWIG_fail; | |
10131 | { | |
10132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10133 | (arg1)->SetSelection(arg2); | |
10134 | ||
10135 | wxPyEndAllowThreads(__tstate); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | Py_INCREF(Py_None); resultobj = Py_None; | |
10139 | return resultobj; | |
10140 | fail: | |
10141 | return NULL; | |
10142 | } | |
10143 | ||
10144 | ||
10145 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10146 | PyObject *resultobj; | |
10147 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10148 | size_t arg2 ; | |
10149 | bool arg3 = (bool) True ; | |
10150 | bool result; | |
10151 | PyObject * obj0 = 0 ; | |
10152 | PyObject * obj1 = 0 ; | |
10153 | PyObject * obj2 = 0 ; | |
10154 | char *kwnames[] = { | |
10155 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10156 | }; | |
10157 | ||
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10161 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10162 | if (PyErr_Occurred()) SWIG_fail; | |
10163 | if (obj2) { | |
10164 | arg3 = (bool) SWIG_AsBool(obj2); | |
10165 | if (PyErr_Occurred()) SWIG_fail; | |
10166 | } | |
10167 | { | |
10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10169 | result = (bool)(arg1)->Select(arg2,arg3); | |
10170 | ||
10171 | wxPyEndAllowThreads(__tstate); | |
10172 | if (PyErr_Occurred()) SWIG_fail; | |
10173 | } | |
10174 | { | |
10175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10176 | } | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj; | |
10185 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10186 | size_t arg2 ; | |
10187 | size_t arg3 ; | |
10188 | bool result; | |
10189 | PyObject * obj0 = 0 ; | |
10190 | PyObject * obj1 = 0 ; | |
10191 | PyObject * obj2 = 0 ; | |
10192 | char *kwnames[] = { | |
10193 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10194 | }; | |
10195 | ||
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10199 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | { | |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10205 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10206 | ||
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
10210 | { | |
10211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10212 | } | |
10213 | return resultobj; | |
10214 | fail: | |
10215 | return NULL; | |
10216 | } | |
10217 | ||
10218 | ||
10219 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10220 | PyObject *resultobj; | |
10221 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10222 | size_t arg2 ; | |
10223 | PyObject * obj0 = 0 ; | |
10224 | PyObject * obj1 = 0 ; | |
10225 | char *kwnames[] = { | |
10226 | (char *) "self",(char *) "item", NULL | |
10227 | }; | |
10228 | ||
10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10232 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | { | |
10235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10236 | (arg1)->Toggle(arg2); | |
10237 | ||
10238 | wxPyEndAllowThreads(__tstate); | |
10239 | if (PyErr_Occurred()) SWIG_fail; | |
10240 | } | |
10241 | Py_INCREF(Py_None); resultobj = Py_None; | |
10242 | return resultobj; | |
10243 | fail: | |
10244 | return NULL; | |
10245 | } | |
10246 | ||
10247 | ||
10248 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10249 | PyObject *resultobj; | |
10250 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10251 | bool result; | |
10252 | PyObject * obj0 = 0 ; | |
10253 | char *kwnames[] = { | |
10254 | (char *) "self", NULL | |
10255 | }; | |
10256 | ||
10257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10260 | { | |
10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10262 | result = (bool)(arg1)->SelectAll(); | |
10263 | ||
10264 | wxPyEndAllowThreads(__tstate); | |
10265 | if (PyErr_Occurred()) SWIG_fail; | |
10266 | } | |
10267 | { | |
10268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10269 | } | |
10270 | return resultobj; | |
10271 | fail: | |
10272 | return NULL; | |
10273 | } | |
10274 | ||
10275 | ||
10276 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject *resultobj; | |
10278 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10279 | bool result; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10288 | { | |
10289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10290 | result = (bool)(arg1)->DeselectAll(); | |
10291 | ||
10292 | wxPyEndAllowThreads(__tstate); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | { | |
10296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10297 | } | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
10304 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10305 | PyObject *resultobj; | |
10306 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10307 | wxPoint *arg2 = 0 ; | |
10308 | wxPoint temp2 ; | |
10309 | PyObject * obj0 = 0 ; | |
10310 | PyObject * obj1 = 0 ; | |
10311 | char *kwnames[] = { | |
10312 | (char *) "self",(char *) "pt", NULL | |
10313 | }; | |
10314 | ||
10315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10318 | { | |
10319 | arg2 = &temp2; | |
10320 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10321 | } | |
10322 | { | |
10323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10324 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10325 | ||
10326 | wxPyEndAllowThreads(__tstate); | |
10327 | if (PyErr_Occurred()) SWIG_fail; | |
10328 | } | |
10329 | Py_INCREF(Py_None); resultobj = Py_None; | |
10330 | return resultobj; | |
10331 | fail: | |
10332 | return NULL; | |
10333 | } | |
10334 | ||
10335 | ||
10336 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10337 | PyObject *resultobj; | |
10338 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10339 | int arg2 ; | |
10340 | int arg3 ; | |
10341 | PyObject * obj0 = 0 ; | |
10342 | PyObject * obj1 = 0 ; | |
10343 | PyObject * obj2 = 0 ; | |
10344 | char *kwnames[] = { | |
10345 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10346 | }; | |
10347 | ||
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10351 | arg2 = (int) SWIG_AsInt(obj1); | |
10352 | if (PyErr_Occurred()) SWIG_fail; | |
10353 | arg3 = (int) SWIG_AsInt(obj2); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | { | |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | (arg1)->SetMargins(arg2,arg3); | |
10358 | ||
10359 | wxPyEndAllowThreads(__tstate); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
10362 | Py_INCREF(Py_None); resultobj = Py_None; | |
10363 | return resultobj; | |
10364 | fail: | |
10365 | return NULL; | |
10366 | } | |
10367 | ||
10368 | ||
10369 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject *resultobj; | |
10371 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10372 | wxColour *arg2 = 0 ; | |
10373 | wxColour temp2 ; | |
10374 | PyObject * obj0 = 0 ; | |
10375 | PyObject * obj1 = 0 ; | |
10376 | char *kwnames[] = { | |
10377 | (char *) "self",(char *) "col", NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10383 | { | |
10384 | arg2 = &temp2; | |
10385 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10386 | } | |
10387 | { | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10390 | ||
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | Py_INCREF(Py_None); resultobj = Py_None; | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10402 | PyObject *obj; | |
10403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10404 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10405 | Py_INCREF(obj); | |
10406 | return Py_BuildValue((char *)""); | |
10407 | } | |
10408 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10409 | PyObject *resultobj; | |
10410 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10411 | int arg2 = (int) wxID_ANY ; | |
10412 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10413 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10414 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10415 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10416 | long arg5 = (long) 0 ; | |
10417 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10418 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10419 | wxPyHtmlListBox *result; | |
10420 | wxPoint temp3 ; | |
10421 | wxSize temp4 ; | |
10422 | bool temp6 = False ; | |
10423 | PyObject * obj0 = 0 ; | |
10424 | PyObject * obj1 = 0 ; | |
10425 | PyObject * obj2 = 0 ; | |
10426 | PyObject * obj3 = 0 ; | |
10427 | PyObject * obj4 = 0 ; | |
10428 | PyObject * obj5 = 0 ; | |
10429 | char *kwnames[] = { | |
10430 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10431 | }; | |
10432 | ||
10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10436 | if (obj1) { | |
10437 | arg2 = (int) SWIG_AsInt(obj1); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | if (obj2) { | |
10441 | { | |
10442 | arg3 = &temp3; | |
10443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10444 | } | |
10445 | } | |
10446 | if (obj3) { | |
10447 | { | |
10448 | arg4 = &temp4; | |
10449 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10450 | } | |
10451 | } | |
10452 | if (obj4) { | |
10453 | arg5 = (long) SWIG_AsLong(obj4); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | } | |
10456 | if (obj5) { | |
10457 | { | |
10458 | arg6 = wxString_in_helper(obj5); | |
10459 | if (arg6 == NULL) SWIG_fail; | |
10460 | temp6 = True; | |
10461 | } | |
10462 | } | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10465 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10466 | ||
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
10470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10471 | { | |
10472 | if (temp6) | |
10473 | delete arg6; | |
10474 | } | |
10475 | return resultobj; | |
10476 | fail: | |
10477 | { | |
10478 | if (temp6) | |
10479 | delete arg6; | |
10480 | } | |
10481 | return NULL; | |
10482 | } | |
10483 | ||
10484 | ||
10485 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10486 | PyObject *resultobj; | |
10487 | wxPyHtmlListBox *result; | |
10488 | char *kwnames[] = { | |
10489 | NULL | |
10490 | }; | |
10491 | ||
10492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10493 | { | |
10494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10495 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10496 | ||
10497 | wxPyEndAllowThreads(__tstate); | |
10498 | if (PyErr_Occurred()) SWIG_fail; | |
10499 | } | |
10500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | return NULL; | |
10504 | } | |
10505 | ||
10506 | ||
10507 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10508 | PyObject *resultobj; | |
10509 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10510 | PyObject *arg2 = (PyObject *) 0 ; | |
10511 | PyObject *arg3 = (PyObject *) 0 ; | |
10512 | PyObject * obj0 = 0 ; | |
10513 | PyObject * obj1 = 0 ; | |
10514 | PyObject * obj2 = 0 ; | |
10515 | char *kwnames[] = { | |
10516 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10517 | }; | |
10518 | ||
10519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10522 | arg2 = obj1; | |
10523 | arg3 = obj2; | |
10524 | { | |
10525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10526 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10527 | ||
10528 | wxPyEndAllowThreads(__tstate); | |
10529 | if (PyErr_Occurred()) SWIG_fail; | |
10530 | } | |
10531 | Py_INCREF(Py_None); resultobj = Py_None; | |
10532 | return resultobj; | |
10533 | fail: | |
10534 | return NULL; | |
10535 | } | |
10536 | ||
10537 | ||
10538 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10539 | PyObject *resultobj; | |
10540 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10541 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10542 | int arg3 = (int) wxID_ANY ; | |
10543 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10544 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10545 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10546 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10547 | long arg6 = (long) 0 ; | |
10548 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10549 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10550 | bool result; | |
10551 | wxPoint temp4 ; | |
10552 | wxSize temp5 ; | |
10553 | bool temp7 = False ; | |
10554 | PyObject * obj0 = 0 ; | |
10555 | PyObject * obj1 = 0 ; | |
10556 | PyObject * obj2 = 0 ; | |
10557 | PyObject * obj3 = 0 ; | |
10558 | PyObject * obj4 = 0 ; | |
10559 | PyObject * obj5 = 0 ; | |
10560 | PyObject * obj6 = 0 ; | |
10561 | char *kwnames[] = { | |
10562 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10563 | }; | |
10564 | ||
10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10568 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10570 | if (obj2) { | |
10571 | arg3 = (int) SWIG_AsInt(obj2); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | if (obj3) { | |
10575 | { | |
10576 | arg4 = &temp4; | |
10577 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10578 | } | |
10579 | } | |
10580 | if (obj4) { | |
10581 | { | |
10582 | arg5 = &temp5; | |
10583 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10584 | } | |
10585 | } | |
10586 | if (obj5) { | |
10587 | arg6 = (long) SWIG_AsLong(obj5); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | if (obj6) { | |
10591 | { | |
10592 | arg7 = wxString_in_helper(obj6); | |
10593 | if (arg7 == NULL) SWIG_fail; | |
10594 | temp7 = True; | |
10595 | } | |
10596 | } | |
10597 | { | |
10598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10599 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10600 | ||
10601 | wxPyEndAllowThreads(__tstate); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | } | |
10604 | { | |
10605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10606 | } | |
10607 | { | |
10608 | if (temp7) | |
10609 | delete arg7; | |
10610 | } | |
10611 | return resultobj; | |
10612 | fail: | |
10613 | { | |
10614 | if (temp7) | |
10615 | delete arg7; | |
10616 | } | |
10617 | return NULL; | |
10618 | } | |
10619 | ||
10620 | ||
10621 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10622 | PyObject *resultobj; | |
10623 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10624 | PyObject * obj0 = 0 ; | |
10625 | char *kwnames[] = { | |
10626 | (char *) "self", NULL | |
10627 | }; | |
10628 | ||
10629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10632 | { | |
10633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10634 | (arg1)->RefreshAll(); | |
10635 | ||
10636 | wxPyEndAllowThreads(__tstate); | |
10637 | if (PyErr_Occurred()) SWIG_fail; | |
10638 | } | |
10639 | Py_INCREF(Py_None); resultobj = Py_None; | |
10640 | return resultobj; | |
10641 | fail: | |
10642 | return NULL; | |
10643 | } | |
10644 | ||
10645 | ||
10646 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10647 | PyObject *resultobj; | |
10648 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10649 | size_t arg2 ; | |
10650 | PyObject * obj0 = 0 ; | |
10651 | PyObject * obj1 = 0 ; | |
10652 | char *kwnames[] = { | |
10653 | (char *) "self",(char *) "count", NULL | |
10654 | }; | |
10655 | ||
10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10659 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10660 | if (PyErr_Occurred()) SWIG_fail; | |
10661 | { | |
10662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10663 | (arg1)->SetItemCount(arg2); | |
10664 | ||
10665 | wxPyEndAllowThreads(__tstate); | |
10666 | if (PyErr_Occurred()) SWIG_fail; | |
10667 | } | |
10668 | Py_INCREF(Py_None); resultobj = Py_None; | |
10669 | return resultobj; | |
10670 | fail: | |
10671 | return NULL; | |
10672 | } | |
10673 | ||
10674 | ||
d6c14a4c RD |
10675 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { |
10676 | PyObject *resultobj; | |
10677 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10678 | wxFileSystem *result; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | char *kwnames[] = { | |
10681 | (char *) "self", NULL | |
10682 | }; | |
10683 | ||
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10687 | { | |
10688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10689 | { | |
10690 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10691 | result = (wxFileSystem *) &_result_ref; | |
10692 | } | |
10693 | ||
10694 | wxPyEndAllowThreads(__tstate); | |
10695 | if (PyErr_Occurred()) SWIG_fail; | |
10696 | } | |
10697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10698 | return resultobj; | |
10699 | fail: | |
10700 | return NULL; | |
10701 | } | |
10702 | ||
10703 | ||
d55e5bfc RD |
10704 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { |
10705 | PyObject *obj; | |
10706 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10707 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10708 | Py_INCREF(obj); | |
10709 | return Py_BuildValue((char *)""); | |
10710 | } | |
10711 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10712 | PyObject *resultobj; | |
10713 | wxTaskBarIcon *result; | |
10714 | char *kwnames[] = { | |
10715 | NULL | |
10716 | }; | |
10717 | ||
10718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10719 | { | |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10722 | ||
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
10726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10727 | return resultobj; | |
10728 | fail: | |
10729 | return NULL; | |
10730 | } | |
10731 | ||
10732 | ||
10733 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10734 | PyObject *resultobj; | |
10735 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10736 | PyObject * obj0 = 0 ; | |
10737 | char *kwnames[] = { | |
10738 | (char *) "self", NULL | |
10739 | }; | |
10740 | ||
10741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10744 | { | |
10745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10746 | delete arg1; | |
10747 | ||
10748 | wxPyEndAllowThreads(__tstate); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | } | |
10751 | Py_INCREF(Py_None); resultobj = Py_None; | |
10752 | return resultobj; | |
10753 | fail: | |
10754 | return NULL; | |
10755 | } | |
10756 | ||
10757 | ||
10758 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10759 | PyObject *resultobj; | |
10760 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10761 | PyObject * obj0 = 0 ; | |
10762 | char *kwnames[] = { | |
10763 | (char *) "self", NULL | |
10764 | }; | |
10765 | ||
10766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
10767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10769 | { | |
10770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10771 | wxTaskBarIcon_Destroy(arg1); | |
10772 | ||
10773 | wxPyEndAllowThreads(__tstate); | |
10774 | if (PyErr_Occurred()) SWIG_fail; | |
10775 | } | |
10776 | Py_INCREF(Py_None); resultobj = Py_None; | |
10777 | return resultobj; | |
10778 | fail: | |
10779 | return NULL; | |
10780 | } | |
10781 | ||
10782 | ||
10783 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
10784 | PyObject *obj; | |
10785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10786 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
10787 | Py_INCREF(obj); | |
10788 | return Py_BuildValue((char *)""); | |
10789 | } | |
10790 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject *resultobj; | |
10792 | wxEventType arg1 ; | |
10793 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
10794 | wxTaskBarIconEvent *result; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | PyObject * obj1 = 0 ; | |
10797 | char *kwnames[] = { | |
10798 | (char *) "evtType",(char *) "tbIcon", NULL | |
10799 | }; | |
10800 | ||
10801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
10802 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10803 | if (PyErr_Occurred()) SWIG_fail; | |
10804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
10805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10806 | { | |
10807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10808 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
10809 | ||
10810 | wxPyEndAllowThreads(__tstate); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
10813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
10814 | return resultobj; | |
10815 | fail: | |
10816 | return NULL; | |
10817 | } | |
10818 | ||
10819 | ||
10820 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
10821 | PyObject *obj; | |
10822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10823 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
10824 | Py_INCREF(obj); | |
10825 | return Py_BuildValue((char *)""); | |
10826 | } | |
10827 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
10828 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
10829 | return 1; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
10834 | PyObject *pyobj; | |
10835 | ||
10836 | { | |
10837 | #if wxUSE_UNICODE | |
10838 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10839 | #else | |
10840 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10841 | #endif | |
10842 | } | |
10843 | return pyobj; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
10848 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
10849 | return 1; | |
10850 | } | |
10851 | ||
10852 | ||
10853 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
10854 | PyObject *pyobj; | |
10855 | ||
10856 | { | |
10857 | #if wxUSE_UNICODE | |
10858 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10859 | #else | |
10860 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10861 | #endif | |
10862 | } | |
10863 | return pyobj; | |
10864 | } | |
10865 | ||
10866 | ||
10867 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
10868 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
10869 | return 1; | |
10870 | } | |
10871 | ||
10872 | ||
10873 | static PyObject *_wrap_DirDialogNameStr_get() { | |
10874 | PyObject *pyobj; | |
10875 | ||
10876 | { | |
10877 | #if wxUSE_UNICODE | |
10878 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10879 | #else | |
10880 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10881 | #endif | |
10882 | } | |
10883 | return pyobj; | |
10884 | } | |
10885 | ||
10886 | ||
10887 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
10888 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
10889 | return 1; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
10894 | PyObject *pyobj; | |
10895 | ||
10896 | { | |
10897 | #if wxUSE_UNICODE | |
10898 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10899 | #else | |
10900 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10901 | #endif | |
10902 | } | |
10903 | return pyobj; | |
10904 | } | |
10905 | ||
10906 | ||
10907 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
10908 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
10909 | return 1; | |
10910 | } | |
10911 | ||
10912 | ||
10913 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
10914 | PyObject *pyobj; | |
10915 | ||
10916 | { | |
10917 | #if wxUSE_UNICODE | |
10918 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10919 | #else | |
10920 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10921 | #endif | |
10922 | } | |
10923 | return pyobj; | |
10924 | } | |
10925 | ||
10926 | ||
10927 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
10928 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
10929 | return 1; | |
10930 | } | |
10931 | ||
10932 | ||
10933 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
10934 | PyObject *pyobj; | |
10935 | ||
10936 | { | |
10937 | #if wxUSE_UNICODE | |
10938 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10939 | #else | |
10940 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10941 | #endif | |
10942 | } | |
10943 | return pyobj; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10948 | PyObject *resultobj; | |
10949 | wxColourData *result; | |
10950 | char *kwnames[] = { | |
10951 | NULL | |
10952 | }; | |
10953 | ||
10954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
10955 | { | |
10956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10957 | result = (wxColourData *)new wxColourData(); | |
10958 | ||
10959 | wxPyEndAllowThreads(__tstate); | |
10960 | if (PyErr_Occurred()) SWIG_fail; | |
10961 | } | |
10962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
10963 | return resultobj; | |
10964 | fail: | |
10965 | return NULL; | |
10966 | } | |
10967 | ||
10968 | ||
10969 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10970 | PyObject *resultobj; | |
10971 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10972 | PyObject * obj0 = 0 ; | |
10973 | char *kwnames[] = { | |
10974 | (char *) "self", NULL | |
10975 | }; | |
10976 | ||
10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
10978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
10979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10980 | { | |
10981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10982 | delete arg1; | |
10983 | ||
10984 | wxPyEndAllowThreads(__tstate); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | Py_INCREF(Py_None); resultobj = Py_None; | |
10988 | return resultobj; | |
10989 | fail: | |
10990 | return NULL; | |
10991 | } | |
10992 | ||
10993 | ||
10994 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10995 | PyObject *resultobj; | |
10996 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10997 | bool result; | |
10998 | PyObject * obj0 = 0 ; | |
10999 | char *kwnames[] = { | |
11000 | (char *) "self", NULL | |
11001 | }; | |
11002 | ||
11003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
11004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11006 | { | |
11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11008 | result = (bool)(arg1)->GetChooseFull(); | |
11009 | ||
11010 | wxPyEndAllowThreads(__tstate); | |
11011 | if (PyErr_Occurred()) SWIG_fail; | |
11012 | } | |
11013 | { | |
11014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11015 | } | |
11016 | return resultobj; | |
11017 | fail: | |
11018 | return NULL; | |
11019 | } | |
11020 | ||
11021 | ||
11022 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj; | |
11024 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11025 | wxColour result; | |
11026 | PyObject * obj0 = 0 ; | |
11027 | char *kwnames[] = { | |
11028 | (char *) "self", NULL | |
11029 | }; | |
11030 | ||
11031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11034 | { | |
11035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11036 | result = (arg1)->GetColour(); | |
11037 | ||
11038 | wxPyEndAllowThreads(__tstate); | |
11039 | if (PyErr_Occurred()) SWIG_fail; | |
11040 | } | |
11041 | { | |
11042 | wxColour * resultptr; | |
11043 | resultptr = new wxColour((wxColour &) result); | |
11044 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11045 | } | |
11046 | return resultobj; | |
11047 | fail: | |
11048 | return NULL; | |
11049 | } | |
11050 | ||
11051 | ||
11052 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11053 | PyObject *resultobj; | |
11054 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11055 | int arg2 ; | |
11056 | wxColour result; | |
11057 | PyObject * obj0 = 0 ; | |
11058 | PyObject * obj1 = 0 ; | |
11059 | char *kwnames[] = { | |
11060 | (char *) "self",(char *) "i", NULL | |
11061 | }; | |
11062 | ||
11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11066 | arg2 = (int) SWIG_AsInt(obj1); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | { | |
11069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11070 | result = (arg1)->GetCustomColour(arg2); | |
11071 | ||
11072 | wxPyEndAllowThreads(__tstate); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
11075 | { | |
11076 | wxColour * resultptr; | |
11077 | resultptr = new wxColour((wxColour &) result); | |
11078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11079 | } | |
11080 | return resultobj; | |
11081 | fail: | |
11082 | return NULL; | |
11083 | } | |
11084 | ||
11085 | ||
11086 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11087 | PyObject *resultobj; | |
11088 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11089 | int arg2 ; | |
11090 | PyObject * obj0 = 0 ; | |
11091 | PyObject * obj1 = 0 ; | |
11092 | char *kwnames[] = { | |
11093 | (char *) "self",(char *) "flag", NULL | |
11094 | }; | |
11095 | ||
11096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11099 | arg2 = (int) SWIG_AsInt(obj1); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | { | |
11102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11103 | (arg1)->SetChooseFull(arg2); | |
11104 | ||
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | } | |
11108 | Py_INCREF(Py_None); resultobj = Py_None; | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | return NULL; | |
11112 | } | |
11113 | ||
11114 | ||
11115 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11116 | PyObject *resultobj; | |
11117 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11118 | wxColour *arg2 = 0 ; | |
11119 | wxColour temp2 ; | |
11120 | PyObject * obj0 = 0 ; | |
11121 | PyObject * obj1 = 0 ; | |
11122 | char *kwnames[] = { | |
11123 | (char *) "self",(char *) "colour", NULL | |
11124 | }; | |
11125 | ||
11126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11129 | { | |
11130 | arg2 = &temp2; | |
11131 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11132 | } | |
11133 | { | |
11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11135 | (arg1)->SetColour((wxColour const &)*arg2); | |
11136 | ||
11137 | wxPyEndAllowThreads(__tstate); | |
11138 | if (PyErr_Occurred()) SWIG_fail; | |
11139 | } | |
11140 | Py_INCREF(Py_None); resultobj = Py_None; | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
11147 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11148 | PyObject *resultobj; | |
11149 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11150 | int arg2 ; | |
11151 | wxColour *arg3 = 0 ; | |
11152 | wxColour temp3 ; | |
11153 | PyObject * obj0 = 0 ; | |
11154 | PyObject * obj1 = 0 ; | |
11155 | PyObject * obj2 = 0 ; | |
11156 | char *kwnames[] = { | |
11157 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11158 | }; | |
11159 | ||
11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11163 | arg2 = (int) SWIG_AsInt(obj1); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | { | |
11166 | arg3 = &temp3; | |
11167 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11168 | } | |
11169 | { | |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11172 | ||
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | Py_INCREF(Py_None); resultobj = Py_None; | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11184 | PyObject *obj; | |
11185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11186 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11187 | Py_INCREF(obj); | |
11188 | return Py_BuildValue((char *)""); | |
11189 | } | |
11190 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11191 | PyObject *resultobj; | |
11192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11193 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11194 | wxColourDialog *result; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | PyObject * obj1 = 0 ; | |
11197 | char *kwnames[] = { | |
11198 | (char *) "parent",(char *) "data", NULL | |
11199 | }; | |
11200 | ||
11201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11204 | if (obj1) { | |
11205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11207 | } | |
11208 | { | |
11209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11210 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11211 | ||
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
11215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11216 | return resultobj; | |
11217 | fail: | |
11218 | return NULL; | |
11219 | } | |
11220 | ||
11221 | ||
11222 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11223 | PyObject *resultobj; | |
11224 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11225 | wxColourData *result; | |
11226 | PyObject * obj0 = 0 ; | |
11227 | char *kwnames[] = { | |
11228 | (char *) "self", NULL | |
11229 | }; | |
11230 | ||
11231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | { | |
11237 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11238 | result = (wxColourData *) &_result_ref; | |
11239 | } | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
11244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11245 | return resultobj; | |
11246 | fail: | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
11251 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11252 | PyObject *obj; | |
11253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11254 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11255 | Py_INCREF(obj); | |
11256 | return Py_BuildValue((char *)""); | |
11257 | } | |
11258 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11259 | PyObject *resultobj; | |
11260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11261 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11262 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11263 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11264 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11265 | long arg4 = (long) 0 ; | |
11266 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11267 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11268 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11269 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11270 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11271 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11272 | wxDirDialog *result; | |
11273 | bool temp2 = False ; | |
11274 | bool temp3 = False ; | |
11275 | wxPoint temp5 ; | |
11276 | wxSize temp6 ; | |
11277 | bool temp7 = False ; | |
11278 | PyObject * obj0 = 0 ; | |
11279 | PyObject * obj1 = 0 ; | |
11280 | PyObject * obj2 = 0 ; | |
11281 | PyObject * obj3 = 0 ; | |
11282 | PyObject * obj4 = 0 ; | |
11283 | PyObject * obj5 = 0 ; | |
11284 | PyObject * obj6 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11287 | }; | |
11288 | ||
11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11292 | if (obj1) { | |
11293 | { | |
11294 | arg2 = wxString_in_helper(obj1); | |
11295 | if (arg2 == NULL) SWIG_fail; | |
11296 | temp2 = True; | |
11297 | } | |
11298 | } | |
11299 | if (obj2) { | |
11300 | { | |
11301 | arg3 = wxString_in_helper(obj2); | |
11302 | if (arg3 == NULL) SWIG_fail; | |
11303 | temp3 = True; | |
11304 | } | |
11305 | } | |
11306 | if (obj3) { | |
11307 | arg4 = (long) SWIG_AsLong(obj3); | |
11308 | if (PyErr_Occurred()) SWIG_fail; | |
11309 | } | |
11310 | if (obj4) { | |
11311 | { | |
11312 | arg5 = &temp5; | |
11313 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11314 | } | |
11315 | } | |
11316 | if (obj5) { | |
11317 | { | |
11318 | arg6 = &temp6; | |
11319 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11320 | } | |
11321 | } | |
11322 | if (obj6) { | |
11323 | { | |
11324 | arg7 = wxString_in_helper(obj6); | |
11325 | if (arg7 == NULL) SWIG_fail; | |
11326 | temp7 = True; | |
11327 | } | |
11328 | } | |
11329 | { | |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11331 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11332 | ||
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11337 | { | |
11338 | if (temp2) | |
11339 | delete arg2; | |
11340 | } | |
11341 | { | |
11342 | if (temp3) | |
11343 | delete arg3; | |
11344 | } | |
11345 | { | |
11346 | if (temp7) | |
11347 | delete arg7; | |
11348 | } | |
11349 | return resultobj; | |
11350 | fail: | |
11351 | { | |
11352 | if (temp2) | |
11353 | delete arg2; | |
11354 | } | |
11355 | { | |
11356 | if (temp3) | |
11357 | delete arg3; | |
11358 | } | |
11359 | { | |
11360 | if (temp7) | |
11361 | delete arg7; | |
11362 | } | |
11363 | return NULL; | |
11364 | } | |
11365 | ||
11366 | ||
11367 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11368 | PyObject *resultobj; | |
11369 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11370 | wxString result; | |
11371 | PyObject * obj0 = 0 ; | |
11372 | char *kwnames[] = { | |
11373 | (char *) "self", NULL | |
11374 | }; | |
11375 | ||
11376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11379 | { | |
11380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11381 | result = (arg1)->GetPath(); | |
11382 | ||
11383 | wxPyEndAllowThreads(__tstate); | |
11384 | if (PyErr_Occurred()) SWIG_fail; | |
11385 | } | |
11386 | { | |
11387 | #if wxUSE_UNICODE | |
11388 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11389 | #else | |
11390 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11391 | #endif | |
11392 | } | |
11393 | return resultobj; | |
11394 | fail: | |
11395 | return NULL; | |
11396 | } | |
11397 | ||
11398 | ||
11399 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11400 | PyObject *resultobj; | |
11401 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11402 | wxString result; | |
11403 | PyObject * obj0 = 0 ; | |
11404 | char *kwnames[] = { | |
11405 | (char *) "self", NULL | |
11406 | }; | |
11407 | ||
11408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11411 | { | |
11412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11413 | result = (arg1)->GetMessage(); | |
11414 | ||
11415 | wxPyEndAllowThreads(__tstate); | |
11416 | if (PyErr_Occurred()) SWIG_fail; | |
11417 | } | |
11418 | { | |
11419 | #if wxUSE_UNICODE | |
11420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11421 | #else | |
11422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11423 | #endif | |
11424 | } | |
11425 | return resultobj; | |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
11431 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11432 | PyObject *resultobj; | |
11433 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11434 | long result; | |
11435 | PyObject * obj0 = 0 ; | |
11436 | char *kwnames[] = { | |
11437 | (char *) "self", NULL | |
11438 | }; | |
11439 | ||
11440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11443 | { | |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11445 | result = (long)(arg1)->GetStyle(); | |
11446 | ||
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
11450 | resultobj = SWIG_FromLong((long)result); | |
11451 | return resultobj; | |
11452 | fail: | |
11453 | return NULL; | |
11454 | } | |
11455 | ||
11456 | ||
11457 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11458 | PyObject *resultobj; | |
11459 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11460 | wxString *arg2 = 0 ; | |
11461 | bool temp2 = False ; | |
11462 | PyObject * obj0 = 0 ; | |
11463 | PyObject * obj1 = 0 ; | |
11464 | char *kwnames[] = { | |
11465 | (char *) "self",(char *) "message", NULL | |
11466 | }; | |
11467 | ||
11468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11471 | { | |
11472 | arg2 = wxString_in_helper(obj1); | |
11473 | if (arg2 == NULL) SWIG_fail; | |
11474 | temp2 = True; | |
11475 | } | |
11476 | { | |
11477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11478 | (arg1)->SetMessage((wxString const &)*arg2); | |
11479 | ||
11480 | wxPyEndAllowThreads(__tstate); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | } | |
11483 | Py_INCREF(Py_None); resultobj = Py_None; | |
11484 | { | |
11485 | if (temp2) | |
11486 | delete arg2; | |
11487 | } | |
11488 | return resultobj; | |
11489 | fail: | |
11490 | { | |
11491 | if (temp2) | |
11492 | delete arg2; | |
11493 | } | |
11494 | return NULL; | |
11495 | } | |
11496 | ||
11497 | ||
11498 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11499 | PyObject *resultobj; | |
11500 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11501 | wxString *arg2 = 0 ; | |
11502 | bool temp2 = False ; | |
11503 | PyObject * obj0 = 0 ; | |
11504 | PyObject * obj1 = 0 ; | |
11505 | char *kwnames[] = { | |
11506 | (char *) "self",(char *) "path", NULL | |
11507 | }; | |
11508 | ||
11509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11512 | { | |
11513 | arg2 = wxString_in_helper(obj1); | |
11514 | if (arg2 == NULL) SWIG_fail; | |
11515 | temp2 = True; | |
11516 | } | |
11517 | { | |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | (arg1)->SetPath((wxString const &)*arg2); | |
11520 | ||
11521 | wxPyEndAllowThreads(__tstate); | |
11522 | if (PyErr_Occurred()) SWIG_fail; | |
11523 | } | |
11524 | Py_INCREF(Py_None); resultobj = Py_None; | |
11525 | { | |
11526 | if (temp2) | |
11527 | delete arg2; | |
11528 | } | |
11529 | return resultobj; | |
11530 | fail: | |
11531 | { | |
11532 | if (temp2) | |
11533 | delete arg2; | |
11534 | } | |
11535 | return NULL; | |
11536 | } | |
11537 | ||
11538 | ||
11539 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11540 | PyObject *obj; | |
11541 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11542 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11543 | Py_INCREF(obj); | |
11544 | return Py_BuildValue((char *)""); | |
11545 | } | |
11546 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11547 | PyObject *resultobj; | |
11548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11549 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11550 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11551 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11552 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11553 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11554 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11555 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11556 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11557 | long arg6 = (long) 0 ; | |
11558 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11559 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11560 | wxFileDialog *result; | |
11561 | bool temp2 = False ; | |
11562 | bool temp3 = False ; | |
11563 | bool temp4 = False ; | |
11564 | bool temp5 = False ; | |
11565 | wxPoint temp7 ; | |
11566 | PyObject * obj0 = 0 ; | |
11567 | PyObject * obj1 = 0 ; | |
11568 | PyObject * obj2 = 0 ; | |
11569 | PyObject * obj3 = 0 ; | |
11570 | PyObject * obj4 = 0 ; | |
11571 | PyObject * obj5 = 0 ; | |
11572 | PyObject * obj6 = 0 ; | |
11573 | char *kwnames[] = { | |
11574 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11575 | }; | |
11576 | ||
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11580 | if (obj1) { | |
11581 | { | |
11582 | arg2 = wxString_in_helper(obj1); | |
11583 | if (arg2 == NULL) SWIG_fail; | |
11584 | temp2 = True; | |
11585 | } | |
11586 | } | |
11587 | if (obj2) { | |
11588 | { | |
11589 | arg3 = wxString_in_helper(obj2); | |
11590 | if (arg3 == NULL) SWIG_fail; | |
11591 | temp3 = True; | |
11592 | } | |
11593 | } | |
11594 | if (obj3) { | |
11595 | { | |
11596 | arg4 = wxString_in_helper(obj3); | |
11597 | if (arg4 == NULL) SWIG_fail; | |
11598 | temp4 = True; | |
11599 | } | |
11600 | } | |
11601 | if (obj4) { | |
11602 | { | |
11603 | arg5 = wxString_in_helper(obj4); | |
11604 | if (arg5 == NULL) SWIG_fail; | |
11605 | temp5 = True; | |
11606 | } | |
11607 | } | |
11608 | if (obj5) { | |
11609 | arg6 = (long) SWIG_AsLong(obj5); | |
11610 | if (PyErr_Occurred()) SWIG_fail; | |
11611 | } | |
11612 | if (obj6) { | |
11613 | { | |
11614 | arg7 = &temp7; | |
11615 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11616 | } | |
11617 | } | |
11618 | { | |
11619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11620 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11621 | ||
11622 | wxPyEndAllowThreads(__tstate); | |
11623 | if (PyErr_Occurred()) SWIG_fail; | |
11624 | } | |
11625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
11626 | { | |
11627 | if (temp2) | |
11628 | delete arg2; | |
11629 | } | |
11630 | { | |
11631 | if (temp3) | |
11632 | delete arg3; | |
11633 | } | |
11634 | { | |
11635 | if (temp4) | |
11636 | delete arg4; | |
11637 | } | |
11638 | { | |
11639 | if (temp5) | |
11640 | delete arg5; | |
11641 | } | |
11642 | return resultobj; | |
11643 | fail: | |
11644 | { | |
11645 | if (temp2) | |
11646 | delete arg2; | |
11647 | } | |
11648 | { | |
11649 | if (temp3) | |
11650 | delete arg3; | |
11651 | } | |
11652 | { | |
11653 | if (temp4) | |
11654 | delete arg4; | |
11655 | } | |
11656 | { | |
11657 | if (temp5) | |
11658 | delete arg5; | |
11659 | } | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
11664 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11665 | PyObject *resultobj; | |
11666 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11667 | wxString *arg2 = 0 ; | |
11668 | bool temp2 = False ; | |
11669 | PyObject * obj0 = 0 ; | |
11670 | PyObject * obj1 = 0 ; | |
11671 | char *kwnames[] = { | |
11672 | (char *) "self",(char *) "message", NULL | |
11673 | }; | |
11674 | ||
11675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11678 | { | |
11679 | arg2 = wxString_in_helper(obj1); | |
11680 | if (arg2 == NULL) SWIG_fail; | |
11681 | temp2 = True; | |
11682 | } | |
11683 | { | |
11684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11685 | (arg1)->SetMessage((wxString const &)*arg2); | |
11686 | ||
11687 | wxPyEndAllowThreads(__tstate); | |
11688 | if (PyErr_Occurred()) SWIG_fail; | |
11689 | } | |
11690 | Py_INCREF(Py_None); resultobj = Py_None; | |
11691 | { | |
11692 | if (temp2) | |
11693 | delete arg2; | |
11694 | } | |
11695 | return resultobj; | |
11696 | fail: | |
11697 | { | |
11698 | if (temp2) | |
11699 | delete arg2; | |
11700 | } | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
11705 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11706 | PyObject *resultobj; | |
11707 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11708 | wxString *arg2 = 0 ; | |
11709 | bool temp2 = False ; | |
11710 | PyObject * obj0 = 0 ; | |
11711 | PyObject * obj1 = 0 ; | |
11712 | char *kwnames[] = { | |
11713 | (char *) "self",(char *) "path", NULL | |
11714 | }; | |
11715 | ||
11716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11719 | { | |
11720 | arg2 = wxString_in_helper(obj1); | |
11721 | if (arg2 == NULL) SWIG_fail; | |
11722 | temp2 = True; | |
11723 | } | |
11724 | { | |
11725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11726 | (arg1)->SetPath((wxString const &)*arg2); | |
11727 | ||
11728 | wxPyEndAllowThreads(__tstate); | |
11729 | if (PyErr_Occurred()) SWIG_fail; | |
11730 | } | |
11731 | Py_INCREF(Py_None); resultobj = Py_None; | |
11732 | { | |
11733 | if (temp2) | |
11734 | delete arg2; | |
11735 | } | |
11736 | return resultobj; | |
11737 | fail: | |
11738 | { | |
11739 | if (temp2) | |
11740 | delete arg2; | |
11741 | } | |
11742 | return NULL; | |
11743 | } | |
11744 | ||
11745 | ||
11746 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11747 | PyObject *resultobj; | |
11748 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11749 | wxString *arg2 = 0 ; | |
11750 | bool temp2 = False ; | |
11751 | PyObject * obj0 = 0 ; | |
11752 | PyObject * obj1 = 0 ; | |
11753 | char *kwnames[] = { | |
11754 | (char *) "self",(char *) "dir", NULL | |
11755 | }; | |
11756 | ||
11757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
11758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11760 | { | |
11761 | arg2 = wxString_in_helper(obj1); | |
11762 | if (arg2 == NULL) SWIG_fail; | |
11763 | temp2 = True; | |
11764 | } | |
11765 | { | |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11767 | (arg1)->SetDirectory((wxString const &)*arg2); | |
11768 | ||
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | Py_INCREF(Py_None); resultobj = Py_None; | |
11773 | { | |
11774 | if (temp2) | |
11775 | delete arg2; | |
11776 | } | |
11777 | return resultobj; | |
11778 | fail: | |
11779 | { | |
11780 | if (temp2) | |
11781 | delete arg2; | |
11782 | } | |
11783 | return NULL; | |
11784 | } | |
11785 | ||
11786 | ||
11787 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11788 | PyObject *resultobj; | |
11789 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11790 | wxString *arg2 = 0 ; | |
11791 | bool temp2 = False ; | |
11792 | PyObject * obj0 = 0 ; | |
11793 | PyObject * obj1 = 0 ; | |
11794 | char *kwnames[] = { | |
11795 | (char *) "self",(char *) "name", NULL | |
11796 | }; | |
11797 | ||
11798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11801 | { | |
11802 | arg2 = wxString_in_helper(obj1); | |
11803 | if (arg2 == NULL) SWIG_fail; | |
11804 | temp2 = True; | |
11805 | } | |
11806 | { | |
11807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11808 | (arg1)->SetFilename((wxString const &)*arg2); | |
11809 | ||
11810 | wxPyEndAllowThreads(__tstate); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | Py_INCREF(Py_None); resultobj = Py_None; | |
11814 | { | |
11815 | if (temp2) | |
11816 | delete arg2; | |
11817 | } | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | { | |
11821 | if (temp2) | |
11822 | delete arg2; | |
11823 | } | |
11824 | return NULL; | |
11825 | } | |
11826 | ||
11827 | ||
11828 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11829 | PyObject *resultobj; | |
11830 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11831 | wxString *arg2 = 0 ; | |
11832 | bool temp2 = False ; | |
11833 | PyObject * obj0 = 0 ; | |
11834 | PyObject * obj1 = 0 ; | |
11835 | char *kwnames[] = { | |
11836 | (char *) "self",(char *) "wildCard", NULL | |
11837 | }; | |
11838 | ||
11839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
11840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11842 | { | |
11843 | arg2 = wxString_in_helper(obj1); | |
11844 | if (arg2 == NULL) SWIG_fail; | |
11845 | temp2 = True; | |
11846 | } | |
11847 | { | |
11848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11849 | (arg1)->SetWildcard((wxString const &)*arg2); | |
11850 | ||
11851 | wxPyEndAllowThreads(__tstate); | |
11852 | if (PyErr_Occurred()) SWIG_fail; | |
11853 | } | |
11854 | Py_INCREF(Py_None); resultobj = Py_None; | |
11855 | { | |
11856 | if (temp2) | |
11857 | delete arg2; | |
11858 | } | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | { | |
11862 | if (temp2) | |
11863 | delete arg2; | |
11864 | } | |
11865 | return NULL; | |
11866 | } | |
11867 | ||
11868 | ||
11869 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11870 | PyObject *resultobj; | |
11871 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11872 | long arg2 ; | |
11873 | PyObject * obj0 = 0 ; | |
11874 | PyObject * obj1 = 0 ; | |
11875 | char *kwnames[] = { | |
11876 | (char *) "self",(char *) "style", NULL | |
11877 | }; | |
11878 | ||
11879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
11880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11882 | arg2 = (long) SWIG_AsLong(obj1); | |
11883 | if (PyErr_Occurred()) SWIG_fail; | |
11884 | { | |
11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11886 | (arg1)->SetStyle(arg2); | |
11887 | ||
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
11891 | Py_INCREF(Py_None); resultobj = Py_None; | |
11892 | return resultobj; | |
11893 | fail: | |
11894 | return NULL; | |
11895 | } | |
11896 | ||
11897 | ||
11898 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11899 | PyObject *resultobj; | |
11900 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11901 | int arg2 ; | |
11902 | PyObject * obj0 = 0 ; | |
11903 | PyObject * obj1 = 0 ; | |
11904 | char *kwnames[] = { | |
11905 | (char *) "self",(char *) "filterIndex", NULL | |
11906 | }; | |
11907 | ||
11908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
11909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11911 | arg2 = (int) SWIG_AsInt(obj1); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | { | |
11914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11915 | (arg1)->SetFilterIndex(arg2); | |
11916 | ||
11917 | wxPyEndAllowThreads(__tstate); | |
11918 | if (PyErr_Occurred()) SWIG_fail; | |
11919 | } | |
11920 | Py_INCREF(Py_None); resultobj = Py_None; | |
11921 | return resultobj; | |
11922 | fail: | |
11923 | return NULL; | |
11924 | } | |
11925 | ||
11926 | ||
11927 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11928 | PyObject *resultobj; | |
11929 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11930 | wxString result; | |
11931 | PyObject * obj0 = 0 ; | |
11932 | char *kwnames[] = { | |
11933 | (char *) "self", NULL | |
11934 | }; | |
11935 | ||
11936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | { | |
11947 | #if wxUSE_UNICODE | |
11948 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11949 | #else | |
11950 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11951 | #endif | |
11952 | } | |
11953 | return resultobj; | |
11954 | fail: | |
11955 | return NULL; | |
11956 | } | |
11957 | ||
11958 | ||
11959 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11960 | PyObject *resultobj; | |
11961 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11962 | wxString result; | |
11963 | PyObject * obj0 = 0 ; | |
11964 | char *kwnames[] = { | |
11965 | (char *) "self", NULL | |
11966 | }; | |
11967 | ||
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
11969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11971 | { | |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
11974 | ||
11975 | wxPyEndAllowThreads(__tstate); | |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
11977 | } | |
11978 | { | |
11979 | #if wxUSE_UNICODE | |
11980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11981 | #else | |
11982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11983 | #endif | |
11984 | } | |
11985 | return resultobj; | |
11986 | fail: | |
11987 | return NULL; | |
11988 | } | |
11989 | ||
11990 | ||
11991 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11992 | PyObject *resultobj; | |
11993 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11994 | wxString result; | |
11995 | PyObject * obj0 = 0 ; | |
11996 | char *kwnames[] = { | |
11997 | (char *) "self", NULL | |
11998 | }; | |
11999 | ||
12000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
12001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12003 | { | |
12004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12005 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
12006 | ||
12007 | wxPyEndAllowThreads(__tstate); | |
12008 | if (PyErr_Occurred()) SWIG_fail; | |
12009 | } | |
12010 | { | |
12011 | #if wxUSE_UNICODE | |
12012 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12013 | #else | |
12014 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12015 | #endif | |
12016 | } | |
12017 | return resultobj; | |
12018 | fail: | |
12019 | return NULL; | |
12020 | } | |
12021 | ||
12022 | ||
12023 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12024 | PyObject *resultobj; | |
12025 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12026 | wxString result; | |
12027 | PyObject * obj0 = 0 ; | |
12028 | char *kwnames[] = { | |
12029 | (char *) "self", NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12035 | { | |
12036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12037 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12038 | ||
12039 | wxPyEndAllowThreads(__tstate); | |
12040 | if (PyErr_Occurred()) SWIG_fail; | |
12041 | } | |
12042 | { | |
12043 | #if wxUSE_UNICODE | |
12044 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12045 | #else | |
12046 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12047 | #endif | |
12048 | } | |
12049 | return resultobj; | |
12050 | fail: | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12058 | wxString result; | |
12059 | PyObject * obj0 = 0 ; | |
12060 | char *kwnames[] = { | |
12061 | (char *) "self", NULL | |
12062 | }; | |
12063 | ||
12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12067 | { | |
12068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12069 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12070 | ||
12071 | wxPyEndAllowThreads(__tstate); | |
12072 | if (PyErr_Occurred()) SWIG_fail; | |
12073 | } | |
12074 | { | |
12075 | #if wxUSE_UNICODE | |
12076 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12077 | #else | |
12078 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12079 | #endif | |
12080 | } | |
12081 | return resultobj; | |
12082 | fail: | |
12083 | return NULL; | |
12084 | } | |
12085 | ||
12086 | ||
12087 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12088 | PyObject *resultobj; | |
12089 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12090 | long result; | |
12091 | PyObject * obj0 = 0 ; | |
12092 | char *kwnames[] = { | |
12093 | (char *) "self", NULL | |
12094 | }; | |
12095 | ||
12096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12099 | { | |
12100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12101 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12102 | ||
12103 | wxPyEndAllowThreads(__tstate); | |
12104 | if (PyErr_Occurred()) SWIG_fail; | |
12105 | } | |
12106 | resultobj = SWIG_FromLong((long)result); | |
12107 | return resultobj; | |
12108 | fail: | |
12109 | return NULL; | |
12110 | } | |
12111 | ||
12112 | ||
12113 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12114 | PyObject *resultobj; | |
12115 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12116 | int result; | |
12117 | PyObject * obj0 = 0 ; | |
12118 | char *kwnames[] = { | |
12119 | (char *) "self", NULL | |
12120 | }; | |
12121 | ||
12122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12125 | { | |
12126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12127 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12128 | ||
12129 | wxPyEndAllowThreads(__tstate); | |
12130 | if (PyErr_Occurred()) SWIG_fail; | |
12131 | } | |
12132 | resultobj = SWIG_FromInt((int)result); | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
12139 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12140 | PyObject *resultobj; | |
12141 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12142 | PyObject *result; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12151 | { | |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
12158 | resultobj = result; | |
12159 | return resultobj; | |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
12165 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12166 | PyObject *resultobj; | |
12167 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12168 | PyObject *result; | |
12169 | PyObject * obj0 = 0 ; | |
12170 | char *kwnames[] = { | |
12171 | (char *) "self", NULL | |
12172 | }; | |
12173 | ||
12174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12177 | { | |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
12184 | resultobj = result; | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12192 | PyObject *obj; | |
12193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12194 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12195 | Py_INCREF(obj); | |
12196 | return Py_BuildValue((char *)""); | |
12197 | } | |
12198 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12199 | PyObject *resultobj; | |
12200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12201 | wxString *arg2 = 0 ; | |
12202 | wxString *arg3 = 0 ; | |
12203 | int arg4 = (int) 0 ; | |
12204 | wxString *arg5 = (wxString *) 0 ; | |
12205 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12206 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12207 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12208 | wxMultiChoiceDialog *result; | |
12209 | bool temp2 = False ; | |
12210 | bool temp3 = False ; | |
12211 | wxPoint temp6 ; | |
12212 | PyObject * obj0 = 0 ; | |
12213 | PyObject * obj1 = 0 ; | |
12214 | PyObject * obj2 = 0 ; | |
12215 | PyObject * obj3 = 0 ; | |
12216 | PyObject * obj4 = 0 ; | |
12217 | PyObject * obj5 = 0 ; | |
12218 | char *kwnames[] = { | |
12219 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12220 | }; | |
12221 | ||
12222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12225 | { | |
12226 | arg2 = wxString_in_helper(obj1); | |
12227 | if (arg2 == NULL) SWIG_fail; | |
12228 | temp2 = True; | |
12229 | } | |
12230 | { | |
12231 | arg3 = wxString_in_helper(obj2); | |
12232 | if (arg3 == NULL) SWIG_fail; | |
12233 | temp3 = True; | |
12234 | } | |
12235 | if (obj3) { | |
12236 | { | |
12237 | arg4 = PyList_Size(obj3); | |
12238 | arg5 = wxString_LIST_helper(obj3); | |
12239 | if (arg5 == NULL) SWIG_fail; | |
12240 | } | |
12241 | } | |
12242 | if (obj4) { | |
12243 | arg6 = (long) SWIG_AsLong(obj4); | |
12244 | if (PyErr_Occurred()) SWIG_fail; | |
12245 | } | |
12246 | if (obj5) { | |
12247 | { | |
12248 | arg7 = &temp6; | |
12249 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12250 | } | |
12251 | } | |
12252 | { | |
12253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12254 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12255 | ||
12256 | wxPyEndAllowThreads(__tstate); | |
12257 | if (PyErr_Occurred()) SWIG_fail; | |
12258 | } | |
12259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12260 | { | |
12261 | if (temp2) | |
12262 | delete arg2; | |
12263 | } | |
12264 | { | |
12265 | if (temp3) | |
12266 | delete arg3; | |
12267 | } | |
12268 | { | |
12269 | if (arg5) delete [] arg5; | |
12270 | } | |
12271 | return resultobj; | |
12272 | fail: | |
12273 | { | |
12274 | if (temp2) | |
12275 | delete arg2; | |
12276 | } | |
12277 | { | |
12278 | if (temp3) | |
12279 | delete arg3; | |
12280 | } | |
12281 | { | |
12282 | if (arg5) delete [] arg5; | |
12283 | } | |
12284 | return NULL; | |
12285 | } | |
12286 | ||
12287 | ||
12288 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12289 | PyObject *resultobj; | |
12290 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12291 | wxArrayInt *arg2 = 0 ; | |
12292 | bool temp2 = False ; | |
12293 | PyObject * obj0 = 0 ; | |
12294 | PyObject * obj1 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "self",(char *) "selections", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12302 | { | |
12303 | if (! PySequence_Check(obj1)) { | |
12304 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12305 | SWIG_fail; | |
12306 | } | |
12307 | arg2 = new wxArrayInt; | |
12308 | temp2 = True; | |
12309 | int i, len=PySequence_Length(obj1); | |
12310 | for (i=0; i<len; i++) { | |
12311 | PyObject* item = PySequence_GetItem(obj1, i); | |
12312 | PyObject* number = PyNumber_Int(item); | |
12313 | arg2->Add(PyInt_AS_LONG(number)); | |
12314 | Py_DECREF(item); | |
12315 | Py_DECREF(number); | |
12316 | } | |
12317 | } | |
12318 | { | |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12321 | ||
12322 | wxPyEndAllowThreads(__tstate); | |
12323 | if (PyErr_Occurred()) SWIG_fail; | |
12324 | } | |
12325 | Py_INCREF(Py_None); resultobj = Py_None; | |
12326 | { | |
12327 | if (temp2) delete arg2; | |
12328 | } | |
12329 | return resultobj; | |
12330 | fail: | |
12331 | { | |
12332 | if (temp2) delete arg2; | |
12333 | } | |
12334 | return NULL; | |
12335 | } | |
12336 | ||
12337 | ||
12338 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12339 | PyObject *resultobj; | |
12340 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12341 | PyObject *result; | |
12342 | PyObject * obj0 = 0 ; | |
12343 | char *kwnames[] = { | |
12344 | (char *) "self", NULL | |
12345 | }; | |
12346 | ||
12347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12350 | { | |
12351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12352 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12353 | ||
12354 | wxPyEndAllowThreads(__tstate); | |
12355 | if (PyErr_Occurred()) SWIG_fail; | |
12356 | } | |
12357 | resultobj = result; | |
12358 | return resultobj; | |
12359 | fail: | |
12360 | return NULL; | |
12361 | } | |
12362 | ||
12363 | ||
12364 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12365 | PyObject *obj; | |
12366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12367 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12368 | Py_INCREF(obj); | |
12369 | return Py_BuildValue((char *)""); | |
12370 | } | |
12371 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12372 | PyObject *resultobj; | |
12373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12374 | wxString *arg2 = 0 ; | |
12375 | wxString *arg3 = 0 ; | |
12376 | int arg4 ; | |
12377 | wxString *arg5 = (wxString *) 0 ; | |
12378 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12379 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12380 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12381 | wxSingleChoiceDialog *result; | |
12382 | bool temp2 = False ; | |
12383 | bool temp3 = False ; | |
12384 | wxPoint temp6 ; | |
12385 | PyObject * obj0 = 0 ; | |
12386 | PyObject * obj1 = 0 ; | |
12387 | PyObject * obj2 = 0 ; | |
12388 | PyObject * obj3 = 0 ; | |
12389 | PyObject * obj4 = 0 ; | |
12390 | PyObject * obj5 = 0 ; | |
12391 | char *kwnames[] = { | |
12392 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12393 | }; | |
12394 | ||
12395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12398 | { | |
12399 | arg2 = wxString_in_helper(obj1); | |
12400 | if (arg2 == NULL) SWIG_fail; | |
12401 | temp2 = True; | |
12402 | } | |
12403 | { | |
12404 | arg3 = wxString_in_helper(obj2); | |
12405 | if (arg3 == NULL) SWIG_fail; | |
12406 | temp3 = True; | |
12407 | } | |
12408 | { | |
12409 | arg4 = PyList_Size(obj3); | |
12410 | arg5 = wxString_LIST_helper(obj3); | |
12411 | if (arg5 == NULL) SWIG_fail; | |
12412 | } | |
12413 | if (obj4) { | |
12414 | arg6 = (long) SWIG_AsLong(obj4); | |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
12416 | } | |
12417 | if (obj5) { | |
12418 | { | |
12419 | arg7 = &temp6; | |
12420 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12421 | } | |
12422 | } | |
12423 | { | |
12424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12425 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12426 | ||
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
12430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12431 | { | |
12432 | if (temp2) | |
12433 | delete arg2; | |
12434 | } | |
12435 | { | |
12436 | if (temp3) | |
12437 | delete arg3; | |
12438 | } | |
12439 | { | |
12440 | if (arg5) delete [] arg5; | |
12441 | } | |
12442 | return resultobj; | |
12443 | fail: | |
12444 | { | |
12445 | if (temp2) | |
12446 | delete arg2; | |
12447 | } | |
12448 | { | |
12449 | if (temp3) | |
12450 | delete arg3; | |
12451 | } | |
12452 | { | |
12453 | if (arg5) delete [] arg5; | |
12454 | } | |
12455 | return NULL; | |
12456 | } | |
12457 | ||
12458 | ||
12459 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12460 | PyObject *resultobj; | |
12461 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12462 | int result; | |
12463 | PyObject * obj0 = 0 ; | |
12464 | char *kwnames[] = { | |
12465 | (char *) "self", NULL | |
12466 | }; | |
12467 | ||
12468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = (int)(arg1)->GetSelection(); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | resultobj = SWIG_FromInt((int)result); | |
12479 | return resultobj; | |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject *resultobj; | |
12487 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12488 | wxString result; | |
12489 | PyObject * obj0 = 0 ; | |
12490 | char *kwnames[] = { | |
12491 | (char *) "self", NULL | |
12492 | }; | |
12493 | ||
12494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | result = (arg1)->GetStringSelection(); | |
12500 | ||
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
12504 | { | |
12505 | #if wxUSE_UNICODE | |
12506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12507 | #else | |
12508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12509 | #endif | |
12510 | } | |
12511 | return resultobj; | |
12512 | fail: | |
12513 | return NULL; | |
12514 | } | |
12515 | ||
12516 | ||
12517 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12518 | PyObject *resultobj; | |
12519 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12520 | int arg2 ; | |
12521 | PyObject * obj0 = 0 ; | |
12522 | PyObject * obj1 = 0 ; | |
12523 | char *kwnames[] = { | |
12524 | (char *) "self",(char *) "sel", NULL | |
12525 | }; | |
12526 | ||
12527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12530 | arg2 = (int) SWIG_AsInt(obj1); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | { | |
12533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12534 | (arg1)->SetSelection(arg2); | |
12535 | ||
12536 | wxPyEndAllowThreads(__tstate); | |
12537 | if (PyErr_Occurred()) SWIG_fail; | |
12538 | } | |
12539 | Py_INCREF(Py_None); resultobj = Py_None; | |
12540 | return resultobj; | |
12541 | fail: | |
12542 | return NULL; | |
12543 | } | |
12544 | ||
12545 | ||
12546 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12547 | PyObject *obj; | |
12548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12549 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12550 | Py_INCREF(obj); | |
12551 | return Py_BuildValue((char *)""); | |
12552 | } | |
12553 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12554 | PyObject *resultobj; | |
12555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12556 | wxString *arg2 = 0 ; | |
12557 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12558 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12559 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12560 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12561 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12562 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12563 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12564 | wxTextEntryDialog *result; | |
12565 | bool temp2 = False ; | |
12566 | bool temp3 = False ; | |
12567 | bool temp4 = False ; | |
12568 | wxPoint temp6 ; | |
12569 | PyObject * obj0 = 0 ; | |
12570 | PyObject * obj1 = 0 ; | |
12571 | PyObject * obj2 = 0 ; | |
12572 | PyObject * obj3 = 0 ; | |
12573 | PyObject * obj4 = 0 ; | |
12574 | PyObject * obj5 = 0 ; | |
12575 | char *kwnames[] = { | |
12576 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12577 | }; | |
12578 | ||
12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12582 | { | |
12583 | arg2 = wxString_in_helper(obj1); | |
12584 | if (arg2 == NULL) SWIG_fail; | |
12585 | temp2 = True; | |
12586 | } | |
12587 | if (obj2) { | |
12588 | { | |
12589 | arg3 = wxString_in_helper(obj2); | |
12590 | if (arg3 == NULL) SWIG_fail; | |
12591 | temp3 = True; | |
12592 | } | |
12593 | } | |
12594 | if (obj3) { | |
12595 | { | |
12596 | arg4 = wxString_in_helper(obj3); | |
12597 | if (arg4 == NULL) SWIG_fail; | |
12598 | temp4 = True; | |
12599 | } | |
12600 | } | |
12601 | if (obj4) { | |
12602 | arg5 = (long) SWIG_AsLong(obj4); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | if (obj5) { | |
12606 | { | |
12607 | arg6 = &temp6; | |
12608 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12609 | } | |
12610 | } | |
12611 | { | |
12612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12613 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12614 | ||
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
12619 | { | |
12620 | if (temp2) | |
12621 | delete arg2; | |
12622 | } | |
12623 | { | |
12624 | if (temp3) | |
12625 | delete arg3; | |
12626 | } | |
12627 | { | |
12628 | if (temp4) | |
12629 | delete arg4; | |
12630 | } | |
12631 | return resultobj; | |
12632 | fail: | |
12633 | { | |
12634 | if (temp2) | |
12635 | delete arg2; | |
12636 | } | |
12637 | { | |
12638 | if (temp3) | |
12639 | delete arg3; | |
12640 | } | |
12641 | { | |
12642 | if (temp4) | |
12643 | delete arg4; | |
12644 | } | |
12645 | return NULL; | |
12646 | } | |
12647 | ||
12648 | ||
12649 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12650 | PyObject *resultobj; | |
12651 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12652 | wxString result; | |
12653 | PyObject * obj0 = 0 ; | |
12654 | char *kwnames[] = { | |
12655 | (char *) "self", NULL | |
12656 | }; | |
12657 | ||
12658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12661 | { | |
12662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12663 | result = (arg1)->GetValue(); | |
12664 | ||
12665 | wxPyEndAllowThreads(__tstate); | |
12666 | if (PyErr_Occurred()) SWIG_fail; | |
12667 | } | |
12668 | { | |
12669 | #if wxUSE_UNICODE | |
12670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12671 | #else | |
12672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12673 | #endif | |
12674 | } | |
12675 | return resultobj; | |
12676 | fail: | |
12677 | return NULL; | |
12678 | } | |
12679 | ||
12680 | ||
12681 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12682 | PyObject *resultobj; | |
12683 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12684 | wxString *arg2 = 0 ; | |
12685 | bool temp2 = False ; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | PyObject * obj1 = 0 ; | |
12688 | char *kwnames[] = { | |
12689 | (char *) "self",(char *) "value", NULL | |
12690 | }; | |
12691 | ||
12692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12695 | { | |
12696 | arg2 = wxString_in_helper(obj1); | |
12697 | if (arg2 == NULL) SWIG_fail; | |
12698 | temp2 = True; | |
12699 | } | |
12700 | { | |
12701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12702 | (arg1)->SetValue((wxString const &)*arg2); | |
12703 | ||
12704 | wxPyEndAllowThreads(__tstate); | |
12705 | if (PyErr_Occurred()) SWIG_fail; | |
12706 | } | |
12707 | Py_INCREF(Py_None); resultobj = Py_None; | |
12708 | { | |
12709 | if (temp2) | |
12710 | delete arg2; | |
12711 | } | |
12712 | return resultobj; | |
12713 | fail: | |
12714 | { | |
12715 | if (temp2) | |
12716 | delete arg2; | |
12717 | } | |
12718 | return NULL; | |
12719 | } | |
12720 | ||
12721 | ||
12722 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
12723 | PyObject *obj; | |
12724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12725 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12726 | Py_INCREF(obj); | |
12727 | return Py_BuildValue((char *)""); | |
12728 | } | |
12729 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12730 | PyObject *resultobj; | |
12731 | wxFontData *result; | |
12732 | char *kwnames[] = { | |
12733 | NULL | |
12734 | }; | |
12735 | ||
12736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
12737 | { | |
12738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12739 | result = (wxFontData *)new wxFontData(); | |
12740 | ||
12741 | wxPyEndAllowThreads(__tstate); | |
12742 | if (PyErr_Occurred()) SWIG_fail; | |
12743 | } | |
12744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
12745 | return resultobj; | |
12746 | fail: | |
12747 | return NULL; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12752 | PyObject *resultobj; | |
12753 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12754 | PyObject * obj0 = 0 ; | |
12755 | char *kwnames[] = { | |
12756 | (char *) "self", NULL | |
12757 | }; | |
12758 | ||
12759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
12760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12762 | { | |
12763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12764 | delete arg1; | |
12765 | ||
12766 | wxPyEndAllowThreads(__tstate); | |
12767 | if (PyErr_Occurred()) SWIG_fail; | |
12768 | } | |
12769 | Py_INCREF(Py_None); resultobj = Py_None; | |
12770 | return resultobj; | |
12771 | fail: | |
12772 | return NULL; | |
12773 | } | |
12774 | ||
12775 | ||
12776 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12777 | PyObject *resultobj; | |
12778 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12779 | bool arg2 ; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | PyObject * obj1 = 0 ; | |
12782 | char *kwnames[] = { | |
12783 | (char *) "self",(char *) "enable", NULL | |
12784 | }; | |
12785 | ||
12786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
12787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12789 | arg2 = (bool) SWIG_AsBool(obj1); | |
12790 | if (PyErr_Occurred()) SWIG_fail; | |
12791 | { | |
12792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12793 | (arg1)->EnableEffects(arg2); | |
12794 | ||
12795 | wxPyEndAllowThreads(__tstate); | |
12796 | if (PyErr_Occurred()) SWIG_fail; | |
12797 | } | |
12798 | Py_INCREF(Py_None); resultobj = Py_None; | |
12799 | return resultobj; | |
12800 | fail: | |
12801 | return NULL; | |
12802 | } | |
12803 | ||
12804 | ||
12805 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12806 | PyObject *resultobj; | |
12807 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12808 | bool result; | |
12809 | PyObject * obj0 = 0 ; | |
12810 | char *kwnames[] = { | |
12811 | (char *) "self", NULL | |
12812 | }; | |
12813 | ||
12814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
12815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12817 | { | |
12818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12819 | result = (bool)(arg1)->GetAllowSymbols(); | |
12820 | ||
12821 | wxPyEndAllowThreads(__tstate); | |
12822 | if (PyErr_Occurred()) SWIG_fail; | |
12823 | } | |
12824 | { | |
12825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12826 | } | |
12827 | return resultobj; | |
12828 | fail: | |
12829 | return NULL; | |
12830 | } | |
12831 | ||
12832 | ||
12833 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12834 | PyObject *resultobj; | |
12835 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12836 | wxColour result; | |
12837 | PyObject * obj0 = 0 ; | |
12838 | char *kwnames[] = { | |
12839 | (char *) "self", NULL | |
12840 | }; | |
12841 | ||
12842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
12843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12845 | { | |
12846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12847 | result = (arg1)->GetColour(); | |
12848 | ||
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | { | |
12853 | wxColour * resultptr; | |
12854 | resultptr = new wxColour((wxColour &) result); | |
12855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
12856 | } | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
12863 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12864 | PyObject *resultobj; | |
12865 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12866 | wxFont result; | |
12867 | PyObject * obj0 = 0 ; | |
12868 | char *kwnames[] = { | |
12869 | (char *) "self", NULL | |
12870 | }; | |
12871 | ||
12872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
12873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12875 | { | |
12876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12877 | result = (arg1)->GetChosenFont(); | |
12878 | ||
12879 | wxPyEndAllowThreads(__tstate); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | } | |
12882 | { | |
12883 | wxFont * resultptr; | |
12884 | resultptr = new wxFont((wxFont &) result); | |
12885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12886 | } | |
12887 | return resultobj; | |
12888 | fail: | |
12889 | return NULL; | |
12890 | } | |
12891 | ||
12892 | ||
12893 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12894 | PyObject *resultobj; | |
12895 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12896 | bool result; | |
12897 | PyObject * obj0 = 0 ; | |
12898 | char *kwnames[] = { | |
12899 | (char *) "self", NULL | |
12900 | }; | |
12901 | ||
12902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
12903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12905 | { | |
12906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12907 | result = (bool)(arg1)->GetEnableEffects(); | |
12908 | ||
12909 | wxPyEndAllowThreads(__tstate); | |
12910 | if (PyErr_Occurred()) SWIG_fail; | |
12911 | } | |
12912 | { | |
12913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12914 | } | |
12915 | return resultobj; | |
12916 | fail: | |
12917 | return NULL; | |
12918 | } | |
12919 | ||
12920 | ||
12921 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12922 | PyObject *resultobj; | |
12923 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12924 | wxFont result; | |
12925 | PyObject * obj0 = 0 ; | |
12926 | char *kwnames[] = { | |
12927 | (char *) "self", NULL | |
12928 | }; | |
12929 | ||
12930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
12931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12933 | { | |
12934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12935 | result = (arg1)->GetInitialFont(); | |
12936 | ||
12937 | wxPyEndAllowThreads(__tstate); | |
12938 | if (PyErr_Occurred()) SWIG_fail; | |
12939 | } | |
12940 | { | |
12941 | wxFont * resultptr; | |
12942 | resultptr = new wxFont((wxFont &) result); | |
12943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
12944 | } | |
12945 | return resultobj; | |
12946 | fail: | |
12947 | return NULL; | |
12948 | } | |
12949 | ||
12950 | ||
12951 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12952 | PyObject *resultobj; | |
12953 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12954 | bool result; | |
12955 | PyObject * obj0 = 0 ; | |
12956 | char *kwnames[] = { | |
12957 | (char *) "self", NULL | |
12958 | }; | |
12959 | ||
12960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
12961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12963 | { | |
12964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12965 | result = (bool)(arg1)->GetShowHelp(); | |
12966 | ||
12967 | wxPyEndAllowThreads(__tstate); | |
12968 | if (PyErr_Occurred()) SWIG_fail; | |
12969 | } | |
12970 | { | |
12971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12972 | } | |
12973 | return resultobj; | |
12974 | fail: | |
12975 | return NULL; | |
12976 | } | |
12977 | ||
12978 | ||
12979 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12980 | PyObject *resultobj; | |
12981 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12982 | bool arg2 ; | |
12983 | PyObject * obj0 = 0 ; | |
12984 | PyObject * obj1 = 0 ; | |
12985 | char *kwnames[] = { | |
12986 | (char *) "self",(char *) "allowSymbols", NULL | |
12987 | }; | |
12988 | ||
12989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
12990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
12991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12992 | arg2 = (bool) SWIG_AsBool(obj1); | |
12993 | if (PyErr_Occurred()) SWIG_fail; | |
12994 | { | |
12995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12996 | (arg1)->SetAllowSymbols(arg2); | |
12997 | ||
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
13001 | Py_INCREF(Py_None); resultobj = Py_None; | |
13002 | return resultobj; | |
13003 | fail: | |
13004 | return NULL; | |
13005 | } | |
13006 | ||
13007 | ||
13008 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13009 | PyObject *resultobj; | |
13010 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13011 | wxFont *arg2 = 0 ; | |
13012 | PyObject * obj0 = 0 ; | |
13013 | PyObject * obj1 = 0 ; | |
13014 | char *kwnames[] = { | |
13015 | (char *) "self",(char *) "font", NULL | |
13016 | }; | |
13017 | ||
13018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
13019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13021 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13023 | SWIG_fail; | |
13024 | if (arg2 == NULL) { | |
13025 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13026 | SWIG_fail; | |
13027 | } | |
13028 | { | |
13029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13030 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13031 | ||
13032 | wxPyEndAllowThreads(__tstate); | |
13033 | if (PyErr_Occurred()) SWIG_fail; | |
13034 | } | |
13035 | Py_INCREF(Py_None); resultobj = Py_None; | |
13036 | return resultobj; | |
13037 | fail: | |
13038 | return NULL; | |
13039 | } | |
13040 | ||
13041 | ||
13042 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13043 | PyObject *resultobj; | |
13044 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13045 | wxColour *arg2 = 0 ; | |
13046 | wxColour temp2 ; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | PyObject * obj1 = 0 ; | |
13049 | char *kwnames[] = { | |
13050 | (char *) "self",(char *) "colour", NULL | |
13051 | }; | |
13052 | ||
13053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13056 | { | |
13057 | arg2 = &temp2; | |
13058 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13059 | } | |
13060 | { | |
13061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13062 | (arg1)->SetColour((wxColour const &)*arg2); | |
13063 | ||
13064 | wxPyEndAllowThreads(__tstate); | |
13065 | if (PyErr_Occurred()) SWIG_fail; | |
13066 | } | |
13067 | Py_INCREF(Py_None); resultobj = Py_None; | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | return NULL; | |
13071 | } | |
13072 | ||
13073 | ||
13074 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13075 | PyObject *resultobj; | |
13076 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13077 | wxFont *arg2 = 0 ; | |
13078 | PyObject * obj0 = 0 ; | |
13079 | PyObject * obj1 = 0 ; | |
13080 | char *kwnames[] = { | |
13081 | (char *) "self",(char *) "font", NULL | |
13082 | }; | |
13083 | ||
13084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13087 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13088 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13089 | SWIG_fail; | |
13090 | if (arg2 == NULL) { | |
13091 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13092 | SWIG_fail; | |
13093 | } | |
13094 | { | |
13095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13096 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13097 | ||
13098 | wxPyEndAllowThreads(__tstate); | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | } | |
13101 | Py_INCREF(Py_None); resultobj = Py_None; | |
13102 | return resultobj; | |
13103 | fail: | |
13104 | return NULL; | |
13105 | } | |
13106 | ||
13107 | ||
13108 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13109 | PyObject *resultobj; | |
13110 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13111 | int arg2 ; | |
13112 | int arg3 ; | |
13113 | PyObject * obj0 = 0 ; | |
13114 | PyObject * obj1 = 0 ; | |
13115 | PyObject * obj2 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13123 | arg2 = (int) SWIG_AsInt(obj1); | |
13124 | if (PyErr_Occurred()) SWIG_fail; | |
13125 | arg3 = (int) SWIG_AsInt(obj2); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | (arg1)->SetRange(arg2,arg3); | |
13130 | ||
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | Py_INCREF(Py_None); resultobj = Py_None; | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
13141 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj; | |
13143 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13144 | bool arg2 ; | |
13145 | PyObject * obj0 = 0 ; | |
13146 | PyObject * obj1 = 0 ; | |
13147 | char *kwnames[] = { | |
13148 | (char *) "self",(char *) "showHelp", NULL | |
13149 | }; | |
13150 | ||
13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13154 | arg2 = (bool) SWIG_AsBool(obj1); | |
13155 | if (PyErr_Occurred()) SWIG_fail; | |
13156 | { | |
13157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13158 | (arg1)->SetShowHelp(arg2); | |
13159 | ||
13160 | wxPyEndAllowThreads(__tstate); | |
13161 | if (PyErr_Occurred()) SWIG_fail; | |
13162 | } | |
13163 | Py_INCREF(Py_None); resultobj = Py_None; | |
13164 | return resultobj; | |
13165 | fail: | |
13166 | return NULL; | |
13167 | } | |
13168 | ||
13169 | ||
13170 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13171 | PyObject *obj; | |
13172 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13173 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13174 | Py_INCREF(obj); | |
13175 | return Py_BuildValue((char *)""); | |
13176 | } | |
13177 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13178 | PyObject *resultobj; | |
13179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13180 | wxFontData *arg2 = 0 ; | |
13181 | wxFontDialog *result; | |
13182 | PyObject * obj0 = 0 ; | |
13183 | PyObject * obj1 = 0 ; | |
13184 | char *kwnames[] = { | |
13185 | (char *) "parent",(char *) "data", NULL | |
13186 | }; | |
13187 | ||
13188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13193 | SWIG_fail; | |
13194 | if (arg2 == NULL) { | |
13195 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13196 | SWIG_fail; | |
13197 | } | |
13198 | { | |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
13205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13206 | return resultobj; | |
13207 | fail: | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
13212 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13213 | PyObject *resultobj; | |
13214 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13215 | wxFontData *result; | |
13216 | PyObject * obj0 = 0 ; | |
13217 | char *kwnames[] = { | |
13218 | (char *) "self", NULL | |
13219 | }; | |
13220 | ||
13221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13224 | { | |
13225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13226 | { | |
13227 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13228 | result = (wxFontData *) &_result_ref; | |
13229 | } | |
13230 | ||
13231 | wxPyEndAllowThreads(__tstate); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13235 | return resultobj; | |
13236 | fail: | |
13237 | return NULL; | |
13238 | } | |
13239 | ||
13240 | ||
13241 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13242 | PyObject *obj; | |
13243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13244 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13245 | Py_INCREF(obj); | |
13246 | return Py_BuildValue((char *)""); | |
13247 | } | |
13248 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13249 | PyObject *resultobj; | |
13250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13251 | wxString *arg2 = 0 ; | |
13252 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13253 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13254 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13255 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13256 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13257 | wxMessageDialog *result; | |
13258 | bool temp2 = False ; | |
13259 | bool temp3 = False ; | |
13260 | wxPoint temp5 ; | |
13261 | PyObject * obj0 = 0 ; | |
13262 | PyObject * obj1 = 0 ; | |
13263 | PyObject * obj2 = 0 ; | |
13264 | PyObject * obj3 = 0 ; | |
13265 | PyObject * obj4 = 0 ; | |
13266 | char *kwnames[] = { | |
13267 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13268 | }; | |
13269 | ||
13270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13273 | { | |
13274 | arg2 = wxString_in_helper(obj1); | |
13275 | if (arg2 == NULL) SWIG_fail; | |
13276 | temp2 = True; | |
13277 | } | |
13278 | if (obj2) { | |
13279 | { | |
13280 | arg3 = wxString_in_helper(obj2); | |
13281 | if (arg3 == NULL) SWIG_fail; | |
13282 | temp3 = True; | |
13283 | } | |
13284 | } | |
13285 | if (obj3) { | |
13286 | arg4 = (long) SWIG_AsLong(obj3); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | if (obj4) { | |
13290 | { | |
13291 | arg5 = &temp5; | |
13292 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13293 | } | |
13294 | } | |
13295 | { | |
13296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13297 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13298 | ||
13299 | wxPyEndAllowThreads(__tstate); | |
13300 | if (PyErr_Occurred()) SWIG_fail; | |
13301 | } | |
13302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13303 | { | |
13304 | if (temp2) | |
13305 | delete arg2; | |
13306 | } | |
13307 | { | |
13308 | if (temp3) | |
13309 | delete arg3; | |
13310 | } | |
13311 | return resultobj; | |
13312 | fail: | |
13313 | { | |
13314 | if (temp2) | |
13315 | delete arg2; | |
13316 | } | |
13317 | { | |
13318 | if (temp3) | |
13319 | delete arg3; | |
13320 | } | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13326 | PyObject *obj; | |
13327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13328 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13329 | Py_INCREF(obj); | |
13330 | return Py_BuildValue((char *)""); | |
13331 | } | |
13332 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13333 | PyObject *resultobj; | |
13334 | wxString *arg1 = 0 ; | |
13335 | wxString *arg2 = 0 ; | |
13336 | int arg3 = (int) 100 ; | |
13337 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13338 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13339 | wxProgressDialog *result; | |
13340 | bool temp1 = False ; | |
13341 | bool temp2 = False ; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | PyObject * obj1 = 0 ; | |
13344 | PyObject * obj2 = 0 ; | |
13345 | PyObject * obj3 = 0 ; | |
13346 | PyObject * obj4 = 0 ; | |
13347 | char *kwnames[] = { | |
13348 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13349 | }; | |
13350 | ||
13351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13352 | { | |
13353 | arg1 = wxString_in_helper(obj0); | |
13354 | if (arg1 == NULL) SWIG_fail; | |
13355 | temp1 = True; | |
13356 | } | |
13357 | { | |
13358 | arg2 = wxString_in_helper(obj1); | |
13359 | if (arg2 == NULL) SWIG_fail; | |
13360 | temp2 = True; | |
13361 | } | |
13362 | if (obj2) { | |
13363 | arg3 = (int) SWIG_AsInt(obj2); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | if (obj3) { | |
13367 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13369 | } | |
13370 | if (obj4) { | |
13371 | arg5 = (int) SWIG_AsInt(obj4); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | { | |
13375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13376 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13377 | ||
13378 | wxPyEndAllowThreads(__tstate); | |
13379 | if (PyErr_Occurred()) SWIG_fail; | |
13380 | } | |
13381 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13382 | { | |
13383 | if (temp1) | |
13384 | delete arg1; | |
13385 | } | |
13386 | { | |
13387 | if (temp2) | |
13388 | delete arg2; | |
13389 | } | |
13390 | return resultobj; | |
13391 | fail: | |
13392 | { | |
13393 | if (temp1) | |
13394 | delete arg1; | |
13395 | } | |
13396 | { | |
13397 | if (temp2) | |
13398 | delete arg2; | |
13399 | } | |
13400 | return NULL; | |
13401 | } | |
13402 | ||
13403 | ||
13404 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13405 | PyObject *resultobj; | |
13406 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13407 | int arg2 ; | |
13408 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13409 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13410 | bool result; | |
13411 | bool temp3 = False ; | |
13412 | PyObject * obj0 = 0 ; | |
13413 | PyObject * obj1 = 0 ; | |
13414 | PyObject * obj2 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13422 | arg2 = (int) SWIG_AsInt(obj1); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | if (obj2) { | |
13425 | { | |
13426 | arg3 = wxString_in_helper(obj2); | |
13427 | if (arg3 == NULL) SWIG_fail; | |
13428 | temp3 = True; | |
13429 | } | |
13430 | } | |
13431 | { | |
13432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13433 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13434 | ||
13435 | wxPyEndAllowThreads(__tstate); | |
13436 | if (PyErr_Occurred()) SWIG_fail; | |
13437 | } | |
13438 | { | |
13439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13440 | } | |
13441 | { | |
13442 | if (temp3) | |
13443 | delete arg3; | |
13444 | } | |
13445 | return resultobj; | |
13446 | fail: | |
13447 | { | |
13448 | if (temp3) | |
13449 | delete arg3; | |
13450 | } | |
13451 | return NULL; | |
13452 | } | |
13453 | ||
13454 | ||
13455 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13456 | PyObject *resultobj; | |
13457 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13466 | { | |
13467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13468 | (arg1)->Resume(); | |
13469 | ||
13470 | wxPyEndAllowThreads(__tstate); | |
13471 | if (PyErr_Occurred()) SWIG_fail; | |
13472 | } | |
13473 | Py_INCREF(Py_None); resultobj = Py_None; | |
13474 | return resultobj; | |
13475 | fail: | |
13476 | return NULL; | |
13477 | } | |
13478 | ||
13479 | ||
13480 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13481 | PyObject *obj; | |
13482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13483 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13484 | Py_INCREF(obj); | |
13485 | return Py_BuildValue((char *)""); | |
13486 | } | |
13487 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13488 | PyObject *resultobj; | |
13489 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13490 | int arg2 = (int) 0 ; | |
13491 | wxFindDialogEvent *result; | |
13492 | PyObject * obj0 = 0 ; | |
13493 | PyObject * obj1 = 0 ; | |
13494 | char *kwnames[] = { | |
13495 | (char *) "commandType",(char *) "id", NULL | |
13496 | }; | |
13497 | ||
13498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13499 | if (obj0) { | |
13500 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
13502 | } | |
13503 | if (obj1) { | |
13504 | arg2 = (int) SWIG_AsInt(obj1); | |
13505 | if (PyErr_Occurred()) SWIG_fail; | |
13506 | } | |
13507 | { | |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13510 | ||
13511 | wxPyEndAllowThreads(__tstate); | |
13512 | if (PyErr_Occurred()) SWIG_fail; | |
13513 | } | |
13514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13515 | return resultobj; | |
13516 | fail: | |
13517 | return NULL; | |
13518 | } | |
13519 | ||
13520 | ||
13521 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13522 | PyObject *resultobj; | |
13523 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13524 | int result; | |
13525 | PyObject * obj0 = 0 ; | |
13526 | char *kwnames[] = { | |
13527 | (char *) "self", NULL | |
13528 | }; | |
13529 | ||
13530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13533 | { | |
13534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13535 | result = (int)(arg1)->GetFlags(); | |
13536 | ||
13537 | wxPyEndAllowThreads(__tstate); | |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
13539 | } | |
13540 | resultobj = SWIG_FromInt((int)result); | |
13541 | return resultobj; | |
13542 | fail: | |
13543 | return NULL; | |
13544 | } | |
13545 | ||
13546 | ||
13547 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13548 | PyObject *resultobj; | |
13549 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13550 | wxString *result; | |
13551 | PyObject * obj0 = 0 ; | |
13552 | char *kwnames[] = { | |
13553 | (char *) "self", NULL | |
13554 | }; | |
13555 | ||
13556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13559 | { | |
13560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13561 | { | |
13562 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13563 | result = (wxString *) &_result_ref; | |
13564 | } | |
13565 | ||
13566 | wxPyEndAllowThreads(__tstate); | |
13567 | if (PyErr_Occurred()) SWIG_fail; | |
13568 | } | |
13569 | { | |
13570 | #if wxUSE_UNICODE | |
13571 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13572 | #else | |
13573 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13574 | #endif | |
13575 | } | |
13576 | return resultobj; | |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13585 | wxString *result; | |
13586 | PyObject * obj0 = 0 ; | |
13587 | char *kwnames[] = { | |
13588 | (char *) "self", NULL | |
13589 | }; | |
13590 | ||
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13594 | { | |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | { | |
13597 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13598 | result = (wxString *) &_result_ref; | |
13599 | } | |
13600 | ||
13601 | wxPyEndAllowThreads(__tstate); | |
13602 | if (PyErr_Occurred()) SWIG_fail; | |
13603 | } | |
13604 | { | |
13605 | #if wxUSE_UNICODE | |
13606 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13607 | #else | |
13608 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13609 | #endif | |
13610 | } | |
13611 | return resultobj; | |
13612 | fail: | |
13613 | return NULL; | |
13614 | } | |
13615 | ||
13616 | ||
13617 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13618 | PyObject *resultobj; | |
13619 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13620 | wxFindReplaceDialog *result; | |
13621 | PyObject * obj0 = 0 ; | |
13622 | char *kwnames[] = { | |
13623 | (char *) "self", NULL | |
13624 | }; | |
13625 | ||
13626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13629 | { | |
13630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13631 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13632 | ||
13633 | wxPyEndAllowThreads(__tstate); | |
13634 | if (PyErr_Occurred()) SWIG_fail; | |
13635 | } | |
13636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13637 | return resultobj; | |
13638 | fail: | |
13639 | return NULL; | |
13640 | } | |
13641 | ||
13642 | ||
13643 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13644 | PyObject *resultobj; | |
13645 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13646 | int arg2 ; | |
13647 | PyObject * obj0 = 0 ; | |
13648 | PyObject * obj1 = 0 ; | |
13649 | char *kwnames[] = { | |
13650 | (char *) "self",(char *) "flags", NULL | |
13651 | }; | |
13652 | ||
13653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13656 | arg2 = (int) SWIG_AsInt(obj1); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | { | |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | (arg1)->SetFlags(arg2); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
13665 | Py_INCREF(Py_None); resultobj = Py_None; | |
13666 | return resultobj; | |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13673 | PyObject *resultobj; | |
13674 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13675 | wxString *arg2 = 0 ; | |
13676 | bool temp2 = False ; | |
13677 | PyObject * obj0 = 0 ; | |
13678 | PyObject * obj1 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "self",(char *) "str", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13686 | { | |
13687 | arg2 = wxString_in_helper(obj1); | |
13688 | if (arg2 == NULL) SWIG_fail; | |
13689 | temp2 = True; | |
13690 | } | |
13691 | { | |
13692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13693 | (arg1)->SetFindString((wxString const &)*arg2); | |
13694 | ||
13695 | wxPyEndAllowThreads(__tstate); | |
13696 | if (PyErr_Occurred()) SWIG_fail; | |
13697 | } | |
13698 | Py_INCREF(Py_None); resultobj = Py_None; | |
13699 | { | |
13700 | if (temp2) | |
13701 | delete arg2; | |
13702 | } | |
13703 | return resultobj; | |
13704 | fail: | |
13705 | { | |
13706 | if (temp2) | |
13707 | delete arg2; | |
13708 | } | |
13709 | return NULL; | |
13710 | } | |
13711 | ||
13712 | ||
13713 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13714 | PyObject *resultobj; | |
13715 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13716 | wxString *arg2 = 0 ; | |
13717 | bool temp2 = False ; | |
13718 | PyObject * obj0 = 0 ; | |
13719 | PyObject * obj1 = 0 ; | |
13720 | char *kwnames[] = { | |
13721 | (char *) "self",(char *) "str", NULL | |
13722 | }; | |
13723 | ||
13724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13727 | { | |
13728 | arg2 = wxString_in_helper(obj1); | |
13729 | if (arg2 == NULL) SWIG_fail; | |
13730 | temp2 = True; | |
13731 | } | |
13732 | { | |
13733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13734 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13735 | ||
13736 | wxPyEndAllowThreads(__tstate); | |
13737 | if (PyErr_Occurred()) SWIG_fail; | |
13738 | } | |
13739 | Py_INCREF(Py_None); resultobj = Py_None; | |
13740 | { | |
13741 | if (temp2) | |
13742 | delete arg2; | |
13743 | } | |
13744 | return resultobj; | |
13745 | fail: | |
13746 | { | |
13747 | if (temp2) | |
13748 | delete arg2; | |
13749 | } | |
13750 | return NULL; | |
13751 | } | |
13752 | ||
13753 | ||
13754 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
13755 | PyObject *obj; | |
13756 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13757 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
13758 | Py_INCREF(obj); | |
13759 | return Py_BuildValue((char *)""); | |
13760 | } | |
13761 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13762 | PyObject *resultobj; | |
13763 | int arg1 = (int) 0 ; | |
13764 | wxFindReplaceData *result; | |
13765 | PyObject * obj0 = 0 ; | |
13766 | char *kwnames[] = { | |
13767 | (char *) "flags", NULL | |
13768 | }; | |
13769 | ||
13770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
13771 | if (obj0) { | |
13772 | arg1 = (int) SWIG_AsInt(obj0); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | { | |
13776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13777 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
13778 | ||
13779 | wxPyEndAllowThreads(__tstate); | |
13780 | if (PyErr_Occurred()) SWIG_fail; | |
13781 | } | |
13782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
13783 | return resultobj; | |
13784 | fail: | |
13785 | return NULL; | |
13786 | } | |
13787 | ||
13788 | ||
13789 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13790 | PyObject *resultobj; | |
13791 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13792 | PyObject * obj0 = 0 ; | |
13793 | char *kwnames[] = { | |
13794 | (char *) "self", NULL | |
13795 | }; | |
13796 | ||
13797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
13798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13800 | { | |
13801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13802 | delete arg1; | |
13803 | ||
13804 | wxPyEndAllowThreads(__tstate); | |
13805 | if (PyErr_Occurred()) SWIG_fail; | |
13806 | } | |
13807 | Py_INCREF(Py_None); resultobj = Py_None; | |
13808 | return resultobj; | |
13809 | fail: | |
13810 | return NULL; | |
13811 | } | |
13812 | ||
13813 | ||
13814 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13815 | PyObject *resultobj; | |
13816 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13817 | wxString *result; | |
13818 | PyObject * obj0 = 0 ; | |
13819 | char *kwnames[] = { | |
13820 | (char *) "self", NULL | |
13821 | }; | |
13822 | ||
13823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
13824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13826 | { | |
13827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13828 | { | |
13829 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13830 | result = (wxString *) &_result_ref; | |
13831 | } | |
13832 | ||
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
13836 | { | |
13837 | #if wxUSE_UNICODE | |
13838 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13839 | #else | |
13840 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13841 | #endif | |
13842 | } | |
13843 | return resultobj; | |
13844 | fail: | |
13845 | return NULL; | |
13846 | } | |
13847 | ||
13848 | ||
13849 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13850 | PyObject *resultobj; | |
13851 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13852 | wxString *result; | |
13853 | PyObject * obj0 = 0 ; | |
13854 | char *kwnames[] = { | |
13855 | (char *) "self", NULL | |
13856 | }; | |
13857 | ||
13858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
13859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13861 | { | |
13862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13863 | { | |
13864 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13865 | result = (wxString *) &_result_ref; | |
13866 | } | |
13867 | ||
13868 | wxPyEndAllowThreads(__tstate); | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | } | |
13871 | { | |
13872 | #if wxUSE_UNICODE | |
13873 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13874 | #else | |
13875 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13876 | #endif | |
13877 | } | |
13878 | return resultobj; | |
13879 | fail: | |
13880 | return NULL; | |
13881 | } | |
13882 | ||
13883 | ||
13884 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13885 | PyObject *resultobj; | |
13886 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13887 | int result; | |
13888 | PyObject * obj0 = 0 ; | |
13889 | char *kwnames[] = { | |
13890 | (char *) "self", NULL | |
13891 | }; | |
13892 | ||
13893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
13894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13896 | { | |
13897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13898 | result = (int)(arg1)->GetFlags(); | |
13899 | ||
13900 | wxPyEndAllowThreads(__tstate); | |
13901 | if (PyErr_Occurred()) SWIG_fail; | |
13902 | } | |
13903 | resultobj = SWIG_FromInt((int)result); | |
13904 | return resultobj; | |
13905 | fail: | |
13906 | return NULL; | |
13907 | } | |
13908 | ||
13909 | ||
13910 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13911 | PyObject *resultobj; | |
13912 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13913 | int arg2 ; | |
13914 | PyObject * obj0 = 0 ; | |
13915 | PyObject * obj1 = 0 ; | |
13916 | char *kwnames[] = { | |
13917 | (char *) "self",(char *) "flags", NULL | |
13918 | }; | |
13919 | ||
13920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13923 | arg2 = (int) SWIG_AsInt(obj1); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | { | |
13926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13927 | (arg1)->SetFlags(arg2); | |
13928 | ||
13929 | wxPyEndAllowThreads(__tstate); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | Py_INCREF(Py_None); resultobj = Py_None; | |
13933 | return resultobj; | |
13934 | fail: | |
13935 | return NULL; | |
13936 | } | |
13937 | ||
13938 | ||
13939 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13940 | PyObject *resultobj; | |
13941 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13942 | wxString *arg2 = 0 ; | |
13943 | bool temp2 = False ; | |
13944 | PyObject * obj0 = 0 ; | |
13945 | PyObject * obj1 = 0 ; | |
13946 | char *kwnames[] = { | |
13947 | (char *) "self",(char *) "str", NULL | |
13948 | }; | |
13949 | ||
13950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13953 | { | |
13954 | arg2 = wxString_in_helper(obj1); | |
13955 | if (arg2 == NULL) SWIG_fail; | |
13956 | temp2 = True; | |
13957 | } | |
13958 | { | |
13959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13960 | (arg1)->SetFindString((wxString const &)*arg2); | |
13961 | ||
13962 | wxPyEndAllowThreads(__tstate); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | } | |
13965 | Py_INCREF(Py_None); resultobj = Py_None; | |
13966 | { | |
13967 | if (temp2) | |
13968 | delete arg2; | |
13969 | } | |
13970 | return resultobj; | |
13971 | fail: | |
13972 | { | |
13973 | if (temp2) | |
13974 | delete arg2; | |
13975 | } | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
13980 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13981 | PyObject *resultobj; | |
13982 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13983 | wxString *arg2 = 0 ; | |
13984 | bool temp2 = False ; | |
13985 | PyObject * obj0 = 0 ; | |
13986 | PyObject * obj1 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self",(char *) "str", NULL | |
13989 | }; | |
13990 | ||
13991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
13993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13994 | { | |
13995 | arg2 = wxString_in_helper(obj1); | |
13996 | if (arg2 == NULL) SWIG_fail; | |
13997 | temp2 = True; | |
13998 | } | |
13999 | { | |
14000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14001 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14002 | ||
14003 | wxPyEndAllowThreads(__tstate); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | Py_INCREF(Py_None); resultobj = Py_None; | |
14007 | { | |
14008 | if (temp2) | |
14009 | delete arg2; | |
14010 | } | |
14011 | return resultobj; | |
14012 | fail: | |
14013 | { | |
14014 | if (temp2) | |
14015 | delete arg2; | |
14016 | } | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14022 | PyObject *obj; | |
14023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14024 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14025 | Py_INCREF(obj); | |
14026 | return Py_BuildValue((char *)""); | |
14027 | } | |
14028 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14029 | PyObject *resultobj; | |
14030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14031 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14032 | wxString *arg3 = 0 ; | |
14033 | int arg4 = (int) 0 ; | |
14034 | wxFindReplaceDialog *result; | |
14035 | bool temp3 = False ; | |
14036 | PyObject * obj0 = 0 ; | |
14037 | PyObject * obj1 = 0 ; | |
14038 | PyObject * obj2 = 0 ; | |
14039 | PyObject * obj3 = 0 ; | |
14040 | char *kwnames[] = { | |
14041 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14042 | }; | |
14043 | ||
14044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14047 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14049 | { | |
14050 | arg3 = wxString_in_helper(obj2); | |
14051 | if (arg3 == NULL) SWIG_fail; | |
14052 | temp3 = True; | |
14053 | } | |
14054 | if (obj3) { | |
14055 | arg4 = (int) SWIG_AsInt(obj3); | |
14056 | if (PyErr_Occurred()) SWIG_fail; | |
14057 | } | |
14058 | { | |
14059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14060 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14061 | ||
14062 | wxPyEndAllowThreads(__tstate); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
14064 | } | |
14065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14066 | { | |
14067 | if (temp3) | |
14068 | delete arg3; | |
14069 | } | |
14070 | return resultobj; | |
14071 | fail: | |
14072 | { | |
14073 | if (temp3) | |
14074 | delete arg3; | |
14075 | } | |
14076 | return NULL; | |
14077 | } | |
14078 | ||
14079 | ||
14080 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14081 | PyObject *resultobj; | |
14082 | wxFindReplaceDialog *result; | |
14083 | char *kwnames[] = { | |
14084 | NULL | |
14085 | }; | |
14086 | ||
14087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14088 | { | |
14089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14090 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14091 | ||
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
14095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14096 | return resultobj; | |
14097 | fail: | |
14098 | return NULL; | |
14099 | } | |
14100 | ||
14101 | ||
14102 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14103 | PyObject *resultobj; | |
14104 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14105 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14106 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14107 | wxString *arg4 = 0 ; | |
14108 | int arg5 = (int) 0 ; | |
14109 | bool result; | |
14110 | bool temp4 = False ; | |
14111 | PyObject * obj0 = 0 ; | |
14112 | PyObject * obj1 = 0 ; | |
14113 | PyObject * obj2 = 0 ; | |
14114 | PyObject * obj3 = 0 ; | |
14115 | PyObject * obj4 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14125 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14127 | { | |
14128 | arg4 = wxString_in_helper(obj3); | |
14129 | if (arg4 == NULL) SWIG_fail; | |
14130 | temp4 = True; | |
14131 | } | |
14132 | if (obj4) { | |
14133 | arg5 = (int) SWIG_AsInt(obj4); | |
14134 | if (PyErr_Occurred()) SWIG_fail; | |
14135 | } | |
14136 | { | |
14137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14138 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14139 | ||
14140 | wxPyEndAllowThreads(__tstate); | |
14141 | if (PyErr_Occurred()) SWIG_fail; | |
14142 | } | |
14143 | { | |
14144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14145 | } | |
14146 | { | |
14147 | if (temp4) | |
14148 | delete arg4; | |
14149 | } | |
14150 | return resultobj; | |
14151 | fail: | |
14152 | { | |
14153 | if (temp4) | |
14154 | delete arg4; | |
14155 | } | |
14156 | return NULL; | |
14157 | } | |
14158 | ||
14159 | ||
14160 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14161 | PyObject *resultobj; | |
14162 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14163 | wxFindReplaceData *result; | |
14164 | PyObject * obj0 = 0 ; | |
14165 | char *kwnames[] = { | |
14166 | (char *) "self", NULL | |
14167 | }; | |
14168 | ||
14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14172 | { | |
14173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14174 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14175 | ||
14176 | wxPyEndAllowThreads(__tstate); | |
14177 | if (PyErr_Occurred()) SWIG_fail; | |
14178 | } | |
14179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14180 | return resultobj; | |
14181 | fail: | |
14182 | return NULL; | |
14183 | } | |
14184 | ||
14185 | ||
14186 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14187 | PyObject *resultobj; | |
14188 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14189 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14190 | PyObject * obj0 = 0 ; | |
14191 | PyObject * obj1 = 0 ; | |
14192 | char *kwnames[] = { | |
14193 | (char *) "self",(char *) "data", NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14199 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14201 | { | |
14202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14203 | (arg1)->SetData(arg2); | |
14204 | ||
14205 | wxPyEndAllowThreads(__tstate); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | } | |
14208 | Py_INCREF(Py_None); resultobj = Py_None; | |
14209 | return resultobj; | |
14210 | fail: | |
14211 | return NULL; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14216 | PyObject *obj; | |
14217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14218 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14219 | Py_INCREF(obj); | |
14220 | return Py_BuildValue((char *)""); | |
14221 | } | |
14222 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj; | |
14224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14225 | int arg2 ; | |
14226 | wxString *arg3 = 0 ; | |
14227 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14228 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14229 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14230 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14231 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14232 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14233 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14234 | wxMDIParentFrame *result; | |
14235 | bool temp3 = False ; | |
14236 | wxPoint temp4 ; | |
14237 | wxSize temp5 ; | |
14238 | bool temp7 = False ; | |
14239 | PyObject * obj0 = 0 ; | |
14240 | PyObject * obj1 = 0 ; | |
14241 | PyObject * obj2 = 0 ; | |
14242 | PyObject * obj3 = 0 ; | |
14243 | PyObject * obj4 = 0 ; | |
14244 | PyObject * obj5 = 0 ; | |
14245 | PyObject * obj6 = 0 ; | |
14246 | char *kwnames[] = { | |
14247 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14248 | }; | |
14249 | ||
14250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14253 | arg2 = (int const) SWIG_AsInt(obj1); | |
14254 | if (PyErr_Occurred()) SWIG_fail; | |
14255 | { | |
14256 | arg3 = wxString_in_helper(obj2); | |
14257 | if (arg3 == NULL) SWIG_fail; | |
14258 | temp3 = True; | |
14259 | } | |
14260 | if (obj3) { | |
14261 | { | |
14262 | arg4 = &temp4; | |
14263 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14264 | } | |
14265 | } | |
14266 | if (obj4) { | |
14267 | { | |
14268 | arg5 = &temp5; | |
14269 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14270 | } | |
14271 | } | |
14272 | if (obj5) { | |
14273 | arg6 = (long) SWIG_AsLong(obj5); | |
14274 | if (PyErr_Occurred()) SWIG_fail; | |
14275 | } | |
14276 | if (obj6) { | |
14277 | { | |
14278 | arg7 = wxString_in_helper(obj6); | |
14279 | if (arg7 == NULL) SWIG_fail; | |
14280 | temp7 = True; | |
14281 | } | |
14282 | } | |
14283 | { | |
14284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14285 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14286 | ||
14287 | wxPyEndAllowThreads(__tstate); | |
14288 | if (PyErr_Occurred()) SWIG_fail; | |
14289 | } | |
14290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14291 | { | |
14292 | if (temp3) | |
14293 | delete arg3; | |
14294 | } | |
14295 | { | |
14296 | if (temp7) | |
14297 | delete arg7; | |
14298 | } | |
14299 | return resultobj; | |
14300 | fail: | |
14301 | { | |
14302 | if (temp3) | |
14303 | delete arg3; | |
14304 | } | |
14305 | { | |
14306 | if (temp7) | |
14307 | delete arg7; | |
14308 | } | |
14309 | return NULL; | |
14310 | } | |
14311 | ||
14312 | ||
14313 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14314 | PyObject *resultobj; | |
14315 | wxMDIParentFrame *result; | |
14316 | char *kwnames[] = { | |
14317 | NULL | |
14318 | }; | |
14319 | ||
14320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14321 | { | |
14322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14323 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14324 | ||
14325 | wxPyEndAllowThreads(__tstate); | |
14326 | if (PyErr_Occurred()) SWIG_fail; | |
14327 | } | |
14328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14329 | return resultobj; | |
14330 | fail: | |
14331 | return NULL; | |
14332 | } | |
14333 | ||
14334 | ||
14335 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14336 | PyObject *resultobj; | |
14337 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14338 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14339 | int arg3 ; | |
14340 | wxString *arg4 = 0 ; | |
14341 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14342 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14343 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14344 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14345 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14346 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14347 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14348 | bool result; | |
14349 | bool temp4 = False ; | |
14350 | wxPoint temp5 ; | |
14351 | wxSize temp6 ; | |
14352 | bool temp8 = False ; | |
14353 | PyObject * obj0 = 0 ; | |
14354 | PyObject * obj1 = 0 ; | |
14355 | PyObject * obj2 = 0 ; | |
14356 | PyObject * obj3 = 0 ; | |
14357 | PyObject * obj4 = 0 ; | |
14358 | PyObject * obj5 = 0 ; | |
14359 | PyObject * obj6 = 0 ; | |
14360 | PyObject * obj7 = 0 ; | |
14361 | char *kwnames[] = { | |
14362 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14363 | }; | |
14364 | ||
14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14368 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14370 | arg3 = (int const) SWIG_AsInt(obj2); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
14372 | { | |
14373 | arg4 = wxString_in_helper(obj3); | |
14374 | if (arg4 == NULL) SWIG_fail; | |
14375 | temp4 = True; | |
14376 | } | |
14377 | if (obj4) { | |
14378 | { | |
14379 | arg5 = &temp5; | |
14380 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14381 | } | |
14382 | } | |
14383 | if (obj5) { | |
14384 | { | |
14385 | arg6 = &temp6; | |
14386 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14387 | } | |
14388 | } | |
14389 | if (obj6) { | |
14390 | arg7 = (long) SWIG_AsLong(obj6); | |
14391 | if (PyErr_Occurred()) SWIG_fail; | |
14392 | } | |
14393 | if (obj7) { | |
14394 | { | |
14395 | arg8 = wxString_in_helper(obj7); | |
14396 | if (arg8 == NULL) SWIG_fail; | |
14397 | temp8 = True; | |
14398 | } | |
14399 | } | |
14400 | { | |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14402 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14403 | ||
14404 | wxPyEndAllowThreads(__tstate); | |
14405 | if (PyErr_Occurred()) SWIG_fail; | |
14406 | } | |
14407 | { | |
14408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14409 | } | |
14410 | { | |
14411 | if (temp4) | |
14412 | delete arg4; | |
14413 | } | |
14414 | { | |
14415 | if (temp8) | |
14416 | delete arg8; | |
14417 | } | |
14418 | return resultobj; | |
14419 | fail: | |
14420 | { | |
14421 | if (temp4) | |
14422 | delete arg4; | |
14423 | } | |
14424 | { | |
14425 | if (temp8) | |
14426 | delete arg8; | |
14427 | } | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
14432 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14433 | PyObject *resultobj; | |
14434 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14435 | PyObject * obj0 = 0 ; | |
14436 | char *kwnames[] = { | |
14437 | (char *) "self", NULL | |
14438 | }; | |
14439 | ||
14440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14443 | { | |
14444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14445 | (arg1)->ActivateNext(); | |
14446 | ||
14447 | wxPyEndAllowThreads(__tstate); | |
14448 | if (PyErr_Occurred()) SWIG_fail; | |
14449 | } | |
14450 | Py_INCREF(Py_None); resultobj = Py_None; | |
14451 | return resultobj; | |
14452 | fail: | |
14453 | return NULL; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14460 | PyObject * obj0 = 0 ; | |
14461 | char *kwnames[] = { | |
14462 | (char *) "self", NULL | |
14463 | }; | |
14464 | ||
14465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14468 | { | |
14469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14470 | (arg1)->ActivatePrevious(); | |
14471 | ||
14472 | wxPyEndAllowThreads(__tstate); | |
14473 | if (PyErr_Occurred()) SWIG_fail; | |
14474 | } | |
14475 | Py_INCREF(Py_None); resultobj = Py_None; | |
14476 | return resultobj; | |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14485 | PyObject * obj0 = 0 ; | |
14486 | char *kwnames[] = { | |
14487 | (char *) "self", NULL | |
14488 | }; | |
14489 | ||
14490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | (arg1)->ArrangeIcons(); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | Py_INCREF(Py_None); resultobj = Py_None; | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14518 | { | |
14519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14520 | (arg1)->Cascade(); | |
14521 | ||
14522 | wxPyEndAllowThreads(__tstate); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | Py_INCREF(Py_None); resultobj = Py_None; | |
14526 | return resultobj; | |
14527 | fail: | |
14528 | return NULL; | |
14529 | } | |
14530 | ||
14531 | ||
14532 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14533 | PyObject *resultobj; | |
14534 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14535 | wxMDIChildFrame *result; | |
14536 | PyObject * obj0 = 0 ; | |
14537 | char *kwnames[] = { | |
14538 | (char *) "self", NULL | |
14539 | }; | |
14540 | ||
14541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14544 | { | |
14545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14546 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14547 | ||
14548 | wxPyEndAllowThreads(__tstate); | |
14549 | if (PyErr_Occurred()) SWIG_fail; | |
14550 | } | |
14551 | { | |
14552 | resultobj = wxPyMake_wxObject(result); | |
14553 | } | |
14554 | return resultobj; | |
14555 | fail: | |
14556 | return NULL; | |
14557 | } | |
14558 | ||
14559 | ||
14560 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14561 | PyObject *resultobj; | |
14562 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14563 | wxMDIClientWindow *result; | |
14564 | PyObject * obj0 = 0 ; | |
14565 | char *kwnames[] = { | |
14566 | (char *) "self", NULL | |
14567 | }; | |
14568 | ||
14569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14572 | { | |
14573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14574 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14575 | ||
14576 | wxPyEndAllowThreads(__tstate); | |
14577 | if (PyErr_Occurred()) SWIG_fail; | |
14578 | } | |
14579 | { | |
14580 | resultobj = wxPyMake_wxObject(result); | |
14581 | } | |
14582 | return resultobj; | |
14583 | fail: | |
14584 | return NULL; | |
14585 | } | |
14586 | ||
14587 | ||
14588 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14589 | PyObject *resultobj; | |
14590 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14591 | wxWindow *result; | |
14592 | PyObject * obj0 = 0 ; | |
14593 | char *kwnames[] = { | |
14594 | (char *) "self", NULL | |
14595 | }; | |
14596 | ||
14597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14600 | { | |
14601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14602 | result = (wxWindow *)(arg1)->GetToolBar(); | |
14603 | ||
14604 | wxPyEndAllowThreads(__tstate); | |
14605 | if (PyErr_Occurred()) SWIG_fail; | |
14606 | } | |
14607 | { | |
14608 | resultobj = wxPyMake_wxObject(result); | |
14609 | } | |
14610 | return resultobj; | |
14611 | fail: | |
14612 | return NULL; | |
14613 | } | |
14614 | ||
14615 | ||
14616 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14617 | PyObject *resultobj; | |
14618 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14619 | PyObject * obj0 = 0 ; | |
14620 | char *kwnames[] = { | |
14621 | (char *) "self", NULL | |
14622 | }; | |
14623 | ||
14624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14627 | { | |
14628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14629 | (arg1)->Tile(); | |
14630 | ||
14631 | wxPyEndAllowThreads(__tstate); | |
14632 | if (PyErr_Occurred()) SWIG_fail; | |
14633 | } | |
14634 | Py_INCREF(Py_None); resultobj = Py_None; | |
14635 | return resultobj; | |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
14641 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
14642 | PyObject *obj; | |
14643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14644 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14645 | Py_INCREF(obj); | |
14646 | return Py_BuildValue((char *)""); | |
14647 | } | |
14648 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14649 | PyObject *resultobj; | |
14650 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14651 | int arg2 ; | |
14652 | wxString *arg3 = 0 ; | |
14653 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14654 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14655 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14656 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14657 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
14658 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14659 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14660 | wxMDIChildFrame *result; | |
14661 | bool temp3 = False ; | |
14662 | wxPoint temp4 ; | |
14663 | wxSize temp5 ; | |
14664 | bool temp7 = False ; | |
14665 | PyObject * obj0 = 0 ; | |
14666 | PyObject * obj1 = 0 ; | |
14667 | PyObject * obj2 = 0 ; | |
14668 | PyObject * obj3 = 0 ; | |
14669 | PyObject * obj4 = 0 ; | |
14670 | PyObject * obj5 = 0 ; | |
14671 | PyObject * obj6 = 0 ; | |
14672 | char *kwnames[] = { | |
14673 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14674 | }; | |
14675 | ||
14676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14679 | arg2 = (int const) SWIG_AsInt(obj1); | |
14680 | if (PyErr_Occurred()) SWIG_fail; | |
14681 | { | |
14682 | arg3 = wxString_in_helper(obj2); | |
14683 | if (arg3 == NULL) SWIG_fail; | |
14684 | temp3 = True; | |
14685 | } | |
14686 | if (obj3) { | |
14687 | { | |
14688 | arg4 = &temp4; | |
14689 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14690 | } | |
14691 | } | |
14692 | if (obj4) { | |
14693 | { | |
14694 | arg5 = &temp5; | |
14695 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14696 | } | |
14697 | } | |
14698 | if (obj5) { | |
14699 | arg6 = (long) SWIG_AsLong(obj5); | |
14700 | if (PyErr_Occurred()) SWIG_fail; | |
14701 | } | |
14702 | if (obj6) { | |
14703 | { | |
14704 | arg7 = wxString_in_helper(obj6); | |
14705 | if (arg7 == NULL) SWIG_fail; | |
14706 | temp7 = True; | |
14707 | } | |
14708 | } | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14711 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14712 | ||
14713 | wxPyEndAllowThreads(__tstate); | |
14714 | if (PyErr_Occurred()) SWIG_fail; | |
14715 | } | |
14716 | { | |
14717 | resultobj = wxPyMake_wxObject(result); | |
14718 | } | |
14719 | { | |
14720 | if (temp3) | |
14721 | delete arg3; | |
14722 | } | |
14723 | { | |
14724 | if (temp7) | |
14725 | delete arg7; | |
14726 | } | |
14727 | return resultobj; | |
14728 | fail: | |
14729 | { | |
14730 | if (temp3) | |
14731 | delete arg3; | |
14732 | } | |
14733 | { | |
14734 | if (temp7) | |
14735 | delete arg7; | |
14736 | } | |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
14741 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14742 | PyObject *resultobj; | |
14743 | wxMDIChildFrame *result; | |
14744 | char *kwnames[] = { | |
14745 | NULL | |
14746 | }; | |
14747 | ||
14748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
14749 | { | |
14750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14751 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
14752 | ||
14753 | wxPyEndAllowThreads(__tstate); | |
14754 | if (PyErr_Occurred()) SWIG_fail; | |
14755 | } | |
14756 | { | |
14757 | resultobj = wxPyMake_wxObject(result); | |
14758 | } | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
14765 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14766 | PyObject *resultobj; | |
14767 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14768 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14769 | int arg3 ; | |
14770 | wxString *arg4 = 0 ; | |
14771 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14772 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14773 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14774 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14775 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
14776 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14777 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14778 | bool result; | |
14779 | bool temp4 = False ; | |
14780 | wxPoint temp5 ; | |
14781 | wxSize temp6 ; | |
14782 | bool temp8 = False ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
14785 | PyObject * obj2 = 0 ; | |
14786 | PyObject * obj3 = 0 ; | |
14787 | PyObject * obj4 = 0 ; | |
14788 | PyObject * obj5 = 0 ; | |
14789 | PyObject * obj6 = 0 ; | |
14790 | PyObject * obj7 = 0 ; | |
14791 | char *kwnames[] = { | |
14792 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14793 | }; | |
14794 | ||
14795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
14799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14800 | arg3 = (int const) SWIG_AsInt(obj2); | |
14801 | if (PyErr_Occurred()) SWIG_fail; | |
14802 | { | |
14803 | arg4 = wxString_in_helper(obj3); | |
14804 | if (arg4 == NULL) SWIG_fail; | |
14805 | temp4 = True; | |
14806 | } | |
14807 | if (obj4) { | |
14808 | { | |
14809 | arg5 = &temp5; | |
14810 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14811 | } | |
14812 | } | |
14813 | if (obj5) { | |
14814 | { | |
14815 | arg6 = &temp6; | |
14816 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14817 | } | |
14818 | } | |
14819 | if (obj6) { | |
14820 | arg7 = (long) SWIG_AsLong(obj6); | |
14821 | if (PyErr_Occurred()) SWIG_fail; | |
14822 | } | |
14823 | if (obj7) { | |
14824 | { | |
14825 | arg8 = wxString_in_helper(obj7); | |
14826 | if (arg8 == NULL) SWIG_fail; | |
14827 | temp8 = True; | |
14828 | } | |
14829 | } | |
14830 | { | |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14833 | ||
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
14837 | { | |
14838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14839 | } | |
14840 | { | |
14841 | if (temp4) | |
14842 | delete arg4; | |
14843 | } | |
14844 | { | |
14845 | if (temp8) | |
14846 | delete arg8; | |
14847 | } | |
14848 | return resultobj; | |
14849 | fail: | |
14850 | { | |
14851 | if (temp4) | |
14852 | delete arg4; | |
14853 | } | |
14854 | { | |
14855 | if (temp8) | |
14856 | delete arg8; | |
14857 | } | |
14858 | return NULL; | |
14859 | } | |
14860 | ||
14861 | ||
14862 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14863 | PyObject *resultobj; | |
14864 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14865 | PyObject * obj0 = 0 ; | |
14866 | char *kwnames[] = { | |
14867 | (char *) "self", NULL | |
14868 | }; | |
14869 | ||
14870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
14871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14873 | { | |
14874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14875 | (arg1)->Activate(); | |
14876 | ||
14877 | wxPyEndAllowThreads(__tstate); | |
14878 | if (PyErr_Occurred()) SWIG_fail; | |
14879 | } | |
14880 | Py_INCREF(Py_None); resultobj = Py_None; | |
14881 | return resultobj; | |
14882 | fail: | |
14883 | return NULL; | |
14884 | } | |
14885 | ||
14886 | ||
14887 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14888 | PyObject *resultobj; | |
14889 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14890 | bool arg2 ; | |
14891 | PyObject * obj0 = 0 ; | |
14892 | PyObject * obj1 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "self",(char *) "maximize", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
14898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14900 | arg2 = (bool) SWIG_AsBool(obj1); | |
14901 | if (PyErr_Occurred()) SWIG_fail; | |
14902 | { | |
14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14904 | (arg1)->Maximize(arg2); | |
14905 | ||
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
14909 | Py_INCREF(Py_None); resultobj = Py_None; | |
14910 | return resultobj; | |
14911 | fail: | |
14912 | return NULL; | |
14913 | } | |
14914 | ||
14915 | ||
14916 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14917 | PyObject *resultobj; | |
14918 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14919 | PyObject * obj0 = 0 ; | |
14920 | char *kwnames[] = { | |
14921 | (char *) "self", NULL | |
14922 | }; | |
14923 | ||
14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
14925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
14926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14927 | { | |
14928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14929 | (arg1)->Restore(); | |
14930 | ||
14931 | wxPyEndAllowThreads(__tstate); | |
14932 | if (PyErr_Occurred()) SWIG_fail; | |
14933 | } | |
14934 | Py_INCREF(Py_None); resultobj = Py_None; | |
14935 | return resultobj; | |
14936 | fail: | |
14937 | return NULL; | |
14938 | } | |
14939 | ||
14940 | ||
14941 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
14942 | PyObject *obj; | |
14943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14944 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
14945 | Py_INCREF(obj); | |
14946 | return Py_BuildValue((char *)""); | |
14947 | } | |
14948 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14949 | PyObject *resultobj; | |
14950 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14951 | long arg2 = (long) 0 ; | |
14952 | wxMDIClientWindow *result; | |
14953 | PyObject * obj0 = 0 ; | |
14954 | PyObject * obj1 = 0 ; | |
14955 | char *kwnames[] = { | |
14956 | (char *) "parent",(char *) "style", NULL | |
14957 | }; | |
14958 | ||
14959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
14960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14962 | if (obj1) { | |
14963 | arg2 = (long) SWIG_AsLong(obj1); | |
14964 | if (PyErr_Occurred()) SWIG_fail; | |
14965 | } | |
14966 | { | |
14967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14968 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
14969 | ||
14970 | wxPyEndAllowThreads(__tstate); | |
14971 | if (PyErr_Occurred()) SWIG_fail; | |
14972 | } | |
14973 | { | |
14974 | resultobj = wxPyMake_wxObject(result); | |
14975 | } | |
14976 | return resultobj; | |
14977 | fail: | |
14978 | return NULL; | |
14979 | } | |
14980 | ||
14981 | ||
14982 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14983 | PyObject *resultobj; | |
14984 | wxMDIClientWindow *result; | |
14985 | char *kwnames[] = { | |
14986 | NULL | |
14987 | }; | |
14988 | ||
14989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
14990 | { | |
14991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14992 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
14993 | ||
14994 | wxPyEndAllowThreads(__tstate); | |
14995 | if (PyErr_Occurred()) SWIG_fail; | |
14996 | } | |
14997 | { | |
14998 | resultobj = wxPyMake_wxObject(result); | |
14999 | } | |
15000 | return resultobj; | |
15001 | fail: | |
15002 | return NULL; | |
15003 | } | |
15004 | ||
15005 | ||
15006 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15007 | PyObject *resultobj; | |
15008 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
15009 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15010 | long arg3 = (long) 0 ; | |
15011 | bool result; | |
15012 | PyObject * obj0 = 0 ; | |
15013 | PyObject * obj1 = 0 ; | |
15014 | PyObject * obj2 = 0 ; | |
15015 | char *kwnames[] = { | |
15016 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15017 | }; | |
15018 | ||
15019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15024 | if (obj2) { | |
15025 | arg3 = (long) SWIG_AsLong(obj2); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | } | |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | result = (bool)(arg1)->Create(arg2,arg3); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15035 | { | |
15036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15037 | } | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15045 | PyObject *obj; | |
15046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15047 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15048 | Py_INCREF(obj); | |
15049 | return Py_BuildValue((char *)""); | |
15050 | } | |
15051 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15052 | PyObject *resultobj; | |
15053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15054 | int arg2 ; | |
15055 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15056 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15057 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15058 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15059 | long arg5 = (long) 0 ; | |
15060 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15061 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15062 | wxPyWindow *result; | |
15063 | wxPoint temp3 ; | |
15064 | wxSize temp4 ; | |
15065 | bool temp6 = False ; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | PyObject * obj1 = 0 ; | |
15068 | PyObject * obj2 = 0 ; | |
15069 | PyObject * obj3 = 0 ; | |
15070 | PyObject * obj4 = 0 ; | |
15071 | PyObject * obj5 = 0 ; | |
15072 | char *kwnames[] = { | |
15073 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15074 | }; | |
15075 | ||
15076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15079 | arg2 = (int const) SWIG_AsInt(obj1); | |
15080 | if (PyErr_Occurred()) SWIG_fail; | |
15081 | if (obj2) { | |
15082 | { | |
15083 | arg3 = &temp3; | |
15084 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15085 | } | |
15086 | } | |
15087 | if (obj3) { | |
15088 | { | |
15089 | arg4 = &temp4; | |
15090 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15091 | } | |
15092 | } | |
15093 | if (obj4) { | |
15094 | arg5 = (long) SWIG_AsLong(obj4); | |
15095 | if (PyErr_Occurred()) SWIG_fail; | |
15096 | } | |
15097 | if (obj5) { | |
15098 | { | |
15099 | arg6 = wxString_in_helper(obj5); | |
15100 | if (arg6 == NULL) SWIG_fail; | |
15101 | temp6 = True; | |
15102 | } | |
15103 | } | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15112 | { | |
15113 | if (temp6) | |
15114 | delete arg6; | |
15115 | } | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | { | |
15119 | if (temp6) | |
15120 | delete arg6; | |
15121 | } | |
15122 | return NULL; | |
15123 | } | |
15124 | ||
15125 | ||
15126 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15127 | PyObject *resultobj; | |
15128 | wxPyWindow *result; | |
15129 | char *kwnames[] = { | |
15130 | NULL | |
15131 | }; | |
15132 | ||
15133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | result = (wxPyWindow *)new wxPyWindow(); | |
15137 | ||
15138 | wxPyEndAllowThreads(__tstate); | |
15139 | if (PyErr_Occurred()) SWIG_fail; | |
15140 | } | |
15141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15142 | return resultobj; | |
15143 | fail: | |
15144 | return NULL; | |
15145 | } | |
15146 | ||
15147 | ||
15148 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15149 | PyObject *resultobj; | |
15150 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15151 | PyObject *arg2 = (PyObject *) 0 ; | |
15152 | PyObject *arg3 = (PyObject *) 0 ; | |
15153 | PyObject * obj0 = 0 ; | |
15154 | PyObject * obj1 = 0 ; | |
15155 | PyObject * obj2 = 0 ; | |
15156 | char *kwnames[] = { | |
15157 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15158 | }; | |
15159 | ||
15160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15163 | arg2 = obj1; | |
15164 | arg3 = obj2; | |
15165 | { | |
15166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15167 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15168 | ||
15169 | wxPyEndAllowThreads(__tstate); | |
15170 | if (PyErr_Occurred()) SWIG_fail; | |
15171 | } | |
15172 | Py_INCREF(Py_None); resultobj = Py_None; | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | return NULL; | |
15176 | } | |
15177 | ||
15178 | ||
a5ee0656 RD |
15179 | static PyObject *_wrap_PyWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
15180 | PyObject *resultobj; | |
15181 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15182 | wxSize *arg2 = 0 ; | |
15183 | wxSize temp2 ; | |
15184 | PyObject * obj0 = 0 ; | |
15185 | PyObject * obj1 = 0 ; | |
15186 | char *kwnames[] = { | |
15187 | (char *) "self",(char *) "size", NULL | |
15188 | }; | |
15189 | ||
15190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
15191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15193 | { | |
15194 | arg2 = &temp2; | |
15195 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15196 | } | |
15197 | { | |
15198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15199 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | Py_INCREF(Py_None); resultobj = Py_None; | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
d55e5bfc RD |
15211 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
15212 | PyObject *resultobj; | |
15213 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15214 | int arg2 ; | |
15215 | int arg3 ; | |
15216 | int arg4 ; | |
15217 | int arg5 ; | |
15218 | PyObject * obj0 = 0 ; | |
15219 | PyObject * obj1 = 0 ; | |
15220 | PyObject * obj2 = 0 ; | |
15221 | PyObject * obj3 = 0 ; | |
15222 | PyObject * obj4 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15225 | }; | |
15226 | ||
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15230 | arg2 = (int) SWIG_AsInt(obj1); | |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
15232 | arg3 = (int) SWIG_AsInt(obj2); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | arg4 = (int) SWIG_AsInt(obj3); | |
15235 | if (PyErr_Occurred()) SWIG_fail; | |
15236 | arg5 = (int) SWIG_AsInt(obj4); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | { | |
15239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15240 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15241 | ||
15242 | wxPyEndAllowThreads(__tstate); | |
15243 | if (PyErr_Occurred()) SWIG_fail; | |
15244 | } | |
15245 | Py_INCREF(Py_None); resultobj = Py_None; | |
15246 | return resultobj; | |
15247 | fail: | |
15248 | return NULL; | |
15249 | } | |
15250 | ||
15251 | ||
15252 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15253 | PyObject *resultobj; | |
15254 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15255 | int arg2 ; | |
15256 | int arg3 ; | |
15257 | int arg4 ; | |
15258 | int arg5 ; | |
15259 | int arg6 = (int) wxSIZE_AUTO ; | |
15260 | PyObject * obj0 = 0 ; | |
15261 | PyObject * obj1 = 0 ; | |
15262 | PyObject * obj2 = 0 ; | |
15263 | PyObject * obj3 = 0 ; | |
15264 | PyObject * obj4 = 0 ; | |
15265 | PyObject * obj5 = 0 ; | |
15266 | char *kwnames[] = { | |
15267 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15268 | }; | |
15269 | ||
15270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15273 | arg2 = (int) SWIG_AsInt(obj1); | |
15274 | if (PyErr_Occurred()) SWIG_fail; | |
15275 | arg3 = (int) SWIG_AsInt(obj2); | |
15276 | if (PyErr_Occurred()) SWIG_fail; | |
15277 | arg4 = (int) SWIG_AsInt(obj3); | |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | arg5 = (int) SWIG_AsInt(obj4); | |
15280 | if (PyErr_Occurred()) SWIG_fail; | |
15281 | if (obj5) { | |
15282 | arg6 = (int) SWIG_AsInt(obj5); | |
15283 | if (PyErr_Occurred()) SWIG_fail; | |
15284 | } | |
15285 | { | |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15287 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
15290 | if (PyErr_Occurred()) SWIG_fail; | |
15291 | } | |
15292 | Py_INCREF(Py_None); resultobj = Py_None; | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
15299 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15300 | PyObject *resultobj; | |
15301 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15302 | int arg2 ; | |
15303 | int arg3 ; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | PyObject * obj1 = 0 ; | |
15306 | PyObject * obj2 = 0 ; | |
15307 | char *kwnames[] = { | |
15308 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15309 | }; | |
15310 | ||
15311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15314 | arg2 = (int) SWIG_AsInt(obj1); | |
15315 | if (PyErr_Occurred()) SWIG_fail; | |
15316 | arg3 = (int) SWIG_AsInt(obj2); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | { | |
15319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15320 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15321 | ||
15322 | wxPyEndAllowThreads(__tstate); | |
15323 | if (PyErr_Occurred()) SWIG_fail; | |
15324 | } | |
15325 | Py_INCREF(Py_None); resultobj = Py_None; | |
15326 | return resultobj; | |
15327 | fail: | |
15328 | return NULL; | |
15329 | } | |
15330 | ||
15331 | ||
15332 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15333 | PyObject *resultobj; | |
15334 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15335 | int arg2 ; | |
15336 | int arg3 ; | |
15337 | PyObject * obj0 = 0 ; | |
15338 | PyObject * obj1 = 0 ; | |
15339 | PyObject * obj2 = 0 ; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15347 | arg2 = (int) SWIG_AsInt(obj1); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | arg3 = (int) SWIG_AsInt(obj2); | |
15350 | if (PyErr_Occurred()) SWIG_fail; | |
15351 | { | |
15352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15353 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15354 | ||
15355 | wxPyEndAllowThreads(__tstate); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
15358 | Py_INCREF(Py_None); resultobj = Py_None; | |
15359 | return resultobj; | |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
15365 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15366 | PyObject *resultobj; | |
15367 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15368 | int *arg2 = (int *) 0 ; | |
15369 | int *arg3 = (int *) 0 ; | |
15370 | int temp2 ; | |
15371 | int temp3 ; | |
15372 | PyObject * obj0 = 0 ; | |
15373 | char *kwnames[] = { | |
15374 | (char *) "self", NULL | |
15375 | }; | |
15376 | ||
15377 | arg2 = &temp2; | |
15378 | arg3 = &temp3; | |
15379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15382 | { | |
15383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15384 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15385 | ||
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | Py_INCREF(Py_None); resultobj = Py_None; | |
15390 | { | |
15391 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15392 | resultobj = t_output_helper(resultobj,o); | |
15393 | } | |
15394 | { | |
15395 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15396 | resultobj = t_output_helper(resultobj,o); | |
15397 | } | |
15398 | return resultobj; | |
15399 | fail: | |
15400 | return NULL; | |
15401 | } | |
15402 | ||
15403 | ||
15404 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15405 | PyObject *resultobj; | |
15406 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15407 | int *arg2 = (int *) 0 ; | |
15408 | int *arg3 = (int *) 0 ; | |
15409 | int temp2 ; | |
15410 | int temp3 ; | |
15411 | PyObject * obj0 = 0 ; | |
15412 | char *kwnames[] = { | |
15413 | (char *) "self", NULL | |
15414 | }; | |
15415 | ||
15416 | arg2 = &temp2; | |
15417 | arg3 = &temp3; | |
15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15421 | { | |
15422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15423 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15424 | ||
15425 | wxPyEndAllowThreads(__tstate); | |
15426 | if (PyErr_Occurred()) SWIG_fail; | |
15427 | } | |
15428 | Py_INCREF(Py_None); resultobj = Py_None; | |
15429 | { | |
15430 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15431 | resultobj = t_output_helper(resultobj,o); | |
15432 | } | |
15433 | { | |
15434 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15435 | resultobj = t_output_helper(resultobj,o); | |
15436 | } | |
15437 | return resultobj; | |
15438 | fail: | |
15439 | return NULL; | |
15440 | } | |
15441 | ||
15442 | ||
15443 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15444 | PyObject *resultobj; | |
15445 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15446 | int *arg2 = (int *) 0 ; | |
15447 | int *arg3 = (int *) 0 ; | |
15448 | int temp2 ; | |
15449 | int temp3 ; | |
15450 | PyObject * obj0 = 0 ; | |
15451 | char *kwnames[] = { | |
15452 | (char *) "self", NULL | |
15453 | }; | |
15454 | ||
15455 | arg2 = &temp2; | |
15456 | arg3 = &temp3; | |
15457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15460 | { | |
15461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15462 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15463 | ||
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
15467 | Py_INCREF(Py_None); resultobj = Py_None; | |
15468 | { | |
15469 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15470 | resultobj = t_output_helper(resultobj,o); | |
15471 | } | |
15472 | { | |
15473 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15474 | resultobj = t_output_helper(resultobj,o); | |
15475 | } | |
15476 | return resultobj; | |
15477 | fail: | |
15478 | return NULL; | |
15479 | } | |
15480 | ||
15481 | ||
15482 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15483 | PyObject *resultobj; | |
15484 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15485 | wxSize result; | |
15486 | PyObject * obj0 = 0 ; | |
15487 | char *kwnames[] = { | |
15488 | (char *) "self", NULL | |
15489 | }; | |
15490 | ||
15491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15494 | { | |
15495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15496 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15497 | ||
15498 | wxPyEndAllowThreads(__tstate); | |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
15500 | } | |
15501 | { | |
15502 | wxSize * resultptr; | |
15503 | resultptr = new wxSize((wxSize &) result); | |
15504 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15505 | } | |
15506 | return resultobj; | |
15507 | fail: | |
15508 | return NULL; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj; | |
15514 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15515 | wxSize result; | |
15516 | PyObject * obj0 = 0 ; | |
15517 | char *kwnames[] = { | |
15518 | (char *) "self", NULL | |
15519 | }; | |
15520 | ||
15521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15524 | { | |
15525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15526 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15527 | ||
15528 | wxPyEndAllowThreads(__tstate); | |
15529 | if (PyErr_Occurred()) SWIG_fail; | |
15530 | } | |
15531 | { | |
15532 | wxSize * resultptr; | |
15533 | resultptr = new wxSize((wxSize &) result); | |
15534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15535 | } | |
15536 | return resultobj; | |
15537 | fail: | |
15538 | return NULL; | |
15539 | } | |
15540 | ||
15541 | ||
15542 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15543 | PyObject *resultobj; | |
15544 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15545 | PyObject * obj0 = 0 ; | |
15546 | char *kwnames[] = { | |
15547 | (char *) "self", NULL | |
15548 | }; | |
15549 | ||
15550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15553 | { | |
15554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15555 | (arg1)->base_InitDialog(); | |
15556 | ||
15557 | wxPyEndAllowThreads(__tstate); | |
15558 | if (PyErr_Occurred()) SWIG_fail; | |
15559 | } | |
15560 | Py_INCREF(Py_None); resultobj = Py_None; | |
15561 | return resultobj; | |
15562 | fail: | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
15567 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15568 | PyObject *resultobj; | |
15569 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15570 | bool result; | |
15571 | PyObject * obj0 = 0 ; | |
15572 | char *kwnames[] = { | |
15573 | (char *) "self", NULL | |
15574 | }; | |
15575 | ||
15576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15579 | { | |
15580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15581 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15582 | ||
15583 | wxPyEndAllowThreads(__tstate); | |
15584 | if (PyErr_Occurred()) SWIG_fail; | |
15585 | } | |
15586 | { | |
15587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15588 | } | |
15589 | return resultobj; | |
15590 | fail: | |
15591 | return NULL; | |
15592 | } | |
15593 | ||
15594 | ||
15595 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15596 | PyObject *resultobj; | |
15597 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15598 | bool result; | |
15599 | PyObject * obj0 = 0 ; | |
15600 | char *kwnames[] = { | |
15601 | (char *) "self", NULL | |
15602 | }; | |
15603 | ||
15604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15610 | ||
15611 | wxPyEndAllowThreads(__tstate); | |
15612 | if (PyErr_Occurred()) SWIG_fail; | |
15613 | } | |
15614 | { | |
15615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15616 | } | |
15617 | return resultobj; | |
15618 | fail: | |
15619 | return NULL; | |
15620 | } | |
15621 | ||
15622 | ||
15623 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15624 | PyObject *resultobj; | |
15625 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15626 | bool result; | |
15627 | PyObject * obj0 = 0 ; | |
15628 | char *kwnames[] = { | |
15629 | (char *) "self", NULL | |
15630 | }; | |
15631 | ||
15632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15635 | { | |
15636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15637 | result = (bool)(arg1)->base_Validate(); | |
15638 | ||
15639 | wxPyEndAllowThreads(__tstate); | |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
15642 | { | |
15643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15644 | } | |
15645 | return resultobj; | |
15646 | fail: | |
15647 | return NULL; | |
15648 | } | |
15649 | ||
15650 | ||
15651 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj; | |
15653 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15654 | bool result; | |
15655 | PyObject * obj0 = 0 ; | |
15656 | char *kwnames[] = { | |
15657 | (char *) "self", NULL | |
15658 | }; | |
15659 | ||
15660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15663 | { | |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15665 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15666 | ||
15667 | wxPyEndAllowThreads(__tstate); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15670 | { | |
15671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15672 | } | |
15673 | return resultobj; | |
15674 | fail: | |
15675 | return NULL; | |
15676 | } | |
15677 | ||
15678 | ||
15679 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15680 | PyObject *resultobj; | |
15681 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15682 | bool result; | |
15683 | PyObject * obj0 = 0 ; | |
15684 | char *kwnames[] = { | |
15685 | (char *) "self", NULL | |
15686 | }; | |
15687 | ||
15688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15691 | { | |
15692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15693 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15694 | ||
15695 | wxPyEndAllowThreads(__tstate); | |
15696 | if (PyErr_Occurred()) SWIG_fail; | |
15697 | } | |
15698 | { | |
15699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15700 | } | |
15701 | return resultobj; | |
15702 | fail: | |
15703 | return NULL; | |
15704 | } | |
15705 | ||
15706 | ||
15707 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15708 | PyObject *resultobj; | |
15709 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15710 | wxSize result; | |
15711 | PyObject * obj0 = 0 ; | |
15712 | char *kwnames[] = { | |
15713 | (char *) "self", NULL | |
15714 | }; | |
15715 | ||
15716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15719 | { | |
15720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15721 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
15722 | ||
15723 | wxPyEndAllowThreads(__tstate); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
15726 | { | |
15727 | wxSize * resultptr; | |
15728 | resultptr = new wxSize((wxSize &) result); | |
15729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15730 | } | |
15731 | return resultobj; | |
15732 | fail: | |
15733 | return NULL; | |
15734 | } | |
15735 | ||
15736 | ||
15737 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15738 | PyObject *resultobj; | |
15739 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15740 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15741 | PyObject * obj0 = 0 ; | |
15742 | PyObject * obj1 = 0 ; | |
15743 | char *kwnames[] = { | |
15744 | (char *) "self",(char *) "child", NULL | |
15745 | }; | |
15746 | ||
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15752 | { | |
15753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15754 | (arg1)->base_AddChild(arg2); | |
15755 | ||
15756 | wxPyEndAllowThreads(__tstate); | |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
15758 | } | |
15759 | Py_INCREF(Py_None); resultobj = Py_None; | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | return NULL; | |
15763 | } | |
15764 | ||
15765 | ||
15766 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15767 | PyObject *resultobj; | |
15768 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15769 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | PyObject * obj1 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self",(char *) "child", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15781 | { | |
15782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15783 | (arg1)->base_RemoveChild(arg2); | |
15784 | ||
15785 | wxPyEndAllowThreads(__tstate); | |
15786 | if (PyErr_Occurred()) SWIG_fail; | |
15787 | } | |
15788 | Py_INCREF(Py_None); resultobj = Py_None; | |
15789 | return resultobj; | |
15790 | fail: | |
15791 | return NULL; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15796 | PyObject *resultobj; | |
15797 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15798 | bool result; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | char *kwnames[] = { | |
15801 | (char *) "self", NULL | |
15802 | }; | |
15803 | ||
15804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
15805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15807 | { | |
15808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 15809 | result = (bool)((wxPyWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
15810 | |
15811 | wxPyEndAllowThreads(__tstate); | |
15812 | if (PyErr_Occurred()) SWIG_fail; | |
15813 | } | |
15814 | { | |
15815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15816 | } | |
15817 | return resultobj; | |
15818 | fail: | |
15819 | return NULL; | |
15820 | } | |
15821 | ||
15822 | ||
15823 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15824 | PyObject *resultobj; | |
15825 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15826 | wxColour *arg2 = 0 ; | |
15827 | wxColour temp2 ; | |
15828 | PyObject * obj0 = 0 ; | |
15829 | PyObject * obj1 = 0 ; | |
15830 | char *kwnames[] = { | |
15831 | (char *) "self",(char *) "c", NULL | |
15832 | }; | |
15833 | ||
15834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
15835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15837 | { | |
15838 | arg2 = &temp2; | |
15839 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15840 | } | |
15841 | { | |
15842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15843 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
15844 | ||
15845 | wxPyEndAllowThreads(__tstate); | |
15846 | if (PyErr_Occurred()) SWIG_fail; | |
15847 | } | |
15848 | Py_INCREF(Py_None); resultobj = Py_None; | |
15849 | return resultobj; | |
15850 | fail: | |
15851 | return NULL; | |
15852 | } | |
15853 | ||
15854 | ||
a5ee0656 RD |
15855 | static PyObject *_wrap_PyWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15856 | PyObject *resultobj; | |
15857 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15858 | wxVisualAttributes result; | |
15859 | PyObject * obj0 = 0 ; | |
15860 | char *kwnames[] = { | |
15861 | (char *) "self", NULL | |
15862 | }; | |
15863 | ||
15864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
15865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15867 | { | |
15868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15869 | result = (arg1)->base_GetDefaultAttributes(); | |
15870 | ||
15871 | wxPyEndAllowThreads(__tstate); | |
15872 | if (PyErr_Occurred()) SWIG_fail; | |
15873 | } | |
15874 | { | |
15875 | wxVisualAttributes * resultptr; | |
15876 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15878 | } | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
d55e5bfc RD |
15885 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { |
15886 | PyObject *obj; | |
15887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15888 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
15889 | Py_INCREF(obj); | |
15890 | return Py_BuildValue((char *)""); | |
15891 | } | |
15892 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15893 | PyObject *resultobj; | |
15894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15895 | int arg2 ; | |
15896 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15897 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15898 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15899 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15900 | long arg5 = (long) 0 ; | |
15901 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15902 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15903 | wxPyPanel *result; | |
15904 | wxPoint temp3 ; | |
15905 | wxSize temp4 ; | |
15906 | bool temp6 = False ; | |
15907 | PyObject * obj0 = 0 ; | |
15908 | PyObject * obj1 = 0 ; | |
15909 | PyObject * obj2 = 0 ; | |
15910 | PyObject * obj3 = 0 ; | |
15911 | PyObject * obj4 = 0 ; | |
15912 | PyObject * obj5 = 0 ; | |
15913 | char *kwnames[] = { | |
15914 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15915 | }; | |
15916 | ||
15917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15920 | arg2 = (int const) SWIG_AsInt(obj1); | |
15921 | if (PyErr_Occurred()) SWIG_fail; | |
15922 | if (obj2) { | |
15923 | { | |
15924 | arg3 = &temp3; | |
15925 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15926 | } | |
15927 | } | |
15928 | if (obj3) { | |
15929 | { | |
15930 | arg4 = &temp4; | |
15931 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15932 | } | |
15933 | } | |
15934 | if (obj4) { | |
15935 | arg5 = (long) SWIG_AsLong(obj4); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | if (obj5) { | |
15939 | { | |
15940 | arg6 = wxString_in_helper(obj5); | |
15941 | if (arg6 == NULL) SWIG_fail; | |
15942 | temp6 = True; | |
15943 | } | |
15944 | } | |
15945 | { | |
15946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15947 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15948 | ||
15949 | wxPyEndAllowThreads(__tstate); | |
15950 | if (PyErr_Occurred()) SWIG_fail; | |
15951 | } | |
15952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
15953 | { | |
15954 | if (temp6) | |
15955 | delete arg6; | |
15956 | } | |
15957 | return resultobj; | |
15958 | fail: | |
15959 | { | |
15960 | if (temp6) | |
15961 | delete arg6; | |
15962 | } | |
15963 | return NULL; | |
15964 | } | |
15965 | ||
15966 | ||
15967 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15968 | PyObject *resultobj; | |
15969 | wxPyPanel *result; | |
15970 | char *kwnames[] = { | |
15971 | NULL | |
15972 | }; | |
15973 | ||
15974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
15975 | { | |
15976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15977 | result = (wxPyPanel *)new wxPyPanel(); | |
15978 | ||
15979 | wxPyEndAllowThreads(__tstate); | |
15980 | if (PyErr_Occurred()) SWIG_fail; | |
15981 | } | |
15982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | return NULL; | |
15986 | } | |
15987 | ||
15988 | ||
15989 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15990 | PyObject *resultobj; | |
15991 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15992 | PyObject *arg2 = (PyObject *) 0 ; | |
15993 | PyObject *arg3 = (PyObject *) 0 ; | |
15994 | PyObject * obj0 = 0 ; | |
15995 | PyObject * obj1 = 0 ; | |
15996 | PyObject * obj2 = 0 ; | |
15997 | char *kwnames[] = { | |
15998 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15999 | }; | |
16000 | ||
16001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16004 | arg2 = obj1; | |
16005 | arg3 = obj2; | |
16006 | { | |
16007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16008 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16009 | ||
16010 | wxPyEndAllowThreads(__tstate); | |
16011 | if (PyErr_Occurred()) SWIG_fail; | |
16012 | } | |
16013 | Py_INCREF(Py_None); resultobj = Py_None; | |
16014 | return resultobj; | |
16015 | fail: | |
16016 | return NULL; | |
16017 | } | |
16018 | ||
16019 | ||
a5ee0656 RD |
16020 | static PyObject *_wrap_PyPanel_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16021 | PyObject *resultobj; | |
16022 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16023 | wxSize *arg2 = 0 ; | |
16024 | wxSize temp2 ; | |
16025 | PyObject * obj0 = 0 ; | |
16026 | PyObject * obj1 = 0 ; | |
16027 | char *kwnames[] = { | |
16028 | (char *) "self",(char *) "size", NULL | |
16029 | }; | |
16030 | ||
16031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16034 | { | |
16035 | arg2 = &temp2; | |
16036 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16037 | } | |
16038 | { | |
16039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16040 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16041 | ||
16042 | wxPyEndAllowThreads(__tstate); | |
16043 | if (PyErr_Occurred()) SWIG_fail; | |
16044 | } | |
16045 | Py_INCREF(Py_None); resultobj = Py_None; | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
d55e5bfc RD |
16052 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16053 | PyObject *resultobj; | |
16054 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16055 | int arg2 ; | |
16056 | int arg3 ; | |
16057 | int arg4 ; | |
16058 | int arg5 ; | |
16059 | PyObject * obj0 = 0 ; | |
16060 | PyObject * obj1 = 0 ; | |
16061 | PyObject * obj2 = 0 ; | |
16062 | PyObject * obj3 = 0 ; | |
16063 | PyObject * obj4 = 0 ; | |
16064 | char *kwnames[] = { | |
16065 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16066 | }; | |
16067 | ||
16068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16071 | arg2 = (int) SWIG_AsInt(obj1); | |
16072 | if (PyErr_Occurred()) SWIG_fail; | |
16073 | arg3 = (int) SWIG_AsInt(obj2); | |
16074 | if (PyErr_Occurred()) SWIG_fail; | |
16075 | arg4 = (int) SWIG_AsInt(obj3); | |
16076 | if (PyErr_Occurred()) SWIG_fail; | |
16077 | arg5 = (int) SWIG_AsInt(obj4); | |
16078 | if (PyErr_Occurred()) SWIG_fail; | |
16079 | { | |
16080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16081 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16082 | ||
16083 | wxPyEndAllowThreads(__tstate); | |
16084 | if (PyErr_Occurred()) SWIG_fail; | |
16085 | } | |
16086 | Py_INCREF(Py_None); resultobj = Py_None; | |
16087 | return resultobj; | |
16088 | fail: | |
16089 | return NULL; | |
16090 | } | |
16091 | ||
16092 | ||
16093 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16094 | PyObject *resultobj; | |
16095 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16096 | int arg2 ; | |
16097 | int arg3 ; | |
16098 | int arg4 ; | |
16099 | int arg5 ; | |
16100 | int arg6 = (int) wxSIZE_AUTO ; | |
16101 | PyObject * obj0 = 0 ; | |
16102 | PyObject * obj1 = 0 ; | |
16103 | PyObject * obj2 = 0 ; | |
16104 | PyObject * obj3 = 0 ; | |
16105 | PyObject * obj4 = 0 ; | |
16106 | PyObject * obj5 = 0 ; | |
16107 | char *kwnames[] = { | |
16108 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16109 | }; | |
16110 | ||
16111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16114 | arg2 = (int) SWIG_AsInt(obj1); | |
16115 | if (PyErr_Occurred()) SWIG_fail; | |
16116 | arg3 = (int) SWIG_AsInt(obj2); | |
16117 | if (PyErr_Occurred()) SWIG_fail; | |
16118 | arg4 = (int) SWIG_AsInt(obj3); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | arg5 = (int) SWIG_AsInt(obj4); | |
16121 | if (PyErr_Occurred()) SWIG_fail; | |
16122 | if (obj5) { | |
16123 | arg6 = (int) SWIG_AsInt(obj5); | |
16124 | if (PyErr_Occurred()) SWIG_fail; | |
16125 | } | |
16126 | { | |
16127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16128 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16129 | ||
16130 | wxPyEndAllowThreads(__tstate); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | } | |
16133 | Py_INCREF(Py_None); resultobj = Py_None; | |
16134 | return resultobj; | |
16135 | fail: | |
16136 | return NULL; | |
16137 | } | |
16138 | ||
16139 | ||
16140 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16141 | PyObject *resultobj; | |
16142 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16143 | int arg2 ; | |
16144 | int arg3 ; | |
16145 | PyObject * obj0 = 0 ; | |
16146 | PyObject * obj1 = 0 ; | |
16147 | PyObject * obj2 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16155 | arg2 = (int) SWIG_AsInt(obj1); | |
16156 | if (PyErr_Occurred()) SWIG_fail; | |
16157 | arg3 = (int) SWIG_AsInt(obj2); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | { | |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
16166 | Py_INCREF(Py_None); resultobj = Py_None; | |
16167 | return resultobj; | |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
16173 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16174 | PyObject *resultobj; | |
16175 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16176 | int arg2 ; | |
16177 | int arg3 ; | |
16178 | PyObject * obj0 = 0 ; | |
16179 | PyObject * obj1 = 0 ; | |
16180 | PyObject * obj2 = 0 ; | |
16181 | char *kwnames[] = { | |
16182 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16183 | }; | |
16184 | ||
16185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16188 | arg2 = (int) SWIG_AsInt(obj1); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
16190 | arg3 = (int) SWIG_AsInt(obj2); | |
16191 | if (PyErr_Occurred()) SWIG_fail; | |
16192 | { | |
16193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16194 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16195 | ||
16196 | wxPyEndAllowThreads(__tstate); | |
16197 | if (PyErr_Occurred()) SWIG_fail; | |
16198 | } | |
16199 | Py_INCREF(Py_None); resultobj = Py_None; | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | return NULL; | |
16203 | } | |
16204 | ||
16205 | ||
16206 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16207 | PyObject *resultobj; | |
16208 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16209 | int *arg2 = (int *) 0 ; | |
16210 | int *arg3 = (int *) 0 ; | |
16211 | int temp2 ; | |
16212 | int temp3 ; | |
16213 | PyObject * obj0 = 0 ; | |
16214 | char *kwnames[] = { | |
16215 | (char *) "self", NULL | |
16216 | }; | |
16217 | ||
16218 | arg2 = &temp2; | |
16219 | arg3 = &temp3; | |
16220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16223 | { | |
16224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16225 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16226 | ||
16227 | wxPyEndAllowThreads(__tstate); | |
16228 | if (PyErr_Occurred()) SWIG_fail; | |
16229 | } | |
16230 | Py_INCREF(Py_None); resultobj = Py_None; | |
16231 | { | |
16232 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16233 | resultobj = t_output_helper(resultobj,o); | |
16234 | } | |
16235 | { | |
16236 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16237 | resultobj = t_output_helper(resultobj,o); | |
16238 | } | |
16239 | return resultobj; | |
16240 | fail: | |
16241 | return NULL; | |
16242 | } | |
16243 | ||
16244 | ||
16245 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16246 | PyObject *resultobj; | |
16247 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16248 | int *arg2 = (int *) 0 ; | |
16249 | int *arg3 = (int *) 0 ; | |
16250 | int temp2 ; | |
16251 | int temp3 ; | |
16252 | PyObject * obj0 = 0 ; | |
16253 | char *kwnames[] = { | |
16254 | (char *) "self", NULL | |
16255 | }; | |
16256 | ||
16257 | arg2 = &temp2; | |
16258 | arg3 = &temp3; | |
16259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16262 | { | |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16264 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16265 | ||
16266 | wxPyEndAllowThreads(__tstate); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
16269 | Py_INCREF(Py_None); resultobj = Py_None; | |
16270 | { | |
16271 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16272 | resultobj = t_output_helper(resultobj,o); | |
16273 | } | |
16274 | { | |
16275 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16276 | resultobj = t_output_helper(resultobj,o); | |
16277 | } | |
16278 | return resultobj; | |
16279 | fail: | |
16280 | return NULL; | |
16281 | } | |
16282 | ||
16283 | ||
16284 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16285 | PyObject *resultobj; | |
16286 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16287 | int *arg2 = (int *) 0 ; | |
16288 | int *arg3 = (int *) 0 ; | |
16289 | int temp2 ; | |
16290 | int temp3 ; | |
16291 | PyObject * obj0 = 0 ; | |
16292 | char *kwnames[] = { | |
16293 | (char *) "self", NULL | |
16294 | }; | |
16295 | ||
16296 | arg2 = &temp2; | |
16297 | arg3 = &temp3; | |
16298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16301 | { | |
16302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16303 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16304 | ||
16305 | wxPyEndAllowThreads(__tstate); | |
16306 | if (PyErr_Occurred()) SWIG_fail; | |
16307 | } | |
16308 | Py_INCREF(Py_None); resultobj = Py_None; | |
16309 | { | |
16310 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16311 | resultobj = t_output_helper(resultobj,o); | |
16312 | } | |
16313 | { | |
16314 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16315 | resultobj = t_output_helper(resultobj,o); | |
16316 | } | |
16317 | return resultobj; | |
16318 | fail: | |
16319 | return NULL; | |
16320 | } | |
16321 | ||
16322 | ||
16323 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16324 | PyObject *resultobj; | |
16325 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16326 | wxSize result; | |
16327 | PyObject * obj0 = 0 ; | |
16328 | char *kwnames[] = { | |
16329 | (char *) "self", NULL | |
16330 | }; | |
16331 | ||
16332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16335 | { | |
16336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16337 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16338 | ||
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | { | |
16343 | wxSize * resultptr; | |
16344 | resultptr = new wxSize((wxSize &) result); | |
16345 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16346 | } | |
16347 | return resultobj; | |
16348 | fail: | |
16349 | return NULL; | |
16350 | } | |
16351 | ||
16352 | ||
16353 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16354 | PyObject *resultobj; | |
16355 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16356 | wxSize result; | |
16357 | PyObject * obj0 = 0 ; | |
16358 | char *kwnames[] = { | |
16359 | (char *) "self", NULL | |
16360 | }; | |
16361 | ||
16362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16365 | { | |
16366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16367 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16368 | ||
16369 | wxPyEndAllowThreads(__tstate); | |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | } | |
16372 | { | |
16373 | wxSize * resultptr; | |
16374 | resultptr = new wxSize((wxSize &) result); | |
16375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16376 | } | |
16377 | return resultobj; | |
16378 | fail: | |
16379 | return NULL; | |
16380 | } | |
16381 | ||
16382 | ||
16383 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16384 | PyObject *resultobj; | |
16385 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16386 | PyObject * obj0 = 0 ; | |
16387 | char *kwnames[] = { | |
16388 | (char *) "self", NULL | |
16389 | }; | |
16390 | ||
16391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16394 | { | |
16395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16396 | (arg1)->base_InitDialog(); | |
16397 | ||
16398 | wxPyEndAllowThreads(__tstate); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | Py_INCREF(Py_None); resultobj = Py_None; | |
16402 | return resultobj; | |
16403 | fail: | |
16404 | return NULL; | |
16405 | } | |
16406 | ||
16407 | ||
16408 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16409 | PyObject *resultobj; | |
16410 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16411 | bool result; | |
16412 | PyObject * obj0 = 0 ; | |
16413 | char *kwnames[] = { | |
16414 | (char *) "self", NULL | |
16415 | }; | |
16416 | ||
16417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16420 | { | |
16421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16422 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16423 | ||
16424 | wxPyEndAllowThreads(__tstate); | |
16425 | if (PyErr_Occurred()) SWIG_fail; | |
16426 | } | |
16427 | { | |
16428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16429 | } | |
16430 | return resultobj; | |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
16436 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16437 | PyObject *resultobj; | |
16438 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16439 | bool result; | |
16440 | PyObject * obj0 = 0 ; | |
16441 | char *kwnames[] = { | |
16442 | (char *) "self", NULL | |
16443 | }; | |
16444 | ||
16445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16448 | { | |
16449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16450 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16451 | ||
16452 | wxPyEndAllowThreads(__tstate); | |
16453 | if (PyErr_Occurred()) SWIG_fail; | |
16454 | } | |
16455 | { | |
16456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16457 | } | |
16458 | return resultobj; | |
16459 | fail: | |
16460 | return NULL; | |
16461 | } | |
16462 | ||
16463 | ||
16464 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16465 | PyObject *resultobj; | |
16466 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16467 | bool result; | |
16468 | PyObject * obj0 = 0 ; | |
16469 | char *kwnames[] = { | |
16470 | (char *) "self", NULL | |
16471 | }; | |
16472 | ||
16473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16476 | { | |
16477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16478 | result = (bool)(arg1)->base_Validate(); | |
16479 | ||
16480 | wxPyEndAllowThreads(__tstate); | |
16481 | if (PyErr_Occurred()) SWIG_fail; | |
16482 | } | |
16483 | { | |
16484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16485 | } | |
16486 | return resultobj; | |
16487 | fail: | |
16488 | return NULL; | |
16489 | } | |
16490 | ||
16491 | ||
16492 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16493 | PyObject *resultobj; | |
16494 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16495 | bool result; | |
16496 | PyObject * obj0 = 0 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "self", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16504 | { | |
16505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16506 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
16507 | ||
16508 | wxPyEndAllowThreads(__tstate); | |
16509 | if (PyErr_Occurred()) SWIG_fail; | |
16510 | } | |
16511 | { | |
16512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16513 | } | |
16514 | return resultobj; | |
16515 | fail: | |
16516 | return NULL; | |
16517 | } | |
16518 | ||
16519 | ||
16520 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16521 | PyObject *resultobj; | |
16522 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16523 | bool result; | |
16524 | PyObject * obj0 = 0 ; | |
16525 | char *kwnames[] = { | |
16526 | (char *) "self", NULL | |
16527 | }; | |
16528 | ||
16529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16532 | { | |
16533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16534 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16535 | ||
16536 | wxPyEndAllowThreads(__tstate); | |
16537 | if (PyErr_Occurred()) SWIG_fail; | |
16538 | } | |
16539 | { | |
16540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16541 | } | |
16542 | return resultobj; | |
16543 | fail: | |
16544 | return NULL; | |
16545 | } | |
16546 | ||
16547 | ||
16548 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16549 | PyObject *resultobj; | |
16550 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16551 | wxSize result; | |
16552 | PyObject * obj0 = 0 ; | |
16553 | char *kwnames[] = { | |
16554 | (char *) "self", NULL | |
16555 | }; | |
16556 | ||
16557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16560 | { | |
16561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16562 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
16563 | ||
16564 | wxPyEndAllowThreads(__tstate); | |
16565 | if (PyErr_Occurred()) SWIG_fail; | |
16566 | } | |
16567 | { | |
16568 | wxSize * resultptr; | |
16569 | resultptr = new wxSize((wxSize &) result); | |
16570 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16571 | } | |
16572 | return resultobj; | |
16573 | fail: | |
16574 | return NULL; | |
16575 | } | |
16576 | ||
16577 | ||
16578 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16579 | PyObject *resultobj; | |
16580 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16581 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16582 | PyObject * obj0 = 0 ; | |
16583 | PyObject * obj1 = 0 ; | |
16584 | char *kwnames[] = { | |
16585 | (char *) "self",(char *) "child", NULL | |
16586 | }; | |
16587 | ||
16588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16593 | { | |
16594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16595 | (arg1)->base_AddChild(arg2); | |
16596 | ||
16597 | wxPyEndAllowThreads(__tstate); | |
16598 | if (PyErr_Occurred()) SWIG_fail; | |
16599 | } | |
16600 | Py_INCREF(Py_None); resultobj = Py_None; | |
16601 | return resultobj; | |
16602 | fail: | |
16603 | return NULL; | |
16604 | } | |
16605 | ||
16606 | ||
16607 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16608 | PyObject *resultobj; | |
16609 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16610 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16611 | PyObject * obj0 = 0 ; | |
16612 | PyObject * obj1 = 0 ; | |
16613 | char *kwnames[] = { | |
16614 | (char *) "self",(char *) "child", NULL | |
16615 | }; | |
16616 | ||
16617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16622 | { | |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | (arg1)->base_RemoveChild(arg2); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
16629 | Py_INCREF(Py_None); resultobj = Py_None; | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16637 | PyObject *resultobj; | |
16638 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16639 | bool result; | |
16640 | PyObject * obj0 = 0 ; | |
16641 | char *kwnames[] = { | |
16642 | (char *) "self", NULL | |
16643 | }; | |
16644 | ||
16645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16648 | { | |
16649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 16650 | result = (bool)((wxPyPanel const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
16651 | |
16652 | wxPyEndAllowThreads(__tstate); | |
16653 | if (PyErr_Occurred()) SWIG_fail; | |
16654 | } | |
16655 | { | |
16656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16657 | } | |
16658 | return resultobj; | |
16659 | fail: | |
16660 | return NULL; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16665 | PyObject *resultobj; | |
16666 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16667 | wxColour *arg2 = 0 ; | |
16668 | wxColour temp2 ; | |
16669 | PyObject * obj0 = 0 ; | |
16670 | PyObject * obj1 = 0 ; | |
16671 | char *kwnames[] = { | |
16672 | (char *) "self",(char *) "c", NULL | |
16673 | }; | |
16674 | ||
16675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16678 | { | |
16679 | arg2 = &temp2; | |
16680 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16681 | } | |
16682 | { | |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16684 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16685 | ||
16686 | wxPyEndAllowThreads(__tstate); | |
16687 | if (PyErr_Occurred()) SWIG_fail; | |
16688 | } | |
16689 | Py_INCREF(Py_None); resultobj = Py_None; | |
16690 | return resultobj; | |
16691 | fail: | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
a5ee0656 RD |
16696 | static PyObject *_wrap_PyPanel_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
16697 | PyObject *resultobj; | |
16698 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16699 | wxVisualAttributes result; | |
16700 | PyObject * obj0 = 0 ; | |
16701 | char *kwnames[] = { | |
16702 | (char *) "self", NULL | |
16703 | }; | |
16704 | ||
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
16706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16708 | { | |
16709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16710 | result = (arg1)->base_GetDefaultAttributes(); | |
16711 | ||
16712 | wxPyEndAllowThreads(__tstate); | |
16713 | if (PyErr_Occurred()) SWIG_fail; | |
16714 | } | |
16715 | { | |
16716 | wxVisualAttributes * resultptr; | |
16717 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
16718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16719 | } | |
16720 | return resultobj; | |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
d55e5bfc RD |
16726 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { |
16727 | PyObject *obj; | |
16728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16729 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16730 | Py_INCREF(obj); | |
16731 | return Py_BuildValue((char *)""); | |
16732 | } | |
16733 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16734 | PyObject *resultobj; | |
16735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16736 | int arg2 ; | |
16737 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16738 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16739 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16740 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16741 | long arg5 = (long) 0 ; | |
16742 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16743 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16744 | wxPyScrolledWindow *result; | |
16745 | wxPoint temp3 ; | |
16746 | wxSize temp4 ; | |
16747 | bool temp6 = False ; | |
16748 | PyObject * obj0 = 0 ; | |
16749 | PyObject * obj1 = 0 ; | |
16750 | PyObject * obj2 = 0 ; | |
16751 | PyObject * obj3 = 0 ; | |
16752 | PyObject * obj4 = 0 ; | |
16753 | PyObject * obj5 = 0 ; | |
16754 | char *kwnames[] = { | |
16755 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16756 | }; | |
16757 | ||
16758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16761 | arg2 = (int const) SWIG_AsInt(obj1); | |
16762 | if (PyErr_Occurred()) SWIG_fail; | |
16763 | if (obj2) { | |
16764 | { | |
16765 | arg3 = &temp3; | |
16766 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16767 | } | |
16768 | } | |
16769 | if (obj3) { | |
16770 | { | |
16771 | arg4 = &temp4; | |
16772 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16773 | } | |
16774 | } | |
16775 | if (obj4) { | |
16776 | arg5 = (long) SWIG_AsLong(obj4); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | if (obj5) { | |
16780 | { | |
16781 | arg6 = wxString_in_helper(obj5); | |
16782 | if (arg6 == NULL) SWIG_fail; | |
16783 | temp6 = True; | |
16784 | } | |
16785 | } | |
16786 | { | |
16787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16788 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16789 | ||
16790 | wxPyEndAllowThreads(__tstate); | |
16791 | if (PyErr_Occurred()) SWIG_fail; | |
16792 | } | |
16793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
16794 | { | |
16795 | if (temp6) | |
16796 | delete arg6; | |
16797 | } | |
16798 | return resultobj; | |
16799 | fail: | |
16800 | { | |
16801 | if (temp6) | |
16802 | delete arg6; | |
16803 | } | |
16804 | return NULL; | |
16805 | } | |
16806 | ||
16807 | ||
16808 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16809 | PyObject *resultobj; | |
16810 | wxPyScrolledWindow *result; | |
16811 | char *kwnames[] = { | |
16812 | NULL | |
16813 | }; | |
16814 | ||
16815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
16816 | { | |
16817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16818 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
16819 | ||
16820 | wxPyEndAllowThreads(__tstate); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
16824 | return resultobj; | |
16825 | fail: | |
16826 | return NULL; | |
16827 | } | |
16828 | ||
16829 | ||
16830 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16831 | PyObject *resultobj; | |
16832 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16833 | PyObject *arg2 = (PyObject *) 0 ; | |
16834 | PyObject *arg3 = (PyObject *) 0 ; | |
16835 | PyObject * obj0 = 0 ; | |
16836 | PyObject * obj1 = 0 ; | |
16837 | PyObject * obj2 = 0 ; | |
16838 | char *kwnames[] = { | |
16839 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16840 | }; | |
16841 | ||
16842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16845 | arg2 = obj1; | |
16846 | arg3 = obj2; | |
16847 | { | |
16848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16849 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16850 | ||
16851 | wxPyEndAllowThreads(__tstate); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | Py_INCREF(Py_None); resultobj = Py_None; | |
16855 | return resultobj; | |
16856 | fail: | |
16857 | return NULL; | |
16858 | } | |
16859 | ||
16860 | ||
a5ee0656 RD |
16861 | static PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16862 | PyObject *resultobj; | |
16863 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16864 | wxSize *arg2 = 0 ; | |
16865 | wxSize temp2 ; | |
16866 | PyObject * obj0 = 0 ; | |
16867 | PyObject * obj1 = 0 ; | |
16868 | char *kwnames[] = { | |
16869 | (char *) "self",(char *) "size", NULL | |
16870 | }; | |
16871 | ||
16872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16875 | { | |
16876 | arg2 = &temp2; | |
16877 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16878 | } | |
16879 | { | |
16880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16881 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16882 | ||
16883 | wxPyEndAllowThreads(__tstate); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
16886 | Py_INCREF(Py_None); resultobj = Py_None; | |
16887 | return resultobj; | |
16888 | fail: | |
16889 | return NULL; | |
16890 | } | |
16891 | ||
16892 | ||
d55e5bfc RD |
16893 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16894 | PyObject *resultobj; | |
16895 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16896 | int arg2 ; | |
16897 | int arg3 ; | |
16898 | int arg4 ; | |
16899 | int arg5 ; | |
16900 | PyObject * obj0 = 0 ; | |
16901 | PyObject * obj1 = 0 ; | |
16902 | PyObject * obj2 = 0 ; | |
16903 | PyObject * obj3 = 0 ; | |
16904 | PyObject * obj4 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16912 | arg2 = (int) SWIG_AsInt(obj1); | |
16913 | if (PyErr_Occurred()) SWIG_fail; | |
16914 | arg3 = (int) SWIG_AsInt(obj2); | |
16915 | if (PyErr_Occurred()) SWIG_fail; | |
16916 | arg4 = (int) SWIG_AsInt(obj3); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | arg5 = (int) SWIG_AsInt(obj4); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | { | |
16921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16922 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16923 | ||
16924 | wxPyEndAllowThreads(__tstate); | |
16925 | if (PyErr_Occurred()) SWIG_fail; | |
16926 | } | |
16927 | Py_INCREF(Py_None); resultobj = Py_None; | |
16928 | return resultobj; | |
16929 | fail: | |
16930 | return NULL; | |
16931 | } | |
16932 | ||
16933 | ||
16934 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16935 | PyObject *resultobj; | |
16936 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16937 | int arg2 ; | |
16938 | int arg3 ; | |
16939 | int arg4 ; | |
16940 | int arg5 ; | |
16941 | int arg6 = (int) wxSIZE_AUTO ; | |
16942 | PyObject * obj0 = 0 ; | |
16943 | PyObject * obj1 = 0 ; | |
16944 | PyObject * obj2 = 0 ; | |
16945 | PyObject * obj3 = 0 ; | |
16946 | PyObject * obj4 = 0 ; | |
16947 | PyObject * obj5 = 0 ; | |
16948 | char *kwnames[] = { | |
16949 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16950 | }; | |
16951 | ||
16952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16955 | arg2 = (int) SWIG_AsInt(obj1); | |
16956 | if (PyErr_Occurred()) SWIG_fail; | |
16957 | arg3 = (int) SWIG_AsInt(obj2); | |
16958 | if (PyErr_Occurred()) SWIG_fail; | |
16959 | arg4 = (int) SWIG_AsInt(obj3); | |
16960 | if (PyErr_Occurred()) SWIG_fail; | |
16961 | arg5 = (int) SWIG_AsInt(obj4); | |
16962 | if (PyErr_Occurred()) SWIG_fail; | |
16963 | if (obj5) { | |
16964 | arg6 = (int) SWIG_AsInt(obj5); | |
16965 | if (PyErr_Occurred()) SWIG_fail; | |
16966 | } | |
16967 | { | |
16968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16969 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16970 | ||
16971 | wxPyEndAllowThreads(__tstate); | |
16972 | if (PyErr_Occurred()) SWIG_fail; | |
16973 | } | |
16974 | Py_INCREF(Py_None); resultobj = Py_None; | |
16975 | return resultobj; | |
16976 | fail: | |
16977 | return NULL; | |
16978 | } | |
16979 | ||
16980 | ||
16981 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16982 | PyObject *resultobj; | |
16983 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
16984 | int arg2 ; | |
16985 | int arg3 ; | |
16986 | PyObject * obj0 = 0 ; | |
16987 | PyObject * obj1 = 0 ; | |
16988 | PyObject * obj2 = 0 ; | |
16989 | char *kwnames[] = { | |
16990 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16991 | }; | |
16992 | ||
16993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
16995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16996 | arg2 = (int) SWIG_AsInt(obj1); | |
16997 | if (PyErr_Occurred()) SWIG_fail; | |
16998 | arg3 = (int) SWIG_AsInt(obj2); | |
16999 | if (PyErr_Occurred()) SWIG_fail; | |
17000 | { | |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
17003 | ||
17004 | wxPyEndAllowThreads(__tstate); | |
17005 | if (PyErr_Occurred()) SWIG_fail; | |
17006 | } | |
17007 | Py_INCREF(Py_None); resultobj = Py_None; | |
17008 | return resultobj; | |
17009 | fail: | |
17010 | return NULL; | |
17011 | } | |
17012 | ||
17013 | ||
17014 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17015 | PyObject *resultobj; | |
17016 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17017 | int arg2 ; | |
17018 | int arg3 ; | |
17019 | PyObject * obj0 = 0 ; | |
17020 | PyObject * obj1 = 0 ; | |
17021 | PyObject * obj2 = 0 ; | |
17022 | char *kwnames[] = { | |
17023 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17024 | }; | |
17025 | ||
17026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17029 | arg2 = (int) SWIG_AsInt(obj1); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | arg3 = (int) SWIG_AsInt(obj2); | |
17032 | if (PyErr_Occurred()) SWIG_fail; | |
17033 | { | |
17034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17035 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
17036 | ||
17037 | wxPyEndAllowThreads(__tstate); | |
17038 | if (PyErr_Occurred()) SWIG_fail; | |
17039 | } | |
17040 | Py_INCREF(Py_None); resultobj = Py_None; | |
17041 | return resultobj; | |
17042 | fail: | |
17043 | return NULL; | |
17044 | } | |
17045 | ||
17046 | ||
17047 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17048 | PyObject *resultobj; | |
17049 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17050 | int *arg2 = (int *) 0 ; | |
17051 | int *arg3 = (int *) 0 ; | |
17052 | int temp2 ; | |
17053 | int temp3 ; | |
17054 | PyObject * obj0 = 0 ; | |
17055 | char *kwnames[] = { | |
17056 | (char *) "self", NULL | |
17057 | }; | |
17058 | ||
17059 | arg2 = &temp2; | |
17060 | arg3 = &temp3; | |
17061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
17062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17064 | { | |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
17067 | ||
17068 | wxPyEndAllowThreads(__tstate); | |
17069 | if (PyErr_Occurred()) SWIG_fail; | |
17070 | } | |
17071 | Py_INCREF(Py_None); resultobj = Py_None; | |
17072 | { | |
17073 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17074 | resultobj = t_output_helper(resultobj,o); | |
17075 | } | |
17076 | { | |
17077 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17078 | resultobj = t_output_helper(resultobj,o); | |
17079 | } | |
17080 | return resultobj; | |
17081 | fail: | |
17082 | return NULL; | |
17083 | } | |
17084 | ||
17085 | ||
17086 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17087 | PyObject *resultobj; | |
17088 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17089 | int *arg2 = (int *) 0 ; | |
17090 | int *arg3 = (int *) 0 ; | |
17091 | int temp2 ; | |
17092 | int temp3 ; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self", NULL | |
17096 | }; | |
17097 | ||
17098 | arg2 = &temp2; | |
17099 | arg3 = &temp3; | |
17100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
17101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17103 | { | |
17104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17105 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
17106 | ||
17107 | wxPyEndAllowThreads(__tstate); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | } | |
17110 | Py_INCREF(Py_None); resultobj = Py_None; | |
17111 | { | |
17112 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17113 | resultobj = t_output_helper(resultobj,o); | |
17114 | } | |
17115 | { | |
17116 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17117 | resultobj = t_output_helper(resultobj,o); | |
17118 | } | |
17119 | return resultobj; | |
17120 | fail: | |
17121 | return NULL; | |
17122 | } | |
17123 | ||
17124 | ||
17125 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17126 | PyObject *resultobj; | |
17127 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17128 | int *arg2 = (int *) 0 ; | |
17129 | int *arg3 = (int *) 0 ; | |
17130 | int temp2 ; | |
17131 | int temp3 ; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | char *kwnames[] = { | |
17134 | (char *) "self", NULL | |
17135 | }; | |
17136 | ||
17137 | arg2 = &temp2; | |
17138 | arg3 = &temp3; | |
17139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
17140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17142 | { | |
17143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17144 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
17145 | ||
17146 | wxPyEndAllowThreads(__tstate); | |
17147 | if (PyErr_Occurred()) SWIG_fail; | |
17148 | } | |
17149 | Py_INCREF(Py_None); resultobj = Py_None; | |
17150 | { | |
17151 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17152 | resultobj = t_output_helper(resultobj,o); | |
17153 | } | |
17154 | { | |
17155 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17156 | resultobj = t_output_helper(resultobj,o); | |
17157 | } | |
17158 | return resultobj; | |
17159 | fail: | |
17160 | return NULL; | |
17161 | } | |
17162 | ||
17163 | ||
17164 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17165 | PyObject *resultobj; | |
17166 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17167 | wxSize result; | |
17168 | PyObject * obj0 = 0 ; | |
17169 | char *kwnames[] = { | |
17170 | (char *) "self", NULL | |
17171 | }; | |
17172 | ||
17173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
17174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17176 | { | |
17177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17178 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17179 | ||
17180 | wxPyEndAllowThreads(__tstate); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
17182 | } | |
17183 | { | |
17184 | wxSize * resultptr; | |
17185 | resultptr = new wxSize((wxSize &) result); | |
17186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17187 | } | |
17188 | return resultobj; | |
17189 | fail: | |
17190 | return NULL; | |
17191 | } | |
17192 | ||
17193 | ||
17194 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17195 | PyObject *resultobj; | |
17196 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17197 | wxSize result; | |
17198 | PyObject * obj0 = 0 ; | |
17199 | char *kwnames[] = { | |
17200 | (char *) "self", NULL | |
17201 | }; | |
17202 | ||
17203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17206 | { | |
17207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17208 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17209 | ||
17210 | wxPyEndAllowThreads(__tstate); | |
17211 | if (PyErr_Occurred()) SWIG_fail; | |
17212 | } | |
17213 | { | |
17214 | wxSize * resultptr; | |
17215 | resultptr = new wxSize((wxSize &) result); | |
17216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17217 | } | |
17218 | return resultobj; | |
17219 | fail: | |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17227 | PyObject * obj0 = 0 ; | |
17228 | char *kwnames[] = { | |
17229 | (char *) "self", NULL | |
17230 | }; | |
17231 | ||
17232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | (arg1)->base_InitDialog(); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
17242 | Py_INCREF(Py_None); resultobj = Py_None; | |
17243 | return resultobj; | |
17244 | fail: | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
17249 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17252 | bool result; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | char *kwnames[] = { | |
17255 | (char *) "self", NULL | |
17256 | }; | |
17257 | ||
17258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17261 | { | |
17262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17263 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17264 | ||
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17270 | } | |
17271 | return resultobj; | |
17272 | fail: | |
17273 | return NULL; | |
17274 | } | |
17275 | ||
17276 | ||
17277 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17278 | PyObject *resultobj; | |
17279 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17280 | bool result; | |
17281 | PyObject * obj0 = 0 ; | |
17282 | char *kwnames[] = { | |
17283 | (char *) "self", NULL | |
17284 | }; | |
17285 | ||
17286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17292 | ||
17293 | wxPyEndAllowThreads(__tstate); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
17295 | } | |
17296 | { | |
17297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17298 | } | |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
17305 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17306 | PyObject *resultobj; | |
17307 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17308 | bool result; | |
17309 | PyObject * obj0 = 0 ; | |
17310 | char *kwnames[] = { | |
17311 | (char *) "self", NULL | |
17312 | }; | |
17313 | ||
17314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17317 | { | |
17318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17319 | result = (bool)(arg1)->base_Validate(); | |
17320 | ||
17321 | wxPyEndAllowThreads(__tstate); | |
17322 | if (PyErr_Occurred()) SWIG_fail; | |
17323 | } | |
17324 | { | |
17325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17326 | } | |
17327 | return resultobj; | |
17328 | fail: | |
17329 | return NULL; | |
17330 | } | |
17331 | ||
17332 | ||
17333 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17334 | PyObject *resultobj; | |
17335 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17336 | bool result; | |
17337 | PyObject * obj0 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "self", NULL | |
17340 | }; | |
17341 | ||
17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17345 | { | |
17346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17347 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17348 | ||
17349 | wxPyEndAllowThreads(__tstate); | |
17350 | if (PyErr_Occurred()) SWIG_fail; | |
17351 | } | |
17352 | { | |
17353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17354 | } | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17364 | bool result; | |
17365 | PyObject * obj0 = 0 ; | |
17366 | char *kwnames[] = { | |
17367 | (char *) "self", NULL | |
17368 | }; | |
17369 | ||
17370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17373 | { | |
17374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17375 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17376 | ||
17377 | wxPyEndAllowThreads(__tstate); | |
17378 | if (PyErr_Occurred()) SWIG_fail; | |
17379 | } | |
17380 | { | |
17381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17382 | } | |
17383 | return resultobj; | |
17384 | fail: | |
17385 | return NULL; | |
17386 | } | |
17387 | ||
17388 | ||
17389 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17390 | PyObject *resultobj; | |
17391 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17392 | wxSize result; | |
17393 | PyObject * obj0 = 0 ; | |
17394 | char *kwnames[] = { | |
17395 | (char *) "self", NULL | |
17396 | }; | |
17397 | ||
17398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17401 | { | |
17402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17403 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17404 | ||
17405 | wxPyEndAllowThreads(__tstate); | |
17406 | if (PyErr_Occurred()) SWIG_fail; | |
17407 | } | |
17408 | { | |
17409 | wxSize * resultptr; | |
17410 | resultptr = new wxSize((wxSize &) result); | |
17411 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17412 | } | |
17413 | return resultobj; | |
17414 | fail: | |
17415 | return NULL; | |
17416 | } | |
17417 | ||
17418 | ||
17419 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17420 | PyObject *resultobj; | |
17421 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17422 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17423 | PyObject * obj0 = 0 ; | |
17424 | PyObject * obj1 = 0 ; | |
17425 | char *kwnames[] = { | |
17426 | (char *) "self",(char *) "child", NULL | |
17427 | }; | |
17428 | ||
17429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17434 | { | |
17435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17436 | (arg1)->base_AddChild(arg2); | |
17437 | ||
17438 | wxPyEndAllowThreads(__tstate); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | } | |
17441 | Py_INCREF(Py_None); resultobj = Py_None; | |
17442 | return resultobj; | |
17443 | fail: | |
17444 | return NULL; | |
17445 | } | |
17446 | ||
17447 | ||
17448 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17449 | PyObject *resultobj; | |
17450 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17451 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17452 | PyObject * obj0 = 0 ; | |
17453 | PyObject * obj1 = 0 ; | |
17454 | char *kwnames[] = { | |
17455 | (char *) "self",(char *) "child", NULL | |
17456 | }; | |
17457 | ||
17458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17463 | { | |
17464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17465 | (arg1)->base_RemoveChild(arg2); | |
17466 | ||
17467 | wxPyEndAllowThreads(__tstate); | |
17468 | if (PyErr_Occurred()) SWIG_fail; | |
17469 | } | |
17470 | Py_INCREF(Py_None); resultobj = Py_None; | |
17471 | return resultobj; | |
17472 | fail: | |
17473 | return NULL; | |
17474 | } | |
17475 | ||
17476 | ||
17477 | static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17478 | PyObject *resultobj; | |
17479 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17480 | bool result; | |
17481 | PyObject * obj0 = 0 ; | |
17482 | char *kwnames[] = { | |
17483 | (char *) "self", NULL | |
17484 | }; | |
17485 | ||
17486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17489 | { | |
17490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 17491 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
17492 | |
17493 | wxPyEndAllowThreads(__tstate); | |
17494 | if (PyErr_Occurred()) SWIG_fail; | |
17495 | } | |
17496 | { | |
17497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17498 | } | |
17499 | return resultobj; | |
17500 | fail: | |
17501 | return NULL; | |
17502 | } | |
17503 | ||
17504 | ||
17505 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17506 | PyObject *resultobj; | |
17507 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17508 | wxColour *arg2 = 0 ; | |
17509 | wxColour temp2 ; | |
17510 | PyObject * obj0 = 0 ; | |
17511 | PyObject * obj1 = 0 ; | |
17512 | char *kwnames[] = { | |
17513 | (char *) "self",(char *) "c", NULL | |
17514 | }; | |
17515 | ||
17516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17519 | { | |
17520 | arg2 = &temp2; | |
17521 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17522 | } | |
17523 | { | |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | Py_INCREF(Py_None); resultobj = Py_None; | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
a5ee0656 RD |
17537 | static PyObject *_wrap_PyScrolledWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
17538 | PyObject *resultobj; | |
17539 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17540 | wxVisualAttributes result; | |
17541 | PyObject * obj0 = 0 ; | |
17542 | char *kwnames[] = { | |
17543 | (char *) "self", NULL | |
17544 | }; | |
17545 | ||
17546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
17547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17549 | { | |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | result = (arg1)->base_GetDefaultAttributes(); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
17556 | { | |
17557 | wxVisualAttributes * resultptr; | |
17558 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
17559 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
17560 | } | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
17564 | } | |
17565 | ||
17566 | ||
d55e5bfc RD |
17567 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
17568 | PyObject *obj; | |
17569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17570 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
17571 | Py_INCREF(obj); | |
17572 | return Py_BuildValue((char *)""); | |
17573 | } | |
17574 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
17575 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
17576 | return 1; | |
17577 | } | |
17578 | ||
17579 | ||
17580 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
17581 | PyObject *pyobj; | |
17582 | ||
17583 | { | |
17584 | #if wxUSE_UNICODE | |
17585 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17586 | #else | |
17587 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17588 | #endif | |
17589 | } | |
17590 | return pyobj; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
17595 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
17596 | return 1; | |
17597 | } | |
17598 | ||
17599 | ||
17600 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
17601 | PyObject *pyobj; | |
17602 | ||
17603 | { | |
17604 | #if wxUSE_UNICODE | |
17605 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17606 | #else | |
17607 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17608 | #endif | |
17609 | } | |
17610 | return pyobj; | |
17611 | } | |
17612 | ||
17613 | ||
17614 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17615 | PyObject *resultobj; | |
17616 | wxPrintData *result; | |
17617 | char *kwnames[] = { | |
17618 | NULL | |
17619 | }; | |
17620 | ||
17621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
17622 | { | |
17623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17624 | result = (wxPrintData *)new wxPrintData(); | |
17625 | ||
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
17636 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17637 | PyObject *resultobj; | |
17638 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17639 | PyObject * obj0 = 0 ; | |
17640 | char *kwnames[] = { | |
17641 | (char *) "self", NULL | |
17642 | }; | |
17643 | ||
17644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
17645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17647 | { | |
17648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17649 | delete arg1; | |
17650 | ||
17651 | wxPyEndAllowThreads(__tstate); | |
17652 | if (PyErr_Occurred()) SWIG_fail; | |
17653 | } | |
17654 | Py_INCREF(Py_None); resultobj = Py_None; | |
17655 | return resultobj; | |
17656 | fail: | |
17657 | return NULL; | |
17658 | } | |
17659 | ||
17660 | ||
17661 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17662 | PyObject *resultobj; | |
17663 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17664 | int result; | |
17665 | PyObject * obj0 = 0 ; | |
17666 | char *kwnames[] = { | |
17667 | (char *) "self", NULL | |
17668 | }; | |
17669 | ||
17670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
17671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17673 | { | |
17674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17675 | result = (int)(arg1)->GetNoCopies(); | |
17676 | ||
17677 | wxPyEndAllowThreads(__tstate); | |
17678 | if (PyErr_Occurred()) SWIG_fail; | |
17679 | } | |
17680 | resultobj = SWIG_FromInt((int)result); | |
17681 | return resultobj; | |
17682 | fail: | |
17683 | return NULL; | |
17684 | } | |
17685 | ||
17686 | ||
17687 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17688 | PyObject *resultobj; | |
17689 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17690 | bool result; | |
17691 | PyObject * obj0 = 0 ; | |
17692 | char *kwnames[] = { | |
17693 | (char *) "self", NULL | |
17694 | }; | |
17695 | ||
17696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
17697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17699 | { | |
17700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17701 | result = (bool)(arg1)->GetCollate(); | |
17702 | ||
17703 | wxPyEndAllowThreads(__tstate); | |
17704 | if (PyErr_Occurred()) SWIG_fail; | |
17705 | } | |
17706 | { | |
17707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17708 | } | |
17709 | return resultobj; | |
17710 | fail: | |
17711 | return NULL; | |
17712 | } | |
17713 | ||
17714 | ||
17715 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17716 | PyObject *resultobj; | |
17717 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17718 | int result; | |
17719 | PyObject * obj0 = 0 ; | |
17720 | char *kwnames[] = { | |
17721 | (char *) "self", NULL | |
17722 | }; | |
17723 | ||
17724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
17725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17727 | { | |
17728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17729 | result = (int)(arg1)->GetOrientation(); | |
17730 | ||
17731 | wxPyEndAllowThreads(__tstate); | |
17732 | if (PyErr_Occurred()) SWIG_fail; | |
17733 | } | |
17734 | resultobj = SWIG_FromInt((int)result); | |
17735 | return resultobj; | |
17736 | fail: | |
17737 | return NULL; | |
17738 | } | |
17739 | ||
17740 | ||
17741 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17742 | PyObject *resultobj; | |
17743 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17744 | bool result; | |
17745 | PyObject * obj0 = 0 ; | |
17746 | char *kwnames[] = { | |
17747 | (char *) "self", NULL | |
17748 | }; | |
17749 | ||
17750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
17751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17753 | { | |
17754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17755 | result = (bool)(arg1)->Ok(); | |
17756 | ||
17757 | wxPyEndAllowThreads(__tstate); | |
17758 | if (PyErr_Occurred()) SWIG_fail; | |
17759 | } | |
17760 | { | |
17761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17762 | } | |
17763 | return resultobj; | |
17764 | fail: | |
17765 | return NULL; | |
17766 | } | |
17767 | ||
17768 | ||
17769 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17770 | PyObject *resultobj; | |
17771 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17772 | wxString *result; | |
17773 | PyObject * obj0 = 0 ; | |
17774 | char *kwnames[] = { | |
17775 | (char *) "self", NULL | |
17776 | }; | |
17777 | ||
17778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
17779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17781 | { | |
17782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17783 | { | |
17784 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
17785 | result = (wxString *) &_result_ref; | |
17786 | } | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | { | |
17792 | #if wxUSE_UNICODE | |
17793 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17794 | #else | |
17795 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17796 | #endif | |
17797 | } | |
17798 | return resultobj; | |
17799 | fail: | |
17800 | return NULL; | |
17801 | } | |
17802 | ||
17803 | ||
17804 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17805 | PyObject *resultobj; | |
17806 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17807 | bool result; | |
17808 | PyObject * obj0 = 0 ; | |
17809 | char *kwnames[] = { | |
17810 | (char *) "self", NULL | |
17811 | }; | |
17812 | ||
17813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
17814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17816 | { | |
17817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17818 | result = (bool)(arg1)->GetColour(); | |
17819 | ||
17820 | wxPyEndAllowThreads(__tstate); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
17823 | { | |
17824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17825 | } | |
17826 | return resultobj; | |
17827 | fail: | |
17828 | return NULL; | |
17829 | } | |
17830 | ||
17831 | ||
17832 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17833 | PyObject *resultobj; | |
17834 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17835 | int result; | |
17836 | PyObject * obj0 = 0 ; | |
17837 | char *kwnames[] = { | |
17838 | (char *) "self", NULL | |
17839 | }; | |
17840 | ||
17841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
17842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17844 | { | |
17845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17846 | result = (int)(arg1)->GetDuplex(); | |
17847 | ||
17848 | wxPyEndAllowThreads(__tstate); | |
17849 | if (PyErr_Occurred()) SWIG_fail; | |
17850 | } | |
17851 | resultobj = SWIG_FromInt((int)result); | |
17852 | return resultobj; | |
17853 | fail: | |
17854 | return NULL; | |
17855 | } | |
17856 | ||
17857 | ||
17858 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17859 | PyObject *resultobj; | |
17860 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17861 | int result; | |
17862 | PyObject * obj0 = 0 ; | |
17863 | char *kwnames[] = { | |
17864 | (char *) "self", NULL | |
17865 | }; | |
17866 | ||
17867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
17868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17870 | { | |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | result = (int)(arg1)->GetPaperId(); | |
17873 | ||
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | resultobj = SWIG_FromInt((int)result); | |
17878 | return resultobj; | |
17879 | fail: | |
17880 | return NULL; | |
17881 | } | |
17882 | ||
17883 | ||
17884 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17885 | PyObject *resultobj; | |
17886 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17887 | wxSize *result; | |
17888 | PyObject * obj0 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self", NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
17894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17896 | { | |
17897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17898 | { | |
17899 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
17900 | result = (wxSize *) &_result_ref; | |
17901 | } | |
17902 | ||
17903 | wxPyEndAllowThreads(__tstate); | |
17904 | if (PyErr_Occurred()) SWIG_fail; | |
17905 | } | |
17906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
17907 | return resultobj; | |
17908 | fail: | |
17909 | return NULL; | |
17910 | } | |
17911 | ||
17912 | ||
17913 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17914 | PyObject *resultobj; | |
17915 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17916 | int result; | |
17917 | PyObject * obj0 = 0 ; | |
17918 | char *kwnames[] = { | |
17919 | (char *) "self", NULL | |
17920 | }; | |
17921 | ||
17922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
17923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17925 | { | |
17926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17927 | result = (int)(arg1)->GetQuality(); | |
17928 | ||
17929 | wxPyEndAllowThreads(__tstate); | |
17930 | if (PyErr_Occurred()) SWIG_fail; | |
17931 | } | |
17932 | resultobj = SWIG_FromInt((int)result); | |
17933 | return resultobj; | |
17934 | fail: | |
17935 | return NULL; | |
17936 | } | |
17937 | ||
17938 | ||
17939 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17940 | PyObject *resultobj; | |
17941 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17942 | int arg2 ; | |
17943 | PyObject * obj0 = 0 ; | |
17944 | PyObject * obj1 = 0 ; | |
17945 | char *kwnames[] = { | |
17946 | (char *) "self",(char *) "v", NULL | |
17947 | }; | |
17948 | ||
17949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
17950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17952 | arg2 = (int) SWIG_AsInt(obj1); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | { | |
17955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17956 | (arg1)->SetNoCopies(arg2); | |
17957 | ||
17958 | wxPyEndAllowThreads(__tstate); | |
17959 | if (PyErr_Occurred()) SWIG_fail; | |
17960 | } | |
17961 | Py_INCREF(Py_None); resultobj = Py_None; | |
17962 | return resultobj; | |
17963 | fail: | |
17964 | return NULL; | |
17965 | } | |
17966 | ||
17967 | ||
17968 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17969 | PyObject *resultobj; | |
17970 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17971 | bool arg2 ; | |
17972 | PyObject * obj0 = 0 ; | |
17973 | PyObject * obj1 = 0 ; | |
17974 | char *kwnames[] = { | |
17975 | (char *) "self",(char *) "flag", NULL | |
17976 | }; | |
17977 | ||
17978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
17979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17981 | arg2 = (bool) SWIG_AsBool(obj1); | |
17982 | if (PyErr_Occurred()) SWIG_fail; | |
17983 | { | |
17984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17985 | (arg1)->SetCollate(arg2); | |
17986 | ||
17987 | wxPyEndAllowThreads(__tstate); | |
17988 | if (PyErr_Occurred()) SWIG_fail; | |
17989 | } | |
17990 | Py_INCREF(Py_None); resultobj = Py_None; | |
17991 | return resultobj; | |
17992 | fail: | |
17993 | return NULL; | |
17994 | } | |
17995 | ||
17996 | ||
17997 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17998 | PyObject *resultobj; | |
17999 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18000 | int arg2 ; | |
18001 | PyObject * obj0 = 0 ; | |
18002 | PyObject * obj1 = 0 ; | |
18003 | char *kwnames[] = { | |
18004 | (char *) "self",(char *) "orient", NULL | |
18005 | }; | |
18006 | ||
18007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18010 | arg2 = (int) SWIG_AsInt(obj1); | |
18011 | if (PyErr_Occurred()) SWIG_fail; | |
18012 | { | |
18013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18014 | (arg1)->SetOrientation(arg2); | |
18015 | ||
18016 | wxPyEndAllowThreads(__tstate); | |
18017 | if (PyErr_Occurred()) SWIG_fail; | |
18018 | } | |
18019 | Py_INCREF(Py_None); resultobj = Py_None; | |
18020 | return resultobj; | |
18021 | fail: | |
18022 | return NULL; | |
18023 | } | |
18024 | ||
18025 | ||
18026 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18027 | PyObject *resultobj; | |
18028 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18029 | wxString *arg2 = 0 ; | |
18030 | bool temp2 = False ; | |
18031 | PyObject * obj0 = 0 ; | |
18032 | PyObject * obj1 = 0 ; | |
18033 | char *kwnames[] = { | |
18034 | (char *) "self",(char *) "name", NULL | |
18035 | }; | |
18036 | ||
18037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
18038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18040 | { | |
18041 | arg2 = wxString_in_helper(obj1); | |
18042 | if (arg2 == NULL) SWIG_fail; | |
18043 | temp2 = True; | |
18044 | } | |
18045 | { | |
18046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18047 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
18048 | ||
18049 | wxPyEndAllowThreads(__tstate); | |
18050 | if (PyErr_Occurred()) SWIG_fail; | |
18051 | } | |
18052 | Py_INCREF(Py_None); resultobj = Py_None; | |
18053 | { | |
18054 | if (temp2) | |
18055 | delete arg2; | |
18056 | } | |
18057 | return resultobj; | |
18058 | fail: | |
18059 | { | |
18060 | if (temp2) | |
18061 | delete arg2; | |
18062 | } | |
18063 | return NULL; | |
18064 | } | |
18065 | ||
18066 | ||
18067 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18068 | PyObject *resultobj; | |
18069 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18070 | bool arg2 ; | |
18071 | PyObject * obj0 = 0 ; | |
18072 | PyObject * obj1 = 0 ; | |
18073 | char *kwnames[] = { | |
18074 | (char *) "self",(char *) "colour", NULL | |
18075 | }; | |
18076 | ||
18077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
18078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18080 | arg2 = (bool) SWIG_AsBool(obj1); | |
18081 | if (PyErr_Occurred()) SWIG_fail; | |
18082 | { | |
18083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18084 | (arg1)->SetColour(arg2); | |
18085 | ||
18086 | wxPyEndAllowThreads(__tstate); | |
18087 | if (PyErr_Occurred()) SWIG_fail; | |
18088 | } | |
18089 | Py_INCREF(Py_None); resultobj = Py_None; | |
18090 | return resultobj; | |
18091 | fail: | |
18092 | return NULL; | |
18093 | } | |
18094 | ||
18095 | ||
18096 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18097 | PyObject *resultobj; | |
18098 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18099 | int arg2 ; | |
18100 | PyObject * obj0 = 0 ; | |
18101 | PyObject * obj1 = 0 ; | |
18102 | char *kwnames[] = { | |
18103 | (char *) "self",(char *) "duplex", NULL | |
18104 | }; | |
18105 | ||
18106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
18107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18109 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
18110 | if (PyErr_Occurred()) SWIG_fail; | |
18111 | { | |
18112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18113 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
18114 | ||
18115 | wxPyEndAllowThreads(__tstate); | |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
18117 | } | |
18118 | Py_INCREF(Py_None); resultobj = Py_None; | |
18119 | return resultobj; | |
18120 | fail: | |
18121 | return NULL; | |
18122 | } | |
18123 | ||
18124 | ||
18125 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18126 | PyObject *resultobj; | |
18127 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18128 | int arg2 ; | |
18129 | PyObject * obj0 = 0 ; | |
18130 | PyObject * obj1 = 0 ; | |
18131 | char *kwnames[] = { | |
18132 | (char *) "self",(char *) "sizeId", NULL | |
18133 | }; | |
18134 | ||
18135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18138 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | { | |
18141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18142 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18143 | ||
18144 | wxPyEndAllowThreads(__tstate); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | } | |
18147 | Py_INCREF(Py_None); resultobj = Py_None; | |
18148 | return resultobj; | |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18155 | PyObject *resultobj; | |
18156 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18157 | wxSize *arg2 = 0 ; | |
18158 | wxSize temp2 ; | |
18159 | PyObject * obj0 = 0 ; | |
18160 | PyObject * obj1 = 0 ; | |
18161 | char *kwnames[] = { | |
18162 | (char *) "self",(char *) "sz", NULL | |
18163 | }; | |
18164 | ||
18165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18168 | { | |
18169 | arg2 = &temp2; | |
18170 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18171 | } | |
18172 | { | |
18173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18174 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18175 | ||
18176 | wxPyEndAllowThreads(__tstate); | |
18177 | if (PyErr_Occurred()) SWIG_fail; | |
18178 | } | |
18179 | Py_INCREF(Py_None); resultobj = Py_None; | |
18180 | return resultobj; | |
18181 | fail: | |
18182 | return NULL; | |
18183 | } | |
18184 | ||
18185 | ||
18186 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18187 | PyObject *resultobj; | |
18188 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18189 | int arg2 ; | |
18190 | PyObject * obj0 = 0 ; | |
18191 | PyObject * obj1 = 0 ; | |
18192 | char *kwnames[] = { | |
18193 | (char *) "self",(char *) "quality", NULL | |
18194 | }; | |
18195 | ||
18196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
18197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18199 | arg2 = (int) SWIG_AsInt(obj1); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | (arg1)->SetQuality(arg2); | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
18208 | Py_INCREF(Py_None); resultobj = Py_None; | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18216 | PyObject *resultobj; | |
18217 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18218 | wxString *result; | |
18219 | PyObject * obj0 = 0 ; | |
18220 | char *kwnames[] = { | |
18221 | (char *) "self", NULL | |
18222 | }; | |
18223 | ||
18224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18227 | { | |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | { | |
18230 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18231 | result = (wxString *) &_result_ref; | |
18232 | } | |
18233 | ||
18234 | wxPyEndAllowThreads(__tstate); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | } | |
18237 | { | |
18238 | #if wxUSE_UNICODE | |
18239 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18240 | #else | |
18241 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18242 | #endif | |
18243 | } | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
18250 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18253 | wxString *result; | |
18254 | PyObject * obj0 = 0 ; | |
18255 | char *kwnames[] = { | |
18256 | (char *) "self", NULL | |
18257 | }; | |
18258 | ||
18259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18262 | { | |
18263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18264 | { | |
18265 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18266 | result = (wxString *) &_result_ref; | |
18267 | } | |
18268 | ||
18269 | wxPyEndAllowThreads(__tstate); | |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
18271 | } | |
18272 | { | |
18273 | #if wxUSE_UNICODE | |
18274 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18275 | #else | |
18276 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18277 | #endif | |
18278 | } | |
18279 | return resultobj; | |
18280 | fail: | |
18281 | return NULL; | |
18282 | } | |
18283 | ||
18284 | ||
18285 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18286 | PyObject *resultobj; | |
18287 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18288 | wxString *result; | |
18289 | PyObject * obj0 = 0 ; | |
18290 | char *kwnames[] = { | |
18291 | (char *) "self", NULL | |
18292 | }; | |
18293 | ||
18294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18297 | { | |
18298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18299 | { | |
18300 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18301 | result = (wxString *) &_result_ref; | |
18302 | } | |
18303 | ||
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
18307 | { | |
18308 | #if wxUSE_UNICODE | |
18309 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18310 | #else | |
18311 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18312 | #endif | |
18313 | } | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18321 | PyObject *resultobj; | |
18322 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18323 | wxString *result; | |
18324 | PyObject * obj0 = 0 ; | |
18325 | char *kwnames[] = { | |
18326 | (char *) "self", NULL | |
18327 | }; | |
18328 | ||
18329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18332 | { | |
18333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18334 | { | |
18335 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18336 | result = (wxString *) &_result_ref; | |
18337 | } | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | { | |
18343 | #if wxUSE_UNICODE | |
18344 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18345 | #else | |
18346 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18347 | #endif | |
18348 | } | |
18349 | return resultobj; | |
18350 | fail: | |
18351 | return NULL; | |
18352 | } | |
18353 | ||
18354 | ||
18355 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18356 | PyObject *resultobj; | |
18357 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18358 | wxString *result; | |
18359 | PyObject * obj0 = 0 ; | |
18360 | char *kwnames[] = { | |
18361 | (char *) "self", NULL | |
18362 | }; | |
18363 | ||
18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
18365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18367 | { | |
18368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18369 | { | |
18370 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
18371 | result = (wxString *) &_result_ref; | |
18372 | } | |
18373 | ||
18374 | wxPyEndAllowThreads(__tstate); | |
18375 | if (PyErr_Occurred()) SWIG_fail; | |
18376 | } | |
18377 | { | |
18378 | #if wxUSE_UNICODE | |
18379 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18380 | #else | |
18381 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18382 | #endif | |
18383 | } | |
18384 | return resultobj; | |
18385 | fail: | |
18386 | return NULL; | |
18387 | } | |
18388 | ||
18389 | ||
18390 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18391 | PyObject *resultobj; | |
18392 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18393 | double result; | |
18394 | PyObject * obj0 = 0 ; | |
18395 | char *kwnames[] = { | |
18396 | (char *) "self", NULL | |
18397 | }; | |
18398 | ||
18399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
18400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18402 | { | |
18403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18404 | result = (double)(arg1)->GetPrinterScaleX(); | |
18405 | ||
18406 | wxPyEndAllowThreads(__tstate); | |
18407 | if (PyErr_Occurred()) SWIG_fail; | |
18408 | } | |
18409 | resultobj = SWIG_FromDouble((double)result); | |
18410 | return resultobj; | |
18411 | fail: | |
18412 | return NULL; | |
18413 | } | |
18414 | ||
18415 | ||
18416 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18417 | PyObject *resultobj; | |
18418 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18419 | double result; | |
18420 | PyObject * obj0 = 0 ; | |
18421 | char *kwnames[] = { | |
18422 | (char *) "self", NULL | |
18423 | }; | |
18424 | ||
18425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
18426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18428 | { | |
18429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18430 | result = (double)(arg1)->GetPrinterScaleY(); | |
18431 | ||
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | resultobj = SWIG_FromDouble((double)result); | |
18436 | return resultobj; | |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18443 | PyObject *resultobj; | |
18444 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18445 | long result; | |
18446 | PyObject * obj0 = 0 ; | |
18447 | char *kwnames[] = { | |
18448 | (char *) "self", NULL | |
18449 | }; | |
18450 | ||
18451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
18452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18454 | { | |
18455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18456 | result = (long)(arg1)->GetPrinterTranslateX(); | |
18457 | ||
18458 | wxPyEndAllowThreads(__tstate); | |
18459 | if (PyErr_Occurred()) SWIG_fail; | |
18460 | } | |
18461 | resultobj = SWIG_FromLong((long)result); | |
18462 | return resultobj; | |
18463 | fail: | |
18464 | return NULL; | |
18465 | } | |
18466 | ||
18467 | ||
18468 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18469 | PyObject *resultobj; | |
18470 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18471 | long result; | |
18472 | PyObject * obj0 = 0 ; | |
18473 | char *kwnames[] = { | |
18474 | (char *) "self", NULL | |
18475 | }; | |
18476 | ||
18477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
18478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18480 | { | |
18481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18482 | result = (long)(arg1)->GetPrinterTranslateY(); | |
18483 | ||
18484 | wxPyEndAllowThreads(__tstate); | |
18485 | if (PyErr_Occurred()) SWIG_fail; | |
18486 | } | |
18487 | resultobj = SWIG_FromLong((long)result); | |
18488 | return resultobj; | |
18489 | fail: | |
18490 | return NULL; | |
18491 | } | |
18492 | ||
18493 | ||
18494 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18495 | PyObject *resultobj; | |
18496 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18497 | int result; | |
18498 | PyObject * obj0 = 0 ; | |
18499 | char *kwnames[] = { | |
18500 | (char *) "self", NULL | |
18501 | }; | |
18502 | ||
18503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
18504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18506 | { | |
18507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18508 | result = (int)(arg1)->GetPrintMode(); | |
18509 | ||
18510 | wxPyEndAllowThreads(__tstate); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | } | |
18513 | resultobj = SWIG_FromInt((int)result); | |
18514 | return resultobj; | |
18515 | fail: | |
18516 | return NULL; | |
18517 | } | |
18518 | ||
18519 | ||
18520 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18521 | PyObject *resultobj; | |
18522 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18523 | wxString *arg2 = 0 ; | |
18524 | bool temp2 = False ; | |
18525 | PyObject * obj0 = 0 ; | |
18526 | PyObject * obj1 = 0 ; | |
18527 | char *kwnames[] = { | |
18528 | (char *) "self",(char *) "command", NULL | |
18529 | }; | |
18530 | ||
18531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
18532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18534 | { | |
18535 | arg2 = wxString_in_helper(obj1); | |
18536 | if (arg2 == NULL) SWIG_fail; | |
18537 | temp2 = True; | |
18538 | } | |
18539 | { | |
18540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18541 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
18542 | ||
18543 | wxPyEndAllowThreads(__tstate); | |
18544 | if (PyErr_Occurred()) SWIG_fail; | |
18545 | } | |
18546 | Py_INCREF(Py_None); resultobj = Py_None; | |
18547 | { | |
18548 | if (temp2) | |
18549 | delete arg2; | |
18550 | } | |
18551 | return resultobj; | |
18552 | fail: | |
18553 | { | |
18554 | if (temp2) | |
18555 | delete arg2; | |
18556 | } | |
18557 | return NULL; | |
18558 | } | |
18559 | ||
18560 | ||
18561 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18562 | PyObject *resultobj; | |
18563 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18564 | wxString *arg2 = 0 ; | |
18565 | bool temp2 = False ; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | PyObject * obj1 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self",(char *) "options", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
18573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18575 | { | |
18576 | arg2 = wxString_in_helper(obj1); | |
18577 | if (arg2 == NULL) SWIG_fail; | |
18578 | temp2 = True; | |
18579 | } | |
18580 | { | |
18581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18582 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
18583 | ||
18584 | wxPyEndAllowThreads(__tstate); | |
18585 | if (PyErr_Occurred()) SWIG_fail; | |
18586 | } | |
18587 | Py_INCREF(Py_None); resultobj = Py_None; | |
18588 | { | |
18589 | if (temp2) | |
18590 | delete arg2; | |
18591 | } | |
18592 | return resultobj; | |
18593 | fail: | |
18594 | { | |
18595 | if (temp2) | |
18596 | delete arg2; | |
18597 | } | |
18598 | return NULL; | |
18599 | } | |
18600 | ||
18601 | ||
18602 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18603 | PyObject *resultobj; | |
18604 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18605 | wxString *arg2 = 0 ; | |
18606 | bool temp2 = False ; | |
18607 | PyObject * obj0 = 0 ; | |
18608 | PyObject * obj1 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self",(char *) "command", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
18614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18616 | { | |
18617 | arg2 = wxString_in_helper(obj1); | |
18618 | if (arg2 == NULL) SWIG_fail; | |
18619 | temp2 = True; | |
18620 | } | |
18621 | { | |
18622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18623 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
18624 | ||
18625 | wxPyEndAllowThreads(__tstate); | |
18626 | if (PyErr_Occurred()) SWIG_fail; | |
18627 | } | |
18628 | Py_INCREF(Py_None); resultobj = Py_None; | |
18629 | { | |
18630 | if (temp2) | |
18631 | delete arg2; | |
18632 | } | |
18633 | return resultobj; | |
18634 | fail: | |
18635 | { | |
18636 | if (temp2) | |
18637 | delete arg2; | |
18638 | } | |
18639 | return NULL; | |
18640 | } | |
18641 | ||
18642 | ||
18643 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18644 | PyObject *resultobj; | |
18645 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18646 | wxString *arg2 = 0 ; | |
18647 | bool temp2 = False ; | |
18648 | PyObject * obj0 = 0 ; | |
18649 | PyObject * obj1 = 0 ; | |
18650 | char *kwnames[] = { | |
18651 | (char *) "self",(char *) "filename", NULL | |
18652 | }; | |
18653 | ||
18654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
18655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18657 | { | |
18658 | arg2 = wxString_in_helper(obj1); | |
18659 | if (arg2 == NULL) SWIG_fail; | |
18660 | temp2 = True; | |
18661 | } | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | (arg1)->SetFilename((wxString const &)*arg2); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | Py_INCREF(Py_None); resultobj = Py_None; | |
18670 | { | |
18671 | if (temp2) | |
18672 | delete arg2; | |
18673 | } | |
18674 | return resultobj; | |
18675 | fail: | |
18676 | { | |
18677 | if (temp2) | |
18678 | delete arg2; | |
18679 | } | |
18680 | return NULL; | |
18681 | } | |
18682 | ||
18683 | ||
18684 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18685 | PyObject *resultobj; | |
18686 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18687 | wxString *arg2 = 0 ; | |
18688 | bool temp2 = False ; | |
18689 | PyObject * obj0 = 0 ; | |
18690 | PyObject * obj1 = 0 ; | |
18691 | char *kwnames[] = { | |
18692 | (char *) "self",(char *) "path", NULL | |
18693 | }; | |
18694 | ||
18695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
18696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18698 | { | |
18699 | arg2 = wxString_in_helper(obj1); | |
18700 | if (arg2 == NULL) SWIG_fail; | |
18701 | temp2 = True; | |
18702 | } | |
18703 | { | |
18704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18705 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
18706 | ||
18707 | wxPyEndAllowThreads(__tstate); | |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
18709 | } | |
18710 | Py_INCREF(Py_None); resultobj = Py_None; | |
18711 | { | |
18712 | if (temp2) | |
18713 | delete arg2; | |
18714 | } | |
18715 | return resultobj; | |
18716 | fail: | |
18717 | { | |
18718 | if (temp2) | |
18719 | delete arg2; | |
18720 | } | |
18721 | return NULL; | |
18722 | } | |
18723 | ||
18724 | ||
18725 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18726 | PyObject *resultobj; | |
18727 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18728 | double arg2 ; | |
18729 | PyObject * obj0 = 0 ; | |
18730 | PyObject * obj1 = 0 ; | |
18731 | char *kwnames[] = { | |
18732 | (char *) "self",(char *) "x", NULL | |
18733 | }; | |
18734 | ||
18735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
18736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18738 | arg2 = (double) SWIG_AsDouble(obj1); | |
18739 | if (PyErr_Occurred()) SWIG_fail; | |
18740 | { | |
18741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18742 | (arg1)->SetPrinterScaleX(arg2); | |
18743 | ||
18744 | wxPyEndAllowThreads(__tstate); | |
18745 | if (PyErr_Occurred()) SWIG_fail; | |
18746 | } | |
18747 | Py_INCREF(Py_None); resultobj = Py_None; | |
18748 | return resultobj; | |
18749 | fail: | |
18750 | return NULL; | |
18751 | } | |
18752 | ||
18753 | ||
18754 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18755 | PyObject *resultobj; | |
18756 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18757 | double arg2 ; | |
18758 | PyObject * obj0 = 0 ; | |
18759 | PyObject * obj1 = 0 ; | |
18760 | char *kwnames[] = { | |
18761 | (char *) "self",(char *) "y", NULL | |
18762 | }; | |
18763 | ||
18764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
18765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18767 | arg2 = (double) SWIG_AsDouble(obj1); | |
18768 | if (PyErr_Occurred()) SWIG_fail; | |
18769 | { | |
18770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18771 | (arg1)->SetPrinterScaleY(arg2); | |
18772 | ||
18773 | wxPyEndAllowThreads(__tstate); | |
18774 | if (PyErr_Occurred()) SWIG_fail; | |
18775 | } | |
18776 | Py_INCREF(Py_None); resultobj = Py_None; | |
18777 | return resultobj; | |
18778 | fail: | |
18779 | return NULL; | |
18780 | } | |
18781 | ||
18782 | ||
18783 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18784 | PyObject *resultobj; | |
18785 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18786 | double arg2 ; | |
18787 | double arg3 ; | |
18788 | PyObject * obj0 = 0 ; | |
18789 | PyObject * obj1 = 0 ; | |
18790 | PyObject * obj2 = 0 ; | |
18791 | char *kwnames[] = { | |
18792 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18793 | }; | |
18794 | ||
18795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18798 | arg2 = (double) SWIG_AsDouble(obj1); | |
18799 | if (PyErr_Occurred()) SWIG_fail; | |
18800 | arg3 = (double) SWIG_AsDouble(obj2); | |
18801 | if (PyErr_Occurred()) SWIG_fail; | |
18802 | { | |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | (arg1)->SetPrinterScaling(arg2,arg3); | |
18805 | ||
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
18809 | Py_INCREF(Py_None); resultobj = Py_None; | |
18810 | return resultobj; | |
18811 | fail: | |
18812 | return NULL; | |
18813 | } | |
18814 | ||
18815 | ||
18816 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18817 | PyObject *resultobj; | |
18818 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18819 | long arg2 ; | |
18820 | PyObject * obj0 = 0 ; | |
18821 | PyObject * obj1 = 0 ; | |
18822 | char *kwnames[] = { | |
18823 | (char *) "self",(char *) "x", NULL | |
18824 | }; | |
18825 | ||
18826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
18827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18829 | arg2 = (long) SWIG_AsLong(obj1); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | { | |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | (arg1)->SetPrinterTranslateX(arg2); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
18838 | Py_INCREF(Py_None); resultobj = Py_None; | |
18839 | return resultobj; | |
18840 | fail: | |
18841 | return NULL; | |
18842 | } | |
18843 | ||
18844 | ||
18845 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18846 | PyObject *resultobj; | |
18847 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18848 | long arg2 ; | |
18849 | PyObject * obj0 = 0 ; | |
18850 | PyObject * obj1 = 0 ; | |
18851 | char *kwnames[] = { | |
18852 | (char *) "self",(char *) "y", NULL | |
18853 | }; | |
18854 | ||
18855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
18856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18858 | arg2 = (long) SWIG_AsLong(obj1); | |
18859 | if (PyErr_Occurred()) SWIG_fail; | |
18860 | { | |
18861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18862 | (arg1)->SetPrinterTranslateY(arg2); | |
18863 | ||
18864 | wxPyEndAllowThreads(__tstate); | |
18865 | if (PyErr_Occurred()) SWIG_fail; | |
18866 | } | |
18867 | Py_INCREF(Py_None); resultobj = Py_None; | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
18871 | } | |
18872 | ||
18873 | ||
18874 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18875 | PyObject *resultobj; | |
18876 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18877 | long arg2 ; | |
18878 | long arg3 ; | |
18879 | PyObject * obj0 = 0 ; | |
18880 | PyObject * obj1 = 0 ; | |
18881 | PyObject * obj2 = 0 ; | |
18882 | char *kwnames[] = { | |
18883 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18884 | }; | |
18885 | ||
18886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18889 | arg2 = (long) SWIG_AsLong(obj1); | |
18890 | if (PyErr_Occurred()) SWIG_fail; | |
18891 | arg3 = (long) SWIG_AsLong(obj2); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | { | |
18894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18895 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
18896 | ||
18897 | wxPyEndAllowThreads(__tstate); | |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
18899 | } | |
18900 | Py_INCREF(Py_None); resultobj = Py_None; | |
18901 | return resultobj; | |
18902 | fail: | |
18903 | return NULL; | |
18904 | } | |
18905 | ||
18906 | ||
18907 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18908 | PyObject *resultobj; | |
18909 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18910 | int arg2 ; | |
18911 | PyObject * obj0 = 0 ; | |
18912 | PyObject * obj1 = 0 ; | |
18913 | char *kwnames[] = { | |
18914 | (char *) "self",(char *) "printMode", NULL | |
18915 | }; | |
18916 | ||
18917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
18918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18920 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
18921 | if (PyErr_Occurred()) SWIG_fail; | |
18922 | { | |
18923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18924 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
18925 | ||
18926 | wxPyEndAllowThreads(__tstate); | |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
18928 | } | |
18929 | Py_INCREF(Py_None); resultobj = Py_None; | |
18930 | return resultobj; | |
18931 | fail: | |
18932 | return NULL; | |
18933 | } | |
18934 | ||
18935 | ||
18936 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18937 | PyObject *resultobj; | |
18938 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18939 | wxOutputStream *result; | |
18940 | PyObject * obj0 = 0 ; | |
18941 | char *kwnames[] = { | |
18942 | (char *) "self", NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
18946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18948 | { | |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18950 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
18951 | ||
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
18955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
18956 | return resultobj; | |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
18962 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18963 | PyObject *resultobj; | |
18964 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18965 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
18966 | PyObject * obj0 = 0 ; | |
18967 | PyObject * obj1 = 0 ; | |
18968 | char *kwnames[] = { | |
18969 | (char *) "self",(char *) "outputstream", NULL | |
18970 | }; | |
18971 | ||
18972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
18973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18975 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
18976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18977 | { | |
18978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18979 | (arg1)->SetOutputStream(arg2); | |
18980 | ||
18981 | wxPyEndAllowThreads(__tstate); | |
18982 | if (PyErr_Occurred()) SWIG_fail; | |
18983 | } | |
18984 | Py_INCREF(Py_None); resultobj = Py_None; | |
18985 | return resultobj; | |
18986 | fail: | |
18987 | return NULL; | |
18988 | } | |
18989 | ||
18990 | ||
18991 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
18992 | PyObject *obj; | |
18993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18994 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
18995 | Py_INCREF(obj); | |
18996 | return Py_BuildValue((char *)""); | |
18997 | } | |
18998 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18999 | PyObject *resultobj; | |
19000 | wxPageSetupDialogData *result; | |
19001 | char *kwnames[] = { | |
19002 | NULL | |
19003 | }; | |
19004 | ||
19005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
19006 | { | |
19007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19008 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
19009 | ||
19010 | wxPyEndAllowThreads(__tstate); | |
19011 | if (PyErr_Occurred()) SWIG_fail; | |
19012 | } | |
19013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19014 | return resultobj; | |
19015 | fail: | |
19016 | return NULL; | |
19017 | } | |
19018 | ||
19019 | ||
19020 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19021 | PyObject *resultobj; | |
19022 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19023 | PyObject * obj0 = 0 ; | |
19024 | char *kwnames[] = { | |
19025 | (char *) "self", NULL | |
19026 | }; | |
19027 | ||
19028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
19029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19031 | { | |
19032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19033 | delete arg1; | |
19034 | ||
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | Py_INCREF(Py_None); resultobj = Py_None; | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19048 | bool arg2 ; | |
19049 | PyObject * obj0 = 0 ; | |
19050 | PyObject * obj1 = 0 ; | |
19051 | char *kwnames[] = { | |
19052 | (char *) "self",(char *) "flag", NULL | |
19053 | }; | |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19058 | arg2 = (bool) SWIG_AsBool(obj1); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
19060 | { | |
19061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19062 | (arg1)->EnableHelp(arg2); | |
19063 | ||
19064 | wxPyEndAllowThreads(__tstate); | |
19065 | if (PyErr_Occurred()) SWIG_fail; | |
19066 | } | |
19067 | Py_INCREF(Py_None); resultobj = Py_None; | |
19068 | return resultobj; | |
19069 | fail: | |
19070 | return NULL; | |
19071 | } | |
19072 | ||
19073 | ||
19074 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19075 | PyObject *resultobj; | |
19076 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19077 | bool arg2 ; | |
19078 | PyObject * obj0 = 0 ; | |
19079 | PyObject * obj1 = 0 ; | |
19080 | char *kwnames[] = { | |
19081 | (char *) "self",(char *) "flag", NULL | |
19082 | }; | |
19083 | ||
19084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
19085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19087 | arg2 = (bool) SWIG_AsBool(obj1); | |
19088 | if (PyErr_Occurred()) SWIG_fail; | |
19089 | { | |
19090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19091 | (arg1)->EnableMargins(arg2); | |
19092 | ||
19093 | wxPyEndAllowThreads(__tstate); | |
19094 | if (PyErr_Occurred()) SWIG_fail; | |
19095 | } | |
19096 | Py_INCREF(Py_None); resultobj = Py_None; | |
19097 | return resultobj; | |
19098 | fail: | |
19099 | return NULL; | |
19100 | } | |
19101 | ||
19102 | ||
19103 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19104 | PyObject *resultobj; | |
19105 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19106 | bool arg2 ; | |
19107 | PyObject * obj0 = 0 ; | |
19108 | PyObject * obj1 = 0 ; | |
19109 | char *kwnames[] = { | |
19110 | (char *) "self",(char *) "flag", NULL | |
19111 | }; | |
19112 | ||
19113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
19114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19116 | arg2 = (bool) SWIG_AsBool(obj1); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | { | |
19119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19120 | (arg1)->EnableOrientation(arg2); | |
19121 | ||
19122 | wxPyEndAllowThreads(__tstate); | |
19123 | if (PyErr_Occurred()) SWIG_fail; | |
19124 | } | |
19125 | Py_INCREF(Py_None); resultobj = Py_None; | |
19126 | return resultobj; | |
19127 | fail: | |
19128 | return NULL; | |
19129 | } | |
19130 | ||
19131 | ||
19132 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19133 | PyObject *resultobj; | |
19134 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19135 | bool arg2 ; | |
19136 | PyObject * obj0 = 0 ; | |
19137 | PyObject * obj1 = 0 ; | |
19138 | char *kwnames[] = { | |
19139 | (char *) "self",(char *) "flag", NULL | |
19140 | }; | |
19141 | ||
19142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
19143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19145 | arg2 = (bool) SWIG_AsBool(obj1); | |
19146 | if (PyErr_Occurred()) SWIG_fail; | |
19147 | { | |
19148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19149 | (arg1)->EnablePaper(arg2); | |
19150 | ||
19151 | wxPyEndAllowThreads(__tstate); | |
19152 | if (PyErr_Occurred()) SWIG_fail; | |
19153 | } | |
19154 | Py_INCREF(Py_None); resultobj = Py_None; | |
19155 | return resultobj; | |
19156 | fail: | |
19157 | return NULL; | |
19158 | } | |
19159 | ||
19160 | ||
19161 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19162 | PyObject *resultobj; | |
19163 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19164 | bool arg2 ; | |
19165 | PyObject * obj0 = 0 ; | |
19166 | PyObject * obj1 = 0 ; | |
19167 | char *kwnames[] = { | |
19168 | (char *) "self",(char *) "flag", NULL | |
19169 | }; | |
19170 | ||
19171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
19172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19174 | arg2 = (bool) SWIG_AsBool(obj1); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | { | |
19177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19178 | (arg1)->EnablePrinter(arg2); | |
19179 | ||
19180 | wxPyEndAllowThreads(__tstate); | |
19181 | if (PyErr_Occurred()) SWIG_fail; | |
19182 | } | |
19183 | Py_INCREF(Py_None); resultobj = Py_None; | |
19184 | return resultobj; | |
19185 | fail: | |
19186 | return NULL; | |
19187 | } | |
19188 | ||
19189 | ||
19190 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19191 | PyObject *resultobj; | |
19192 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19193 | bool result; | |
19194 | PyObject * obj0 = 0 ; | |
19195 | char *kwnames[] = { | |
19196 | (char *) "self", NULL | |
19197 | }; | |
19198 | ||
19199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
19200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19202 | { | |
19203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19204 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
19205 | ||
19206 | wxPyEndAllowThreads(__tstate); | |
19207 | if (PyErr_Occurred()) SWIG_fail; | |
19208 | } | |
19209 | { | |
19210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19211 | } | |
19212 | return resultobj; | |
19213 | fail: | |
19214 | return NULL; | |
19215 | } | |
19216 | ||
19217 | ||
19218 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19219 | PyObject *resultobj; | |
19220 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19221 | bool result; | |
19222 | PyObject * obj0 = 0 ; | |
19223 | char *kwnames[] = { | |
19224 | (char *) "self", NULL | |
19225 | }; | |
19226 | ||
19227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19230 | { | |
19231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19232 | result = (bool)(arg1)->GetEnableMargins(); | |
19233 | ||
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | { | |
19238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19239 | } | |
19240 | return resultobj; | |
19241 | fail: | |
19242 | return NULL; | |
19243 | } | |
19244 | ||
19245 | ||
19246 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19247 | PyObject *resultobj; | |
19248 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19249 | bool result; | |
19250 | PyObject * obj0 = 0 ; | |
19251 | char *kwnames[] = { | |
19252 | (char *) "self", NULL | |
19253 | }; | |
19254 | ||
19255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19258 | { | |
19259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19260 | result = (bool)(arg1)->GetEnableOrientation(); | |
19261 | ||
19262 | wxPyEndAllowThreads(__tstate); | |
19263 | if (PyErr_Occurred()) SWIG_fail; | |
19264 | } | |
19265 | { | |
19266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19267 | } | |
19268 | return resultobj; | |
19269 | fail: | |
19270 | return NULL; | |
19271 | } | |
19272 | ||
19273 | ||
19274 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19275 | PyObject *resultobj; | |
19276 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19277 | bool result; | |
19278 | PyObject * obj0 = 0 ; | |
19279 | char *kwnames[] = { | |
19280 | (char *) "self", NULL | |
19281 | }; | |
19282 | ||
19283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19286 | { | |
19287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19288 | result = (bool)(arg1)->GetEnablePaper(); | |
19289 | ||
19290 | wxPyEndAllowThreads(__tstate); | |
19291 | if (PyErr_Occurred()) SWIG_fail; | |
19292 | } | |
19293 | { | |
19294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19295 | } | |
19296 | return resultobj; | |
19297 | fail: | |
19298 | return NULL; | |
19299 | } | |
19300 | ||
19301 | ||
19302 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19303 | PyObject *resultobj; | |
19304 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19305 | bool result; | |
19306 | PyObject * obj0 = 0 ; | |
19307 | char *kwnames[] = { | |
19308 | (char *) "self", NULL | |
19309 | }; | |
19310 | ||
19311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
19312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19314 | { | |
19315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19316 | result = (bool)(arg1)->GetEnablePrinter(); | |
19317 | ||
19318 | wxPyEndAllowThreads(__tstate); | |
19319 | if (PyErr_Occurred()) SWIG_fail; | |
19320 | } | |
19321 | { | |
19322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19323 | } | |
19324 | return resultobj; | |
19325 | fail: | |
19326 | return NULL; | |
19327 | } | |
19328 | ||
19329 | ||
19330 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19331 | PyObject *resultobj; | |
19332 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19333 | bool result; | |
19334 | PyObject * obj0 = 0 ; | |
19335 | char *kwnames[] = { | |
19336 | (char *) "self", NULL | |
19337 | }; | |
19338 | ||
19339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19342 | { | |
19343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19344 | result = (bool)(arg1)->GetEnableHelp(); | |
19345 | ||
19346 | wxPyEndAllowThreads(__tstate); | |
19347 | if (PyErr_Occurred()) SWIG_fail; | |
19348 | } | |
19349 | { | |
19350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19351 | } | |
19352 | return resultobj; | |
19353 | fail: | |
19354 | return NULL; | |
19355 | } | |
19356 | ||
19357 | ||
19358 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19359 | PyObject *resultobj; | |
19360 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19361 | bool result; | |
19362 | PyObject * obj0 = 0 ; | |
19363 | char *kwnames[] = { | |
19364 | (char *) "self", NULL | |
19365 | }; | |
19366 | ||
19367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
19368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | result = (bool)(arg1)->GetDefaultInfo(); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | { | |
19378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19379 | } | |
19380 | return resultobj; | |
19381 | fail: | |
19382 | return NULL; | |
19383 | } | |
19384 | ||
19385 | ||
19386 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19387 | PyObject *resultobj; | |
19388 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19389 | wxPoint result; | |
19390 | PyObject * obj0 = 0 ; | |
19391 | char *kwnames[] = { | |
19392 | (char *) "self", NULL | |
19393 | }; | |
19394 | ||
19395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
19396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19398 | { | |
19399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19400 | result = (arg1)->GetMarginTopLeft(); | |
19401 | ||
19402 | wxPyEndAllowThreads(__tstate); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | } | |
19405 | { | |
19406 | wxPoint * resultptr; | |
19407 | resultptr = new wxPoint((wxPoint &) result); | |
19408 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19409 | } | |
19410 | return resultobj; | |
19411 | fail: | |
19412 | return NULL; | |
19413 | } | |
19414 | ||
19415 | ||
19416 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19417 | PyObject *resultobj; | |
19418 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19419 | wxPoint result; | |
19420 | PyObject * obj0 = 0 ; | |
19421 | char *kwnames[] = { | |
19422 | (char *) "self", NULL | |
19423 | }; | |
19424 | ||
19425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
19426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19428 | { | |
19429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19430 | result = (arg1)->GetMarginBottomRight(); | |
19431 | ||
19432 | wxPyEndAllowThreads(__tstate); | |
19433 | if (PyErr_Occurred()) SWIG_fail; | |
19434 | } | |
19435 | { | |
19436 | wxPoint * resultptr; | |
19437 | resultptr = new wxPoint((wxPoint &) result); | |
19438 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19439 | } | |
19440 | return resultobj; | |
19441 | fail: | |
19442 | return NULL; | |
19443 | } | |
19444 | ||
19445 | ||
19446 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19447 | PyObject *resultobj; | |
19448 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19449 | wxPoint result; | |
19450 | PyObject * obj0 = 0 ; | |
19451 | char *kwnames[] = { | |
19452 | (char *) "self", NULL | |
19453 | }; | |
19454 | ||
19455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
19456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19458 | { | |
19459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19460 | result = (arg1)->GetMinMarginTopLeft(); | |
19461 | ||
19462 | wxPyEndAllowThreads(__tstate); | |
19463 | if (PyErr_Occurred()) SWIG_fail; | |
19464 | } | |
19465 | { | |
19466 | wxPoint * resultptr; | |
19467 | resultptr = new wxPoint((wxPoint &) result); | |
19468 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19469 | } | |
19470 | return resultobj; | |
19471 | fail: | |
19472 | return NULL; | |
19473 | } | |
19474 | ||
19475 | ||
19476 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19477 | PyObject *resultobj; | |
19478 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19479 | wxPoint result; | |
19480 | PyObject * obj0 = 0 ; | |
19481 | char *kwnames[] = { | |
19482 | (char *) "self", NULL | |
19483 | }; | |
19484 | ||
19485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
19486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19488 | { | |
19489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19490 | result = (arg1)->GetMinMarginBottomRight(); | |
19491 | ||
19492 | wxPyEndAllowThreads(__tstate); | |
19493 | if (PyErr_Occurred()) SWIG_fail; | |
19494 | } | |
19495 | { | |
19496 | wxPoint * resultptr; | |
19497 | resultptr = new wxPoint((wxPoint &) result); | |
19498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19499 | } | |
19500 | return resultobj; | |
19501 | fail: | |
19502 | return NULL; | |
19503 | } | |
19504 | ||
19505 | ||
19506 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19507 | PyObject *resultobj; | |
19508 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19509 | int result; | |
19510 | PyObject * obj0 = 0 ; | |
19511 | char *kwnames[] = { | |
19512 | (char *) "self", NULL | |
19513 | }; | |
19514 | ||
19515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
19516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19518 | { | |
19519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19520 | result = (int)(arg1)->GetPaperId(); | |
19521 | ||
19522 | wxPyEndAllowThreads(__tstate); | |
19523 | if (PyErr_Occurred()) SWIG_fail; | |
19524 | } | |
19525 | resultobj = SWIG_FromInt((int)result); | |
19526 | return resultobj; | |
19527 | fail: | |
19528 | return NULL; | |
19529 | } | |
19530 | ||
19531 | ||
19532 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19533 | PyObject *resultobj; | |
19534 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19535 | wxSize result; | |
19536 | PyObject * obj0 = 0 ; | |
19537 | char *kwnames[] = { | |
19538 | (char *) "self", NULL | |
19539 | }; | |
19540 | ||
19541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
19542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19544 | { | |
19545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19546 | result = (arg1)->GetPaperSize(); | |
19547 | ||
19548 | wxPyEndAllowThreads(__tstate); | |
19549 | if (PyErr_Occurred()) SWIG_fail; | |
19550 | } | |
19551 | { | |
19552 | wxSize * resultptr; | |
19553 | resultptr = new wxSize((wxSize &) result); | |
19554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
19555 | } | |
19556 | return resultobj; | |
19557 | fail: | |
19558 | return NULL; | |
19559 | } | |
19560 | ||
19561 | ||
19562 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19563 | PyObject *resultobj; | |
19564 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19565 | wxPrintData *result; | |
19566 | PyObject * obj0 = 0 ; | |
19567 | char *kwnames[] = { | |
19568 | (char *) "self", NULL | |
19569 | }; | |
19570 | ||
19571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19574 | { | |
19575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19576 | { | |
19577 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19578 | result = (wxPrintData *) &_result_ref; | |
19579 | } | |
19580 | ||
19581 | wxPyEndAllowThreads(__tstate); | |
19582 | if (PyErr_Occurred()) SWIG_fail; | |
19583 | } | |
19584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
19585 | return resultobj; | |
19586 | fail: | |
19587 | return NULL; | |
19588 | } | |
19589 | ||
19590 | ||
19591 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19592 | PyObject *resultobj; | |
19593 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19594 | bool result; | |
19595 | PyObject * obj0 = 0 ; | |
19596 | char *kwnames[] = { | |
19597 | (char *) "self", NULL | |
19598 | }; | |
19599 | ||
19600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
19601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19603 | { | |
19604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19605 | result = (bool)(arg1)->Ok(); | |
19606 | ||
19607 | wxPyEndAllowThreads(__tstate); | |
19608 | if (PyErr_Occurred()) SWIG_fail; | |
19609 | } | |
19610 | { | |
19611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19612 | } | |
19613 | return resultobj; | |
19614 | fail: | |
19615 | return NULL; | |
19616 | } | |
19617 | ||
19618 | ||
19619 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19620 | PyObject *resultobj; | |
19621 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19622 | bool arg2 ; | |
19623 | PyObject * obj0 = 0 ; | |
19624 | PyObject * obj1 = 0 ; | |
19625 | char *kwnames[] = { | |
19626 | (char *) "self",(char *) "flag", NULL | |
19627 | }; | |
19628 | ||
19629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
19630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19632 | arg2 = (bool) SWIG_AsBool(obj1); | |
19633 | if (PyErr_Occurred()) SWIG_fail; | |
19634 | { | |
19635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19636 | (arg1)->SetDefaultInfo(arg2); | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | Py_INCREF(Py_None); resultobj = Py_None; | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
19648 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19649 | PyObject *resultobj; | |
19650 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19651 | bool arg2 ; | |
19652 | PyObject * obj0 = 0 ; | |
19653 | PyObject * obj1 = 0 ; | |
19654 | char *kwnames[] = { | |
19655 | (char *) "self",(char *) "flag", NULL | |
19656 | }; | |
19657 | ||
19658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
19659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19661 | arg2 = (bool) SWIG_AsBool(obj1); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | { | |
19664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19665 | (arg1)->SetDefaultMinMargins(arg2); | |
19666 | ||
19667 | wxPyEndAllowThreads(__tstate); | |
19668 | if (PyErr_Occurred()) SWIG_fail; | |
19669 | } | |
19670 | Py_INCREF(Py_None); resultobj = Py_None; | |
19671 | return resultobj; | |
19672 | fail: | |
19673 | return NULL; | |
19674 | } | |
19675 | ||
19676 | ||
19677 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19678 | PyObject *resultobj; | |
19679 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19680 | wxPoint *arg2 = 0 ; | |
19681 | wxPoint temp2 ; | |
19682 | PyObject * obj0 = 0 ; | |
19683 | PyObject * obj1 = 0 ; | |
19684 | char *kwnames[] = { | |
19685 | (char *) "self",(char *) "pt", NULL | |
19686 | }; | |
19687 | ||
19688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19691 | { | |
19692 | arg2 = &temp2; | |
19693 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19694 | } | |
19695 | { | |
19696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19697 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
19698 | ||
19699 | wxPyEndAllowThreads(__tstate); | |
19700 | if (PyErr_Occurred()) SWIG_fail; | |
19701 | } | |
19702 | Py_INCREF(Py_None); resultobj = Py_None; | |
19703 | return resultobj; | |
19704 | fail: | |
19705 | return NULL; | |
19706 | } | |
19707 | ||
19708 | ||
19709 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19710 | PyObject *resultobj; | |
19711 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19712 | wxPoint *arg2 = 0 ; | |
19713 | wxPoint temp2 ; | |
19714 | PyObject * obj0 = 0 ; | |
19715 | PyObject * obj1 = 0 ; | |
19716 | char *kwnames[] = { | |
19717 | (char *) "self",(char *) "pt", NULL | |
19718 | }; | |
19719 | ||
19720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19723 | { | |
19724 | arg2 = &temp2; | |
19725 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19726 | } | |
19727 | { | |
19728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19729 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
19730 | ||
19731 | wxPyEndAllowThreads(__tstate); | |
19732 | if (PyErr_Occurred()) SWIG_fail; | |
19733 | } | |
19734 | Py_INCREF(Py_None); resultobj = Py_None; | |
19735 | return resultobj; | |
19736 | fail: | |
19737 | return NULL; | |
19738 | } | |
19739 | ||
19740 | ||
19741 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19742 | PyObject *resultobj; | |
19743 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19744 | wxPoint *arg2 = 0 ; | |
19745 | wxPoint temp2 ; | |
19746 | PyObject * obj0 = 0 ; | |
19747 | PyObject * obj1 = 0 ; | |
19748 | char *kwnames[] = { | |
19749 | (char *) "self",(char *) "pt", NULL | |
19750 | }; | |
19751 | ||
19752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19755 | { | |
19756 | arg2 = &temp2; | |
19757 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19758 | } | |
19759 | { | |
19760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19761 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
19762 | ||
19763 | wxPyEndAllowThreads(__tstate); | |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
19765 | } | |
19766 | Py_INCREF(Py_None); resultobj = Py_None; | |
19767 | return resultobj; | |
19768 | fail: | |
19769 | return NULL; | |
19770 | } | |
19771 | ||
19772 | ||
19773 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19774 | PyObject *resultobj; | |
19775 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19776 | wxPoint *arg2 = 0 ; | |
19777 | wxPoint temp2 ; | |
19778 | PyObject * obj0 = 0 ; | |
19779 | PyObject * obj1 = 0 ; | |
19780 | char *kwnames[] = { | |
19781 | (char *) "self",(char *) "pt", NULL | |
19782 | }; | |
19783 | ||
19784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19787 | { | |
19788 | arg2 = &temp2; | |
19789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19790 | } | |
19791 | { | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
19794 | ||
19795 | wxPyEndAllowThreads(__tstate); | |
19796 | if (PyErr_Occurred()) SWIG_fail; | |
19797 | } | |
19798 | Py_INCREF(Py_None); resultobj = Py_None; | |
19799 | return resultobj; | |
19800 | fail: | |
19801 | return NULL; | |
19802 | } | |
19803 | ||
19804 | ||
19805 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19806 | PyObject *resultobj; | |
19807 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19808 | int arg2 ; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | PyObject * obj1 = 0 ; | |
19811 | char *kwnames[] = { | |
19812 | (char *) "self",(char *) "id", NULL | |
19813 | }; | |
19814 | ||
19815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
19816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19818 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | { | |
19821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19822 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
19823 | ||
19824 | wxPyEndAllowThreads(__tstate); | |
19825 | if (PyErr_Occurred()) SWIG_fail; | |
19826 | } | |
19827 | Py_INCREF(Py_None); resultobj = Py_None; | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
19834 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19835 | PyObject *resultobj; | |
19836 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19837 | wxSize *arg2 = 0 ; | |
19838 | wxSize temp2 ; | |
19839 | PyObject * obj0 = 0 ; | |
19840 | PyObject * obj1 = 0 ; | |
19841 | char *kwnames[] = { | |
19842 | (char *) "self",(char *) "size", NULL | |
19843 | }; | |
19844 | ||
19845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
19846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19848 | { | |
19849 | arg2 = &temp2; | |
19850 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
19851 | } | |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
19855 | ||
19856 | wxPyEndAllowThreads(__tstate); | |
19857 | if (PyErr_Occurred()) SWIG_fail; | |
19858 | } | |
19859 | Py_INCREF(Py_None); resultobj = Py_None; | |
19860 | return resultobj; | |
19861 | fail: | |
19862 | return NULL; | |
19863 | } | |
19864 | ||
19865 | ||
19866 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19867 | PyObject *resultobj; | |
19868 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19869 | wxPrintData *arg2 = 0 ; | |
19870 | PyObject * obj0 = 0 ; | |
19871 | PyObject * obj1 = 0 ; | |
19872 | char *kwnames[] = { | |
19873 | (char *) "self",(char *) "printData", NULL | |
19874 | }; | |
19875 | ||
19876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
19877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
19880 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19881 | SWIG_fail; | |
19882 | if (arg2 == NULL) { | |
19883 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19884 | SWIG_fail; | |
19885 | } | |
19886 | { | |
19887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19888 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
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 * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
19901 | PyObject *obj; | |
19902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19903 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
19904 | Py_INCREF(obj); | |
19905 | return Py_BuildValue((char *)""); | |
19906 | } | |
19907 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19908 | PyObject *resultobj; | |
19909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19910 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
19911 | wxPageSetupDialog *result; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | PyObject * obj1 = 0 ; | |
19914 | char *kwnames[] = { | |
19915 | (char *) "parent",(char *) "data", NULL | |
19916 | }; | |
19917 | ||
19918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
19919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19921 | if (obj1) { | |
19922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
19923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19924 | } | |
19925 | { | |
19926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19927 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
19928 | ||
19929 | wxPyEndAllowThreads(__tstate); | |
19930 | if (PyErr_Occurred()) SWIG_fail; | |
19931 | } | |
19932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
19933 | return resultobj; | |
19934 | fail: | |
19935 | return NULL; | |
19936 | } | |
19937 | ||
19938 | ||
19939 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19940 | PyObject *resultobj; | |
19941 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
19942 | wxPageSetupDialogData *result; | |
19943 | PyObject * obj0 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
19949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19951 | { | |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | { | |
19954 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
19955 | result = (wxPageSetupDialogData *) &_result_ref; | |
19956 | } | |
19957 | ||
19958 | wxPyEndAllowThreads(__tstate); | |
19959 | if (PyErr_Occurred()) SWIG_fail; | |
19960 | } | |
19961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
19962 | return resultobj; | |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19969 | PyObject *resultobj; | |
19970 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
19971 | int result; | |
19972 | PyObject * obj0 = 0 ; | |
19973 | char *kwnames[] = { | |
19974 | (char *) "self", NULL | |
19975 | }; | |
19976 | ||
19977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
19978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
19979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19980 | { | |
19981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19982 | result = (int)(arg1)->ShowModal(); | |
19983 | ||
19984 | wxPyEndAllowThreads(__tstate); | |
19985 | if (PyErr_Occurred()) SWIG_fail; | |
19986 | } | |
19987 | resultobj = SWIG_FromInt((int)result); | |
19988 | return resultobj; | |
19989 | fail: | |
19990 | return NULL; | |
19991 | } | |
19992 | ||
19993 | ||
19994 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
19995 | PyObject *obj; | |
19996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19997 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
19998 | Py_INCREF(obj); | |
19999 | return Py_BuildValue((char *)""); | |
20000 | } | |
20001 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
20002 | PyObject *resultobj; | |
20003 | wxPrintDialogData *result; | |
20004 | ||
20005 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
20006 | { | |
20007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20008 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
20009 | ||
20010 | wxPyEndAllowThreads(__tstate); | |
20011 | if (PyErr_Occurred()) SWIG_fail; | |
20012 | } | |
20013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20014 | return resultobj; | |
20015 | fail: | |
20016 | return NULL; | |
20017 | } | |
20018 | ||
20019 | ||
20020 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
20021 | PyObject *resultobj; | |
20022 | wxPrintData *arg1 = 0 ; | |
20023 | wxPrintDialogData *result; | |
20024 | PyObject * obj0 = 0 ; | |
20025 | ||
20026 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
20027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
20028 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20029 | SWIG_fail; | |
20030 | if (arg1 == NULL) { | |
20031 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20032 | SWIG_fail; | |
20033 | } | |
20034 | { | |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20036 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
20037 | ||
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
20041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
20049 | int argc; | |
20050 | PyObject *argv[2]; | |
20051 | int ii; | |
20052 | ||
20053 | argc = PyObject_Length(args); | |
20054 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
20055 | argv[ii] = PyTuple_GetItem(args,ii); | |
20056 | } | |
20057 | if (argc == 0) { | |
20058 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
20059 | } | |
20060 | if (argc == 1) { | |
20061 | int _v; | |
20062 | { | |
20063 | void *ptr; | |
20064 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
20065 | _v = 0; | |
20066 | PyErr_Clear(); | |
20067 | } else { | |
20068 | _v = 1; | |
20069 | } | |
20070 | } | |
20071 | if (_v) { | |
20072 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
20073 | } | |
20074 | } | |
20075 | ||
20076 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
20077 | return NULL; | |
20078 | } | |
20079 | ||
20080 | ||
20081 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20082 | PyObject *resultobj; | |
20083 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20084 | PyObject * obj0 = 0 ; | |
20085 | char *kwnames[] = { | |
20086 | (char *) "self", NULL | |
20087 | }; | |
20088 | ||
20089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
20090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20092 | { | |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | delete arg1; | |
20095 | ||
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
20099 | Py_INCREF(Py_None); resultobj = Py_None; | |
20100 | return resultobj; | |
20101 | fail: | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
20106 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20107 | PyObject *resultobj; | |
20108 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20109 | int result; | |
20110 | PyObject * obj0 = 0 ; | |
20111 | char *kwnames[] = { | |
20112 | (char *) "self", NULL | |
20113 | }; | |
20114 | ||
20115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
20116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20118 | { | |
20119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20120 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
20121 | ||
20122 | wxPyEndAllowThreads(__tstate); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | } | |
20125 | resultobj = SWIG_FromInt((int)result); | |
20126 | return resultobj; | |
20127 | fail: | |
20128 | return NULL; | |
20129 | } | |
20130 | ||
20131 | ||
20132 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20133 | PyObject *resultobj; | |
20134 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20135 | int result; | |
20136 | PyObject * obj0 = 0 ; | |
20137 | char *kwnames[] = { | |
20138 | (char *) "self", NULL | |
20139 | }; | |
20140 | ||
20141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
20142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20144 | { | |
20145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20146 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
20147 | ||
20148 | wxPyEndAllowThreads(__tstate); | |
20149 | if (PyErr_Occurred()) SWIG_fail; | |
20150 | } | |
20151 | resultobj = SWIG_FromInt((int)result); | |
20152 | return resultobj; | |
20153 | fail: | |
20154 | return NULL; | |
20155 | } | |
20156 | ||
20157 | ||
20158 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20159 | PyObject *resultobj; | |
20160 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20161 | int result; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | char *kwnames[] = { | |
20164 | (char *) "self", NULL | |
20165 | }; | |
20166 | ||
20167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
20168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20170 | { | |
20171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20172 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
20173 | ||
20174 | wxPyEndAllowThreads(__tstate); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | } | |
20177 | resultobj = SWIG_FromInt((int)result); | |
20178 | return resultobj; | |
20179 | fail: | |
20180 | return NULL; | |
20181 | } | |
20182 | ||
20183 | ||
20184 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20185 | PyObject *resultobj; | |
20186 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20187 | int result; | |
20188 | PyObject * obj0 = 0 ; | |
20189 | char *kwnames[] = { | |
20190 | (char *) "self", NULL | |
20191 | }; | |
20192 | ||
20193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
20194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20196 | { | |
20197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20198 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
20199 | ||
20200 | wxPyEndAllowThreads(__tstate); | |
20201 | if (PyErr_Occurred()) SWIG_fail; | |
20202 | } | |
20203 | resultobj = SWIG_FromInt((int)result); | |
20204 | return resultobj; | |
20205 | fail: | |
20206 | return NULL; | |
20207 | } | |
20208 | ||
20209 | ||
20210 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20211 | PyObject *resultobj; | |
20212 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20213 | int result; | |
20214 | PyObject * obj0 = 0 ; | |
20215 | char *kwnames[] = { | |
20216 | (char *) "self", NULL | |
20217 | }; | |
20218 | ||
20219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20222 | { | |
20223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20224 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20225 | ||
20226 | wxPyEndAllowThreads(__tstate); | |
20227 | if (PyErr_Occurred()) SWIG_fail; | |
20228 | } | |
20229 | resultobj = SWIG_FromInt((int)result); | |
20230 | return resultobj; | |
20231 | fail: | |
20232 | return NULL; | |
20233 | } | |
20234 | ||
20235 | ||
20236 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20237 | PyObject *resultobj; | |
20238 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20239 | bool result; | |
20240 | PyObject * obj0 = 0 ; | |
20241 | char *kwnames[] = { | |
20242 | (char *) "self", NULL | |
20243 | }; | |
20244 | ||
20245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20248 | { | |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20251 | ||
20252 | wxPyEndAllowThreads(__tstate); | |
20253 | if (PyErr_Occurred()) SWIG_fail; | |
20254 | } | |
20255 | { | |
20256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20257 | } | |
20258 | return resultobj; | |
20259 | fail: | |
20260 | return NULL; | |
20261 | } | |
20262 | ||
20263 | ||
20264 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20265 | PyObject *resultobj; | |
20266 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20267 | bool result; | |
20268 | PyObject * obj0 = 0 ; | |
20269 | char *kwnames[] = { | |
20270 | (char *) "self", NULL | |
20271 | }; | |
20272 | ||
20273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20276 | { | |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20279 | ||
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
20283 | { | |
20284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20285 | } | |
20286 | return resultobj; | |
20287 | fail: | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
20292 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20293 | PyObject *resultobj; | |
20294 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20295 | bool result; | |
20296 | PyObject * obj0 = 0 ; | |
20297 | char *kwnames[] = { | |
20298 | (char *) "self", NULL | |
20299 | }; | |
20300 | ||
20301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
20302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20304 | { | |
20305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20306 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
20307 | ||
20308 | wxPyEndAllowThreads(__tstate); | |
20309 | if (PyErr_Occurred()) SWIG_fail; | |
20310 | } | |
20311 | { | |
20312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20313 | } | |
20314 | return resultobj; | |
20315 | fail: | |
20316 | return NULL; | |
20317 | } | |
20318 | ||
20319 | ||
20320 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20321 | PyObject *resultobj; | |
20322 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20323 | bool result; | |
20324 | PyObject * obj0 = 0 ; | |
20325 | char *kwnames[] = { | |
20326 | (char *) "self", NULL | |
20327 | }; | |
20328 | ||
20329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
20330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20332 | { | |
20333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20334 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
20335 | ||
20336 | wxPyEndAllowThreads(__tstate); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | } | |
20339 | { | |
20340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20341 | } | |
20342 | return resultobj; | |
20343 | fail: | |
20344 | return NULL; | |
20345 | } | |
20346 | ||
20347 | ||
20348 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20349 | PyObject *resultobj; | |
20350 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20351 | bool result; | |
20352 | PyObject * obj0 = 0 ; | |
20353 | char *kwnames[] = { | |
20354 | (char *) "self", NULL | |
20355 | }; | |
20356 | ||
20357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
20358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20360 | { | |
20361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20362 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
20363 | ||
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
20367 | { | |
20368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20369 | } | |
20370 | return resultobj; | |
20371 | fail: | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
20376 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20377 | PyObject *resultobj; | |
20378 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20379 | int arg2 ; | |
20380 | PyObject * obj0 = 0 ; | |
20381 | PyObject * obj1 = 0 ; | |
20382 | char *kwnames[] = { | |
20383 | (char *) "self",(char *) "v", NULL | |
20384 | }; | |
20385 | ||
20386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
20387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20389 | arg2 = (int) SWIG_AsInt(obj1); | |
20390 | if (PyErr_Occurred()) SWIG_fail; | |
20391 | { | |
20392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20393 | (arg1)->SetFromPage(arg2); | |
20394 | ||
20395 | wxPyEndAllowThreads(__tstate); | |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
20397 | } | |
20398 | Py_INCREF(Py_None); resultobj = Py_None; | |
20399 | return resultobj; | |
20400 | fail: | |
20401 | return NULL; | |
20402 | } | |
20403 | ||
20404 | ||
20405 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20406 | PyObject *resultobj; | |
20407 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20408 | int arg2 ; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | PyObject * obj1 = 0 ; | |
20411 | char *kwnames[] = { | |
20412 | (char *) "self",(char *) "v", NULL | |
20413 | }; | |
20414 | ||
20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
20416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20418 | arg2 = (int) SWIG_AsInt(obj1); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | { | |
20421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20422 | (arg1)->SetToPage(arg2); | |
20423 | ||
20424 | wxPyEndAllowThreads(__tstate); | |
20425 | if (PyErr_Occurred()) SWIG_fail; | |
20426 | } | |
20427 | Py_INCREF(Py_None); resultobj = Py_None; | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20435 | PyObject *resultobj; | |
20436 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20437 | int arg2 ; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | PyObject * obj1 = 0 ; | |
20440 | char *kwnames[] = { | |
20441 | (char *) "self",(char *) "v", NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
20445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20447 | arg2 = (int) SWIG_AsInt(obj1); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | { | |
20450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20451 | (arg1)->SetMinPage(arg2); | |
20452 | ||
20453 | wxPyEndAllowThreads(__tstate); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | } | |
20456 | Py_INCREF(Py_None); resultobj = Py_None; | |
20457 | return resultobj; | |
20458 | fail: | |
20459 | return NULL; | |
20460 | } | |
20461 | ||
20462 | ||
20463 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20464 | PyObject *resultobj; | |
20465 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20466 | int arg2 ; | |
20467 | PyObject * obj0 = 0 ; | |
20468 | PyObject * obj1 = 0 ; | |
20469 | char *kwnames[] = { | |
20470 | (char *) "self",(char *) "v", NULL | |
20471 | }; | |
20472 | ||
20473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
20474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20476 | arg2 = (int) SWIG_AsInt(obj1); | |
20477 | if (PyErr_Occurred()) SWIG_fail; | |
20478 | { | |
20479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20480 | (arg1)->SetMaxPage(arg2); | |
20481 | ||
20482 | wxPyEndAllowThreads(__tstate); | |
20483 | if (PyErr_Occurred()) SWIG_fail; | |
20484 | } | |
20485 | Py_INCREF(Py_None); resultobj = Py_None; | |
20486 | return resultobj; | |
20487 | fail: | |
20488 | return NULL; | |
20489 | } | |
20490 | ||
20491 | ||
20492 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20493 | PyObject *resultobj; | |
20494 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20495 | int arg2 ; | |
20496 | PyObject * obj0 = 0 ; | |
20497 | PyObject * obj1 = 0 ; | |
20498 | char *kwnames[] = { | |
20499 | (char *) "self",(char *) "v", NULL | |
20500 | }; | |
20501 | ||
20502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
20503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20505 | arg2 = (int) SWIG_AsInt(obj1); | |
20506 | if (PyErr_Occurred()) SWIG_fail; | |
20507 | { | |
20508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20509 | (arg1)->SetNoCopies(arg2); | |
20510 | ||
20511 | wxPyEndAllowThreads(__tstate); | |
20512 | if (PyErr_Occurred()) SWIG_fail; | |
20513 | } | |
20514 | Py_INCREF(Py_None); resultobj = Py_None; | |
20515 | return resultobj; | |
20516 | fail: | |
20517 | return NULL; | |
20518 | } | |
20519 | ||
20520 | ||
20521 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20522 | PyObject *resultobj; | |
20523 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20524 | bool arg2 ; | |
20525 | PyObject * obj0 = 0 ; | |
20526 | PyObject * obj1 = 0 ; | |
20527 | char *kwnames[] = { | |
20528 | (char *) "self",(char *) "flag", NULL | |
20529 | }; | |
20530 | ||
20531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
20532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20534 | arg2 = (bool) SWIG_AsBool(obj1); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | { | |
20537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20538 | (arg1)->SetAllPages(arg2); | |
20539 | ||
20540 | wxPyEndAllowThreads(__tstate); | |
20541 | if (PyErr_Occurred()) SWIG_fail; | |
20542 | } | |
20543 | Py_INCREF(Py_None); resultobj = Py_None; | |
20544 | return resultobj; | |
20545 | fail: | |
20546 | return NULL; | |
20547 | } | |
20548 | ||
20549 | ||
20550 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20551 | PyObject *resultobj; | |
20552 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20553 | bool arg2 ; | |
20554 | PyObject * obj0 = 0 ; | |
20555 | PyObject * obj1 = 0 ; | |
20556 | char *kwnames[] = { | |
20557 | (char *) "self",(char *) "flag", NULL | |
20558 | }; | |
20559 | ||
20560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
20561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20563 | arg2 = (bool) SWIG_AsBool(obj1); | |
20564 | if (PyErr_Occurred()) SWIG_fail; | |
20565 | { | |
20566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20567 | (arg1)->SetSelection(arg2); | |
20568 | ||
20569 | wxPyEndAllowThreads(__tstate); | |
20570 | if (PyErr_Occurred()) SWIG_fail; | |
20571 | } | |
20572 | Py_INCREF(Py_None); resultobj = Py_None; | |
20573 | return resultobj; | |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
20579 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20580 | PyObject *resultobj; | |
20581 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20582 | bool arg2 ; | |
20583 | PyObject * obj0 = 0 ; | |
20584 | PyObject * obj1 = 0 ; | |
20585 | char *kwnames[] = { | |
20586 | (char *) "self",(char *) "flag", NULL | |
20587 | }; | |
20588 | ||
20589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
20590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20592 | arg2 = (bool) SWIG_AsBool(obj1); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | { | |
20595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20596 | (arg1)->SetCollate(arg2); | |
20597 | ||
20598 | wxPyEndAllowThreads(__tstate); | |
20599 | if (PyErr_Occurred()) SWIG_fail; | |
20600 | } | |
20601 | Py_INCREF(Py_None); resultobj = Py_None; | |
20602 | return resultobj; | |
20603 | fail: | |
20604 | return NULL; | |
20605 | } | |
20606 | ||
20607 | ||
20608 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20609 | PyObject *resultobj; | |
20610 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20611 | bool arg2 ; | |
20612 | PyObject * obj0 = 0 ; | |
20613 | PyObject * obj1 = 0 ; | |
20614 | char *kwnames[] = { | |
20615 | (char *) "self",(char *) "flag", NULL | |
20616 | }; | |
20617 | ||
20618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20621 | arg2 = (bool) SWIG_AsBool(obj1); | |
20622 | if (PyErr_Occurred()) SWIG_fail; | |
20623 | { | |
20624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20625 | (arg1)->SetPrintToFile(arg2); | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | Py_INCREF(Py_None); resultobj = Py_None; | |
20631 | return resultobj; | |
20632 | fail: | |
20633 | return NULL; | |
20634 | } | |
20635 | ||
20636 | ||
20637 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20638 | PyObject *resultobj; | |
20639 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20640 | bool arg2 ; | |
20641 | PyObject * obj0 = 0 ; | |
20642 | PyObject * obj1 = 0 ; | |
20643 | char *kwnames[] = { | |
20644 | (char *) "self",(char *) "flag", NULL | |
20645 | }; | |
20646 | ||
20647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20650 | arg2 = (bool) SWIG_AsBool(obj1); | |
20651 | if (PyErr_Occurred()) SWIG_fail; | |
20652 | { | |
20653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20654 | (arg1)->SetSetupDialog(arg2); | |
20655 | ||
20656 | wxPyEndAllowThreads(__tstate); | |
20657 | if (PyErr_Occurred()) SWIG_fail; | |
20658 | } | |
20659 | Py_INCREF(Py_None); resultobj = Py_None; | |
20660 | return resultobj; | |
20661 | fail: | |
20662 | return NULL; | |
20663 | } | |
20664 | ||
20665 | ||
20666 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20667 | PyObject *resultobj; | |
20668 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20669 | bool arg2 ; | |
20670 | PyObject * obj0 = 0 ; | |
20671 | PyObject * obj1 = 0 ; | |
20672 | char *kwnames[] = { | |
20673 | (char *) "self",(char *) "flag", NULL | |
20674 | }; | |
20675 | ||
20676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20679 | arg2 = (bool) SWIG_AsBool(obj1); | |
20680 | if (PyErr_Occurred()) SWIG_fail; | |
20681 | { | |
20682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20683 | (arg1)->EnablePrintToFile(arg2); | |
20684 | ||
20685 | wxPyEndAllowThreads(__tstate); | |
20686 | if (PyErr_Occurred()) SWIG_fail; | |
20687 | } | |
20688 | Py_INCREF(Py_None); resultobj = Py_None; | |
20689 | return resultobj; | |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20698 | bool arg2 ; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | PyObject * obj1 = 0 ; | |
20701 | char *kwnames[] = { | |
20702 | (char *) "self",(char *) "flag", NULL | |
20703 | }; | |
20704 | ||
20705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
20706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20708 | arg2 = (bool) SWIG_AsBool(obj1); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | { | |
20711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20712 | (arg1)->EnableSelection(arg2); | |
20713 | ||
20714 | wxPyEndAllowThreads(__tstate); | |
20715 | if (PyErr_Occurred()) SWIG_fail; | |
20716 | } | |
20717 | Py_INCREF(Py_None); resultobj = Py_None; | |
20718 | return resultobj; | |
20719 | fail: | |
20720 | return NULL; | |
20721 | } | |
20722 | ||
20723 | ||
20724 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20725 | PyObject *resultobj; | |
20726 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20727 | bool arg2 ; | |
20728 | PyObject * obj0 = 0 ; | |
20729 | PyObject * obj1 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "self",(char *) "flag", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
20735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20737 | arg2 = (bool) SWIG_AsBool(obj1); | |
20738 | if (PyErr_Occurred()) SWIG_fail; | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | (arg1)->EnablePageNumbers(arg2); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | Py_INCREF(Py_None); resultobj = Py_None; | |
20747 | return resultobj; | |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20754 | PyObject *resultobj; | |
20755 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20756 | bool arg2 ; | |
20757 | PyObject * obj0 = 0 ; | |
20758 | PyObject * obj1 = 0 ; | |
20759 | char *kwnames[] = { | |
20760 | (char *) "self",(char *) "flag", NULL | |
20761 | }; | |
20762 | ||
20763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
20764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20766 | arg2 = (bool) SWIG_AsBool(obj1); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | { | |
20769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20770 | (arg1)->EnableHelp(arg2); | |
20771 | ||
20772 | wxPyEndAllowThreads(__tstate); | |
20773 | if (PyErr_Occurred()) SWIG_fail; | |
20774 | } | |
20775 | Py_INCREF(Py_None); resultobj = Py_None; | |
20776 | return resultobj; | |
20777 | fail: | |
20778 | return NULL; | |
20779 | } | |
20780 | ||
20781 | ||
20782 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20783 | PyObject *resultobj; | |
20784 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20785 | bool result; | |
20786 | PyObject * obj0 = 0 ; | |
20787 | char *kwnames[] = { | |
20788 | (char *) "self", NULL | |
20789 | }; | |
20790 | ||
20791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
20792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20794 | { | |
20795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20796 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
20797 | ||
20798 | wxPyEndAllowThreads(__tstate); | |
20799 | if (PyErr_Occurred()) SWIG_fail; | |
20800 | } | |
20801 | { | |
20802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20803 | } | |
20804 | return resultobj; | |
20805 | fail: | |
20806 | return NULL; | |
20807 | } | |
20808 | ||
20809 | ||
20810 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20811 | PyObject *resultobj; | |
20812 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20813 | bool result; | |
20814 | PyObject * obj0 = 0 ; | |
20815 | char *kwnames[] = { | |
20816 | (char *) "self", NULL | |
20817 | }; | |
20818 | ||
20819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
20820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20822 | { | |
20823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20824 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
20825 | ||
20826 | wxPyEndAllowThreads(__tstate); | |
20827 | if (PyErr_Occurred()) SWIG_fail; | |
20828 | } | |
20829 | { | |
20830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20831 | } | |
20832 | return resultobj; | |
20833 | fail: | |
20834 | return NULL; | |
20835 | } | |
20836 | ||
20837 | ||
20838 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20839 | PyObject *resultobj; | |
20840 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20841 | bool result; | |
20842 | PyObject * obj0 = 0 ; | |
20843 | char *kwnames[] = { | |
20844 | (char *) "self", NULL | |
20845 | }; | |
20846 | ||
20847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
20848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20850 | { | |
20851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20852 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
20853 | ||
20854 | wxPyEndAllowThreads(__tstate); | |
20855 | if (PyErr_Occurred()) SWIG_fail; | |
20856 | } | |
20857 | { | |
20858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20859 | } | |
20860 | return resultobj; | |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
20866 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20867 | PyObject *resultobj; | |
20868 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20869 | bool result; | |
20870 | PyObject * obj0 = 0 ; | |
20871 | char *kwnames[] = { | |
20872 | (char *) "self", NULL | |
20873 | }; | |
20874 | ||
20875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
20876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20878 | { | |
20879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20880 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
20881 | ||
20882 | wxPyEndAllowThreads(__tstate); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
20884 | } | |
20885 | { | |
20886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20887 | } | |
20888 | return resultobj; | |
20889 | fail: | |
20890 | return NULL; | |
20891 | } | |
20892 | ||
20893 | ||
20894 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20895 | PyObject *resultobj; | |
20896 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20897 | bool result; | |
20898 | PyObject * obj0 = 0 ; | |
20899 | char *kwnames[] = { | |
20900 | (char *) "self", NULL | |
20901 | }; | |
20902 | ||
20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
20904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20906 | { | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | { | |
20914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20915 | } | |
20916 | return resultobj; | |
20917 | fail: | |
20918 | return NULL; | |
20919 | } | |
20920 | ||
20921 | ||
20922 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20923 | PyObject *resultobj; | |
20924 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20925 | wxPrintData *result; | |
20926 | PyObject * obj0 = 0 ; | |
20927 | char *kwnames[] = { | |
20928 | (char *) "self", NULL | |
20929 | }; | |
20930 | ||
20931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
20932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20934 | { | |
20935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20936 | { | |
20937 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
20938 | result = (wxPrintData *) &_result_ref; | |
20939 | } | |
20940 | ||
20941 | wxPyEndAllowThreads(__tstate); | |
20942 | if (PyErr_Occurred()) SWIG_fail; | |
20943 | } | |
20944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
20945 | return resultobj; | |
20946 | fail: | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20952 | PyObject *resultobj; | |
20953 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20954 | wxPrintData *arg2 = 0 ; | |
20955 | PyObject * obj0 = 0 ; | |
20956 | PyObject * obj1 = 0 ; | |
20957 | char *kwnames[] = { | |
20958 | (char *) "self",(char *) "printData", NULL | |
20959 | }; | |
20960 | ||
20961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
20962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
20965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20966 | SWIG_fail; | |
20967 | if (arg2 == NULL) { | |
20968 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20969 | SWIG_fail; | |
20970 | } | |
20971 | { | |
20972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20973 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
20974 | ||
20975 | wxPyEndAllowThreads(__tstate); | |
20976 | if (PyErr_Occurred()) SWIG_fail; | |
20977 | } | |
20978 | Py_INCREF(Py_None); resultobj = Py_None; | |
20979 | return resultobj; | |
20980 | fail: | |
20981 | return NULL; | |
20982 | } | |
20983 | ||
20984 | ||
20985 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
20986 | PyObject *obj; | |
20987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20988 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
20989 | Py_INCREF(obj); | |
20990 | return Py_BuildValue((char *)""); | |
20991 | } | |
20992 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20993 | PyObject *resultobj; | |
20994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20995 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
20996 | wxPrintDialog *result; | |
20997 | PyObject * obj0 = 0 ; | |
20998 | PyObject * obj1 = 0 ; | |
20999 | char *kwnames[] = { | |
21000 | (char *) "parent",(char *) "data", NULL | |
21001 | }; | |
21002 | ||
21003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21006 | if (obj1) { | |
21007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
21008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21009 | } | |
21010 | { | |
21011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21012 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
21013 | ||
21014 | wxPyEndAllowThreads(__tstate); | |
21015 | if (PyErr_Occurred()) SWIG_fail; | |
21016 | } | |
21017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
21018 | return resultobj; | |
21019 | fail: | |
21020 | return NULL; | |
21021 | } | |
21022 | ||
21023 | ||
21024 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21025 | PyObject *resultobj; | |
21026 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21027 | wxPrintDialogData *result; | |
21028 | PyObject * obj0 = 0 ; | |
21029 | char *kwnames[] = { | |
21030 | (char *) "self", NULL | |
21031 | }; | |
21032 | ||
21033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21036 | { | |
21037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21038 | { | |
21039 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21040 | result = (wxPrintDialogData *) &_result_ref; | |
21041 | } | |
21042 | ||
21043 | wxPyEndAllowThreads(__tstate); | |
21044 | if (PyErr_Occurred()) SWIG_fail; | |
21045 | } | |
21046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21047 | return resultobj; | |
21048 | fail: | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
21053 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21054 | PyObject *resultobj; | |
21055 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21056 | wxDC *result; | |
21057 | PyObject * obj0 = 0 ; | |
21058 | char *kwnames[] = { | |
21059 | (char *) "self", NULL | |
21060 | }; | |
21061 | ||
21062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
21063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21065 | { | |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | result = (wxDC *)(arg1)->GetPrintDC(); | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
21072 | { | |
21073 | resultobj = wxPyMake_wxObject(result); | |
21074 | } | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21084 | int result; | |
21085 | PyObject * obj0 = 0 ; | |
21086 | char *kwnames[] = { | |
21087 | (char *) "self", NULL | |
21088 | }; | |
21089 | ||
21090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
21091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21093 | { | |
21094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21095 | result = (int)(arg1)->ShowModal(); | |
21096 | ||
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | resultobj = SWIG_FromInt((int)result); | |
21101 | return resultobj; | |
21102 | fail: | |
21103 | return NULL; | |
21104 | } | |
21105 | ||
21106 | ||
21107 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
21108 | PyObject *obj; | |
21109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21110 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
21111 | Py_INCREF(obj); | |
21112 | return Py_BuildValue((char *)""); | |
21113 | } | |
21114 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21115 | PyObject *resultobj; | |
21116 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
21117 | wxPrinter *result; | |
21118 | PyObject * obj0 = 0 ; | |
21119 | char *kwnames[] = { | |
21120 | (char *) "data", NULL | |
21121 | }; | |
21122 | ||
21123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
21124 | if (obj0) { | |
21125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21127 | } | |
21128 | { | |
21129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21130 | result = (wxPrinter *)new wxPrinter(arg1); | |
21131 | ||
21132 | wxPyEndAllowThreads(__tstate); | |
21133 | if (PyErr_Occurred()) SWIG_fail; | |
21134 | } | |
21135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
21136 | return resultobj; | |
21137 | fail: | |
21138 | return NULL; | |
21139 | } | |
21140 | ||
21141 | ||
21142 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21143 | PyObject *resultobj; | |
21144 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21145 | PyObject * obj0 = 0 ; | |
21146 | char *kwnames[] = { | |
21147 | (char *) "self", NULL | |
21148 | }; | |
21149 | ||
21150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
21151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | delete arg1; | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | Py_INCREF(Py_None); resultobj = Py_None; | |
21161 | return resultobj; | |
21162 | fail: | |
21163 | return NULL; | |
21164 | } | |
21165 | ||
21166 | ||
21167 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21168 | PyObject *resultobj; | |
21169 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21170 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21171 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21172 | PyObject * obj0 = 0 ; | |
21173 | PyObject * obj1 = 0 ; | |
21174 | PyObject * obj2 = 0 ; | |
21175 | char *kwnames[] = { | |
21176 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
21177 | }; | |
21178 | ||
21179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21184 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21186 | { | |
21187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21188 | (arg1)->CreateAbortWindow(arg2,arg3); | |
21189 | ||
21190 | wxPyEndAllowThreads(__tstate); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
21193 | Py_INCREF(Py_None); resultobj = Py_None; | |
21194 | return resultobj; | |
21195 | fail: | |
21196 | return NULL; | |
21197 | } | |
21198 | ||
21199 | ||
21200 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21201 | PyObject *resultobj; | |
21202 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21203 | wxPrintDialogData *result; | |
21204 | PyObject * obj0 = 0 ; | |
21205 | char *kwnames[] = { | |
21206 | (char *) "self", NULL | |
21207 | }; | |
21208 | ||
21209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | { | |
21215 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21216 | result = (wxPrintDialogData *) &_result_ref; | |
21217 | } | |
21218 | ||
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
21222 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
21229 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21230 | PyObject *resultobj; | |
21231 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21232 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21233 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21234 | int arg4 = (int) True ; | |
21235 | bool result; | |
21236 | PyObject * obj0 = 0 ; | |
21237 | PyObject * obj1 = 0 ; | |
21238 | PyObject * obj2 = 0 ; | |
21239 | PyObject * obj3 = 0 ; | |
21240 | char *kwnames[] = { | |
21241 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21242 | }; | |
21243 | ||
21244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21249 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21251 | if (obj3) { | |
21252 | arg4 = (int) SWIG_AsInt(obj3); | |
21253 | if (PyErr_Occurred()) SWIG_fail; | |
21254 | } | |
21255 | { | |
21256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21257 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21258 | ||
21259 | wxPyEndAllowThreads(__tstate); | |
21260 | if (PyErr_Occurred()) SWIG_fail; | |
21261 | } | |
21262 | { | |
21263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21264 | } | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21272 | PyObject *resultobj; | |
21273 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21274 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21275 | wxDC *result; | |
21276 | PyObject * obj0 = 0 ; | |
21277 | PyObject * obj1 = 0 ; | |
21278 | char *kwnames[] = { | |
21279 | (char *) "self",(char *) "parent", NULL | |
21280 | }; | |
21281 | ||
21282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21287 | { | |
21288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21289 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21290 | ||
21291 | wxPyEndAllowThreads(__tstate); | |
21292 | if (PyErr_Occurred()) SWIG_fail; | |
21293 | } | |
21294 | { | |
21295 | resultobj = wxPyMake_wxObject(result); | |
21296 | } | |
21297 | return resultobj; | |
21298 | fail: | |
21299 | return NULL; | |
21300 | } | |
21301 | ||
21302 | ||
21303 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21304 | PyObject *resultobj; | |
21305 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21306 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21307 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21308 | wxString *arg4 = 0 ; | |
21309 | bool temp4 = False ; | |
21310 | PyObject * obj0 = 0 ; | |
21311 | PyObject * obj1 = 0 ; | |
21312 | PyObject * obj2 = 0 ; | |
21313 | PyObject * obj3 = 0 ; | |
21314 | char *kwnames[] = { | |
21315 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
21316 | }; | |
21317 | ||
21318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21323 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21325 | { | |
21326 | arg4 = wxString_in_helper(obj3); | |
21327 | if (arg4 == NULL) SWIG_fail; | |
21328 | temp4 = True; | |
21329 | } | |
21330 | { | |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | Py_INCREF(Py_None); resultobj = Py_None; | |
21338 | { | |
21339 | if (temp4) | |
21340 | delete arg4; | |
21341 | } | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | { | |
21345 | if (temp4) | |
21346 | delete arg4; | |
21347 | } | |
21348 | return NULL; | |
21349 | } | |
21350 | ||
21351 | ||
21352 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21353 | PyObject *resultobj; | |
21354 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21355 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21356 | bool result; | |
21357 | PyObject * obj0 = 0 ; | |
21358 | PyObject * obj1 = 0 ; | |
21359 | char *kwnames[] = { | |
21360 | (char *) "self",(char *) "parent", NULL | |
21361 | }; | |
21362 | ||
21363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
21364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21368 | { | |
21369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21370 | result = (bool)(arg1)->Setup(arg2); | |
21371 | ||
21372 | wxPyEndAllowThreads(__tstate); | |
21373 | if (PyErr_Occurred()) SWIG_fail; | |
21374 | } | |
21375 | { | |
21376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21377 | } | |
21378 | return resultobj; | |
21379 | fail: | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
21384 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21385 | PyObject *resultobj; | |
21386 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21387 | bool result; | |
21388 | PyObject * obj0 = 0 ; | |
21389 | char *kwnames[] = { | |
21390 | (char *) "self", NULL | |
21391 | }; | |
21392 | ||
21393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
21394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21396 | { | |
21397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21398 | result = (bool)(arg1)->GetAbort(); | |
21399 | ||
21400 | wxPyEndAllowThreads(__tstate); | |
21401 | if (PyErr_Occurred()) SWIG_fail; | |
21402 | } | |
21403 | { | |
21404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21405 | } | |
21406 | return resultobj; | |
21407 | fail: | |
21408 | return NULL; | |
21409 | } | |
21410 | ||
21411 | ||
21412 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21413 | PyObject *resultobj; | |
21414 | int result; | |
21415 | char *kwnames[] = { | |
21416 | NULL | |
21417 | }; | |
21418 | ||
21419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
21420 | { | |
21421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21422 | result = (int)wxPrinter::GetLastError(); | |
21423 | ||
21424 | wxPyEndAllowThreads(__tstate); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
21427 | resultobj = SWIG_FromInt((int)result); | |
21428 | return resultobj; | |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
21434 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
21435 | PyObject *obj; | |
21436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21437 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
21438 | Py_INCREF(obj); | |
21439 | return Py_BuildValue((char *)""); | |
21440 | } | |
21441 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21442 | PyObject *resultobj; | |
21443 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
21444 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21445 | wxPyPrintout *result; | |
21446 | bool temp1 = False ; | |
21447 | PyObject * obj0 = 0 ; | |
21448 | char *kwnames[] = { | |
21449 | (char *) "title", NULL | |
21450 | }; | |
21451 | ||
21452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
21453 | if (obj0) { | |
21454 | { | |
21455 | arg1 = wxString_in_helper(obj0); | |
21456 | if (arg1 == NULL) SWIG_fail; | |
21457 | temp1 = True; | |
21458 | } | |
21459 | } | |
21460 | { | |
21461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21462 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
21463 | ||
21464 | wxPyEndAllowThreads(__tstate); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
21467 | { | |
21468 | resultobj = wxPyMake_wxObject(result); | |
21469 | } | |
21470 | { | |
21471 | if (temp1) | |
21472 | delete arg1; | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | { | |
21477 | if (temp1) | |
21478 | delete arg1; | |
21479 | } | |
21480 | return NULL; | |
21481 | } | |
21482 | ||
21483 | ||
21484 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21485 | PyObject *resultobj; | |
21486 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21487 | PyObject *arg2 = (PyObject *) 0 ; | |
21488 | PyObject *arg3 = (PyObject *) 0 ; | |
21489 | PyObject * obj0 = 0 ; | |
21490 | PyObject * obj1 = 0 ; | |
21491 | PyObject * obj2 = 0 ; | |
21492 | char *kwnames[] = { | |
21493 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21494 | }; | |
21495 | ||
21496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21499 | arg2 = obj1; | |
21500 | arg3 = obj2; | |
21501 | { | |
21502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21503 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21504 | ||
21505 | wxPyEndAllowThreads(__tstate); | |
21506 | if (PyErr_Occurred()) SWIG_fail; | |
21507 | } | |
21508 | Py_INCREF(Py_None); resultobj = Py_None; | |
21509 | return resultobj; | |
21510 | fail: | |
21511 | return NULL; | |
21512 | } | |
21513 | ||
21514 | ||
21515 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21516 | PyObject *resultobj; | |
21517 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21518 | wxString result; | |
21519 | PyObject * obj0 = 0 ; | |
21520 | char *kwnames[] = { | |
21521 | (char *) "self", NULL | |
21522 | }; | |
21523 | ||
21524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
21525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21527 | { | |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | { | |
21535 | #if wxUSE_UNICODE | |
21536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21537 | #else | |
21538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21539 | #endif | |
21540 | } | |
21541 | return resultobj; | |
21542 | fail: | |
21543 | return NULL; | |
21544 | } | |
21545 | ||
21546 | ||
21547 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21548 | PyObject *resultobj; | |
21549 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21550 | wxDC *result; | |
21551 | PyObject * obj0 = 0 ; | |
21552 | char *kwnames[] = { | |
21553 | (char *) "self", NULL | |
21554 | }; | |
21555 | ||
21556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
21557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21559 | { | |
21560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21561 | result = (wxDC *)(arg1)->GetDC(); | |
21562 | ||
21563 | wxPyEndAllowThreads(__tstate); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | { | |
21567 | resultobj = wxPyMake_wxObject(result); | |
21568 | } | |
21569 | return resultobj; | |
21570 | fail: | |
21571 | return NULL; | |
21572 | } | |
21573 | ||
21574 | ||
21575 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21576 | PyObject *resultobj; | |
21577 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21578 | wxDC *arg2 = (wxDC *) 0 ; | |
21579 | PyObject * obj0 = 0 ; | |
21580 | PyObject * obj1 = 0 ; | |
21581 | char *kwnames[] = { | |
21582 | (char *) "self",(char *) "dc", NULL | |
21583 | }; | |
21584 | ||
21585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
21586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21590 | { | |
21591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21592 | (arg1)->SetDC(arg2); | |
21593 | ||
21594 | wxPyEndAllowThreads(__tstate); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | } | |
21597 | Py_INCREF(Py_None); resultobj = Py_None; | |
21598 | return resultobj; | |
21599 | fail: | |
21600 | return NULL; | |
21601 | } | |
21602 | ||
21603 | ||
21604 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21605 | PyObject *resultobj; | |
21606 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21607 | int arg2 ; | |
21608 | int arg3 ; | |
21609 | PyObject * obj0 = 0 ; | |
21610 | PyObject * obj1 = 0 ; | |
21611 | PyObject * obj2 = 0 ; | |
21612 | char *kwnames[] = { | |
21613 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21614 | }; | |
21615 | ||
21616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21619 | arg2 = (int) SWIG_AsInt(obj1); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | arg3 = (int) SWIG_AsInt(obj2); | |
21622 | if (PyErr_Occurred()) SWIG_fail; | |
21623 | { | |
21624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21625 | (arg1)->SetPageSizePixels(arg2,arg3); | |
21626 | ||
21627 | wxPyEndAllowThreads(__tstate); | |
21628 | if (PyErr_Occurred()) SWIG_fail; | |
21629 | } | |
21630 | Py_INCREF(Py_None); resultobj = Py_None; | |
21631 | return resultobj; | |
21632 | fail: | |
21633 | return NULL; | |
21634 | } | |
21635 | ||
21636 | ||
21637 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21638 | PyObject *resultobj; | |
21639 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21640 | int *arg2 = (int *) 0 ; | |
21641 | int *arg3 = (int *) 0 ; | |
21642 | int temp2 ; | |
21643 | int temp3 ; | |
21644 | PyObject * obj0 = 0 ; | |
21645 | char *kwnames[] = { | |
21646 | (char *) "self", NULL | |
21647 | }; | |
21648 | ||
21649 | arg2 = &temp2; | |
21650 | arg3 = &temp3; | |
21651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
21652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21654 | { | |
21655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21656 | (arg1)->GetPageSizePixels(arg2,arg3); | |
21657 | ||
21658 | wxPyEndAllowThreads(__tstate); | |
21659 | if (PyErr_Occurred()) SWIG_fail; | |
21660 | } | |
21661 | Py_INCREF(Py_None); resultobj = Py_None; | |
21662 | { | |
21663 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21664 | resultobj = t_output_helper(resultobj,o); | |
21665 | } | |
21666 | { | |
21667 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21668 | resultobj = t_output_helper(resultobj,o); | |
21669 | } | |
21670 | return resultobj; | |
21671 | fail: | |
21672 | return NULL; | |
21673 | } | |
21674 | ||
21675 | ||
21676 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21677 | PyObject *resultobj; | |
21678 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21679 | int arg2 ; | |
21680 | int arg3 ; | |
21681 | PyObject * obj0 = 0 ; | |
21682 | PyObject * obj1 = 0 ; | |
21683 | PyObject * obj2 = 0 ; | |
21684 | char *kwnames[] = { | |
21685 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21686 | }; | |
21687 | ||
21688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21691 | arg2 = (int) SWIG_AsInt(obj1); | |
21692 | if (PyErr_Occurred()) SWIG_fail; | |
21693 | arg3 = (int) SWIG_AsInt(obj2); | |
21694 | if (PyErr_Occurred()) SWIG_fail; | |
21695 | { | |
21696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21697 | (arg1)->SetPageSizeMM(arg2,arg3); | |
21698 | ||
21699 | wxPyEndAllowThreads(__tstate); | |
21700 | if (PyErr_Occurred()) SWIG_fail; | |
21701 | } | |
21702 | Py_INCREF(Py_None); resultobj = Py_None; | |
21703 | return resultobj; | |
21704 | fail: | |
21705 | return NULL; | |
21706 | } | |
21707 | ||
21708 | ||
21709 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21710 | PyObject *resultobj; | |
21711 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21712 | int *arg2 = (int *) 0 ; | |
21713 | int *arg3 = (int *) 0 ; | |
21714 | int temp2 ; | |
21715 | int temp3 ; | |
21716 | PyObject * obj0 = 0 ; | |
21717 | char *kwnames[] = { | |
21718 | (char *) "self", NULL | |
21719 | }; | |
21720 | ||
21721 | arg2 = &temp2; | |
21722 | arg3 = &temp3; | |
21723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
21724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21726 | { | |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | (arg1)->GetPageSizeMM(arg2,arg3); | |
21729 | ||
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
21733 | Py_INCREF(Py_None); resultobj = Py_None; | |
21734 | { | |
21735 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21736 | resultobj = t_output_helper(resultobj,o); | |
21737 | } | |
21738 | { | |
21739 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21740 | resultobj = t_output_helper(resultobj,o); | |
21741 | } | |
21742 | return resultobj; | |
21743 | fail: | |
21744 | return NULL; | |
21745 | } | |
21746 | ||
21747 | ||
21748 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21749 | PyObject *resultobj; | |
21750 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21751 | int arg2 ; | |
21752 | int arg3 ; | |
21753 | PyObject * obj0 = 0 ; | |
21754 | PyObject * obj1 = 0 ; | |
21755 | PyObject * obj2 = 0 ; | |
21756 | char *kwnames[] = { | |
21757 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21758 | }; | |
21759 | ||
21760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21763 | arg2 = (int) SWIG_AsInt(obj1); | |
21764 | if (PyErr_Occurred()) SWIG_fail; | |
21765 | arg3 = (int) SWIG_AsInt(obj2); | |
21766 | if (PyErr_Occurred()) SWIG_fail; | |
21767 | { | |
21768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21769 | (arg1)->SetPPIScreen(arg2,arg3); | |
21770 | ||
21771 | wxPyEndAllowThreads(__tstate); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
21774 | Py_INCREF(Py_None); resultobj = Py_None; | |
21775 | return resultobj; | |
21776 | fail: | |
21777 | return NULL; | |
21778 | } | |
21779 | ||
21780 | ||
21781 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21782 | PyObject *resultobj; | |
21783 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21784 | int *arg2 = (int *) 0 ; | |
21785 | int *arg3 = (int *) 0 ; | |
21786 | int temp2 ; | |
21787 | int temp3 ; | |
21788 | PyObject * obj0 = 0 ; | |
21789 | char *kwnames[] = { | |
21790 | (char *) "self", NULL | |
21791 | }; | |
21792 | ||
21793 | arg2 = &temp2; | |
21794 | arg3 = &temp3; | |
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
21796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21798 | { | |
21799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21800 | (arg1)->GetPPIScreen(arg2,arg3); | |
21801 | ||
21802 | wxPyEndAllowThreads(__tstate); | |
21803 | if (PyErr_Occurred()) SWIG_fail; | |
21804 | } | |
21805 | Py_INCREF(Py_None); resultobj = Py_None; | |
21806 | { | |
21807 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21808 | resultobj = t_output_helper(resultobj,o); | |
21809 | } | |
21810 | { | |
21811 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21812 | resultobj = t_output_helper(resultobj,o); | |
21813 | } | |
21814 | return resultobj; | |
21815 | fail: | |
21816 | return NULL; | |
21817 | } | |
21818 | ||
21819 | ||
21820 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21821 | PyObject *resultobj; | |
21822 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21823 | int arg2 ; | |
21824 | int arg3 ; | |
21825 | PyObject * obj0 = 0 ; | |
21826 | PyObject * obj1 = 0 ; | |
21827 | PyObject * obj2 = 0 ; | |
21828 | char *kwnames[] = { | |
21829 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21830 | }; | |
21831 | ||
21832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21835 | arg2 = (int) SWIG_AsInt(obj1); | |
21836 | if (PyErr_Occurred()) SWIG_fail; | |
21837 | arg3 = (int) SWIG_AsInt(obj2); | |
21838 | if (PyErr_Occurred()) SWIG_fail; | |
21839 | { | |
21840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21841 | (arg1)->SetPPIPrinter(arg2,arg3); | |
21842 | ||
21843 | wxPyEndAllowThreads(__tstate); | |
21844 | if (PyErr_Occurred()) SWIG_fail; | |
21845 | } | |
21846 | Py_INCREF(Py_None); resultobj = Py_None; | |
21847 | return resultobj; | |
21848 | fail: | |
21849 | return NULL; | |
21850 | } | |
21851 | ||
21852 | ||
21853 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21854 | PyObject *resultobj; | |
21855 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21856 | int *arg2 = (int *) 0 ; | |
21857 | int *arg3 = (int *) 0 ; | |
21858 | int temp2 ; | |
21859 | int temp3 ; | |
21860 | PyObject * obj0 = 0 ; | |
21861 | char *kwnames[] = { | |
21862 | (char *) "self", NULL | |
21863 | }; | |
21864 | ||
21865 | arg2 = &temp2; | |
21866 | arg3 = &temp3; | |
21867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
21868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21870 | { | |
21871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21872 | (arg1)->GetPPIPrinter(arg2,arg3); | |
21873 | ||
21874 | wxPyEndAllowThreads(__tstate); | |
21875 | if (PyErr_Occurred()) SWIG_fail; | |
21876 | } | |
21877 | Py_INCREF(Py_None); resultobj = Py_None; | |
21878 | { | |
21879 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21880 | resultobj = t_output_helper(resultobj,o); | |
21881 | } | |
21882 | { | |
21883 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21884 | resultobj = t_output_helper(resultobj,o); | |
21885 | } | |
21886 | return resultobj; | |
21887 | fail: | |
21888 | return NULL; | |
21889 | } | |
21890 | ||
21891 | ||
21892 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21893 | PyObject *resultobj; | |
21894 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21895 | bool result; | |
21896 | PyObject * obj0 = 0 ; | |
21897 | char *kwnames[] = { | |
21898 | (char *) "self", NULL | |
21899 | }; | |
21900 | ||
21901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
21902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21904 | { | |
21905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21906 | result = (bool)(arg1)->IsPreview(); | |
21907 | ||
21908 | wxPyEndAllowThreads(__tstate); | |
21909 | if (PyErr_Occurred()) SWIG_fail; | |
21910 | } | |
21911 | { | |
21912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21913 | } | |
21914 | return resultobj; | |
21915 | fail: | |
21916 | return NULL; | |
21917 | } | |
21918 | ||
21919 | ||
21920 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21921 | PyObject *resultobj; | |
21922 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21923 | bool arg2 ; | |
21924 | PyObject * obj0 = 0 ; | |
21925 | PyObject * obj1 = 0 ; | |
21926 | char *kwnames[] = { | |
21927 | (char *) "self",(char *) "p", NULL | |
21928 | }; | |
21929 | ||
21930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
21931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21933 | arg2 = (bool) SWIG_AsBool(obj1); | |
21934 | if (PyErr_Occurred()) SWIG_fail; | |
21935 | { | |
21936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21937 | (arg1)->SetIsPreview(arg2); | |
21938 | ||
21939 | wxPyEndAllowThreads(__tstate); | |
21940 | if (PyErr_Occurred()) SWIG_fail; | |
21941 | } | |
21942 | Py_INCREF(Py_None); resultobj = Py_None; | |
21943 | return resultobj; | |
21944 | fail: | |
21945 | return NULL; | |
21946 | } | |
21947 | ||
21948 | ||
21949 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21950 | PyObject *resultobj; | |
21951 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21952 | int arg2 ; | |
21953 | int arg3 ; | |
21954 | bool result; | |
21955 | PyObject * obj0 = 0 ; | |
21956 | PyObject * obj1 = 0 ; | |
21957 | PyObject * obj2 = 0 ; | |
21958 | char *kwnames[] = { | |
21959 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
21960 | }; | |
21961 | ||
21962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21965 | arg2 = (int) SWIG_AsInt(obj1); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | arg3 = (int) SWIG_AsInt(obj2); | |
21968 | if (PyErr_Occurred()) SWIG_fail; | |
21969 | { | |
21970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21971 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
21972 | ||
21973 | wxPyEndAllowThreads(__tstate); | |
21974 | if (PyErr_Occurred()) SWIG_fail; | |
21975 | } | |
21976 | { | |
21977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21978 | } | |
21979 | return resultobj; | |
21980 | fail: | |
21981 | return NULL; | |
21982 | } | |
21983 | ||
21984 | ||
21985 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21986 | PyObject *resultobj; | |
21987 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21988 | PyObject * obj0 = 0 ; | |
21989 | char *kwnames[] = { | |
21990 | (char *) "self", NULL | |
21991 | }; | |
21992 | ||
21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
21994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21996 | { | |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | (arg1)->base_OnEndDocument(); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | Py_INCREF(Py_None); resultobj = Py_None; | |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
22010 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22011 | PyObject *resultobj; | |
22012 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22013 | PyObject * obj0 = 0 ; | |
22014 | char *kwnames[] = { | |
22015 | (char *) "self", NULL | |
22016 | }; | |
22017 | ||
22018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
22019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22021 | { | |
22022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22023 | (arg1)->base_OnBeginPrinting(); | |
22024 | ||
22025 | wxPyEndAllowThreads(__tstate); | |
22026 | if (PyErr_Occurred()) SWIG_fail; | |
22027 | } | |
22028 | Py_INCREF(Py_None); resultobj = Py_None; | |
22029 | return resultobj; | |
22030 | fail: | |
22031 | return NULL; | |
22032 | } | |
22033 | ||
22034 | ||
22035 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22036 | PyObject *resultobj; | |
22037 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22038 | PyObject * obj0 = 0 ; | |
22039 | char *kwnames[] = { | |
22040 | (char *) "self", NULL | |
22041 | }; | |
22042 | ||
22043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
22044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22046 | { | |
22047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22048 | (arg1)->base_OnEndPrinting(); | |
22049 | ||
22050 | wxPyEndAllowThreads(__tstate); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
22053 | Py_INCREF(Py_None); resultobj = Py_None; | |
22054 | return resultobj; | |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
22060 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22061 | PyObject *resultobj; | |
22062 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22063 | PyObject * obj0 = 0 ; | |
22064 | char *kwnames[] = { | |
22065 | (char *) "self", NULL | |
22066 | }; | |
22067 | ||
22068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
22069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22071 | { | |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | (arg1)->base_OnPreparePrinting(); | |
22074 | ||
22075 | wxPyEndAllowThreads(__tstate); | |
22076 | if (PyErr_Occurred()) SWIG_fail; | |
22077 | } | |
22078 | Py_INCREF(Py_None); resultobj = Py_None; | |
22079 | return resultobj; | |
22080 | fail: | |
22081 | return NULL; | |
22082 | } | |
22083 | ||
22084 | ||
22085 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22086 | PyObject *resultobj; | |
22087 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22088 | int arg2 ; | |
22089 | bool result; | |
22090 | PyObject * obj0 = 0 ; | |
22091 | PyObject * obj1 = 0 ; | |
22092 | char *kwnames[] = { | |
22093 | (char *) "self",(char *) "page", NULL | |
22094 | }; | |
22095 | ||
22096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
22097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22099 | arg2 = (int) SWIG_AsInt(obj1); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | { | |
22102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22103 | result = (bool)(arg1)->base_HasPage(arg2); | |
22104 | ||
22105 | wxPyEndAllowThreads(__tstate); | |
22106 | if (PyErr_Occurred()) SWIG_fail; | |
22107 | } | |
22108 | { | |
22109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22110 | } | |
22111 | return resultobj; | |
22112 | fail: | |
22113 | return NULL; | |
22114 | } | |
22115 | ||
22116 | ||
22117 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22118 | PyObject *resultobj; | |
22119 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22120 | int *arg2 = (int *) 0 ; | |
22121 | int *arg3 = (int *) 0 ; | |
22122 | int *arg4 = (int *) 0 ; | |
22123 | int *arg5 = (int *) 0 ; | |
22124 | int temp2 ; | |
22125 | int temp3 ; | |
22126 | int temp4 ; | |
22127 | int temp5 ; | |
22128 | PyObject * obj0 = 0 ; | |
22129 | char *kwnames[] = { | |
22130 | (char *) "self", NULL | |
22131 | }; | |
22132 | ||
22133 | arg2 = &temp2; | |
22134 | arg3 = &temp3; | |
22135 | arg4 = &temp4; | |
22136 | arg5 = &temp5; | |
22137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
22138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22140 | { | |
22141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22142 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
22143 | ||
22144 | wxPyEndAllowThreads(__tstate); | |
22145 | if (PyErr_Occurred()) SWIG_fail; | |
22146 | } | |
22147 | Py_INCREF(Py_None); resultobj = Py_None; | |
22148 | { | |
22149 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22150 | resultobj = t_output_helper(resultobj,o); | |
22151 | } | |
22152 | { | |
22153 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22154 | resultobj = t_output_helper(resultobj,o); | |
22155 | } | |
22156 | { | |
22157 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22158 | resultobj = t_output_helper(resultobj,o); | |
22159 | } | |
22160 | { | |
22161 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22162 | resultobj = t_output_helper(resultobj,o); | |
22163 | } | |
22164 | return resultobj; | |
22165 | fail: | |
22166 | return NULL; | |
22167 | } | |
22168 | ||
22169 | ||
22170 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
22171 | PyObject *obj; | |
22172 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22173 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
22174 | Py_INCREF(obj); | |
22175 | return Py_BuildValue((char *)""); | |
22176 | } | |
22177 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22178 | PyObject *resultobj; | |
22179 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22180 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22181 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22182 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22183 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22184 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22185 | long arg5 = (long) 0 ; | |
22186 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
22187 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22188 | wxPreviewCanvas *result; | |
22189 | wxPoint temp3 ; | |
22190 | wxSize temp4 ; | |
22191 | bool temp6 = False ; | |
22192 | PyObject * obj0 = 0 ; | |
22193 | PyObject * obj1 = 0 ; | |
22194 | PyObject * obj2 = 0 ; | |
22195 | PyObject * obj3 = 0 ; | |
22196 | PyObject * obj4 = 0 ; | |
22197 | PyObject * obj5 = 0 ; | |
22198 | char *kwnames[] = { | |
22199 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22200 | }; | |
22201 | ||
22202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22207 | if (obj2) { | |
22208 | { | |
22209 | arg3 = &temp3; | |
22210 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22211 | } | |
22212 | } | |
22213 | if (obj3) { | |
22214 | { | |
22215 | arg4 = &temp4; | |
22216 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22217 | } | |
22218 | } | |
22219 | if (obj4) { | |
22220 | arg5 = (long) SWIG_AsLong(obj4); | |
22221 | if (PyErr_Occurred()) SWIG_fail; | |
22222 | } | |
22223 | if (obj5) { | |
22224 | { | |
22225 | arg6 = wxString_in_helper(obj5); | |
22226 | if (arg6 == NULL) SWIG_fail; | |
22227 | temp6 = True; | |
22228 | } | |
22229 | } | |
22230 | { | |
22231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22232 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22233 | ||
22234 | wxPyEndAllowThreads(__tstate); | |
22235 | if (PyErr_Occurred()) SWIG_fail; | |
22236 | } | |
22237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22238 | { | |
22239 | if (temp6) | |
22240 | delete arg6; | |
22241 | } | |
22242 | return resultobj; | |
22243 | fail: | |
22244 | { | |
22245 | if (temp6) | |
22246 | delete arg6; | |
22247 | } | |
22248 | return NULL; | |
22249 | } | |
22250 | ||
22251 | ||
22252 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22253 | PyObject *obj; | |
22254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22255 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22256 | Py_INCREF(obj); | |
22257 | return Py_BuildValue((char *)""); | |
22258 | } | |
22259 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22260 | PyObject *resultobj; | |
22261 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22262 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22263 | wxString *arg3 = 0 ; | |
22264 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22265 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22266 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22267 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22268 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22269 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22270 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22271 | wxPreviewFrame *result; | |
22272 | bool temp3 = False ; | |
22273 | wxPoint temp4 ; | |
22274 | wxSize temp5 ; | |
22275 | bool temp7 = False ; | |
22276 | PyObject * obj0 = 0 ; | |
22277 | PyObject * obj1 = 0 ; | |
22278 | PyObject * obj2 = 0 ; | |
22279 | PyObject * obj3 = 0 ; | |
22280 | PyObject * obj4 = 0 ; | |
22281 | PyObject * obj5 = 0 ; | |
22282 | PyObject * obj6 = 0 ; | |
22283 | char *kwnames[] = { | |
22284 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22285 | }; | |
22286 | ||
22287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22292 | { | |
22293 | arg3 = wxString_in_helper(obj2); | |
22294 | if (arg3 == NULL) SWIG_fail; | |
22295 | temp3 = True; | |
22296 | } | |
22297 | if (obj3) { | |
22298 | { | |
22299 | arg4 = &temp4; | |
22300 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22301 | } | |
22302 | } | |
22303 | if (obj4) { | |
22304 | { | |
22305 | arg5 = &temp5; | |
22306 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22307 | } | |
22308 | } | |
22309 | if (obj5) { | |
22310 | arg6 = (long) SWIG_AsLong(obj5); | |
22311 | if (PyErr_Occurred()) SWIG_fail; | |
22312 | } | |
22313 | if (obj6) { | |
22314 | { | |
22315 | arg7 = wxString_in_helper(obj6); | |
22316 | if (arg7 == NULL) SWIG_fail; | |
22317 | temp7 = True; | |
22318 | } | |
22319 | } | |
22320 | { | |
22321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22322 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22323 | ||
22324 | wxPyEndAllowThreads(__tstate); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | } | |
22327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
22328 | { | |
22329 | if (temp3) | |
22330 | delete arg3; | |
22331 | } | |
22332 | { | |
22333 | if (temp7) | |
22334 | delete arg7; | |
22335 | } | |
22336 | return resultobj; | |
22337 | fail: | |
22338 | { | |
22339 | if (temp3) | |
22340 | delete arg3; | |
22341 | } | |
22342 | { | |
22343 | if (temp7) | |
22344 | delete arg7; | |
22345 | } | |
22346 | return NULL; | |
22347 | } | |
22348 | ||
22349 | ||
22350 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22351 | PyObject *resultobj; | |
22352 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22353 | PyObject * obj0 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22361 | { | |
22362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22363 | (arg1)->Initialize(); | |
22364 | ||
22365 | wxPyEndAllowThreads(__tstate); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | } | |
22368 | Py_INCREF(Py_None); resultobj = Py_None; | |
22369 | return resultobj; | |
22370 | fail: | |
22371 | return NULL; | |
22372 | } | |
22373 | ||
22374 | ||
22375 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22376 | PyObject *resultobj; | |
22377 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22378 | PyObject * obj0 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "self", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
22384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22386 | { | |
22387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22388 | (arg1)->CreateControlBar(); | |
22389 | ||
22390 | wxPyEndAllowThreads(__tstate); | |
22391 | if (PyErr_Occurred()) SWIG_fail; | |
22392 | } | |
22393 | Py_INCREF(Py_None); resultobj = Py_None; | |
22394 | return resultobj; | |
22395 | fail: | |
22396 | return NULL; | |
22397 | } | |
22398 | ||
22399 | ||
22400 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22401 | PyObject *resultobj; | |
22402 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22403 | PyObject * obj0 = 0 ; | |
22404 | char *kwnames[] = { | |
22405 | (char *) "self", NULL | |
22406 | }; | |
22407 | ||
22408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
22409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22411 | { | |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | (arg1)->CreateCanvas(); | |
22414 | ||
22415 | wxPyEndAllowThreads(__tstate); | |
22416 | if (PyErr_Occurred()) SWIG_fail; | |
22417 | } | |
22418 | Py_INCREF(Py_None); resultobj = Py_None; | |
22419 | return resultobj; | |
22420 | fail: | |
22421 | return NULL; | |
22422 | } | |
22423 | ||
22424 | ||
22425 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22426 | PyObject *resultobj; | |
22427 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22428 | wxPreviewControlBar *result; | |
22429 | PyObject * obj0 = 0 ; | |
22430 | char *kwnames[] = { | |
22431 | (char *) "self", NULL | |
22432 | }; | |
22433 | ||
22434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
22435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22437 | { | |
22438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22439 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
22440 | ||
22441 | wxPyEndAllowThreads(__tstate); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
22443 | } | |
22444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
22445 | return resultobj; | |
22446 | fail: | |
22447 | return NULL; | |
22448 | } | |
22449 | ||
22450 | ||
22451 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
22452 | PyObject *obj; | |
22453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22454 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
22455 | Py_INCREF(obj); | |
22456 | return Py_BuildValue((char *)""); | |
22457 | } | |
22458 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22459 | PyObject *resultobj; | |
22460 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22461 | long arg2 ; | |
22462 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22463 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22464 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22465 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22466 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22467 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
22468 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22469 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22470 | wxPreviewControlBar *result; | |
22471 | wxPoint temp4 ; | |
22472 | wxSize temp5 ; | |
22473 | bool temp7 = False ; | |
22474 | PyObject * obj0 = 0 ; | |
22475 | PyObject * obj1 = 0 ; | |
22476 | PyObject * obj2 = 0 ; | |
22477 | PyObject * obj3 = 0 ; | |
22478 | PyObject * obj4 = 0 ; | |
22479 | PyObject * obj5 = 0 ; | |
22480 | PyObject * obj6 = 0 ; | |
22481 | char *kwnames[] = { | |
22482 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22483 | }; | |
22484 | ||
22485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22488 | arg2 = (long) SWIG_AsLong(obj1); | |
22489 | if (PyErr_Occurred()) SWIG_fail; | |
22490 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
22491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22492 | if (obj3) { | |
22493 | { | |
22494 | arg4 = &temp4; | |
22495 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22496 | } | |
22497 | } | |
22498 | if (obj4) { | |
22499 | { | |
22500 | arg5 = &temp5; | |
22501 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22502 | } | |
22503 | } | |
22504 | if (obj5) { | |
22505 | arg6 = (long) SWIG_AsLong(obj5); | |
22506 | if (PyErr_Occurred()) SWIG_fail; | |
22507 | } | |
22508 | if (obj6) { | |
22509 | { | |
22510 | arg7 = wxString_in_helper(obj6); | |
22511 | if (arg7 == NULL) SWIG_fail; | |
22512 | temp7 = True; | |
22513 | } | |
22514 | } | |
22515 | { | |
22516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22517 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22518 | ||
22519 | wxPyEndAllowThreads(__tstate); | |
22520 | if (PyErr_Occurred()) SWIG_fail; | |
22521 | } | |
22522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
22523 | { | |
22524 | if (temp7) | |
22525 | delete arg7; | |
22526 | } | |
22527 | return resultobj; | |
22528 | fail: | |
22529 | { | |
22530 | if (temp7) | |
22531 | delete arg7; | |
22532 | } | |
22533 | return NULL; | |
22534 | } | |
22535 | ||
22536 | ||
22537 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22538 | PyObject *resultobj; | |
22539 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22540 | int result; | |
22541 | PyObject * obj0 = 0 ; | |
22542 | char *kwnames[] = { | |
22543 | (char *) "self", NULL | |
22544 | }; | |
22545 | ||
22546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
22547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22549 | { | |
22550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22551 | result = (int)(arg1)->GetZoomControl(); | |
22552 | ||
22553 | wxPyEndAllowThreads(__tstate); | |
22554 | if (PyErr_Occurred()) SWIG_fail; | |
22555 | } | |
22556 | resultobj = SWIG_FromInt((int)result); | |
22557 | return resultobj; | |
22558 | fail: | |
22559 | return NULL; | |
22560 | } | |
22561 | ||
22562 | ||
22563 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22564 | PyObject *resultobj; | |
22565 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22566 | int arg2 ; | |
22567 | PyObject * obj0 = 0 ; | |
22568 | PyObject * obj1 = 0 ; | |
22569 | char *kwnames[] = { | |
22570 | (char *) "self",(char *) "zoom", NULL | |
22571 | }; | |
22572 | ||
22573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
22574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22576 | arg2 = (int) SWIG_AsInt(obj1); | |
22577 | if (PyErr_Occurred()) SWIG_fail; | |
22578 | { | |
22579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22580 | (arg1)->SetZoomControl(arg2); | |
22581 | ||
22582 | wxPyEndAllowThreads(__tstate); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | } | |
22585 | Py_INCREF(Py_None); resultobj = Py_None; | |
22586 | return resultobj; | |
22587 | fail: | |
22588 | return NULL; | |
22589 | } | |
22590 | ||
22591 | ||
22592 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22593 | PyObject *resultobj; | |
22594 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22595 | wxPrintPreview *result; | |
22596 | PyObject * obj0 = 0 ; | |
22597 | char *kwnames[] = { | |
22598 | (char *) "self", NULL | |
22599 | }; | |
22600 | ||
22601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
22602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22604 | { | |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22606 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
22607 | ||
22608 | wxPyEndAllowThreads(__tstate); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
22611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
22612 | return resultobj; | |
22613 | fail: | |
22614 | return NULL; | |
22615 | } | |
22616 | ||
22617 | ||
22618 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22619 | PyObject *resultobj; | |
22620 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22621 | PyObject * obj0 = 0 ; | |
22622 | char *kwnames[] = { | |
22623 | (char *) "self", NULL | |
22624 | }; | |
22625 | ||
22626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
22627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22629 | { | |
22630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22631 | (arg1)->OnNext(); | |
22632 | ||
22633 | wxPyEndAllowThreads(__tstate); | |
22634 | if (PyErr_Occurred()) SWIG_fail; | |
22635 | } | |
22636 | Py_INCREF(Py_None); resultobj = Py_None; | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22644 | PyObject *resultobj; | |
22645 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22646 | PyObject * obj0 = 0 ; | |
22647 | char *kwnames[] = { | |
22648 | (char *) "self", NULL | |
22649 | }; | |
22650 | ||
22651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
22652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22654 | { | |
22655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22656 | (arg1)->OnPrevious(); | |
22657 | ||
22658 | wxPyEndAllowThreads(__tstate); | |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
22660 | } | |
22661 | Py_INCREF(Py_None); resultobj = Py_None; | |
22662 | return resultobj; | |
22663 | fail: | |
22664 | return NULL; | |
22665 | } | |
22666 | ||
22667 | ||
22668 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22669 | PyObject *resultobj; | |
22670 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22671 | PyObject * obj0 = 0 ; | |
22672 | char *kwnames[] = { | |
22673 | (char *) "self", NULL | |
22674 | }; | |
22675 | ||
22676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
22677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22679 | { | |
22680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22681 | (arg1)->OnFirst(); | |
22682 | ||
22683 | wxPyEndAllowThreads(__tstate); | |
22684 | if (PyErr_Occurred()) SWIG_fail; | |
22685 | } | |
22686 | Py_INCREF(Py_None); resultobj = Py_None; | |
22687 | return resultobj; | |
22688 | fail: | |
22689 | return NULL; | |
22690 | } | |
22691 | ||
22692 | ||
22693 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22694 | PyObject *resultobj; | |
22695 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22696 | PyObject * obj0 = 0 ; | |
22697 | char *kwnames[] = { | |
22698 | (char *) "self", NULL | |
22699 | }; | |
22700 | ||
22701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
22702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22704 | { | |
22705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22706 | (arg1)->OnLast(); | |
22707 | ||
22708 | wxPyEndAllowThreads(__tstate); | |
22709 | if (PyErr_Occurred()) SWIG_fail; | |
22710 | } | |
22711 | Py_INCREF(Py_None); resultobj = Py_None; | |
22712 | return resultobj; | |
22713 | fail: | |
22714 | return NULL; | |
22715 | } | |
22716 | ||
22717 | ||
22718 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22719 | PyObject *resultobj; | |
22720 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22721 | PyObject * obj0 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
22727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22729 | { | |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | (arg1)->OnGoto(); | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | Py_INCREF(Py_None); resultobj = Py_None; | |
22737 | return resultobj; | |
22738 | fail: | |
22739 | return NULL; | |
22740 | } | |
22741 | ||
22742 | ||
22743 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
22744 | PyObject *obj; | |
22745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22746 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
22747 | Py_INCREF(obj); | |
22748 | return Py_BuildValue((char *)""); | |
22749 | } | |
22750 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
22751 | PyObject *resultobj; | |
22752 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22753 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22754 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
22755 | wxPrintPreview *result; | |
22756 | PyObject * obj0 = 0 ; | |
22757 | PyObject * obj1 = 0 ; | |
22758 | PyObject * obj2 = 0 ; | |
22759 | ||
22760 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22765 | if (obj2) { | |
22766 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | } | |
22769 | { | |
22770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22771 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22772 | ||
22773 | wxPyEndAllowThreads(__tstate); | |
22774 | if (PyErr_Occurred()) SWIG_fail; | |
22775 | } | |
22776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22777 | return resultobj; | |
22778 | fail: | |
22779 | return NULL; | |
22780 | } | |
22781 | ||
22782 | ||
22783 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
22784 | PyObject *resultobj; | |
22785 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22786 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22787 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
22788 | wxPrintPreview *result; | |
22789 | PyObject * obj0 = 0 ; | |
22790 | PyObject * obj1 = 0 ; | |
22791 | PyObject * obj2 = 0 ; | |
22792 | ||
22793 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22798 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
22799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22800 | { | |
22801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22802 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22803 | ||
22804 | wxPyEndAllowThreads(__tstate); | |
22805 | if (PyErr_Occurred()) SWIG_fail; | |
22806 | } | |
22807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22808 | return resultobj; | |
22809 | fail: | |
22810 | return NULL; | |
22811 | } | |
22812 | ||
22813 | ||
22814 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
22815 | int argc; | |
22816 | PyObject *argv[4]; | |
22817 | int ii; | |
22818 | ||
22819 | argc = PyObject_Length(args); | |
22820 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
22821 | argv[ii] = PyTuple_GetItem(args,ii); | |
22822 | } | |
22823 | if ((argc >= 2) && (argc <= 3)) { | |
22824 | int _v; | |
22825 | { | |
22826 | void *ptr; | |
22827 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22828 | _v = 0; | |
22829 | PyErr_Clear(); | |
22830 | } else { | |
22831 | _v = 1; | |
22832 | } | |
22833 | } | |
22834 | if (_v) { | |
22835 | { | |
22836 | void *ptr; | |
22837 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22838 | _v = 0; | |
22839 | PyErr_Clear(); | |
22840 | } else { | |
22841 | _v = 1; | |
22842 | } | |
22843 | } | |
22844 | if (_v) { | |
22845 | if (argc <= 2) { | |
22846 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
22847 | } | |
22848 | { | |
22849 | void *ptr; | |
22850 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
22851 | _v = 0; | |
22852 | PyErr_Clear(); | |
22853 | } else { | |
22854 | _v = 1; | |
22855 | } | |
22856 | } | |
22857 | if (_v) { | |
22858 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
22859 | } | |
22860 | } | |
22861 | } | |
22862 | } | |
22863 | if (argc == 3) { | |
22864 | int _v; | |
22865 | { | |
22866 | void *ptr; | |
22867 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22868 | _v = 0; | |
22869 | PyErr_Clear(); | |
22870 | } else { | |
22871 | _v = 1; | |
22872 | } | |
22873 | } | |
22874 | if (_v) { | |
22875 | { | |
22876 | void *ptr; | |
22877 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22878 | _v = 0; | |
22879 | PyErr_Clear(); | |
22880 | } else { | |
22881 | _v = 1; | |
22882 | } | |
22883 | } | |
22884 | if (_v) { | |
22885 | { | |
22886 | void *ptr; | |
22887 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
22888 | _v = 0; | |
22889 | PyErr_Clear(); | |
22890 | } else { | |
22891 | _v = 1; | |
22892 | } | |
22893 | } | |
22894 | if (_v) { | |
22895 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
22896 | } | |
22897 | } | |
22898 | } | |
22899 | } | |
22900 | ||
22901 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
22902 | return NULL; | |
22903 | } | |
22904 | ||
22905 | ||
22906 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22907 | PyObject *resultobj; | |
22908 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22909 | int arg2 ; | |
22910 | bool result; | |
22911 | PyObject * obj0 = 0 ; | |
22912 | PyObject * obj1 = 0 ; | |
22913 | char *kwnames[] = { | |
22914 | (char *) "self",(char *) "pageNum", NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
22918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22920 | arg2 = (int) SWIG_AsInt(obj1); | |
22921 | if (PyErr_Occurred()) SWIG_fail; | |
22922 | { | |
22923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22924 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
22925 | ||
22926 | wxPyEndAllowThreads(__tstate); | |
22927 | if (PyErr_Occurred()) SWIG_fail; | |
22928 | } | |
22929 | { | |
22930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22931 | } | |
22932 | return resultobj; | |
22933 | fail: | |
22934 | return NULL; | |
22935 | } | |
22936 | ||
22937 | ||
22938 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22939 | PyObject *resultobj; | |
22940 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22941 | int result; | |
22942 | PyObject * obj0 = 0 ; | |
22943 | char *kwnames[] = { | |
22944 | (char *) "self", NULL | |
22945 | }; | |
22946 | ||
22947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
22948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22950 | { | |
22951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22952 | result = (int)(arg1)->GetCurrentPage(); | |
22953 | ||
22954 | wxPyEndAllowThreads(__tstate); | |
22955 | if (PyErr_Occurred()) SWIG_fail; | |
22956 | } | |
22957 | resultobj = SWIG_FromInt((int)result); | |
22958 | return resultobj; | |
22959 | fail: | |
22960 | return NULL; | |
22961 | } | |
22962 | ||
22963 | ||
22964 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22965 | PyObject *resultobj; | |
22966 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22967 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22968 | PyObject * obj0 = 0 ; | |
22969 | PyObject * obj1 = 0 ; | |
22970 | char *kwnames[] = { | |
22971 | (char *) "self",(char *) "printout", NULL | |
22972 | }; | |
22973 | ||
22974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
22975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | (arg1)->SetPrintout(arg2); | |
22982 | ||
22983 | wxPyEndAllowThreads(__tstate); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
22985 | } | |
22986 | Py_INCREF(Py_None); resultobj = Py_None; | |
22987 | return resultobj; | |
22988 | fail: | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
22993 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22994 | PyObject *resultobj; | |
22995 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22996 | wxPyPrintout *result; | |
22997 | PyObject * obj0 = 0 ; | |
22998 | char *kwnames[] = { | |
22999 | (char *) "self", NULL | |
23000 | }; | |
23001 | ||
23002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
23003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
23008 | ||
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
23012 | { | |
23013 | resultobj = wxPyMake_wxObject(result); | |
23014 | } | |
23015 | return resultobj; | |
23016 | fail: | |
23017 | return NULL; | |
23018 | } | |
23019 | ||
23020 | ||
23021 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23022 | PyObject *resultobj; | |
23023 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23024 | wxPyPrintout *result; | |
23025 | PyObject * obj0 = 0 ; | |
23026 | char *kwnames[] = { | |
23027 | (char *) "self", NULL | |
23028 | }; | |
23029 | ||
23030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
23031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23033 | { | |
23034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23035 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
23036 | ||
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
23040 | { | |
23041 | resultobj = wxPyMake_wxObject(result); | |
23042 | } | |
23043 | return resultobj; | |
23044 | fail: | |
23045 | return NULL; | |
23046 | } | |
23047 | ||
23048 | ||
23049 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23050 | PyObject *resultobj; | |
23051 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23052 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23053 | PyObject * obj0 = 0 ; | |
23054 | PyObject * obj1 = 0 ; | |
23055 | char *kwnames[] = { | |
23056 | (char *) "self",(char *) "frame", NULL | |
23057 | }; | |
23058 | ||
23059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
23060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23064 | { | |
23065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23066 | (arg1)->SetFrame(arg2); | |
23067 | ||
23068 | wxPyEndAllowThreads(__tstate); | |
23069 | if (PyErr_Occurred()) SWIG_fail; | |
23070 | } | |
23071 | Py_INCREF(Py_None); resultobj = Py_None; | |
23072 | return resultobj; | |
23073 | fail: | |
23074 | return NULL; | |
23075 | } | |
23076 | ||
23077 | ||
23078 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23079 | PyObject *resultobj; | |
23080 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23081 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23082 | PyObject * obj0 = 0 ; | |
23083 | PyObject * obj1 = 0 ; | |
23084 | char *kwnames[] = { | |
23085 | (char *) "self",(char *) "canvas", NULL | |
23086 | }; | |
23087 | ||
23088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23093 | { | |
23094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23095 | (arg1)->SetCanvas(arg2); | |
23096 | ||
23097 | wxPyEndAllowThreads(__tstate); | |
23098 | if (PyErr_Occurred()) SWIG_fail; | |
23099 | } | |
23100 | Py_INCREF(Py_None); resultobj = Py_None; | |
23101 | return resultobj; | |
23102 | fail: | |
23103 | return NULL; | |
23104 | } | |
23105 | ||
23106 | ||
23107 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23108 | PyObject *resultobj; | |
23109 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23110 | wxFrame *result; | |
23111 | PyObject * obj0 = 0 ; | |
23112 | char *kwnames[] = { | |
23113 | (char *) "self", NULL | |
23114 | }; | |
23115 | ||
23116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
23117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23119 | { | |
23120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23121 | result = (wxFrame *)(arg1)->GetFrame(); | |
23122 | ||
23123 | wxPyEndAllowThreads(__tstate); | |
23124 | if (PyErr_Occurred()) SWIG_fail; | |
23125 | } | |
23126 | { | |
23127 | resultobj = wxPyMake_wxObject(result); | |
23128 | } | |
23129 | return resultobj; | |
23130 | fail: | |
23131 | return NULL; | |
23132 | } | |
23133 | ||
23134 | ||
23135 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23136 | PyObject *resultobj; | |
23137 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23138 | wxPreviewCanvas *result; | |
23139 | PyObject * obj0 = 0 ; | |
23140 | char *kwnames[] = { | |
23141 | (char *) "self", NULL | |
23142 | }; | |
23143 | ||
23144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
23145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23147 | { | |
23148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23149 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
23150 | ||
23151 | wxPyEndAllowThreads(__tstate); | |
23152 | if (PyErr_Occurred()) SWIG_fail; | |
23153 | } | |
23154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
23155 | return resultobj; | |
23156 | fail: | |
23157 | return NULL; | |
23158 | } | |
23159 | ||
23160 | ||
23161 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23162 | PyObject *resultobj; | |
23163 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23164 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23165 | wxDC *arg3 = 0 ; | |
23166 | bool result; | |
23167 | PyObject * obj0 = 0 ; | |
23168 | PyObject * obj1 = 0 ; | |
23169 | PyObject * obj2 = 0 ; | |
23170 | char *kwnames[] = { | |
23171 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23172 | }; | |
23173 | ||
23174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23179 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23181 | SWIG_fail; | |
23182 | if (arg3 == NULL) { | |
23183 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23184 | SWIG_fail; | |
23185 | } | |
23186 | { | |
23187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23188 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
23189 | ||
23190 | wxPyEndAllowThreads(__tstate); | |
23191 | if (PyErr_Occurred()) SWIG_fail; | |
23192 | } | |
23193 | { | |
23194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23195 | } | |
23196 | return resultobj; | |
23197 | fail: | |
23198 | return NULL; | |
23199 | } | |
23200 | ||
23201 | ||
23202 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23203 | PyObject *resultobj; | |
23204 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23205 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23206 | wxDC *arg3 = 0 ; | |
23207 | bool result; | |
23208 | PyObject * obj0 = 0 ; | |
23209 | PyObject * obj1 = 0 ; | |
23210 | PyObject * obj2 = 0 ; | |
23211 | char *kwnames[] = { | |
23212 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23213 | }; | |
23214 | ||
23215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23220 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23222 | SWIG_fail; | |
23223 | if (arg3 == NULL) { | |
23224 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23225 | SWIG_fail; | |
23226 | } | |
23227 | { | |
23228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23229 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23230 | ||
23231 | wxPyEndAllowThreads(__tstate); | |
23232 | if (PyErr_Occurred()) SWIG_fail; | |
23233 | } | |
23234 | { | |
23235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23236 | } | |
23237 | return resultobj; | |
23238 | fail: | |
23239 | return NULL; | |
23240 | } | |
23241 | ||
23242 | ||
23243 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23244 | PyObject *resultobj; | |
23245 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23246 | int arg2 ; | |
23247 | bool result; | |
23248 | PyObject * obj0 = 0 ; | |
23249 | PyObject * obj1 = 0 ; | |
23250 | char *kwnames[] = { | |
23251 | (char *) "self",(char *) "pageNum", NULL | |
23252 | }; | |
23253 | ||
23254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23257 | arg2 = (int) SWIG_AsInt(obj1); | |
23258 | if (PyErr_Occurred()) SWIG_fail; | |
23259 | { | |
23260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23261 | result = (bool)(arg1)->RenderPage(arg2); | |
23262 | ||
23263 | wxPyEndAllowThreads(__tstate); | |
23264 | if (PyErr_Occurred()) SWIG_fail; | |
23265 | } | |
23266 | { | |
23267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23268 | } | |
23269 | return resultobj; | |
23270 | fail: | |
23271 | return NULL; | |
23272 | } | |
23273 | ||
23274 | ||
23275 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23276 | PyObject *resultobj; | |
23277 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23278 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23279 | PyObject * obj0 = 0 ; | |
23280 | PyObject * obj1 = 0 ; | |
23281 | char *kwnames[] = { | |
23282 | (char *) "self",(char *) "canvas", NULL | |
23283 | }; | |
23284 | ||
23285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23288 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23290 | { | |
23291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23292 | (arg1)->AdjustScrollbars(arg2); | |
23293 | ||
23294 | wxPyEndAllowThreads(__tstate); | |
23295 | if (PyErr_Occurred()) SWIG_fail; | |
23296 | } | |
23297 | Py_INCREF(Py_None); resultobj = Py_None; | |
23298 | return resultobj; | |
23299 | fail: | |
23300 | return NULL; | |
23301 | } | |
23302 | ||
23303 | ||
23304 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23305 | PyObject *resultobj; | |
23306 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23307 | wxPrintDialogData *result; | |
23308 | PyObject * obj0 = 0 ; | |
23309 | char *kwnames[] = { | |
23310 | (char *) "self", NULL | |
23311 | }; | |
23312 | ||
23313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
23314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | { | |
23319 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
23320 | result = (wxPrintDialogData *) &_result_ref; | |
23321 | } | |
23322 | ||
23323 | wxPyEndAllowThreads(__tstate); | |
23324 | if (PyErr_Occurred()) SWIG_fail; | |
23325 | } | |
23326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
23327 | return resultobj; | |
23328 | fail: | |
23329 | return NULL; | |
23330 | } | |
23331 | ||
23332 | ||
23333 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23334 | PyObject *resultobj; | |
23335 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23336 | int arg2 ; | |
23337 | PyObject * obj0 = 0 ; | |
23338 | PyObject * obj1 = 0 ; | |
23339 | char *kwnames[] = { | |
23340 | (char *) "self",(char *) "percent", NULL | |
23341 | }; | |
23342 | ||
23343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23346 | arg2 = (int) SWIG_AsInt(obj1); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | { | |
23349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23350 | (arg1)->SetZoom(arg2); | |
23351 | ||
23352 | wxPyEndAllowThreads(__tstate); | |
23353 | if (PyErr_Occurred()) SWIG_fail; | |
23354 | } | |
23355 | Py_INCREF(Py_None); resultobj = Py_None; | |
23356 | return resultobj; | |
23357 | fail: | |
23358 | return NULL; | |
23359 | } | |
23360 | ||
23361 | ||
23362 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23363 | PyObject *resultobj; | |
23364 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23365 | int result; | |
23366 | PyObject * obj0 = 0 ; | |
23367 | char *kwnames[] = { | |
23368 | (char *) "self", NULL | |
23369 | }; | |
23370 | ||
23371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
23372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23374 | { | |
23375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23376 | result = (int)(arg1)->GetZoom(); | |
23377 | ||
23378 | wxPyEndAllowThreads(__tstate); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
23380 | } | |
23381 | resultobj = SWIG_FromInt((int)result); | |
23382 | return resultobj; | |
23383 | fail: | |
23384 | return NULL; | |
23385 | } | |
23386 | ||
23387 | ||
23388 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23389 | PyObject *resultobj; | |
23390 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23391 | int result; | |
23392 | PyObject * obj0 = 0 ; | |
23393 | char *kwnames[] = { | |
23394 | (char *) "self", NULL | |
23395 | }; | |
23396 | ||
23397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
23398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23400 | { | |
23401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23402 | result = (int)(arg1)->GetMaxPage(); | |
23403 | ||
23404 | wxPyEndAllowThreads(__tstate); | |
23405 | if (PyErr_Occurred()) SWIG_fail; | |
23406 | } | |
23407 | resultobj = SWIG_FromInt((int)result); | |
23408 | return resultobj; | |
23409 | fail: | |
23410 | return NULL; | |
23411 | } | |
23412 | ||
23413 | ||
23414 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23415 | PyObject *resultobj; | |
23416 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23417 | int result; | |
23418 | PyObject * obj0 = 0 ; | |
23419 | char *kwnames[] = { | |
23420 | (char *) "self", NULL | |
23421 | }; | |
23422 | ||
23423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
23424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23426 | { | |
23427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23428 | result = (int)(arg1)->GetMinPage(); | |
23429 | ||
23430 | wxPyEndAllowThreads(__tstate); | |
23431 | if (PyErr_Occurred()) SWIG_fail; | |
23432 | } | |
23433 | resultobj = SWIG_FromInt((int)result); | |
23434 | return resultobj; | |
23435 | fail: | |
23436 | return NULL; | |
23437 | } | |
23438 | ||
23439 | ||
23440 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23441 | PyObject *resultobj; | |
23442 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23443 | bool result; | |
23444 | PyObject * obj0 = 0 ; | |
23445 | char *kwnames[] = { | |
23446 | (char *) "self", NULL | |
23447 | }; | |
23448 | ||
23449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
23450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23452 | { | |
23453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23454 | result = (bool)(arg1)->Ok(); | |
23455 | ||
23456 | wxPyEndAllowThreads(__tstate); | |
23457 | if (PyErr_Occurred()) SWIG_fail; | |
23458 | } | |
23459 | { | |
23460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23461 | } | |
23462 | return resultobj; | |
23463 | fail: | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
23467 | ||
23468 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23469 | PyObject *resultobj; | |
23470 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23471 | bool arg2 ; | |
23472 | PyObject * obj0 = 0 ; | |
23473 | PyObject * obj1 = 0 ; | |
23474 | char *kwnames[] = { | |
23475 | (char *) "self",(char *) "ok", NULL | |
23476 | }; | |
23477 | ||
23478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
23479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23481 | arg2 = (bool) SWIG_AsBool(obj1); | |
23482 | if (PyErr_Occurred()) SWIG_fail; | |
23483 | { | |
23484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23485 | (arg1)->SetOk(arg2); | |
23486 | ||
23487 | wxPyEndAllowThreads(__tstate); | |
23488 | if (PyErr_Occurred()) SWIG_fail; | |
23489 | } | |
23490 | Py_INCREF(Py_None); resultobj = Py_None; | |
23491 | return resultobj; | |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
23497 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23498 | PyObject *resultobj; | |
23499 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23500 | bool arg2 ; | |
23501 | bool result; | |
23502 | PyObject * obj0 = 0 ; | |
23503 | PyObject * obj1 = 0 ; | |
23504 | char *kwnames[] = { | |
23505 | (char *) "self",(char *) "interactive", NULL | |
23506 | }; | |
23507 | ||
23508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
23509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23511 | arg2 = (bool) SWIG_AsBool(obj1); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | { | |
23514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23515 | result = (bool)(arg1)->Print(arg2); | |
23516 | ||
23517 | wxPyEndAllowThreads(__tstate); | |
23518 | if (PyErr_Occurred()) SWIG_fail; | |
23519 | } | |
23520 | { | |
23521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23522 | } | |
23523 | return resultobj; | |
23524 | fail: | |
23525 | return NULL; | |
23526 | } | |
23527 | ||
23528 | ||
23529 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23530 | PyObject *resultobj; | |
23531 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23532 | PyObject * obj0 = 0 ; | |
23533 | char *kwnames[] = { | |
23534 | (char *) "self", NULL | |
23535 | }; | |
23536 | ||
23537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
23538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23540 | { | |
23541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23542 | (arg1)->DetermineScaling(); | |
23543 | ||
23544 | wxPyEndAllowThreads(__tstate); | |
23545 | if (PyErr_Occurred()) SWIG_fail; | |
23546 | } | |
23547 | Py_INCREF(Py_None); resultobj = Py_None; | |
23548 | return resultobj; | |
23549 | fail: | |
23550 | return NULL; | |
23551 | } | |
23552 | ||
23553 | ||
23554 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
23555 | PyObject *obj; | |
23556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23557 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
23558 | Py_INCREF(obj); | |
23559 | return Py_BuildValue((char *)""); | |
23560 | } | |
23561 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23562 | PyObject *resultobj; | |
23563 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23564 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23565 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23566 | wxPyPrintPreview *result; | |
23567 | PyObject * obj0 = 0 ; | |
23568 | PyObject * obj1 = 0 ; | |
23569 | PyObject * obj2 = 0 ; | |
23570 | ||
23571 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23576 | if (obj2) { | |
23577 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23579 | } | |
23580 | { | |
23581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23582 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23583 | ||
23584 | wxPyEndAllowThreads(__tstate); | |
23585 | if (PyErr_Occurred()) SWIG_fail; | |
23586 | } | |
23587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23588 | return resultobj; | |
23589 | fail: | |
23590 | return NULL; | |
23591 | } | |
23592 | ||
23593 | ||
23594 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23595 | PyObject *resultobj; | |
23596 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23597 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23598 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23599 | wxPyPrintPreview *result; | |
23600 | PyObject * obj0 = 0 ; | |
23601 | PyObject * obj1 = 0 ; | |
23602 | PyObject * obj2 = 0 ; | |
23603 | ||
23604 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23609 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23611 | { | |
23612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23613 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23614 | ||
23615 | wxPyEndAllowThreads(__tstate); | |
23616 | if (PyErr_Occurred()) SWIG_fail; | |
23617 | } | |
23618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23619 | return resultobj; | |
23620 | fail: | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
23625 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
23626 | int argc; | |
23627 | PyObject *argv[4]; | |
23628 | int ii; | |
23629 | ||
23630 | argc = PyObject_Length(args); | |
23631 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23632 | argv[ii] = PyTuple_GetItem(args,ii); | |
23633 | } | |
23634 | if ((argc >= 2) && (argc <= 3)) { | |
23635 | int _v; | |
23636 | { | |
23637 | void *ptr; | |
23638 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23639 | _v = 0; | |
23640 | PyErr_Clear(); | |
23641 | } else { | |
23642 | _v = 1; | |
23643 | } | |
23644 | } | |
23645 | if (_v) { | |
23646 | { | |
23647 | void *ptr; | |
23648 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23649 | _v = 0; | |
23650 | PyErr_Clear(); | |
23651 | } else { | |
23652 | _v = 1; | |
23653 | } | |
23654 | } | |
23655 | if (_v) { | |
23656 | if (argc <= 2) { | |
23657 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23658 | } | |
23659 | { | |
23660 | void *ptr; | |
23661 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23662 | _v = 0; | |
23663 | PyErr_Clear(); | |
23664 | } else { | |
23665 | _v = 1; | |
23666 | } | |
23667 | } | |
23668 | if (_v) { | |
23669 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23670 | } | |
23671 | } | |
23672 | } | |
23673 | } | |
23674 | if (argc == 3) { | |
23675 | int _v; | |
23676 | { | |
23677 | void *ptr; | |
23678 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23679 | _v = 0; | |
23680 | PyErr_Clear(); | |
23681 | } else { | |
23682 | _v = 1; | |
23683 | } | |
23684 | } | |
23685 | if (_v) { | |
23686 | { | |
23687 | void *ptr; | |
23688 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23689 | _v = 0; | |
23690 | PyErr_Clear(); | |
23691 | } else { | |
23692 | _v = 1; | |
23693 | } | |
23694 | } | |
23695 | if (_v) { | |
23696 | { | |
23697 | void *ptr; | |
23698 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23699 | _v = 0; | |
23700 | PyErr_Clear(); | |
23701 | } else { | |
23702 | _v = 1; | |
23703 | } | |
23704 | } | |
23705 | if (_v) { | |
23706 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
23707 | } | |
23708 | } | |
23709 | } | |
23710 | } | |
23711 | ||
23712 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
23717 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23718 | PyObject *resultobj; | |
23719 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23720 | PyObject *arg2 = (PyObject *) 0 ; | |
23721 | PyObject *arg3 = (PyObject *) 0 ; | |
23722 | PyObject * obj0 = 0 ; | |
23723 | PyObject * obj1 = 0 ; | |
23724 | PyObject * obj2 = 0 ; | |
23725 | char *kwnames[] = { | |
23726 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23727 | }; | |
23728 | ||
23729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23732 | arg2 = obj1; | |
23733 | arg3 = obj2; | |
23734 | { | |
23735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23736 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23737 | ||
23738 | wxPyEndAllowThreads(__tstate); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
23740 | } | |
23741 | Py_INCREF(Py_None); resultobj = Py_None; | |
23742 | return resultobj; | |
23743 | fail: | |
23744 | return NULL; | |
23745 | } | |
23746 | ||
23747 | ||
23748 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23749 | PyObject *resultobj; | |
23750 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23751 | int arg2 ; | |
23752 | bool result; | |
23753 | PyObject * obj0 = 0 ; | |
23754 | PyObject * obj1 = 0 ; | |
23755 | char *kwnames[] = { | |
23756 | (char *) "self",(char *) "pageNum", NULL | |
23757 | }; | |
23758 | ||
23759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23762 | arg2 = (int) SWIG_AsInt(obj1); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | { | |
23765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23766 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
23767 | ||
23768 | wxPyEndAllowThreads(__tstate); | |
23769 | if (PyErr_Occurred()) SWIG_fail; | |
23770 | } | |
23771 | { | |
23772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23773 | } | |
23774 | return resultobj; | |
23775 | fail: | |
23776 | return NULL; | |
23777 | } | |
23778 | ||
23779 | ||
23780 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23781 | PyObject *resultobj; | |
23782 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23783 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23784 | wxDC *arg3 = 0 ; | |
23785 | bool result; | |
23786 | PyObject * obj0 = 0 ; | |
23787 | PyObject * obj1 = 0 ; | |
23788 | PyObject * obj2 = 0 ; | |
23789 | char *kwnames[] = { | |
23790 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23798 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23799 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23800 | SWIG_fail; | |
23801 | if (arg3 == NULL) { | |
23802 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23803 | SWIG_fail; | |
23804 | } | |
23805 | { | |
23806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23807 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
23808 | ||
23809 | wxPyEndAllowThreads(__tstate); | |
23810 | if (PyErr_Occurred()) SWIG_fail; | |
23811 | } | |
23812 | { | |
23813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23814 | } | |
23815 | return resultobj; | |
23816 | fail: | |
23817 | return NULL; | |
23818 | } | |
23819 | ||
23820 | ||
23821 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23822 | PyObject *resultobj; | |
23823 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23824 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23825 | wxDC *arg3 = 0 ; | |
23826 | bool result; | |
23827 | PyObject * obj0 = 0 ; | |
23828 | PyObject * obj1 = 0 ; | |
23829 | PyObject * obj2 = 0 ; | |
23830 | char *kwnames[] = { | |
23831 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23832 | }; | |
23833 | ||
23834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23839 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23840 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23841 | SWIG_fail; | |
23842 | if (arg3 == NULL) { | |
23843 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23844 | SWIG_fail; | |
23845 | } | |
23846 | { | |
23847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23848 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
23853 | { | |
23854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23855 | } | |
23856 | return resultobj; | |
23857 | fail: | |
23858 | return NULL; | |
23859 | } | |
23860 | ||
23861 | ||
23862 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23863 | PyObject *resultobj; | |
23864 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23865 | int arg2 ; | |
23866 | bool result; | |
23867 | PyObject * obj0 = 0 ; | |
23868 | PyObject * obj1 = 0 ; | |
23869 | char *kwnames[] = { | |
23870 | (char *) "self",(char *) "pageNum", NULL | |
23871 | }; | |
23872 | ||
23873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23876 | arg2 = (int) SWIG_AsInt(obj1); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | { | |
23879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23880 | result = (bool)(arg1)->base_RenderPage(arg2); | |
23881 | ||
23882 | wxPyEndAllowThreads(__tstate); | |
23883 | if (PyErr_Occurred()) SWIG_fail; | |
23884 | } | |
23885 | { | |
23886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23887 | } | |
23888 | return resultobj; | |
23889 | fail: | |
23890 | return NULL; | |
23891 | } | |
23892 | ||
23893 | ||
23894 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23895 | PyObject *resultobj; | |
23896 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23897 | int arg2 ; | |
23898 | PyObject * obj0 = 0 ; | |
23899 | PyObject * obj1 = 0 ; | |
23900 | char *kwnames[] = { | |
23901 | (char *) "self",(char *) "percent", NULL | |
23902 | }; | |
23903 | ||
23904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23907 | arg2 = (int) SWIG_AsInt(obj1); | |
23908 | if (PyErr_Occurred()) SWIG_fail; | |
23909 | { | |
23910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23911 | (arg1)->base_SetZoom(arg2); | |
23912 | ||
23913 | wxPyEndAllowThreads(__tstate); | |
23914 | if (PyErr_Occurred()) SWIG_fail; | |
23915 | } | |
23916 | Py_INCREF(Py_None); resultobj = Py_None; | |
23917 | return resultobj; | |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
23923 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23924 | PyObject *resultobj; | |
23925 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23926 | bool arg2 ; | |
23927 | bool result; | |
23928 | PyObject * obj0 = 0 ; | |
23929 | PyObject * obj1 = 0 ; | |
23930 | char *kwnames[] = { | |
23931 | (char *) "self",(char *) "interactive", NULL | |
23932 | }; | |
23933 | ||
23934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
23935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23937 | arg2 = (bool) SWIG_AsBool(obj1); | |
23938 | if (PyErr_Occurred()) SWIG_fail; | |
23939 | { | |
23940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23941 | result = (bool)(arg1)->base_Print(arg2); | |
23942 | ||
23943 | wxPyEndAllowThreads(__tstate); | |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | { | |
23947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23948 | } | |
23949 | return resultobj; | |
23950 | fail: | |
23951 | return NULL; | |
23952 | } | |
23953 | ||
23954 | ||
23955 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23956 | PyObject *resultobj; | |
23957 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23958 | PyObject * obj0 = 0 ; | |
23959 | char *kwnames[] = { | |
23960 | (char *) "self", NULL | |
23961 | }; | |
23962 | ||
23963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
23964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23966 | { | |
23967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23968 | (arg1)->base_DetermineScaling(); | |
23969 | ||
23970 | wxPyEndAllowThreads(__tstate); | |
23971 | if (PyErr_Occurred()) SWIG_fail; | |
23972 | } | |
23973 | Py_INCREF(Py_None); resultobj = Py_None; | |
23974 | return resultobj; | |
23975 | fail: | |
23976 | return NULL; | |
23977 | } | |
23978 | ||
23979 | ||
23980 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
23981 | PyObject *obj; | |
23982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23983 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
23984 | Py_INCREF(obj); | |
23985 | return Py_BuildValue((char *)""); | |
23986 | } | |
23987 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23988 | PyObject *resultobj; | |
23989 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23990 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23991 | wxString *arg3 = 0 ; | |
23992 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23993 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23994 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23995 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23996 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
23997 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
23998 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23999 | wxPyPreviewFrame *result; | |
24000 | bool temp3 = False ; | |
24001 | wxPoint temp4 ; | |
24002 | wxSize temp5 ; | |
24003 | bool temp7 = False ; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | PyObject * obj1 = 0 ; | |
24006 | PyObject * obj2 = 0 ; | |
24007 | PyObject * obj3 = 0 ; | |
24008 | PyObject * obj4 = 0 ; | |
24009 | PyObject * obj5 = 0 ; | |
24010 | PyObject * obj6 = 0 ; | |
24011 | char *kwnames[] = { | |
24012 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24013 | }; | |
24014 | ||
24015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24018 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
24019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24020 | { | |
24021 | arg3 = wxString_in_helper(obj2); | |
24022 | if (arg3 == NULL) SWIG_fail; | |
24023 | temp3 = True; | |
24024 | } | |
24025 | if (obj3) { | |
24026 | { | |
24027 | arg4 = &temp4; | |
24028 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24029 | } | |
24030 | } | |
24031 | if (obj4) { | |
24032 | { | |
24033 | arg5 = &temp5; | |
24034 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24035 | } | |
24036 | } | |
24037 | if (obj5) { | |
24038 | arg6 = (long) SWIG_AsLong(obj5); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | if (obj6) { | |
24042 | { | |
24043 | arg7 = wxString_in_helper(obj6); | |
24044 | if (arg7 == NULL) SWIG_fail; | |
24045 | temp7 = True; | |
24046 | } | |
24047 | } | |
24048 | { | |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24051 | ||
24052 | wxPyEndAllowThreads(__tstate); | |
24053 | if (PyErr_Occurred()) SWIG_fail; | |
24054 | } | |
24055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
24056 | { | |
24057 | if (temp3) | |
24058 | delete arg3; | |
24059 | } | |
24060 | { | |
24061 | if (temp7) | |
24062 | delete arg7; | |
24063 | } | |
24064 | return resultobj; | |
24065 | fail: | |
24066 | { | |
24067 | if (temp3) | |
24068 | delete arg3; | |
24069 | } | |
24070 | { | |
24071 | if (temp7) | |
24072 | delete arg7; | |
24073 | } | |
24074 | return NULL; | |
24075 | } | |
24076 | ||
24077 | ||
24078 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24079 | PyObject *resultobj; | |
24080 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24081 | PyObject *arg2 = (PyObject *) 0 ; | |
24082 | PyObject *arg3 = (PyObject *) 0 ; | |
24083 | PyObject * obj0 = 0 ; | |
24084 | PyObject * obj1 = 0 ; | |
24085 | PyObject * obj2 = 0 ; | |
24086 | char *kwnames[] = { | |
24087 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24088 | }; | |
24089 | ||
24090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24093 | arg2 = obj1; | |
24094 | arg3 = obj2; | |
24095 | { | |
24096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24097 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24098 | ||
24099 | wxPyEndAllowThreads(__tstate); | |
24100 | if (PyErr_Occurred()) SWIG_fail; | |
24101 | } | |
24102 | Py_INCREF(Py_None); resultobj = Py_None; | |
24103 | return resultobj; | |
24104 | fail: | |
24105 | return NULL; | |
24106 | } | |
24107 | ||
24108 | ||
24109 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24110 | PyObject *resultobj; | |
24111 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24112 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24113 | PyObject * obj0 = 0 ; | |
24114 | PyObject * obj1 = 0 ; | |
24115 | char *kwnames[] = { | |
24116 | (char *) "self",(char *) "canvas", NULL | |
24117 | }; | |
24118 | ||
24119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
24120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24122 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24124 | { | |
24125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24126 | (arg1)->SetPreviewCanvas(arg2); | |
24127 | ||
24128 | wxPyEndAllowThreads(__tstate); | |
24129 | if (PyErr_Occurred()) SWIG_fail; | |
24130 | } | |
24131 | Py_INCREF(Py_None); resultobj = Py_None; | |
24132 | return resultobj; | |
24133 | fail: | |
24134 | return NULL; | |
24135 | } | |
24136 | ||
24137 | ||
24138 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24139 | PyObject *resultobj; | |
24140 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24141 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
24142 | PyObject * obj0 = 0 ; | |
24143 | PyObject * obj1 = 0 ; | |
24144 | char *kwnames[] = { | |
24145 | (char *) "self",(char *) "bar", NULL | |
24146 | }; | |
24147 | ||
24148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
24149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
24152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | (arg1)->SetControlBar(arg2); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | Py_INCREF(Py_None); resultobj = Py_None; | |
24161 | return resultobj; | |
24162 | fail: | |
24163 | return NULL; | |
24164 | } | |
24165 | ||
24166 | ||
24167 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24168 | PyObject *resultobj; | |
24169 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24170 | PyObject * obj0 = 0 ; | |
24171 | char *kwnames[] = { | |
24172 | (char *) "self", NULL | |
24173 | }; | |
24174 | ||
24175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
24176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24178 | { | |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | (arg1)->base_Initialize(); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
24185 | Py_INCREF(Py_None); resultobj = Py_None; | |
24186 | return resultobj; | |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
24192 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24193 | PyObject *resultobj; | |
24194 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24195 | PyObject * obj0 = 0 ; | |
24196 | char *kwnames[] = { | |
24197 | (char *) "self", NULL | |
24198 | }; | |
24199 | ||
24200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
24201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24203 | { | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | (arg1)->base_CreateCanvas(); | |
24206 | ||
24207 | wxPyEndAllowThreads(__tstate); | |
24208 | if (PyErr_Occurred()) SWIG_fail; | |
24209 | } | |
24210 | Py_INCREF(Py_None); resultobj = Py_None; | |
24211 | return resultobj; | |
24212 | fail: | |
24213 | return NULL; | |
24214 | } | |
24215 | ||
24216 | ||
24217 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24218 | PyObject *resultobj; | |
24219 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24220 | PyObject * obj0 = 0 ; | |
24221 | char *kwnames[] = { | |
24222 | (char *) "self", NULL | |
24223 | }; | |
24224 | ||
24225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24228 | { | |
24229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24230 | (arg1)->base_CreateControlBar(); | |
24231 | ||
24232 | wxPyEndAllowThreads(__tstate); | |
24233 | if (PyErr_Occurred()) SWIG_fail; | |
24234 | } | |
24235 | Py_INCREF(Py_None); resultobj = Py_None; | |
24236 | return resultobj; | |
24237 | fail: | |
24238 | return NULL; | |
24239 | } | |
24240 | ||
24241 | ||
24242 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24243 | PyObject *obj; | |
24244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24245 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24246 | Py_INCREF(obj); | |
24247 | return Py_BuildValue((char *)""); | |
24248 | } | |
24249 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24250 | PyObject *resultobj; | |
24251 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24252 | long arg2 ; | |
24253 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24254 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24255 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24256 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24257 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24258 | long arg6 = (long) 0 ; | |
24259 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24260 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24261 | wxPyPreviewControlBar *result; | |
24262 | wxPoint temp4 ; | |
24263 | wxSize temp5 ; | |
24264 | bool temp7 = False ; | |
24265 | PyObject * obj0 = 0 ; | |
24266 | PyObject * obj1 = 0 ; | |
24267 | PyObject * obj2 = 0 ; | |
24268 | PyObject * obj3 = 0 ; | |
24269 | PyObject * obj4 = 0 ; | |
24270 | PyObject * obj5 = 0 ; | |
24271 | PyObject * obj6 = 0 ; | |
24272 | char *kwnames[] = { | |
24273 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24274 | }; | |
24275 | ||
24276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24279 | arg2 = (long) SWIG_AsLong(obj1); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24283 | if (obj3) { | |
24284 | { | |
24285 | arg4 = &temp4; | |
24286 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24287 | } | |
24288 | } | |
24289 | if (obj4) { | |
24290 | { | |
24291 | arg5 = &temp5; | |
24292 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24293 | } | |
24294 | } | |
24295 | if (obj5) { | |
24296 | arg6 = (long) SWIG_AsLong(obj5); | |
24297 | if (PyErr_Occurred()) SWIG_fail; | |
24298 | } | |
24299 | if (obj6) { | |
24300 | { | |
24301 | arg7 = wxString_in_helper(obj6); | |
24302 | if (arg7 == NULL) SWIG_fail; | |
24303 | temp7 = True; | |
24304 | } | |
24305 | } | |
24306 | { | |
24307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24308 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24309 | ||
24310 | wxPyEndAllowThreads(__tstate); | |
24311 | if (PyErr_Occurred()) SWIG_fail; | |
24312 | } | |
24313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
24314 | { | |
24315 | if (temp7) | |
24316 | delete arg7; | |
24317 | } | |
24318 | return resultobj; | |
24319 | fail: | |
24320 | { | |
24321 | if (temp7) | |
24322 | delete arg7; | |
24323 | } | |
24324 | return NULL; | |
24325 | } | |
24326 | ||
24327 | ||
24328 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24329 | PyObject *resultobj; | |
24330 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24331 | PyObject *arg2 = (PyObject *) 0 ; | |
24332 | PyObject *arg3 = (PyObject *) 0 ; | |
24333 | PyObject * obj0 = 0 ; | |
24334 | PyObject * obj1 = 0 ; | |
24335 | PyObject * obj2 = 0 ; | |
24336 | char *kwnames[] = { | |
24337 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24338 | }; | |
24339 | ||
24340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24343 | arg2 = obj1; | |
24344 | arg3 = obj2; | |
24345 | { | |
24346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24347 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24348 | ||
24349 | wxPyEndAllowThreads(__tstate); | |
24350 | if (PyErr_Occurred()) SWIG_fail; | |
24351 | } | |
24352 | Py_INCREF(Py_None); resultobj = Py_None; | |
24353 | return resultobj; | |
24354 | fail: | |
24355 | return NULL; | |
24356 | } | |
24357 | ||
24358 | ||
24359 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24360 | PyObject *resultobj; | |
24361 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24362 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
24363 | PyObject * obj0 = 0 ; | |
24364 | PyObject * obj1 = 0 ; | |
24365 | char *kwnames[] = { | |
24366 | (char *) "self",(char *) "preview", NULL | |
24367 | }; | |
24368 | ||
24369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
24370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
24373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24374 | { | |
24375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24376 | (arg1)->SetPrintPreview(arg2); | |
24377 | ||
24378 | wxPyEndAllowThreads(__tstate); | |
24379 | if (PyErr_Occurred()) SWIG_fail; | |
24380 | } | |
24381 | Py_INCREF(Py_None); resultobj = Py_None; | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
24388 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24389 | PyObject *resultobj; | |
24390 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24391 | PyObject * obj0 = 0 ; | |
24392 | char *kwnames[] = { | |
24393 | (char *) "self", NULL | |
24394 | }; | |
24395 | ||
24396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
24397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24399 | { | |
24400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24401 | (arg1)->base_CreateButtons(); | |
24402 | ||
24403 | wxPyEndAllowThreads(__tstate); | |
24404 | if (PyErr_Occurred()) SWIG_fail; | |
24405 | } | |
24406 | Py_INCREF(Py_None); resultobj = Py_None; | |
24407 | return resultobj; | |
24408 | fail: | |
24409 | return NULL; | |
24410 | } | |
24411 | ||
24412 | ||
24413 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24414 | PyObject *resultobj; | |
24415 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24416 | int arg2 ; | |
24417 | PyObject * obj0 = 0 ; | |
24418 | PyObject * obj1 = 0 ; | |
24419 | char *kwnames[] = { | |
24420 | (char *) "self",(char *) "zoom", NULL | |
24421 | }; | |
24422 | ||
24423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
24424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24426 | arg2 = (int) SWIG_AsInt(obj1); | |
24427 | if (PyErr_Occurred()) SWIG_fail; | |
24428 | { | |
24429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24430 | (arg1)->base_SetZoomControl(arg2); | |
24431 | ||
24432 | wxPyEndAllowThreads(__tstate); | |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | Py_INCREF(Py_None); resultobj = Py_None; | |
24436 | return resultobj; | |
24437 | fail: | |
24438 | return NULL; | |
24439 | } | |
24440 | ||
24441 | ||
24442 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
24443 | PyObject *obj; | |
24444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24445 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
24446 | Py_INCREF(obj); | |
24447 | return Py_BuildValue((char *)""); | |
24448 | } | |
24449 | static PyMethodDef SwigMethods[] = { | |
24450 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
24451 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
24452 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
24453 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24454 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24455 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, |
24456 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24457 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24458 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24459 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24460 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
24461 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24462 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24463 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
24464 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
24465 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
24466 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
24467 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
24468 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24469 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24470 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
24471 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
24472 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24473 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
24474 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24475 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24476 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
24477 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24478 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24479 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, |
24480 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24481 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24482 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
24483 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
24484 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
24485 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24486 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24487 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
24488 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24489 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24490 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24491 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24492 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
24493 | { (char *)"TopLevelWindow_MacSetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacSetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, | |
24494 | { (char *)"TopLevelWindow_MacGetMetalAppearance", (PyCFunction) _wrap_TopLevelWindow_MacGetMetalAppearance, METH_VARARGS | METH_KEYWORDS }, | |
24495 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
24496 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
24497 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
24498 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24499 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
24500 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
24501 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24502 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24503 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
24504 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24505 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24506 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24507 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24508 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24509 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24510 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24511 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24512 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24513 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24514 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24515 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24516 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
24517 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24518 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24519 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, |
24520 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
24521 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
24522 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24523 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24524 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24525 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
24526 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
24527 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
24528 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
24529 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24530 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24531 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, |
24532 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24533 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24534 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24535 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
24536 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
24537 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24538 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24539 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
24540 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
24541 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
24542 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24543 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
24544 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
24545 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24546 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24547 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
24548 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24549 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24550 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24551 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24552 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24553 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24554 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24555 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
24556 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
24557 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
24558 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24559 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24560 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, |
24561 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24562 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24563 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24564 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
24565 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
24566 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24567 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24568 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24569 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
24570 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
24571 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
24572 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
24573 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
24574 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
24575 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24576 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24577 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24578 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24579 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24580 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24581 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24582 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24583 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24584 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24585 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
24586 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24587 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24588 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, |
24589 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
24590 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24591 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
24593 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
24594 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
24596 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24597 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24598 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24600 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24601 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
24602 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
24603 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24605 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24606 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24610 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24611 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24612 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24613 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24614 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24615 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
24619 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24622 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
24627 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24629 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24630 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24633 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
24639 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
24644 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
24645 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
24654 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
24660 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
24663 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
24666 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
24670 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
24676 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
24680 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
24688 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24702 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
24714 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24716 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 24720 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24721 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, |
24722 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
24726 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
24728 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24736 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
24737 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
24740 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
24747 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24758 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
24765 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
24769 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
24774 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
24778 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24784 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24790 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24791 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
24794 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
24797 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
24798 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
24799 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
24803 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24807 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
24812 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
24821 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
24827 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
24839 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
24846 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
24850 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24853 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24854 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
24855 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24874 | { (char *)"PyWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24875 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, |
24876 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24879 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24880 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
24881 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24900 | { (char *)"PyPanel_base_GetDefaultAttributes", (PyCFunction) _wrap_PyPanel_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24901 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, |
24902 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24905 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24906 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
24907 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
a5ee0656 | 24926 | { (char *)"PyScrolledWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyScrolledWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24927 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, |
24928 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
24970 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
24971 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
24974 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24975 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
24976 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
25006 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
25010 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
25011 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25025 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25031 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
25044 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
25049 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
25060 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
25080 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
25083 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
25085 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
25091 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
25101 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
25102 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
25125 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
25126 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
25135 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
25143 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
25149 | { NULL, NULL } | |
25150 | }; | |
25151 | ||
25152 | ||
25153 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25154 | ||
25155 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
25156 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25157 | } | |
25158 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25159 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25160 | } | |
25161 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25162 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25163 | } | |
25164 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25165 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25166 | } | |
25167 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25168 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25169 | } | |
25170 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25171 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25172 | } | |
25173 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25174 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25175 | } | |
25176 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
25177 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25178 | } | |
25179 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25180 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25181 | } | |
25182 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25183 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25184 | } | |
25185 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
25186 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25187 | } | |
25188 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25189 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25190 | } | |
25191 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25192 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25193 | } | |
25194 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
25195 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25196 | } | |
25197 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25198 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25199 | } | |
25200 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25201 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25202 | } | |
25203 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25204 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25205 | } | |
25206 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25207 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25208 | } | |
25209 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25210 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25211 | } | |
25212 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25213 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25214 | } | |
25215 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25216 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25217 | } | |
25218 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25219 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25220 | } | |
25221 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25222 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25223 | } | |
25224 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25225 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25226 | } | |
25227 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25228 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25229 | } | |
25230 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25231 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25232 | } | |
25233 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25234 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25235 | } | |
25236 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25237 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25238 | } | |
25239 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25240 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25241 | } | |
25242 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25243 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25244 | } | |
25245 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25246 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25247 | } | |
25248 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25249 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25250 | } | |
25251 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25252 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25253 | } | |
25254 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25255 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25256 | } | |
25257 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25258 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25259 | } | |
25260 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25261 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25262 | } | |
25263 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25264 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25265 | } | |
25266 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25267 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25268 | } | |
25269 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25270 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25271 | } | |
25272 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25273 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25274 | } | |
25275 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25276 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25277 | } | |
25278 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
25279 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25280 | } | |
25281 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
25282 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25283 | } | |
25284 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
25285 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25286 | } | |
25287 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
25288 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25289 | } | |
25290 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
25291 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25292 | } | |
25293 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25294 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25295 | } | |
25296 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25297 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25298 | } | |
25299 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25300 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25301 | } | |
25302 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25303 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25304 | } | |
25305 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
25306 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25307 | } | |
25308 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25309 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25310 | } | |
25311 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25312 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25313 | } | |
25314 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
25315 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25316 | } | |
25317 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
25318 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25319 | } | |
25320 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
25321 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25322 | } | |
25323 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
25324 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25325 | } | |
25326 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
25327 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
25328 | } | |
25329 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
25330 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
25331 | } | |
25332 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25333 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25334 | } | |
25335 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
25336 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25337 | } | |
25338 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
25339 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25340 | } | |
25341 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
25342 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
25343 | } | |
25344 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
25345 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25346 | } | |
25347 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
25348 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
25349 | } | |
25350 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
25351 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
25352 | } | |
25353 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
25354 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
25355 | } | |
25356 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25357 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25358 | } | |
25359 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25360 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25361 | } | |
25362 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
25363 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
25364 | } | |
25365 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
25366 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
25367 | } | |
25368 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25369 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25370 | } | |
25371 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25372 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25373 | } | |
25374 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25375 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25376 | } | |
25377 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25378 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25379 | } | |
25380 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
25381 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25382 | } | |
25383 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25384 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25385 | } | |
25386 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25387 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25388 | } | |
25389 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
25390 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
25391 | } | |
25392 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
25393 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25394 | } | |
25395 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
25396 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25397 | } | |
25398 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
25399 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25400 | } | |
25401 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25402 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25403 | } | |
25404 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25405 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25406 | } | |
25407 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
25408 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25409 | } | |
25410 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
25411 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25412 | } | |
25413 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
25414 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25415 | } | |
25416 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
25417 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25418 | } | |
25419 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
25420 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25421 | } | |
25422 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
25423 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25424 | } | |
25425 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
25426 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25427 | } | |
25428 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
25429 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25430 | } | |
25431 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
25432 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25433 | } | |
25434 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
25435 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25436 | } | |
25437 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
25438 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
25439 | } | |
25440 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
25441 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
25442 | } | |
25443 | static void *_p_wxTipWindowTo_p_wxFrame(void *x) { | |
25444 | return (void *)((wxFrame *) ((wxTipWindow *) x)); | |
25445 | } | |
25446 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
25447 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
25448 | } | |
25449 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
25450 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25451 | } | |
25452 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
25453 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
25454 | } | |
25455 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
25456 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
25457 | } | |
25458 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
25459 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
25460 | } | |
25461 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25462 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25463 | } | |
25464 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
25465 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25466 | } | |
25467 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
25468 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25469 | } | |
25470 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
25471 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25472 | } | |
25473 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25474 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25475 | } | |
25476 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25477 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25478 | } | |
25479 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25480 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25481 | } | |
25482 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25483 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25484 | } | |
25485 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25486 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25487 | } | |
25488 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25489 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25490 | } | |
25491 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25492 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25493 | } | |
25494 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25495 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25496 | } | |
25497 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25498 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25499 | } | |
25500 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
25501 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25502 | } | |
25503 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25504 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25505 | } | |
25506 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
25507 | return (void *)((wxObject *) ((wxFontData *) x)); | |
25508 | } | |
25509 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
25510 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
25511 | } | |
25512 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25513 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25514 | } | |
25515 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25516 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25517 | } | |
25518 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25519 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25520 | } | |
25521 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
25522 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
25523 | } | |
25524 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
25525 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25526 | } | |
25527 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
25528 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25529 | } | |
25530 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25531 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25532 | } | |
25533 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25534 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25535 | } | |
25536 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25537 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25538 | } | |
25539 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25540 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25541 | } | |
25542 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25543 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25544 | } | |
25545 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25546 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25547 | } | |
25548 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
25549 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25550 | } | |
25551 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25552 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25553 | } | |
25554 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25555 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25556 | } | |
25557 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
25558 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25559 | } | |
25560 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25561 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25562 | } | |
25563 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
25564 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
25565 | } | |
25566 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25567 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25568 | } | |
25569 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
25570 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25571 | } | |
25572 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
25573 | return (void *)((wxObject *) ((wxColourData *) x)); | |
25574 | } | |
25575 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25576 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25577 | } | |
25578 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25579 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25580 | } | |
25581 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
25582 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
25583 | } | |
25584 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
25585 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25586 | } | |
25587 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
25588 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25589 | } | |
25590 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
25591 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25592 | } | |
25593 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
25594 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25595 | } | |
25596 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
25597 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25598 | } | |
25599 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
25600 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25601 | } | |
25602 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
25603 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25604 | } | |
25605 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
25606 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25607 | } | |
25608 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25609 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25610 | } | |
25611 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
25612 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
25613 | } | |
25614 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25615 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25616 | } | |
25617 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25618 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25619 | } | |
25620 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25621 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25622 | } | |
25623 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25624 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25625 | } | |
25626 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25627 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25628 | } | |
25629 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25630 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25631 | } | |
25632 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25633 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25634 | } | |
25635 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25636 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25637 | } | |
25638 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25639 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25640 | } | |
25641 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25642 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25643 | } | |
25644 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25645 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25646 | } | |
25647 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25648 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25649 | } | |
25650 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25651 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25652 | } | |
25653 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25654 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25655 | } | |
25656 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25657 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25658 | } | |
25659 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25660 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25661 | } | |
25662 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25663 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25664 | } | |
25665 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25666 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25667 | } | |
25668 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25669 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25670 | } | |
25671 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25672 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25673 | } | |
25674 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25675 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25676 | } | |
25677 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25678 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25679 | } | |
25680 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
25681 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25682 | } | |
25683 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
25684 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25685 | } | |
25686 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
25687 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25688 | } | |
25689 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
25690 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25691 | } | |
25692 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
25693 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25694 | } | |
25695 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25696 | return (void *)((wxObject *) ((wxImage *) x)); | |
25697 | } | |
25698 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
25699 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25700 | } | |
25701 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
25702 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
25703 | } | |
25704 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25705 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25706 | } | |
25707 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
25708 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25709 | } | |
25710 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
25711 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
25712 | } | |
25713 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
25714 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25715 | } | |
25716 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25717 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25718 | } | |
25719 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25720 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25721 | } | |
25722 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25723 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25724 | } | |
25725 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25726 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25727 | } | |
25728 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25729 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25730 | } | |
25731 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25732 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25733 | } | |
25734 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
25735 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25736 | } | |
25737 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
25738 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
25739 | } | |
25740 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
25741 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
25742 | } | |
25743 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
25744 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
25745 | } | |
25746 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
25747 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
25748 | } | |
25749 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
25750 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25751 | } | |
25752 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
25753 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
25754 | } | |
25755 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
25756 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25757 | } | |
25758 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
25759 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25760 | } | |
25761 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
25762 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25763 | } | |
25764 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
25765 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
25766 | } | |
25767 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
25768 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25769 | } | |
25770 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
25771 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
25772 | } | |
25773 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
25774 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
25775 | } | |
25776 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
25777 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
25778 | } | |
25779 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
25780 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
25781 | } | |
25782 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
25783 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25784 | } | |
25785 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
25786 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25787 | } | |
25788 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
25789 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25790 | } | |
25791 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
25792 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25793 | } | |
25794 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
25795 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25796 | } | |
25797 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
25798 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25799 | } | |
25800 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25801 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25802 | } | |
25803 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25804 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25805 | } | |
25806 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25807 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25808 | } | |
25809 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25810 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25811 | } | |
25812 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25813 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25814 | } | |
25815 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25816 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25817 | } | |
25818 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25819 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25820 | } | |
25821 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25822 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25823 | } | |
25824 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25825 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25826 | } | |
25827 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
25828 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25829 | } | |
25830 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
25831 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25832 | } | |
25833 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25834 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25835 | } | |
25836 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25837 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25838 | } | |
25839 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25840 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25841 | } | |
25842 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25843 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25844 | } | |
25845 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
25846 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
25847 | } | |
25848 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
25849 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
25850 | } | |
25851 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25852 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25853 | } | |
25854 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25855 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25856 | } | |
25857 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
25858 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25859 | } | |
25860 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
25861 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25862 | } | |
25863 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
25864 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25865 | } | |
25866 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
25867 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25868 | } | |
25869 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
25870 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
25871 | } | |
25872 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
25873 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
25874 | } | |
25875 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
25876 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
25877 | } | |
25878 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
25879 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
25880 | } | |
25881 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
25882 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
25883 | } | |
25884 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
25885 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
25886 | } | |
25887 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
25888 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
25889 | } | |
25890 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
25891 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
25892 | } | |
25893 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
25894 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
25895 | } | |
25896 | static void *_p_wxTipWindowTo_p_wxTopLevelWindow(void *x) { | |
25897 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxTipWindow *) x)); | |
25898 | } | |
25899 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
25900 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
25901 | } | |
25902 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
25903 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
25904 | } | |
25905 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
25906 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
25907 | } | |
25908 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
25909 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
25910 | } | |
25911 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
25912 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
25913 | } | |
25914 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
25915 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25916 | } | |
25917 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
25918 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25919 | } | |
25920 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
25921 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
25922 | } | |
25923 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
25924 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
25925 | } | |
25926 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
25927 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
25928 | } | |
25929 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
25930 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25931 | } | |
25932 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
25933 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25934 | } | |
25935 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
25936 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25937 | } | |
25938 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
25939 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
25940 | } | |
25941 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25942 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25943 | } | |
25944 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
25945 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25946 | } | |
25947 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
25948 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25949 | } | |
25950 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
25951 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25952 | } | |
25953 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
25954 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25955 | } | |
25956 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
25957 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25958 | } | |
25959 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
25960 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25961 | } | |
25962 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
25963 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25964 | } | |
25965 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
25966 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
25967 | } | |
25968 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
25969 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
25970 | } | |
25971 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
25972 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
25973 | } | |
25974 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
25975 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25976 | } | |
25977 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
25978 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxTipWindow *) x)); | |
25979 | } | |
25980 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
25981 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25982 | } | |
25983 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
25984 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
25985 | } | |
25986 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
25987 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25988 | } | |
25989 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
25990 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
25991 | } | |
25992 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
25993 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
25994 | } | |
25995 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
25996 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
25997 | } | |
25998 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
25999 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
26000 | } | |
26001 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
26002 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
26003 | } | |
26004 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
26005 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26006 | } | |
26007 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26008 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26009 | } | |
26010 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
26011 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26012 | } | |
26013 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
26014 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26015 | } | |
26016 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
26017 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26018 | } | |
26019 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26020 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26021 | } | |
26022 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
26023 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
26024 | } | |
26025 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
26026 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26027 | } | |
26028 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
26029 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26030 | } | |
26031 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
26032 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26033 | } | |
26034 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
26035 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
26036 | } | |
26037 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
26038 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26039 | } | |
26040 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
26041 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
26042 | } | |
26043 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
26044 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26045 | } | |
26046 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
26047 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26048 | } | |
26049 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
26050 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26051 | } | |
26052 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
26053 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
26054 | } | |
26055 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
26056 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26057 | } | |
26058 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
26059 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26060 | } | |
26061 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
26062 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26063 | } | |
26064 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
26065 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26066 | } | |
26067 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
26068 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26069 | } | |
26070 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
26071 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26072 | } | |
26073 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
26074 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
26075 | } | |
26076 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
26077 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
26078 | } | |
26079 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
26080 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
26081 | } | |
26082 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
26083 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
26084 | } | |
26085 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
26086 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
26087 | } | |
26088 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
26089 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
26090 | } | |
26091 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
26092 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26093 | } | |
26094 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
26095 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26096 | } | |
26097 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
26098 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
26099 | } | |
26100 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
26101 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
26102 | } | |
26103 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
26104 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
26105 | } | |
26106 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
26107 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
26108 | } | |
26109 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
26110 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26111 | } | |
26112 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
26113 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26114 | } | |
26115 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
26116 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26117 | } | |
26118 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
26119 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26120 | } | |
26121 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
26122 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
26123 | } | |
26124 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
26125 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26126 | } | |
26127 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
26128 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
26129 | } | |
26130 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
26131 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26132 | } | |
26133 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
26134 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26135 | } | |
26136 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
26137 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
26138 | } | |
26139 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
26140 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26141 | } | |
26142 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
26143 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26144 | } | |
26145 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
26146 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26147 | } | |
26148 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
26149 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26150 | } | |
26151 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
26152 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26153 | } | |
26154 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
26155 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26156 | } | |
26157 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
26158 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26159 | } | |
26160 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
26161 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26162 | } | |
26163 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
26164 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
26165 | } | |
26166 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
26167 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26168 | } | |
26169 | 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}}; | |
26170 | 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}}; | |
26171 | 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}}; | |
26172 | 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}}; | |
26173 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
26174 | 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}}; |
26175 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
f20a2e1f | 26176 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
26177 | 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}}; |
26178 | 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}}; | |
26179 | 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}}; | |
26180 | 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}}; | |
26181 | 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}}; | |
26182 | 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}}; | |
26183 | 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}}; | |
26184 | 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}}; | |
26185 | 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}}; | |
26186 | 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}}; | |
26187 | 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}}; | |
26188 | 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}}; | |
26189 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
f20a2e1f | 26190 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
26191 | 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}}; |
26192 | 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}}; | |
26193 | 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}}; | |
26194 | 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}}; | |
26195 | 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}}; | |
26196 | 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}}; | |
26197 | 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}}; | |
26198 | 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}}; | |
26199 | 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}}; | |
26200 | 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}}; | |
26201 | 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}}; | |
26202 | 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}}; | |
26203 | 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}}; | |
26204 | 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}}; | |
26205 | 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}}; | |
26206 | 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}}; | |
26207 | 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}}; | |
26208 | 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}}; | |
26209 | 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}}; | |
26210 | 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}}; | |
26211 | 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}}; | |
26212 | 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}}; | |
26213 | 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}}; | |
26214 | 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}}; | |
26215 | 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}}; | |
26216 | 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}}; | |
26217 | 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}}; | |
26218 | 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}}; | |
26219 | 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}}; | |
26220 | 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}}; | |
26221 | 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}}; | |
26222 | 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}}; | |
26223 | 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}}; | |
26224 | 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}}; | |
26225 | 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}}; | |
26226 | 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}}; | |
26227 | 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}}; | |
26228 | 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}}; | |
26229 | 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}}; | |
26230 | 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}}; | |
26231 | 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}}; | |
26232 | 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}}; | |
26233 | 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}}; | |
26234 | 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}}; | |
26235 | 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}}; | |
26236 | 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}}; | |
26237 | 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}}; | |
26238 | 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}}; | |
26239 | 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}}; | |
26240 | 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}}; | |
26241 | 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}}; | |
26242 | 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}}; | |
26243 | 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}}; | |
26244 | 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}}; | |
26245 | 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}}; | |
26246 | static swig_type_info _swigt__p_wxPrintDialog[] = {{"_p_wxPrintDialog", 0, "wxPrintDialog *", 0, 0, 0, 0},{"_p_wxPrintDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d6c14a4c | 26247 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
26248 | 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}}; |
26249 | 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}}; | |
26250 | 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}}; | |
26251 | 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}}; | |
26252 | 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}}; | |
26253 | 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}}; | |
26254 | 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}}; | |
26255 | 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}}; | |
26256 | ||
26257 | static swig_type_info *swig_types_initial[] = { | |
26258 | _swigt__p_wxQueryLayoutInfoEvent, | |
26259 | _swigt__p_wxPreviewFrame, | |
26260 | _swigt__p_wxPyPreviewFrame, | |
26261 | _swigt__p_wxPyPanel, | |
26262 | _swigt__p_wxMenu, | |
d55e5bfc RD |
26263 | _swigt__p_wxFontData, |
26264 | _swigt__p_wxEvent, | |
f20a2e1f | 26265 | _swigt__p_wxPrintData, |
d55e5bfc RD |
26266 | _swigt__p_wxTaskBarIcon, |
26267 | _swigt__p_wxIconBundle, | |
26268 | _swigt__p_wxLayoutAlgorithm, | |
26269 | _swigt__p_wxFindDialogEvent, | |
26270 | _swigt__p_wxPreviewCanvas, | |
26271 | _swigt__p_wxFont, | |
26272 | _swigt__p_wxSplitterEvent, | |
26273 | _swigt__p_wxRegion, | |
26274 | _swigt__p_wxFindReplaceData, | |
26275 | _swigt__p_int, | |
26276 | _swigt__p_wxSize, | |
26277 | _swigt__p_wxDC, | |
26278 | _swigt__p_wxIcon, | |
f20a2e1f | 26279 | _swigt__p_wxVisualAttributes, |
d55e5bfc RD |
26280 | _swigt__p_wxMDIChildFrame, |
26281 | _swigt__p_wxColourData, | |
26282 | _swigt__p_wxNotifyEvent, | |
26283 | _swigt__p_wxPyWindow, | |
26284 | _swigt__p_wxSplashScreen, | |
26285 | _swigt__p_wxFindReplaceDialog, | |
26286 | _swigt__p_wxProgressDialog, | |
26287 | _swigt__p_wxMessageDialog, | |
26288 | _swigt__p_wxTextEntryDialog, | |
26289 | _swigt__p_wxSingleChoiceDialog, | |
26290 | _swigt__p_wxMultiChoiceDialog, | |
26291 | _swigt__p_wxFileDialog, | |
26292 | _swigt__p_wxPrinter, | |
26293 | _swigt__p_wxArrayInt, | |
26294 | _swigt__p_wxEvtHandler, | |
26295 | _swigt__p_wxCalculateLayoutEvent, | |
26296 | _swigt__p_wxPyHtmlListBox, | |
26297 | _swigt__p_wxPyVListBox, | |
26298 | _swigt__p_wxRect, | |
26299 | _swigt__p_char, | |
26300 | _swigt__p_wxMiniFrame, | |
26301 | _swigt__p_wxFrame, | |
26302 | _swigt__p_wxPyPrintout, | |
26303 | _swigt__p_wxTaskBarIconEvent, | |
26304 | _swigt__p_wxScrollWinEvent, | |
26305 | _swigt__p_wxStatusBar, | |
26306 | _swigt__p_wxMDIParentFrame, | |
26307 | _swigt__p_wxPoint, | |
26308 | _swigt__p_wxObject, | |
26309 | _swigt__p_wxOutputStream, | |
26310 | _swigt__p_unsigned_long, | |
26311 | _swigt__p_wxPyScrolledWindow, | |
26312 | _swigt__p_wxMDIClientWindow, | |
26313 | _swigt__p_wxTipWindow, | |
26314 | _swigt__p_wxPyPopupTransientWindow, | |
26315 | _swigt__p_wxSashLayoutWindow, | |
26316 | _swigt__p_wxSplitterWindow, | |
26317 | _swigt__p_wxPyVScrolledWindow, | |
26318 | _swigt__p_wxPopupWindow, | |
26319 | _swigt__p_wxSashWindow, | |
26320 | _swigt__p_wxTopLevelWindow, | |
26321 | _swigt__p_wxWindow, | |
26322 | _swigt__p_wxScrolledWindow, | |
26323 | _swigt__p_wxSplashScreenWindow, | |
26324 | _swigt__p_wxMenuBar, | |
26325 | _swigt__p_wxPrintPreview, | |
26326 | _swigt__p_wxSashEvent, | |
26327 | _swigt__p_wxString, | |
26328 | _swigt__p_wxPyPrintPreview, | |
26329 | _swigt__p_wxFontDialog, | |
26330 | _swigt__p_wxDirDialog, | |
26331 | _swigt__p_wxColourDialog, | |
26332 | _swigt__p_wxDialog, | |
26333 | _swigt__p_wxPanel, | |
26334 | _swigt__p_wxPageSetupDialog, | |
26335 | _swigt__p_wxPrintDialog, | |
d6c14a4c | 26336 | _swigt__p_wxFileSystem, |
d55e5bfc RD |
26337 | _swigt__p_wxBitmap, |
26338 | _swigt__p_wxCommandEvent, | |
26339 | _swigt__p_wxPreviewControlBar, | |
26340 | _swigt__p_wxPyPreviewControlBar, | |
26341 | _swigt__p_wxColour, | |
26342 | _swigt__p_wxToolBar, | |
26343 | _swigt__p_wxPageSetupDialogData, | |
26344 | _swigt__p_wxPrintDialogData, | |
26345 | 0 | |
26346 | }; | |
26347 | ||
26348 | ||
26349 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26350 | ||
26351 | static swig_const_info swig_const_table[] = { | |
26352 | {0}}; | |
26353 | ||
26354 | #ifdef __cplusplus | |
26355 | } | |
26356 | #endif | |
26357 | ||
26358 | #ifdef __cplusplus | |
26359 | extern "C" | |
26360 | #endif | |
26361 | SWIGEXPORT(void) SWIG_init(void) { | |
26362 | static PyObject *SWIG_globals = 0; | |
26363 | static int typeinit = 0; | |
26364 | PyObject *m, *d; | |
26365 | int i; | |
26366 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26367 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26368 | d = PyModule_GetDict(m); | |
26369 | ||
26370 | if (!typeinit) { | |
26371 | for (i = 0; swig_types_initial[i]; i++) { | |
26372 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26373 | } | |
26374 | typeinit = 1; | |
26375 | } | |
26376 | SWIG_InstallConstants(d,swig_const_table); | |
26377 | ||
26378 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26379 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
26380 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
26381 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
26382 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
26383 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
26384 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
26385 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
26386 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
26387 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
26388 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
26389 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
26390 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
26391 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
26392 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
26393 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
26394 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
26395 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
26396 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
26397 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
26398 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
26399 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
26400 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
26401 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
26402 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
26403 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
26404 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
26405 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
26406 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
26407 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
26408 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
26409 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
26410 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
26411 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
26412 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
26413 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
26414 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
26415 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
26416 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
26417 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
26418 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
26419 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
26420 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
26421 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
26422 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
26423 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
26424 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
26425 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
26426 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
26427 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
26428 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
26429 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
26430 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
26431 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
26432 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
26433 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
26434 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
26435 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
26436 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
26437 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
26438 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
26439 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
26440 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
26441 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
26442 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
26443 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
26444 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
26445 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
26446 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
26447 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
26448 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
26449 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
26450 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
26451 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
26452 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
26453 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
26454 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
26455 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
26456 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
26457 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
26458 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
26459 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
26460 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
26461 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
26462 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
26463 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
26464 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
26465 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
26466 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
26467 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
26468 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
26469 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
26470 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
26471 | ||
26472 | // Map renamed classes back to their common name for OOR | |
26473 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
26474 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
26475 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
26476 | ||
26477 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
26478 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
26479 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
26480 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
26481 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
26482 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
26483 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
26484 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26485 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
26486 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
26487 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26488 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
26489 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
26490 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
26491 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
26492 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
26493 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
26494 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
26495 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
26496 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
26497 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
26498 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
26499 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
26500 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
26501 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
26502 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
26503 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
26504 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
26505 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
26506 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
26507 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
26508 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
26509 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
26510 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
26511 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
26512 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
26513 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
26514 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
26515 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
26516 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
26517 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
26518 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
26519 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
26520 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
26521 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
26522 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
26523 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
26524 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
26525 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
26526 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
26527 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
26528 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
26529 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
26530 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
26531 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
26532 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
26533 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
26534 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
26535 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
26536 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
26537 | ||
26538 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
26539 | ||
26540 | } | |
26541 |