]>
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_wxSashLayoutWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxSplitterWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxPopupWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxSashWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxWindow swig_types[64] | |
274 | #define SWIGTYPE_p_wxScrolledWindow 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 wxPyPopupTransientWindow : public wxPopupTransientWindow | |
534 | { | |
535 | public: | |
536 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
537 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
538 | : wxPopupTransientWindow(parent, style) {} | |
539 | ||
540 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
541 | DEC_PYCALLBACK__(OnDismiss); | |
542 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
543 | PYPRIVATE; | |
544 | }; | |
545 | ||
546 | ||
547 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
548 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
549 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
550 | ||
551 | ||
552 | #include <wx/tipwin.h> | |
553 | ||
554 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
555 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
556 | } | |
557 | ||
558 | #include <wx/tipwin.h> | |
559 | ||
560 | ||
561 | #include <wx/vscroll.h> | |
562 | ||
563 | ||
564 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
565 | { | |
566 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
567 | public: | |
568 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
569 | ||
570 | wxPyVScrolledWindow(wxWindow *parent, | |
571 | wxWindowID id = wxID_ANY, | |
572 | const wxPoint& pos = wxDefaultPosition, | |
573 | const wxSize& size = wxDefaultSize, | |
574 | long style = 0, | |
575 | const wxString& name = wxPyPanelNameStr) | |
576 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
577 | {} | |
578 | ||
579 | // Overridable virtuals | |
580 | ||
581 | // this function must be overridden in the derived class and it should | |
582 | // return the height of the given line in pixels | |
583 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
584 | ||
585 | ||
586 | // this function doesn't have to be overridden but it may be useful to do | |
587 | // it if calculating the lines heights is a relatively expensive operation | |
588 | // as it gives the user code a possibility to calculate several of them at | |
589 | // once | |
590 | // | |
591 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
592 | // shouldn't rely on the latter being called for all lines in the interval | |
593 | // specified here. It is also possible that OnGetLineHeight() will be | |
594 | // called for the lines outside of this interval, so this is really just a | |
595 | // hint, not a promise. | |
596 | // | |
597 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
598 | // usual | |
599 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
600 | ||
601 | ||
602 | // when the number of lines changes, we try to estimate the total height | |
603 | // of all lines which is a rather expensive operation in terms of lines | |
604 | // access, so if the user code may estimate the average height | |
605 | // better/faster than we do, it should override this function to implement | |
606 | // its own logic | |
607 | // | |
608 | // this function should return the best guess for the total height it may | |
609 | // make | |
610 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
611 | ||
612 | ||
613 | // Also expose some other interesting protected methods | |
614 | ||
615 | ||
616 | // find the index of the line we need to show at the top of the window such | |
617 | // that the last (fully or partially) visible line is the given one | |
618 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
619 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
620 | ||
621 | // get the total height of the lines between lineMin (inclusive) and | |
622 | // lineMax (exclusive) | |
623 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
624 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
625 | ||
626 | ||
627 | PYPRIVATE; | |
628 | }; | |
629 | ||
630 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
631 | ||
632 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
633 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
634 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
635 | ||
636 | ||
637 | SWIGSTATICINLINE(unsigned long) | |
638 | SWIG_AsUnsignedLong(PyObject * obj) | |
639 | { | |
640 | if (PyLong_Check(obj)) { | |
641 | return PyLong_AsUnsignedLong(obj); | |
642 | } else { | |
643 | long i = SWIG_AsLong(obj); | |
644 | if ( !PyErr_Occurred() && (i < 0)) { | |
645 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
646 | } | |
647 | return i; | |
648 | } | |
649 | } | |
650 | ||
651 | ||
652 | SWIGSTATICINLINE(int) | |
653 | SWIG_CheckUnsignedLong(PyObject* obj) | |
654 | { | |
655 | SWIG_AsUnsignedLong(obj); | |
656 | if (PyErr_Occurred()) { | |
657 | PyErr_Clear(); | |
658 | return 0; | |
659 | } else { | |
660 | return 1; | |
661 | } | |
662 | } | |
663 | ||
664 | ||
665 | SWIGSTATICINLINE(PyObject* ) | |
666 | SWIG_FromUnsignedLong(unsigned long value) | |
667 | { | |
668 | return (value > LONG_MAX) ? | |
669 | PyLong_FromUnsignedLong(value) | |
670 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
671 | } | |
672 | ||
673 | ||
674 | #include <wx/vlbox.h> | |
675 | ||
676 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
677 | ||
678 | class wxPyVListBox : public wxVListBox | |
679 | { | |
680 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
681 | public: | |
682 | wxPyVListBox() : wxVListBox() {} | |
683 | ||
684 | wxPyVListBox(wxWindow *parent, | |
685 | wxWindowID id = wxID_ANY, | |
686 | const wxPoint& pos = wxDefaultPosition, | |
687 | const wxSize& size = wxDefaultSize, | |
688 | long style = 0, | |
689 | const wxString& name = wxPyVListBoxNameStr) | |
690 | : wxVListBox(parent, id, pos, size, style, name) | |
691 | {} | |
692 | ||
693 | // Overridable virtuals | |
694 | ||
695 | // the derived class must implement this function to actually draw the item | |
696 | // with the given index on the provided DC | |
697 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
698 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
699 | ||
700 | ||
701 | // the derived class must implement this method to return the height of the | |
702 | // specified item | |
703 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
704 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
705 | ||
706 | ||
707 | // this method may be used to draw separators between the lines; note that | |
708 | // the rectangle may be modified, typically to deflate it a bit before | |
709 | // passing to OnDrawItem() | |
710 | // | |
711 | // the base class version doesn't do anything | |
712 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
713 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
714 | ||
715 | ||
716 | // this method is used to draw the items background and, maybe, a border | |
717 | // around it | |
718 | // | |
719 | // the base class version implements a reasonable default behaviour which | |
720 | // consists in drawing the selected item with the standard background | |
721 | // colour and drawing a border around the item if it is either selected or | |
722 | // current | |
723 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
724 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
725 | ||
726 | ||
727 | PYPRIVATE; | |
728 | }; | |
729 | ||
730 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
731 | ||
732 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
733 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
734 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
735 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
736 | ||
737 | ||
738 | ||
739 | #include <wx/htmllbox.h> | |
740 | ||
741 | ||
742 | class wxPyHtmlListBox : public wxHtmlListBox | |
743 | { | |
744 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
745 | public: | |
746 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
747 | ||
748 | wxPyHtmlListBox(wxWindow *parent, | |
749 | wxWindowID id = wxID_ANY, | |
750 | const wxPoint& pos = wxDefaultPosition, | |
751 | const wxSize& size = wxDefaultSize, | |
752 | long style = 0, | |
753 | const wxString& name = wxPyVListBoxNameStr) | |
754 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
755 | {} | |
756 | ||
757 | // Overridable virtuals | |
758 | ||
759 | // this method must be implemented in the derived class and should return | |
760 | // the body (i.e. without <html>) of the HTML for the given item | |
761 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
762 | ||
763 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
764 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
765 | ||
766 | // TODO: | |
767 | // // this method allows to customize the selection appearance: it may be used | |
768 | // // to specify the colour of the text which normally has the given colour | |
769 | // // colFg when it is inside the selection | |
770 | // // | |
771 | // // by default, the original colour is not used at all and all text has the | |
772 | // // same (default for this system) colour inside selection | |
773 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
774 | ||
775 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
776 | // // background colour -- this is even more rarely used as you can change it | |
777 | // // globally using SetSelectionBackground() | |
778 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
779 | ||
780 | ||
781 | PYPRIVATE; | |
782 | }; | |
783 | ||
784 | ||
785 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
786 | ||
787 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
788 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
789 | ||
790 | ||
791 | ||
792 | ||
793 | ||
794 | #ifdef __WXMAC__ | |
795 | // implement dummy classes and such for wxMac | |
796 | ||
797 | class wxTaskBarIcon : public wxEvtHandler | |
798 | { | |
799 | public: | |
800 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
801 | }; | |
802 | ||
803 | ||
804 | class wxTaskBarIconEvent : public wxEvent | |
805 | { | |
806 | public: | |
807 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
808 | { wxPyRaiseNotImplemented(); } | |
809 | virtual wxEvent* Clone() const { return NULL; } | |
810 | }; | |
811 | ||
812 | enum { | |
813 | wxEVT_TASKBAR_MOVE = 0, | |
814 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
815 | wxEVT_TASKBAR_LEFT_UP = 0, | |
816 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
817 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
818 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
819 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
820 | }; | |
821 | #endif | |
822 | ||
823 | void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ | |
824 | ||
825 | self->RemoveIcon(); | |
826 | ||
827 | } | |
828 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
829 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
830 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
831 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
832 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
833 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
834 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
835 | wxArrayString arr; | |
836 | self->GetFilenames(arr); | |
837 | return wxArrayString2PyList_helper(arr); | |
838 | } | |
839 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
840 | wxArrayString arr; | |
841 | self->GetPaths(arr); | |
842 | return wxArrayString2PyList_helper(arr); | |
843 | } | |
844 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
845 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
846 | } | |
847 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
848 | return new wxSingleChoiceDialog(parent, message, caption, | |
849 | choices, choices_array, NULL, style, pos); | |
850 | } | |
851 | ||
852 | #include <wx/mdi.h> | |
853 | ||
854 | // C++ version of Python aware wxWindow | |
855 | class wxPyWindow : public wxWindow | |
856 | { | |
857 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
858 | public: | |
859 | wxPyWindow() : wxWindow() {} | |
860 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
861 | const wxPoint& pos = wxDefaultPosition, | |
862 | const wxSize& size = wxDefaultSize, | |
863 | long style = 0, | |
864 | const wxString& name = wxPyPanelNameStr) | |
865 | : wxWindow(parent, id, pos, size, style, name) {} | |
866 | ||
867 | ||
868 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
869 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
870 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
871 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
872 | ||
873 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
874 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
875 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
876 | ||
877 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
878 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
879 | ||
880 | DEC_PYCALLBACK__(InitDialog); | |
881 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
882 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
883 | DEC_PYCALLBACK_BOOL_(Validate); | |
884 | ||
885 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
886 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
887 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
888 | ||
889 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
890 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
891 | ||
892 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
893 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
894 | ||
895 | PYPRIVATE; | |
896 | }; | |
897 | ||
898 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
899 | ||
900 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
901 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
902 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
903 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
904 | ||
905 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
906 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
907 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
908 | ||
909 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
910 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
911 | ||
912 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
913 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
914 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
915 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
916 | ||
917 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
918 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
919 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
920 | ||
921 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
922 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
923 | ||
924 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, ShouldInheritColours); | |
925 | IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); | |
926 | ||
927 | ||
928 | // C++ version of Python aware wxPanel | |
929 | class wxPyPanel : public wxPanel | |
930 | { | |
931 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
932 | public: | |
933 | wxPyPanel() : wxPanel() {} | |
934 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
935 | const wxPoint& pos = wxDefaultPosition, | |
936 | const wxSize& size = wxDefaultSize, | |
937 | long style = 0, | |
938 | const wxString& name = wxPyPanelNameStr) | |
939 | : wxPanel(parent, id, pos, size, style, name) {} | |
940 | ||
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 | ||
966 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
967 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
968 | ||
969 | PYPRIVATE; | |
970 | }; | |
971 | ||
972 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
973 | ||
974 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
975 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
976 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
977 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
978 | ||
979 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
980 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
981 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
982 | ||
983 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
984 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
985 | ||
986 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
987 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
988 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
989 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
990 | ||
991 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
992 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
993 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
994 | ||
995 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
996 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
997 | ||
998 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, ShouldInheritColours); | |
999 | IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); | |
1000 | ||
1001 | // C++ version of Python aware wxScrolledWindow | |
1002 | class wxPyScrolledWindow : public wxScrolledWindow | |
1003 | { | |
1004 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
1005 | public: | |
1006 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
1007 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
1008 | const wxPoint& pos = wxDefaultPosition, | |
1009 | const wxSize& size = wxDefaultSize, | |
1010 | long style = 0, | |
1011 | const wxString& name = wxPyPanelNameStr) | |
1012 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
1013 | ||
1014 | ||
1015 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1016 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1017 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1018 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1019 | ||
1020 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1021 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1022 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1023 | ||
1024 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1025 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1026 | ||
1027 | DEC_PYCALLBACK__(InitDialog); | |
1028 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1029 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1030 | DEC_PYCALLBACK_BOOL_(Validate); | |
1031 | ||
1032 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1033 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1034 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1035 | ||
1036 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1037 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1038 | ||
1039 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
1040 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
1041 | ||
1042 | PYPRIVATE; | |
1043 | }; | |
1044 | ||
1045 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
1046 | ||
1047 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
1048 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
1049 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
1050 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
1051 | ||
1052 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
1053 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
1054 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
1055 | ||
1056 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
1057 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
1058 | ||
1059 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
1060 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
1061 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
1062 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
1063 | ||
1064 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
1065 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
1066 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
1067 | ||
1068 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
1069 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
1070 | ||
1071 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); | |
1072 | IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); | |
1073 | ||
1074 | ||
1075 | #include "wx/wxPython/printfw.h" | |
1076 | ||
1077 | ||
1078 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
1079 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1080 | ||
1081 | ||
1082 | ||
1083 | // Since this one would be tough and ugly to do with the Macros... | |
1084 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1085 | bool hadErr = False; | |
1086 | bool found; | |
1087 | ||
1088 | bool blocked = wxPyBeginBlockThreads(); | |
1089 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1090 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1091 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1092 | PyObject* val; | |
1093 | ||
1094 | val = PyTuple_GetItem(result, 0); | |
1095 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1096 | else hadErr = True; | |
1097 | ||
1098 | val = PyTuple_GetItem(result, 1); | |
1099 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1100 | else hadErr = True; | |
1101 | ||
1102 | val = PyTuple_GetItem(result, 2); | |
1103 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1104 | else hadErr = True; | |
1105 | ||
1106 | val = PyTuple_GetItem(result, 3); | |
1107 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1108 | else hadErr = True; | |
1109 | } | |
1110 | else | |
1111 | hadErr = True; | |
1112 | ||
1113 | if (hadErr) { | |
1114 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1115 | PyErr_Print(); | |
1116 | } | |
1117 | Py_DECREF(result); | |
1118 | } | |
1119 | wxPyEndBlockThreads(blocked); | |
1120 | if (! found) | |
1121 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1122 | } | |
1123 | ||
1124 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1125 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1126 | } | |
1127 | ||
1128 | ||
1129 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1130 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1131 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1132 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1133 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1134 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1135 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1136 | ||
1137 | ||
1138 | ||
1139 | ||
1140 | ||
1141 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1142 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1143 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1144 | ||
1145 | ||
1146 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1147 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1148 | bool rval=False; \ | |
1149 | bool found; \ | |
1150 | bool blocked = wxPyBeginBlockThreads(); \ | |
1151 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
1152 | PyObject* win = wxPyMake_wxObject(a); \ | |
1153 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
1154 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
1155 | Py_DECREF(win); \ | |
1156 | Py_DECREF(dc); \ | |
1157 | } \ | |
1158 | wxPyEndBlockThreads(blocked); \ | |
1159 | if (! found) \ | |
1160 | rval = PCLASS::CBNAME(a, b); \ | |
1161 | return rval; \ | |
1162 | } \ | |
1163 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1164 | return PCLASS::CBNAME(a, b); \ | |
1165 | } | |
1166 | ||
1167 | ||
1168 | ||
1169 | ||
1170 | class wxPyPrintPreview : public wxPrintPreview | |
1171 | { | |
1172 | DECLARE_CLASS(wxPyPrintPreview) | |
1173 | public: | |
1174 | wxPyPrintPreview(wxPyPrintout* printout, | |
1175 | wxPyPrintout* printoutForPrinting, | |
1176 | wxPrintDialogData* data=NULL) | |
1177 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1178 | {} | |
1179 | wxPyPrintPreview(wxPyPrintout* printout, | |
1180 | wxPyPrintout* printoutForPrinting, | |
1181 | wxPrintData* data=NULL) | |
1182 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1183 | {} | |
1184 | ||
1185 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1186 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1187 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1188 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1189 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1190 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1191 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1192 | ||
1193 | PYPRIVATE; | |
1194 | }; | |
1195 | ||
1196 | // Stupid renamed classes... Fix this in 2.5... | |
1197 | #if defined(__WXMSW__) | |
1198 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1199 | #elif defined(__WXMAC__) | |
1200 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1201 | #else | |
1202 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1203 | #endif | |
1204 | ||
1205 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1206 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1207 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1208 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1209 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1210 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1211 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1212 | ||
1213 | ||
1214 | class wxPyPreviewFrame : public wxPreviewFrame | |
1215 | { | |
1216 | DECLARE_CLASS(wxPyPreviewFrame); | |
1217 | public: | |
1218 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1219 | const wxString& title, | |
1220 | const wxPoint& pos = wxDefaultPosition, | |
1221 | const wxSize& size = wxDefaultSize, | |
1222 | long style = wxDEFAULT_FRAME_STYLE, | |
1223 | const wxString& name = wxPyFrameNameStr) | |
1224 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1225 | {} | |
1226 | ||
1227 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1228 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1229 | ||
1230 | DEC_PYCALLBACK_VOID_(Initialize); | |
1231 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1232 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1233 | ||
1234 | PYPRIVATE; | |
1235 | }; | |
1236 | ||
1237 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1238 | ||
1239 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1240 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1241 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1242 | ||
1243 | ||
1244 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1245 | { | |
1246 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1247 | public: | |
1248 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1249 | long buttons, | |
1250 | wxWindow *parent, | |
1251 | const wxPoint& pos = wxDefaultPosition, | |
1252 | const wxSize& size = wxDefaultSize, | |
1253 | long style = 0, | |
1254 | const wxString& name = wxPyPanelNameStr) | |
1255 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1256 | {} | |
1257 | ||
1258 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1259 | ||
1260 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1261 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1262 | ||
1263 | PYPRIVATE; | |
1264 | }; | |
1265 | ||
1266 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1267 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1268 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1269 | ||
1270 | #ifdef __cplusplus | |
1271 | extern "C" { | |
1272 | #endif | |
1273 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1274 | PyObject *resultobj; | |
1275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1276 | int arg2 = (int) (int)-1 ; | |
1277 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1278 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1279 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1280 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1281 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1282 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1283 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1284 | wxPanel *result; | |
1285 | wxPoint temp3 ; | |
1286 | wxSize temp4 ; | |
1287 | bool temp6 = False ; | |
1288 | PyObject * obj0 = 0 ; | |
1289 | PyObject * obj1 = 0 ; | |
1290 | PyObject * obj2 = 0 ; | |
1291 | PyObject * obj3 = 0 ; | |
1292 | PyObject * obj4 = 0 ; | |
1293 | PyObject * obj5 = 0 ; | |
1294 | char *kwnames[] = { | |
1295 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1296 | }; | |
1297 | ||
1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1301 | if (obj1) { | |
1302 | arg2 = (int const) SWIG_AsInt(obj1); | |
1303 | if (PyErr_Occurred()) SWIG_fail; | |
1304 | } | |
1305 | if (obj2) { | |
1306 | { | |
1307 | arg3 = &temp3; | |
1308 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1309 | } | |
1310 | } | |
1311 | if (obj3) { | |
1312 | { | |
1313 | arg4 = &temp4; | |
1314 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1315 | } | |
1316 | } | |
1317 | if (obj4) { | |
1318 | arg5 = (long) SWIG_AsLong(obj4); | |
1319 | if (PyErr_Occurred()) SWIG_fail; | |
1320 | } | |
1321 | if (obj5) { | |
1322 | { | |
1323 | arg6 = wxString_in_helper(obj5); | |
1324 | if (arg6 == NULL) SWIG_fail; | |
1325 | temp6 = True; | |
1326 | } | |
1327 | } | |
1328 | { | |
1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1330 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1331 | ||
1332 | wxPyEndAllowThreads(__tstate); | |
1333 | if (PyErr_Occurred()) SWIG_fail; | |
1334 | } | |
1335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); | |
1336 | { | |
1337 | if (temp6) | |
1338 | delete arg6; | |
1339 | } | |
1340 | return resultobj; | |
1341 | fail: | |
1342 | { | |
1343 | if (temp6) | |
1344 | delete arg6; | |
1345 | } | |
1346 | return NULL; | |
1347 | } | |
1348 | ||
1349 | ||
1350 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1351 | PyObject *resultobj; | |
1352 | wxPanel *result; | |
1353 | char *kwnames[] = { | |
1354 | NULL | |
1355 | }; | |
1356 | ||
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1358 | { | |
1359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1360 | result = (wxPanel *)new wxPanel(); | |
1361 | ||
1362 | wxPyEndAllowThreads(__tstate); | |
1363 | if (PyErr_Occurred()) SWIG_fail; | |
1364 | } | |
1365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); | |
1366 | return resultobj; | |
1367 | fail: | |
1368 | return NULL; | |
1369 | } | |
1370 | ||
1371 | ||
1372 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1373 | PyObject *resultobj; | |
1374 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1375 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1376 | int arg3 = (int) (int)-1 ; | |
1377 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1378 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1379 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1380 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1381 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1382 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1383 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1384 | bool result; | |
1385 | wxPoint temp4 ; | |
1386 | wxSize temp5 ; | |
1387 | bool temp7 = False ; | |
1388 | PyObject * obj0 = 0 ; | |
1389 | PyObject * obj1 = 0 ; | |
1390 | PyObject * obj2 = 0 ; | |
1391 | PyObject * obj3 = 0 ; | |
1392 | PyObject * obj4 = 0 ; | |
1393 | PyObject * obj5 = 0 ; | |
1394 | PyObject * obj6 = 0 ; | |
1395 | char *kwnames[] = { | |
1396 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1397 | }; | |
1398 | ||
1399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1404 | if (obj2) { | |
1405 | arg3 = (int const) SWIG_AsInt(obj2); | |
1406 | if (PyErr_Occurred()) SWIG_fail; | |
1407 | } | |
1408 | if (obj3) { | |
1409 | { | |
1410 | arg4 = &temp4; | |
1411 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1412 | } | |
1413 | } | |
1414 | if (obj4) { | |
1415 | { | |
1416 | arg5 = &temp5; | |
1417 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1418 | } | |
1419 | } | |
1420 | if (obj5) { | |
1421 | arg6 = (long) SWIG_AsLong(obj5); | |
1422 | if (PyErr_Occurred()) SWIG_fail; | |
1423 | } | |
1424 | if (obj6) { | |
1425 | { | |
1426 | arg7 = wxString_in_helper(obj6); | |
1427 | if (arg7 == NULL) SWIG_fail; | |
1428 | temp7 = True; | |
1429 | } | |
1430 | } | |
1431 | { | |
1432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1433 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1434 | ||
1435 | wxPyEndAllowThreads(__tstate); | |
1436 | if (PyErr_Occurred()) SWIG_fail; | |
1437 | } | |
1438 | { | |
1439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1440 | } | |
1441 | { | |
1442 | if (temp7) | |
1443 | delete arg7; | |
1444 | } | |
1445 | return resultobj; | |
1446 | fail: | |
1447 | { | |
1448 | if (temp7) | |
1449 | delete arg7; | |
1450 | } | |
1451 | return NULL; | |
1452 | } | |
1453 | ||
1454 | ||
1455 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1456 | PyObject *resultobj; | |
1457 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1458 | PyObject * obj0 = 0 ; | |
1459 | char *kwnames[] = { | |
1460 | (char *) "self", NULL | |
1461 | }; | |
1462 | ||
1463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1466 | { | |
1467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1468 | (arg1)->InitDialog(); | |
1469 | ||
1470 | wxPyEndAllowThreads(__tstate); | |
1471 | if (PyErr_Occurred()) SWIG_fail; | |
1472 | } | |
1473 | Py_INCREF(Py_None); resultobj = Py_None; | |
1474 | return resultobj; | |
1475 | fail: | |
1476 | return NULL; | |
1477 | } | |
1478 | ||
1479 | ||
f20a2e1f RD |
1480 | static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1481 | PyObject *resultobj; | |
1482 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1483 | wxVisualAttributes result; | |
1484 | PyObject * obj0 = 0 ; | |
1485 | char *kwnames[] = { | |
1486 | (char *) "variant", NULL | |
1487 | }; | |
1488 | ||
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1490 | if (obj0) { | |
1491 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1492 | if (PyErr_Occurred()) SWIG_fail; | |
1493 | } | |
1494 | { | |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1496 | result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1497 | ||
1498 | wxPyEndAllowThreads(__tstate); | |
1499 | if (PyErr_Occurred()) SWIG_fail; | |
1500 | } | |
1501 | { | |
1502 | wxVisualAttributes * resultptr; | |
1503 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1504 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1505 | } | |
1506 | return resultobj; | |
1507 | fail: | |
1508 | return NULL; | |
1509 | } | |
1510 | ||
1511 | ||
d55e5bfc RD |
1512 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { |
1513 | PyObject *obj; | |
1514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1515 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1516 | Py_INCREF(obj); | |
1517 | return Py_BuildValue((char *)""); | |
1518 | } | |
1519 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1520 | PyObject *resultobj; | |
1521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1522 | int arg2 = (int) (int)-1 ; | |
1523 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1524 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1525 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1526 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1527 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1528 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1529 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1530 | wxScrolledWindow *result; | |
1531 | wxPoint temp3 ; | |
1532 | wxSize temp4 ; | |
1533 | bool temp6 = False ; | |
1534 | PyObject * obj0 = 0 ; | |
1535 | PyObject * obj1 = 0 ; | |
1536 | PyObject * obj2 = 0 ; | |
1537 | PyObject * obj3 = 0 ; | |
1538 | PyObject * obj4 = 0 ; | |
1539 | PyObject * obj5 = 0 ; | |
1540 | char *kwnames[] = { | |
1541 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1542 | }; | |
1543 | ||
1544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1547 | if (obj1) { | |
1548 | arg2 = (int const) SWIG_AsInt(obj1); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
1551 | if (obj2) { | |
1552 | { | |
1553 | arg3 = &temp3; | |
1554 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1555 | } | |
1556 | } | |
1557 | if (obj3) { | |
1558 | { | |
1559 | arg4 = &temp4; | |
1560 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1561 | } | |
1562 | } | |
1563 | if (obj4) { | |
1564 | arg5 = (long) SWIG_AsLong(obj4); | |
1565 | if (PyErr_Occurred()) SWIG_fail; | |
1566 | } | |
1567 | if (obj5) { | |
1568 | { | |
1569 | arg6 = wxString_in_helper(obj5); | |
1570 | if (arg6 == NULL) SWIG_fail; | |
1571 | temp6 = True; | |
1572 | } | |
1573 | } | |
1574 | { | |
1575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1576 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1577 | ||
1578 | wxPyEndAllowThreads(__tstate); | |
1579 | if (PyErr_Occurred()) SWIG_fail; | |
1580 | } | |
1581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1582 | { | |
1583 | if (temp6) | |
1584 | delete arg6; | |
1585 | } | |
1586 | return resultobj; | |
1587 | fail: | |
1588 | { | |
1589 | if (temp6) | |
1590 | delete arg6; | |
1591 | } | |
1592 | return NULL; | |
1593 | } | |
1594 | ||
1595 | ||
1596 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject *resultobj; | |
1598 | wxScrolledWindow *result; | |
1599 | char *kwnames[] = { | |
1600 | NULL | |
1601 | }; | |
1602 | ||
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1604 | { | |
1605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1606 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1607 | ||
1608 | wxPyEndAllowThreads(__tstate); | |
1609 | if (PyErr_Occurred()) SWIG_fail; | |
1610 | } | |
1611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); | |
1612 | return resultobj; | |
1613 | fail: | |
1614 | return NULL; | |
1615 | } | |
1616 | ||
1617 | ||
1618 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1619 | PyObject *resultobj; | |
1620 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1621 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1622 | int arg3 = (int) (int)-1 ; | |
1623 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1624 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1625 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1626 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1627 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1628 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1629 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1630 | bool result; | |
1631 | wxPoint temp4 ; | |
1632 | wxSize temp5 ; | |
1633 | bool temp7 = False ; | |
1634 | PyObject * obj0 = 0 ; | |
1635 | PyObject * obj1 = 0 ; | |
1636 | PyObject * obj2 = 0 ; | |
1637 | PyObject * obj3 = 0 ; | |
1638 | PyObject * obj4 = 0 ; | |
1639 | PyObject * obj5 = 0 ; | |
1640 | PyObject * obj6 = 0 ; | |
1641 | char *kwnames[] = { | |
1642 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1643 | }; | |
1644 | ||
1645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1650 | if (obj2) { | |
1651 | arg3 = (int const) SWIG_AsInt(obj2); | |
1652 | if (PyErr_Occurred()) SWIG_fail; | |
1653 | } | |
1654 | if (obj3) { | |
1655 | { | |
1656 | arg4 = &temp4; | |
1657 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1658 | } | |
1659 | } | |
1660 | if (obj4) { | |
1661 | { | |
1662 | arg5 = &temp5; | |
1663 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1664 | } | |
1665 | } | |
1666 | if (obj5) { | |
1667 | arg6 = (long) SWIG_AsLong(obj5); | |
1668 | if (PyErr_Occurred()) SWIG_fail; | |
1669 | } | |
1670 | if (obj6) { | |
1671 | { | |
1672 | arg7 = wxString_in_helper(obj6); | |
1673 | if (arg7 == NULL) SWIG_fail; | |
1674 | temp7 = True; | |
1675 | } | |
1676 | } | |
1677 | { | |
1678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1679 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1680 | ||
1681 | wxPyEndAllowThreads(__tstate); | |
1682 | if (PyErr_Occurred()) SWIG_fail; | |
1683 | } | |
1684 | { | |
1685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1686 | } | |
1687 | { | |
1688 | if (temp7) | |
1689 | delete arg7; | |
1690 | } | |
1691 | return resultobj; | |
1692 | fail: | |
1693 | { | |
1694 | if (temp7) | |
1695 | delete arg7; | |
1696 | } | |
1697 | return NULL; | |
1698 | } | |
1699 | ||
1700 | ||
1701 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject *resultobj; | |
1703 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1704 | int arg2 ; | |
1705 | int arg3 ; | |
1706 | int arg4 ; | |
1707 | int arg5 ; | |
1708 | int arg6 = (int) 0 ; | |
1709 | int arg7 = (int) 0 ; | |
1710 | bool arg8 = (bool) False ; | |
1711 | PyObject * obj0 = 0 ; | |
1712 | PyObject * obj1 = 0 ; | |
1713 | PyObject * obj2 = 0 ; | |
1714 | PyObject * obj3 = 0 ; | |
1715 | PyObject * obj4 = 0 ; | |
1716 | PyObject * obj5 = 0 ; | |
1717 | PyObject * obj6 = 0 ; | |
1718 | PyObject * obj7 = 0 ; | |
1719 | char *kwnames[] = { | |
1720 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1721 | }; | |
1722 | ||
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1726 | arg2 = (int) SWIG_AsInt(obj1); | |
1727 | if (PyErr_Occurred()) SWIG_fail; | |
1728 | arg3 = (int) SWIG_AsInt(obj2); | |
1729 | if (PyErr_Occurred()) SWIG_fail; | |
1730 | arg4 = (int) SWIG_AsInt(obj3); | |
1731 | if (PyErr_Occurred()) SWIG_fail; | |
1732 | arg5 = (int) SWIG_AsInt(obj4); | |
1733 | if (PyErr_Occurred()) SWIG_fail; | |
1734 | if (obj5) { | |
1735 | arg6 = (int) SWIG_AsInt(obj5); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
1738 | if (obj6) { | |
1739 | arg7 = (int) SWIG_AsInt(obj6); | |
1740 | if (PyErr_Occurred()) SWIG_fail; | |
1741 | } | |
1742 | if (obj7) { | |
1743 | arg8 = (bool) SWIG_AsBool(obj7); | |
1744 | if (PyErr_Occurred()) SWIG_fail; | |
1745 | } | |
1746 | { | |
1747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1748 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1749 | ||
1750 | wxPyEndAllowThreads(__tstate); | |
1751 | if (PyErr_Occurred()) SWIG_fail; | |
1752 | } | |
1753 | Py_INCREF(Py_None); resultobj = Py_None; | |
1754 | return resultobj; | |
1755 | fail: | |
1756 | return NULL; | |
1757 | } | |
1758 | ||
1759 | ||
1760 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1761 | PyObject *resultobj; | |
1762 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1763 | int arg2 ; | |
1764 | int arg3 ; | |
1765 | PyObject * obj0 = 0 ; | |
1766 | PyObject * obj1 = 0 ; | |
1767 | PyObject * obj2 = 0 ; | |
1768 | char *kwnames[] = { | |
1769 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1770 | }; | |
1771 | ||
1772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1775 | arg2 = (int) SWIG_AsInt(obj1); | |
1776 | if (PyErr_Occurred()) SWIG_fail; | |
1777 | arg3 = (int) SWIG_AsInt(obj2); | |
1778 | if (PyErr_Occurred()) SWIG_fail; | |
1779 | { | |
1780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1781 | (arg1)->Scroll(arg2,arg3); | |
1782 | ||
1783 | wxPyEndAllowThreads(__tstate); | |
1784 | if (PyErr_Occurred()) SWIG_fail; | |
1785 | } | |
1786 | Py_INCREF(Py_None); resultobj = Py_None; | |
1787 | return resultobj; | |
1788 | fail: | |
1789 | return NULL; | |
1790 | } | |
1791 | ||
1792 | ||
1793 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject *resultobj; | |
1795 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1796 | int arg2 ; | |
1797 | int result; | |
1798 | PyObject * obj0 = 0 ; | |
1799 | PyObject * obj1 = 0 ; | |
1800 | char *kwnames[] = { | |
1801 | (char *) "self",(char *) "orient", NULL | |
1802 | }; | |
1803 | ||
1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1807 | arg2 = (int) SWIG_AsInt(obj1); | |
1808 | if (PyErr_Occurred()) SWIG_fail; | |
1809 | { | |
1810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1811 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1812 | ||
1813 | wxPyEndAllowThreads(__tstate); | |
1814 | if (PyErr_Occurred()) SWIG_fail; | |
1815 | } | |
1816 | resultobj = SWIG_FromInt((int)result); | |
1817 | return resultobj; | |
1818 | fail: | |
1819 | return NULL; | |
1820 | } | |
1821 | ||
1822 | ||
1823 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1824 | PyObject *resultobj; | |
1825 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1826 | int arg2 ; | |
1827 | int arg3 ; | |
1828 | PyObject * obj0 = 0 ; | |
1829 | PyObject * obj1 = 0 ; | |
1830 | PyObject * obj2 = 0 ; | |
1831 | char *kwnames[] = { | |
1832 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1833 | }; | |
1834 | ||
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1838 | arg2 = (int) SWIG_AsInt(obj1); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | arg3 = (int) SWIG_AsInt(obj2); | |
1841 | if (PyErr_Occurred()) SWIG_fail; | |
1842 | { | |
1843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1844 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1845 | ||
1846 | wxPyEndAllowThreads(__tstate); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | } | |
1849 | Py_INCREF(Py_None); resultobj = Py_None; | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
1856 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1857 | PyObject *resultobj; | |
1858 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1859 | int arg2 ; | |
1860 | int arg3 ; | |
1861 | PyObject * obj0 = 0 ; | |
1862 | PyObject * obj1 = 0 ; | |
1863 | PyObject * obj2 = 0 ; | |
1864 | char *kwnames[] = { | |
1865 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1866 | }; | |
1867 | ||
1868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1871 | arg2 = (int) SWIG_AsInt(obj1); | |
1872 | if (PyErr_Occurred()) SWIG_fail; | |
1873 | arg3 = (int) SWIG_AsInt(obj2); | |
1874 | if (PyErr_Occurred()) SWIG_fail; | |
1875 | { | |
1876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1877 | (arg1)->SetScrollRate(arg2,arg3); | |
1878 | ||
1879 | wxPyEndAllowThreads(__tstate); | |
1880 | if (PyErr_Occurred()) SWIG_fail; | |
1881 | } | |
1882 | Py_INCREF(Py_None); resultobj = Py_None; | |
1883 | return resultobj; | |
1884 | fail: | |
1885 | return NULL; | |
1886 | } | |
1887 | ||
1888 | ||
1889 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1890 | PyObject *resultobj; | |
1891 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1892 | int *arg2 = (int *) 0 ; | |
1893 | int *arg3 = (int *) 0 ; | |
1894 | int temp2 ; | |
1895 | int temp3 ; | |
1896 | PyObject * obj0 = 0 ; | |
1897 | char *kwnames[] = { | |
1898 | (char *) "self", NULL | |
1899 | }; | |
1900 | ||
1901 | arg2 = &temp2; | |
1902 | arg3 = &temp3; | |
1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1906 | { | |
1907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1908 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1909 | ||
1910 | wxPyEndAllowThreads(__tstate); | |
1911 | if (PyErr_Occurred()) SWIG_fail; | |
1912 | } | |
1913 | Py_INCREF(Py_None); resultobj = Py_None; | |
1914 | { | |
1915 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1916 | resultobj = t_output_helper(resultobj,o); | |
1917 | } | |
1918 | { | |
1919 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1920 | resultobj = t_output_helper(resultobj,o); | |
1921 | } | |
1922 | return resultobj; | |
1923 | fail: | |
1924 | return NULL; | |
1925 | } | |
1926 | ||
1927 | ||
1928 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1929 | PyObject *resultobj; | |
1930 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1931 | bool arg2 ; | |
1932 | bool arg3 ; | |
1933 | PyObject * obj0 = 0 ; | |
1934 | PyObject * obj1 = 0 ; | |
1935 | PyObject * obj2 = 0 ; | |
1936 | char *kwnames[] = { | |
1937 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1938 | }; | |
1939 | ||
1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1943 | arg2 = (bool) SWIG_AsBool(obj1); | |
1944 | if (PyErr_Occurred()) SWIG_fail; | |
1945 | arg3 = (bool) SWIG_AsBool(obj2); | |
1946 | if (PyErr_Occurred()) SWIG_fail; | |
1947 | { | |
1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1949 | (arg1)->EnableScrolling(arg2,arg3); | |
1950 | ||
1951 | wxPyEndAllowThreads(__tstate); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | } | |
1954 | Py_INCREF(Py_None); resultobj = Py_None; | |
1955 | return resultobj; | |
1956 | fail: | |
1957 | return NULL; | |
1958 | } | |
1959 | ||
1960 | ||
1961 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1962 | PyObject *resultobj; | |
1963 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1964 | int *arg2 = (int *) 0 ; | |
1965 | int *arg3 = (int *) 0 ; | |
1966 | int temp2 ; | |
1967 | int temp3 ; | |
1968 | PyObject * obj0 = 0 ; | |
1969 | char *kwnames[] = { | |
1970 | (char *) "self", NULL | |
1971 | }; | |
1972 | ||
1973 | arg2 = &temp2; | |
1974 | arg3 = &temp3; | |
1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | Py_INCREF(Py_None); resultobj = Py_None; | |
1986 | { | |
1987 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1988 | resultobj = t_output_helper(resultobj,o); | |
1989 | } | |
1990 | { | |
1991 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1992 | resultobj = t_output_helper(resultobj,o); | |
1993 | } | |
1994 | return resultobj; | |
1995 | fail: | |
1996 | return NULL; | |
1997 | } | |
1998 | ||
1999 | ||
2000 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2001 | PyObject *resultobj; | |
2002 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2003 | double arg2 ; | |
2004 | double arg3 ; | |
2005 | PyObject * obj0 = 0 ; | |
2006 | PyObject * obj1 = 0 ; | |
2007 | PyObject * obj2 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
2010 | }; | |
2011 | ||
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2015 | arg2 = (double) SWIG_AsDouble(obj1); | |
2016 | if (PyErr_Occurred()) SWIG_fail; | |
2017 | arg3 = (double) SWIG_AsDouble(obj2); | |
2018 | if (PyErr_Occurred()) SWIG_fail; | |
2019 | { | |
2020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2021 | (arg1)->SetScale(arg2,arg3); | |
2022 | ||
2023 | wxPyEndAllowThreads(__tstate); | |
2024 | if (PyErr_Occurred()) SWIG_fail; | |
2025 | } | |
2026 | Py_INCREF(Py_None); resultobj = Py_None; | |
2027 | return resultobj; | |
2028 | fail: | |
2029 | return NULL; | |
2030 | } | |
2031 | ||
2032 | ||
2033 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2034 | PyObject *resultobj; | |
2035 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2036 | double result; | |
2037 | PyObject * obj0 = 0 ; | |
2038 | char *kwnames[] = { | |
2039 | (char *) "self", NULL | |
2040 | }; | |
2041 | ||
2042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
2043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2045 | { | |
2046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2047 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
2048 | ||
2049 | wxPyEndAllowThreads(__tstate); | |
2050 | if (PyErr_Occurred()) SWIG_fail; | |
2051 | } | |
2052 | resultobj = SWIG_FromDouble((double)result); | |
2053 | return resultobj; | |
2054 | fail: | |
2055 | return NULL; | |
2056 | } | |
2057 | ||
2058 | ||
2059 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2060 | PyObject *resultobj; | |
2061 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2062 | double result; | |
2063 | PyObject * obj0 = 0 ; | |
2064 | char *kwnames[] = { | |
2065 | (char *) "self", NULL | |
2066 | }; | |
2067 | ||
2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
2069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2071 | { | |
2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2073 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
2074 | ||
2075 | wxPyEndAllowThreads(__tstate); | |
2076 | if (PyErr_Occurred()) SWIG_fail; | |
2077 | } | |
2078 | resultobj = SWIG_FromDouble((double)result); | |
2079 | return resultobj; | |
2080 | fail: | |
2081 | return NULL; | |
2082 | } | |
2083 | ||
2084 | ||
2085 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2086 | PyObject *resultobj; | |
2087 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2088 | wxPoint *arg2 = 0 ; | |
2089 | wxPoint result; | |
2090 | wxPoint temp2 ; | |
2091 | PyObject * obj0 = 0 ; | |
2092 | PyObject * obj1 = 0 ; | |
2093 | ||
2094 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
2095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2097 | { | |
2098 | arg2 = &temp2; | |
2099 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2100 | } | |
2101 | { | |
2102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2103 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
2104 | ||
2105 | wxPyEndAllowThreads(__tstate); | |
2106 | if (PyErr_Occurred()) SWIG_fail; | |
2107 | } | |
2108 | { | |
2109 | wxPoint * resultptr; | |
2110 | resultptr = new wxPoint((wxPoint &) result); | |
2111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2112 | } | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2119 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2120 | PyObject *resultobj; | |
2121 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2122 | int arg2 ; | |
2123 | int arg3 ; | |
2124 | int *arg4 = (int *) 0 ; | |
2125 | int *arg5 = (int *) 0 ; | |
2126 | int temp4 ; | |
2127 | int temp5 ; | |
2128 | PyObject * obj0 = 0 ; | |
2129 | PyObject * obj1 = 0 ; | |
2130 | PyObject * obj2 = 0 ; | |
2131 | ||
2132 | arg4 = &temp4; | |
2133 | arg5 = &temp5; | |
2134 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2137 | arg2 = (int) SWIG_AsInt(obj1); | |
2138 | if (PyErr_Occurred()) SWIG_fail; | |
2139 | arg3 = (int) SWIG_AsInt(obj2); | |
2140 | if (PyErr_Occurred()) SWIG_fail; | |
2141 | { | |
2142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2143 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2144 | ||
2145 | wxPyEndAllowThreads(__tstate); | |
2146 | if (PyErr_Occurred()) SWIG_fail; | |
2147 | } | |
2148 | Py_INCREF(Py_None); resultobj = Py_None; | |
2149 | { | |
2150 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2151 | resultobj = t_output_helper(resultobj,o); | |
2152 | } | |
2153 | { | |
2154 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2155 | resultobj = t_output_helper(resultobj,o); | |
2156 | } | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
2163 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2164 | int argc; | |
2165 | PyObject *argv[4]; | |
2166 | int ii; | |
2167 | ||
2168 | argc = PyObject_Length(args); | |
2169 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2170 | argv[ii] = PyTuple_GetItem(args,ii); | |
2171 | } | |
2172 | if (argc == 2) { | |
2173 | int _v; | |
2174 | { | |
2175 | void *ptr; | |
2176 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2177 | _v = 0; | |
2178 | PyErr_Clear(); | |
2179 | } else { | |
2180 | _v = 1; | |
2181 | } | |
2182 | } | |
2183 | if (_v) { | |
2184 | { | |
2185 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2186 | } | |
2187 | if (_v) { | |
2188 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2189 | } | |
2190 | } | |
2191 | } | |
2192 | if (argc == 3) { | |
2193 | int _v; | |
2194 | { | |
2195 | void *ptr; | |
2196 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2197 | _v = 0; | |
2198 | PyErr_Clear(); | |
2199 | } else { | |
2200 | _v = 1; | |
2201 | } | |
2202 | } | |
2203 | if (_v) { | |
2204 | _v = SWIG_CheckInt(argv[1]); | |
2205 | if (_v) { | |
2206 | _v = SWIG_CheckInt(argv[2]); | |
2207 | if (_v) { | |
2208 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2209 | } | |
2210 | } | |
2211 | } | |
2212 | } | |
2213 | ||
2214 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2215 | return NULL; | |
2216 | } | |
2217 | ||
2218 | ||
2219 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2220 | PyObject *resultobj; | |
2221 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2222 | wxPoint *arg2 = 0 ; | |
2223 | wxPoint result; | |
2224 | wxPoint temp2 ; | |
2225 | PyObject * obj0 = 0 ; | |
2226 | PyObject * obj1 = 0 ; | |
2227 | ||
2228 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2231 | { | |
2232 | arg2 = &temp2; | |
2233 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2234 | } | |
2235 | { | |
2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2237 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2238 | ||
2239 | wxPyEndAllowThreads(__tstate); | |
2240 | if (PyErr_Occurred()) SWIG_fail; | |
2241 | } | |
2242 | { | |
2243 | wxPoint * resultptr; | |
2244 | resultptr = new wxPoint((wxPoint &) result); | |
2245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2246 | } | |
2247 | return resultobj; | |
2248 | fail: | |
2249 | return NULL; | |
2250 | } | |
2251 | ||
2252 | ||
2253 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2254 | PyObject *resultobj; | |
2255 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2256 | int arg2 ; | |
2257 | int arg3 ; | |
2258 | int *arg4 = (int *) 0 ; | |
2259 | int *arg5 = (int *) 0 ; | |
2260 | int temp4 ; | |
2261 | int temp5 ; | |
2262 | PyObject * obj0 = 0 ; | |
2263 | PyObject * obj1 = 0 ; | |
2264 | PyObject * obj2 = 0 ; | |
2265 | ||
2266 | arg4 = &temp4; | |
2267 | arg5 = &temp5; | |
2268 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2271 | arg2 = (int) SWIG_AsInt(obj1); | |
2272 | if (PyErr_Occurred()) SWIG_fail; | |
2273 | arg3 = (int) SWIG_AsInt(obj2); | |
2274 | if (PyErr_Occurred()) SWIG_fail; | |
2275 | { | |
2276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2277 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2278 | ||
2279 | wxPyEndAllowThreads(__tstate); | |
2280 | if (PyErr_Occurred()) SWIG_fail; | |
2281 | } | |
2282 | Py_INCREF(Py_None); resultobj = Py_None; | |
2283 | { | |
2284 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2285 | resultobj = t_output_helper(resultobj,o); | |
2286 | } | |
2287 | { | |
2288 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2289 | resultobj = t_output_helper(resultobj,o); | |
2290 | } | |
2291 | return resultobj; | |
2292 | fail: | |
2293 | return NULL; | |
2294 | } | |
2295 | ||
2296 | ||
2297 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2298 | int argc; | |
2299 | PyObject *argv[4]; | |
2300 | int ii; | |
2301 | ||
2302 | argc = PyObject_Length(args); | |
2303 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2304 | argv[ii] = PyTuple_GetItem(args,ii); | |
2305 | } | |
2306 | if (argc == 2) { | |
2307 | int _v; | |
2308 | { | |
2309 | void *ptr; | |
2310 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2311 | _v = 0; | |
2312 | PyErr_Clear(); | |
2313 | } else { | |
2314 | _v = 1; | |
2315 | } | |
2316 | } | |
2317 | if (_v) { | |
2318 | { | |
2319 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2320 | } | |
2321 | if (_v) { | |
2322 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2323 | } | |
2324 | } | |
2325 | } | |
2326 | if (argc == 3) { | |
2327 | int _v; | |
2328 | { | |
2329 | void *ptr; | |
2330 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2331 | _v = 0; | |
2332 | PyErr_Clear(); | |
2333 | } else { | |
2334 | _v = 1; | |
2335 | } | |
2336 | } | |
2337 | if (_v) { | |
2338 | _v = SWIG_CheckInt(argv[1]); | |
2339 | if (_v) { | |
2340 | _v = SWIG_CheckInt(argv[2]); | |
2341 | if (_v) { | |
2342 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2343 | } | |
2344 | } | |
2345 | } | |
2346 | } | |
2347 | ||
2348 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2349 | return NULL; | |
2350 | } | |
2351 | ||
2352 | ||
2353 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2354 | PyObject *resultobj; | |
2355 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2356 | PyObject * obj0 = 0 ; | |
2357 | char *kwnames[] = { | |
2358 | (char *) "self", NULL | |
2359 | }; | |
2360 | ||
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2366 | (arg1)->AdjustScrollbars(); | |
2367 | ||
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) SWIG_fail; | |
2370 | } | |
2371 | Py_INCREF(Py_None); resultobj = Py_None; | |
2372 | return resultobj; | |
2373 | fail: | |
2374 | return NULL; | |
2375 | } | |
2376 | ||
2377 | ||
2378 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2379 | PyObject *resultobj; | |
2380 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2381 | wxScrollWinEvent *arg2 = 0 ; | |
2382 | int result; | |
2383 | PyObject * obj0 = 0 ; | |
2384 | PyObject * obj1 = 0 ; | |
2385 | char *kwnames[] = { | |
2386 | (char *) "self",(char *) "event", NULL | |
2387 | }; | |
2388 | ||
2389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2393 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2394 | SWIG_fail; | |
2395 | if (arg2 == NULL) { | |
2396 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2397 | SWIG_fail; | |
2398 | } | |
2399 | { | |
2400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2401 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2402 | ||
2403 | wxPyEndAllowThreads(__tstate); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
2405 | } | |
2406 | resultobj = SWIG_FromInt((int)result); | |
2407 | return resultobj; | |
2408 | fail: | |
2409 | return NULL; | |
2410 | } | |
2411 | ||
2412 | ||
2413 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2414 | PyObject *resultobj; | |
2415 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2416 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2417 | PyObject * obj0 = 0 ; | |
2418 | PyObject * obj1 = 0 ; | |
2419 | char *kwnames[] = { | |
2420 | (char *) "self",(char *) "target", NULL | |
2421 | }; | |
2422 | ||
2423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2428 | { | |
2429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2430 | (arg1)->SetTargetWindow(arg2); | |
2431 | ||
2432 | wxPyEndAllowThreads(__tstate); | |
2433 | if (PyErr_Occurred()) SWIG_fail; | |
2434 | } | |
2435 | Py_INCREF(Py_None); resultobj = Py_None; | |
2436 | return resultobj; | |
2437 | fail: | |
2438 | return NULL; | |
2439 | } | |
2440 | ||
2441 | ||
2442 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2443 | PyObject *resultobj; | |
2444 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2445 | wxWindow *result; | |
2446 | PyObject * obj0 = 0 ; | |
2447 | char *kwnames[] = { | |
2448 | (char *) "self", NULL | |
2449 | }; | |
2450 | ||
2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2454 | { | |
2455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2456 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2457 | ||
2458 | wxPyEndAllowThreads(__tstate); | |
2459 | if (PyErr_Occurred()) SWIG_fail; | |
2460 | } | |
2461 | { | |
2462 | resultobj = wxPyMake_wxObject(result); | |
2463 | } | |
2464 | return resultobj; | |
2465 | fail: | |
2466 | return NULL; | |
2467 | } | |
2468 | ||
2469 | ||
2470 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2471 | PyObject *resultobj; | |
2472 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2473 | wxRect *arg2 = 0 ; | |
2474 | wxRect temp2 ; | |
2475 | PyObject * obj0 = 0 ; | |
2476 | PyObject * obj1 = 0 ; | |
2477 | char *kwnames[] = { | |
2478 | (char *) "self",(char *) "rect", NULL | |
2479 | }; | |
2480 | ||
2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2484 | { | |
2485 | arg2 = &temp2; | |
2486 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2487 | } | |
2488 | { | |
2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2490 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2491 | ||
2492 | wxPyEndAllowThreads(__tstate); | |
2493 | if (PyErr_Occurred()) SWIG_fail; | |
2494 | } | |
2495 | Py_INCREF(Py_None); resultobj = Py_None; | |
2496 | return resultobj; | |
2497 | fail: | |
2498 | return NULL; | |
2499 | } | |
2500 | ||
2501 | ||
2502 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject *resultobj; | |
2504 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2505 | wxRect result; | |
2506 | PyObject * obj0 = 0 ; | |
2507 | char *kwnames[] = { | |
2508 | (char *) "self", NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2514 | { | |
2515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2516 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2517 | ||
2518 | wxPyEndAllowThreads(__tstate); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | } | |
2521 | { | |
2522 | wxRect * resultptr; | |
2523 | resultptr = new wxRect((wxRect &) result); | |
2524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2525 | } | |
2526 | return resultobj; | |
2527 | fail: | |
2528 | return NULL; | |
2529 | } | |
2530 | ||
2531 | ||
f20a2e1f RD |
2532 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2533 | PyObject *resultobj; | |
2534 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2535 | wxVisualAttributes result; | |
2536 | PyObject * obj0 = 0 ; | |
2537 | char *kwnames[] = { | |
2538 | (char *) "variant", NULL | |
2539 | }; | |
2540 | ||
2541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2542 | if (obj0) { | |
2543 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2544 | if (PyErr_Occurred()) SWIG_fail; | |
2545 | } | |
2546 | { | |
2547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2548 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2549 | ||
2550 | wxPyEndAllowThreads(__tstate); | |
2551 | if (PyErr_Occurred()) SWIG_fail; | |
2552 | } | |
2553 | { | |
2554 | wxVisualAttributes * resultptr; | |
2555 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2557 | } | |
2558 | return resultobj; | |
2559 | fail: | |
2560 | return NULL; | |
2561 | } | |
2562 | ||
2563 | ||
d55e5bfc RD |
2564 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
2565 | PyObject *obj; | |
2566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2567 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2568 | Py_INCREF(obj); | |
2569 | return Py_BuildValue((char *)""); | |
2570 | } | |
2571 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2572 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2573 | return 1; | |
2574 | } | |
2575 | ||
2576 | ||
2577 | static PyObject *_wrap_FrameNameStr_get() { | |
2578 | PyObject *pyobj; | |
2579 | ||
2580 | { | |
2581 | #if wxUSE_UNICODE | |
2582 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2583 | #else | |
2584 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2585 | #endif | |
2586 | } | |
2587 | return pyobj; | |
2588 | } | |
2589 | ||
2590 | ||
2591 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2592 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2593 | return 1; | |
2594 | } | |
2595 | ||
2596 | ||
2597 | static PyObject *_wrap_DialogNameStr_get() { | |
2598 | PyObject *pyobj; | |
2599 | ||
2600 | { | |
2601 | #if wxUSE_UNICODE | |
2602 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2603 | #else | |
2604 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2605 | #endif | |
2606 | } | |
2607 | return pyobj; | |
2608 | } | |
2609 | ||
2610 | ||
2611 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2612 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2613 | return 1; | |
2614 | } | |
2615 | ||
2616 | ||
2617 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2618 | PyObject *pyobj; | |
2619 | ||
2620 | { | |
2621 | #if wxUSE_UNICODE | |
2622 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2623 | #else | |
2624 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2625 | #endif | |
2626 | } | |
2627 | return pyobj; | |
2628 | } | |
2629 | ||
2630 | ||
2631 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2632 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2633 | return 1; | |
2634 | } | |
2635 | ||
2636 | ||
2637 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2638 | PyObject *pyobj; | |
2639 | ||
2640 | { | |
2641 | #if wxUSE_UNICODE | |
2642 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2643 | #else | |
2644 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2645 | #endif | |
2646 | } | |
2647 | return pyobj; | |
2648 | } | |
2649 | ||
2650 | ||
2651 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2652 | PyObject *resultobj; | |
2653 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2654 | bool arg2 = (bool) True ; | |
2655 | PyObject * obj0 = 0 ; | |
2656 | PyObject * obj1 = 0 ; | |
2657 | char *kwnames[] = { | |
2658 | (char *) "self",(char *) "maximize", NULL | |
2659 | }; | |
2660 | ||
2661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2664 | if (obj1) { | |
2665 | arg2 = (bool) SWIG_AsBool(obj1); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2668 | { | |
2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2670 | (arg1)->Maximize(arg2); | |
2671 | ||
2672 | wxPyEndAllowThreads(__tstate); | |
2673 | if (PyErr_Occurred()) SWIG_fail; | |
2674 | } | |
2675 | Py_INCREF(Py_None); resultobj = Py_None; | |
2676 | return resultobj; | |
2677 | fail: | |
2678 | return NULL; | |
2679 | } | |
2680 | ||
2681 | ||
2682 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2683 | PyObject *resultobj; | |
2684 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2685 | PyObject * obj0 = 0 ; | |
2686 | char *kwnames[] = { | |
2687 | (char *) "self", NULL | |
2688 | }; | |
2689 | ||
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2693 | { | |
2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2695 | (arg1)->Restore(); | |
2696 | ||
2697 | wxPyEndAllowThreads(__tstate); | |
2698 | if (PyErr_Occurred()) SWIG_fail; | |
2699 | } | |
2700 | Py_INCREF(Py_None); resultobj = Py_None; | |
2701 | return resultobj; | |
2702 | fail: | |
2703 | return NULL; | |
2704 | } | |
2705 | ||
2706 | ||
2707 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2708 | PyObject *resultobj; | |
2709 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2710 | bool arg2 = (bool) True ; | |
2711 | PyObject * obj0 = 0 ; | |
2712 | PyObject * obj1 = 0 ; | |
2713 | char *kwnames[] = { | |
2714 | (char *) "self",(char *) "iconize", NULL | |
2715 | }; | |
2716 | ||
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2720 | if (obj1) { | |
2721 | arg2 = (bool) SWIG_AsBool(obj1); | |
2722 | if (PyErr_Occurred()) SWIG_fail; | |
2723 | } | |
2724 | { | |
2725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2726 | (arg1)->Iconize(arg2); | |
2727 | ||
2728 | wxPyEndAllowThreads(__tstate); | |
2729 | if (PyErr_Occurred()) SWIG_fail; | |
2730 | } | |
2731 | Py_INCREF(Py_None); resultobj = Py_None; | |
2732 | return resultobj; | |
2733 | fail: | |
2734 | return NULL; | |
2735 | } | |
2736 | ||
2737 | ||
2738 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject *resultobj; | |
2740 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2741 | bool result; | |
2742 | PyObject * obj0 = 0 ; | |
2743 | char *kwnames[] = { | |
2744 | (char *) "self", NULL | |
2745 | }; | |
2746 | ||
2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2750 | { | |
2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2752 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2753 | ||
2754 | wxPyEndAllowThreads(__tstate); | |
2755 | if (PyErr_Occurred()) SWIG_fail; | |
2756 | } | |
2757 | { | |
2758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2759 | } | |
2760 | return resultobj; | |
2761 | fail: | |
2762 | return NULL; | |
2763 | } | |
2764 | ||
2765 | ||
2766 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2767 | PyObject *resultobj; | |
2768 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2769 | bool result; | |
2770 | PyObject * obj0 = 0 ; | |
2771 | char *kwnames[] = { | |
2772 | (char *) "self", NULL | |
2773 | }; | |
2774 | ||
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2778 | { | |
2779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2780 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2781 | ||
2782 | wxPyEndAllowThreads(__tstate); | |
2783 | if (PyErr_Occurred()) SWIG_fail; | |
2784 | } | |
2785 | { | |
2786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2787 | } | |
2788 | return resultobj; | |
2789 | fail: | |
2790 | return NULL; | |
2791 | } | |
2792 | ||
2793 | ||
2794 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2795 | PyObject *resultobj; | |
2796 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2797 | wxIcon result; | |
2798 | PyObject * obj0 = 0 ; | |
2799 | char *kwnames[] = { | |
2800 | (char *) "self", NULL | |
2801 | }; | |
2802 | ||
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2808 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
2812 | } | |
2813 | { | |
2814 | wxIcon * resultptr; | |
2815 | resultptr = new wxIcon((wxIcon &) result); | |
2816 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2817 | } | |
2818 | return resultobj; | |
2819 | fail: | |
2820 | return NULL; | |
2821 | } | |
2822 | ||
2823 | ||
2824 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject *resultobj; | |
2826 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2827 | wxIcon *arg2 = 0 ; | |
2828 | PyObject * obj0 = 0 ; | |
2829 | PyObject * obj1 = 0 ; | |
2830 | char *kwnames[] = { | |
2831 | (char *) "self",(char *) "icon", NULL | |
2832 | }; | |
2833 | ||
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2839 | SWIG_fail; | |
2840 | if (arg2 == NULL) { | |
2841 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2842 | SWIG_fail; | |
2843 | } | |
2844 | { | |
2845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2846 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2847 | ||
2848 | wxPyEndAllowThreads(__tstate); | |
2849 | if (PyErr_Occurred()) SWIG_fail; | |
2850 | } | |
2851 | Py_INCREF(Py_None); resultobj = Py_None; | |
2852 | return resultobj; | |
2853 | fail: | |
2854 | return NULL; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject *resultobj; | |
2860 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2861 | wxIconBundle *arg2 = 0 ; | |
2862 | PyObject * obj0 = 0 ; | |
2863 | PyObject * obj1 = 0 ; | |
2864 | char *kwnames[] = { | |
2865 | (char *) "self",(char *) "icons", NULL | |
2866 | }; | |
2867 | ||
2868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2872 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2873 | SWIG_fail; | |
2874 | if (arg2 == NULL) { | |
2875 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2876 | SWIG_fail; | |
2877 | } | |
2878 | { | |
2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2880 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2881 | ||
2882 | wxPyEndAllowThreads(__tstate); | |
2883 | if (PyErr_Occurred()) SWIG_fail; | |
2884 | } | |
2885 | Py_INCREF(Py_None); resultobj = Py_None; | |
2886 | return resultobj; | |
2887 | fail: | |
2888 | return NULL; | |
2889 | } | |
2890 | ||
2891 | ||
2892 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2893 | PyObject *resultobj; | |
2894 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2895 | bool arg2 ; | |
2896 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2897 | bool result; | |
2898 | PyObject * obj0 = 0 ; | |
2899 | PyObject * obj1 = 0 ; | |
2900 | PyObject * obj2 = 0 ; | |
2901 | char *kwnames[] = { | |
2902 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2903 | }; | |
2904 | ||
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2908 | arg2 = (bool) SWIG_AsBool(obj1); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | if (obj2) { | |
2911 | arg3 = (long) SWIG_AsLong(obj2); | |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
2913 | } | |
2914 | { | |
2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2916 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2917 | ||
2918 | wxPyEndAllowThreads(__tstate); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
2921 | { | |
2922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2923 | } | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2933 | bool result; | |
2934 | PyObject * obj0 = 0 ; | |
2935 | char *kwnames[] = { | |
2936 | (char *) "self", NULL | |
2937 | }; | |
2938 | ||
2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2942 | { | |
2943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2944 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2945 | ||
2946 | wxPyEndAllowThreads(__tstate); | |
2947 | if (PyErr_Occurred()) SWIG_fail; | |
2948 | } | |
2949 | { | |
2950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2951 | } | |
2952 | return resultobj; | |
2953 | fail: | |
2954 | return NULL; | |
2955 | } | |
2956 | ||
2957 | ||
2958 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject *resultobj; | |
2960 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2961 | wxString *arg2 = 0 ; | |
2962 | bool temp2 = False ; | |
2963 | PyObject * obj0 = 0 ; | |
2964 | PyObject * obj1 = 0 ; | |
2965 | char *kwnames[] = { | |
2966 | (char *) "self",(char *) "title", NULL | |
2967 | }; | |
2968 | ||
2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2972 | { | |
2973 | arg2 = wxString_in_helper(obj1); | |
2974 | if (arg2 == NULL) SWIG_fail; | |
2975 | temp2 = True; | |
2976 | } | |
2977 | { | |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | (arg1)->SetTitle((wxString const &)*arg2); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | Py_INCREF(Py_None); resultobj = Py_None; | |
2985 | { | |
2986 | if (temp2) | |
2987 | delete arg2; | |
2988 | } | |
2989 | return resultobj; | |
2990 | fail: | |
2991 | { | |
2992 | if (temp2) | |
2993 | delete arg2; | |
2994 | } | |
2995 | return NULL; | |
2996 | } | |
2997 | ||
2998 | ||
2999 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3000 | PyObject *resultobj; | |
3001 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3002 | wxString result; | |
3003 | PyObject * obj0 = 0 ; | |
3004 | char *kwnames[] = { | |
3005 | (char *) "self", NULL | |
3006 | }; | |
3007 | ||
3008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3011 | { | |
3012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3013 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3014 | ||
3015 | wxPyEndAllowThreads(__tstate); | |
3016 | if (PyErr_Occurred()) SWIG_fail; | |
3017 | } | |
3018 | { | |
3019 | #if wxUSE_UNICODE | |
3020 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3021 | #else | |
3022 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3023 | #endif | |
3024 | } | |
3025 | return resultobj; | |
3026 | fail: | |
3027 | return NULL; | |
3028 | } | |
3029 | ||
3030 | ||
3031 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3032 | PyObject *resultobj; | |
3033 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3034 | wxRegion *arg2 = 0 ; | |
3035 | bool result; | |
3036 | PyObject * obj0 = 0 ; | |
3037 | PyObject * obj1 = 0 ; | |
3038 | char *kwnames[] = { | |
3039 | (char *) "self",(char *) "region", NULL | |
3040 | }; | |
3041 | ||
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3045 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3047 | SWIG_fail; | |
3048 | if (arg2 == NULL) { | |
3049 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3050 | SWIG_fail; | |
3051 | } | |
3052 | { | |
3053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3054 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3055 | ||
3056 | wxPyEndAllowThreads(__tstate); | |
3057 | if (PyErr_Occurred()) SWIG_fail; | |
3058 | } | |
3059 | { | |
3060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3061 | } | |
3062 | return resultobj; | |
3063 | fail: | |
3064 | return NULL; | |
3065 | } | |
3066 | ||
3067 | ||
3068 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3069 | PyObject *obj; | |
3070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3071 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3072 | Py_INCREF(obj); | |
3073 | return Py_BuildValue((char *)""); | |
3074 | } | |
3075 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject *resultobj; | |
3077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3078 | int arg2 ; | |
3079 | wxString *arg3 = 0 ; | |
3080 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3081 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3082 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3083 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3084 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3085 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3086 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3087 | wxFrame *result; | |
3088 | bool temp3 = False ; | |
3089 | wxPoint temp4 ; | |
3090 | wxSize temp5 ; | |
3091 | bool temp7 = False ; | |
3092 | PyObject * obj0 = 0 ; | |
3093 | PyObject * obj1 = 0 ; | |
3094 | PyObject * obj2 = 0 ; | |
3095 | PyObject * obj3 = 0 ; | |
3096 | PyObject * obj4 = 0 ; | |
3097 | PyObject * obj5 = 0 ; | |
3098 | PyObject * obj6 = 0 ; | |
3099 | char *kwnames[] = { | |
3100 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3101 | }; | |
3102 | ||
3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3106 | arg2 = (int const) SWIG_AsInt(obj1); | |
3107 | if (PyErr_Occurred()) SWIG_fail; | |
3108 | { | |
3109 | arg3 = wxString_in_helper(obj2); | |
3110 | if (arg3 == NULL) SWIG_fail; | |
3111 | temp3 = True; | |
3112 | } | |
3113 | if (obj3) { | |
3114 | { | |
3115 | arg4 = &temp4; | |
3116 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3117 | } | |
3118 | } | |
3119 | if (obj4) { | |
3120 | { | |
3121 | arg5 = &temp5; | |
3122 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3123 | } | |
3124 | } | |
3125 | if (obj5) { | |
3126 | arg6 = (long) SWIG_AsLong(obj5); | |
3127 | if (PyErr_Occurred()) SWIG_fail; | |
3128 | } | |
3129 | if (obj6) { | |
3130 | { | |
3131 | arg7 = wxString_in_helper(obj6); | |
3132 | if (arg7 == NULL) SWIG_fail; | |
3133 | temp7 = True; | |
3134 | } | |
3135 | } | |
3136 | { | |
3137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3138 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3139 | ||
3140 | wxPyEndAllowThreads(__tstate); | |
3141 | if (PyErr_Occurred()) SWIG_fail; | |
3142 | } | |
3143 | { | |
3144 | resultobj = wxPyMake_wxObject(result); | |
3145 | } | |
3146 | { | |
3147 | if (temp3) | |
3148 | delete arg3; | |
3149 | } | |
3150 | { | |
3151 | if (temp7) | |
3152 | delete arg7; | |
3153 | } | |
3154 | return resultobj; | |
3155 | fail: | |
3156 | { | |
3157 | if (temp3) | |
3158 | delete arg3; | |
3159 | } | |
3160 | { | |
3161 | if (temp7) | |
3162 | delete arg7; | |
3163 | } | |
3164 | return NULL; | |
3165 | } | |
3166 | ||
3167 | ||
3168 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3169 | PyObject *resultobj; | |
3170 | wxFrame *result; | |
3171 | char *kwnames[] = { | |
3172 | NULL | |
3173 | }; | |
3174 | ||
3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3176 | { | |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | result = (wxFrame *)new wxFrame(); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | { | |
3184 | resultobj = wxPyMake_wxObject(result); | |
3185 | } | |
3186 | return resultobj; | |
3187 | fail: | |
3188 | return NULL; | |
3189 | } | |
3190 | ||
3191 | ||
3192 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3193 | PyObject *resultobj; | |
3194 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3195 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3196 | int arg3 ; | |
3197 | wxString *arg4 = 0 ; | |
3198 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3199 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3200 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3201 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3202 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3203 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3204 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3205 | bool result; | |
3206 | bool temp4 = False ; | |
3207 | wxPoint temp5 ; | |
3208 | wxSize temp6 ; | |
3209 | bool temp8 = False ; | |
3210 | PyObject * obj0 = 0 ; | |
3211 | PyObject * obj1 = 0 ; | |
3212 | PyObject * obj2 = 0 ; | |
3213 | PyObject * obj3 = 0 ; | |
3214 | PyObject * obj4 = 0 ; | |
3215 | PyObject * obj5 = 0 ; | |
3216 | PyObject * obj6 = 0 ; | |
3217 | PyObject * obj7 = 0 ; | |
3218 | char *kwnames[] = { | |
3219 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3220 | }; | |
3221 | ||
3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3225 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3227 | arg3 = (int const) SWIG_AsInt(obj2); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | { | |
3230 | arg4 = wxString_in_helper(obj3); | |
3231 | if (arg4 == NULL) SWIG_fail; | |
3232 | temp4 = True; | |
3233 | } | |
3234 | if (obj4) { | |
3235 | { | |
3236 | arg5 = &temp5; | |
3237 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3238 | } | |
3239 | } | |
3240 | if (obj5) { | |
3241 | { | |
3242 | arg6 = &temp6; | |
3243 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3244 | } | |
3245 | } | |
3246 | if (obj6) { | |
3247 | arg7 = (long) SWIG_AsLong(obj6); | |
3248 | if (PyErr_Occurred()) SWIG_fail; | |
3249 | } | |
3250 | if (obj7) { | |
3251 | { | |
3252 | arg8 = wxString_in_helper(obj7); | |
3253 | if (arg8 == NULL) SWIG_fail; | |
3254 | temp8 = True; | |
3255 | } | |
3256 | } | |
3257 | { | |
3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3259 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3260 | ||
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | { | |
3265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3266 | } | |
3267 | { | |
3268 | if (temp4) | |
3269 | delete arg4; | |
3270 | } | |
3271 | { | |
3272 | if (temp8) | |
3273 | delete arg8; | |
3274 | } | |
3275 | return resultobj; | |
3276 | fail: | |
3277 | { | |
3278 | if (temp4) | |
3279 | delete arg4; | |
3280 | } | |
3281 | { | |
3282 | if (temp8) | |
3283 | delete arg8; | |
3284 | } | |
3285 | return NULL; | |
3286 | } | |
3287 | ||
3288 | ||
3289 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3290 | PyObject *resultobj; | |
3291 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3292 | wxPoint result; | |
3293 | PyObject * obj0 = 0 ; | |
3294 | char *kwnames[] = { | |
3295 | (char *) "self", NULL | |
3296 | }; | |
3297 | ||
3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3301 | { | |
3302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3303 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3304 | ||
3305 | wxPyEndAllowThreads(__tstate); | |
3306 | if (PyErr_Occurred()) SWIG_fail; | |
3307 | } | |
3308 | { | |
3309 | wxPoint * resultptr; | |
3310 | resultptr = new wxPoint((wxPoint &) result); | |
3311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3312 | } | |
3313 | return resultobj; | |
3314 | fail: | |
3315 | return NULL; | |
3316 | } | |
3317 | ||
3318 | ||
3319 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3320 | PyObject *resultobj; | |
3321 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3322 | PyObject * obj0 = 0 ; | |
3323 | char *kwnames[] = { | |
3324 | (char *) "self", NULL | |
3325 | }; | |
3326 | ||
3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3330 | { | |
3331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3332 | (arg1)->SendSizeEvent(); | |
3333 | ||
3334 | wxPyEndAllowThreads(__tstate); | |
3335 | if (PyErr_Occurred()) SWIG_fail; | |
3336 | } | |
3337 | Py_INCREF(Py_None); resultobj = Py_None; | |
3338 | return resultobj; | |
3339 | fail: | |
3340 | return NULL; | |
3341 | } | |
3342 | ||
3343 | ||
3344 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3345 | PyObject *resultobj; | |
3346 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3347 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3348 | PyObject * obj0 = 0 ; | |
3349 | PyObject * obj1 = 0 ; | |
3350 | char *kwnames[] = { | |
3351 | (char *) "self",(char *) "menubar", NULL | |
3352 | }; | |
3353 | ||
3354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3359 | { | |
3360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3361 | (arg1)->SetMenuBar(arg2); | |
3362 | ||
3363 | wxPyEndAllowThreads(__tstate); | |
3364 | if (PyErr_Occurred()) SWIG_fail; | |
3365 | } | |
3366 | Py_INCREF(Py_None); resultobj = Py_None; | |
3367 | return resultobj; | |
3368 | fail: | |
3369 | return NULL; | |
3370 | } | |
3371 | ||
3372 | ||
3373 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3374 | PyObject *resultobj; | |
3375 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3376 | wxMenuBar *result; | |
3377 | PyObject * obj0 = 0 ; | |
3378 | char *kwnames[] = { | |
3379 | (char *) "self", NULL | |
3380 | }; | |
3381 | ||
3382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3385 | { | |
3386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3387 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3388 | ||
3389 | wxPyEndAllowThreads(__tstate); | |
3390 | if (PyErr_Occurred()) SWIG_fail; | |
3391 | } | |
3392 | { | |
3393 | resultobj = wxPyMake_wxObject(result); | |
3394 | } | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj; | |
3403 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3404 | int arg2 ; | |
3405 | bool result; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | PyObject * obj1 = 0 ; | |
3408 | char *kwnames[] = { | |
3409 | (char *) "self",(char *) "winid", NULL | |
3410 | }; | |
3411 | ||
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | arg2 = (int) SWIG_AsInt(obj1); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | { | |
3418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3419 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3420 | ||
3421 | wxPyEndAllowThreads(__tstate); | |
3422 | if (PyErr_Occurred()) SWIG_fail; | |
3423 | } | |
3424 | { | |
3425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3426 | } | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
3433 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3436 | int arg2 = (int) 1 ; | |
3437 | long arg3 = (long) wxST_SIZEGRIP ; | |
3438 | int arg4 = (int) 0 ; | |
3439 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3440 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3441 | wxStatusBar *result; | |
3442 | bool temp5 = False ; | |
3443 | PyObject * obj0 = 0 ; | |
3444 | PyObject * obj1 = 0 ; | |
3445 | PyObject * obj2 = 0 ; | |
3446 | PyObject * obj3 = 0 ; | |
3447 | PyObject * obj4 = 0 ; | |
3448 | char *kwnames[] = { | |
3449 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3450 | }; | |
3451 | ||
3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3455 | if (obj1) { | |
3456 | arg2 = (int) SWIG_AsInt(obj1); | |
3457 | if (PyErr_Occurred()) SWIG_fail; | |
3458 | } | |
3459 | if (obj2) { | |
3460 | arg3 = (long) SWIG_AsLong(obj2); | |
3461 | if (PyErr_Occurred()) SWIG_fail; | |
3462 | } | |
3463 | if (obj3) { | |
3464 | arg4 = (int) SWIG_AsInt(obj3); | |
3465 | if (PyErr_Occurred()) SWIG_fail; | |
3466 | } | |
3467 | if (obj4) { | |
3468 | { | |
3469 | arg5 = wxString_in_helper(obj4); | |
3470 | if (arg5 == NULL) SWIG_fail; | |
3471 | temp5 = True; | |
3472 | } | |
3473 | } | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3477 | ||
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | { | |
3482 | resultobj = wxPyMake_wxObject(result); | |
3483 | } | |
3484 | { | |
3485 | if (temp5) | |
3486 | delete arg5; | |
3487 | } | |
3488 | return resultobj; | |
3489 | fail: | |
3490 | { | |
3491 | if (temp5) | |
3492 | delete arg5; | |
3493 | } | |
3494 | return NULL; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3499 | PyObject *resultobj; | |
3500 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3501 | wxStatusBar *result; | |
3502 | PyObject * obj0 = 0 ; | |
3503 | char *kwnames[] = { | |
3504 | (char *) "self", NULL | |
3505 | }; | |
3506 | ||
3507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3510 | { | |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | { | |
3518 | resultobj = wxPyMake_wxObject(result); | |
3519 | } | |
3520 | return resultobj; | |
3521 | fail: | |
3522 | return NULL; | |
3523 | } | |
3524 | ||
3525 | ||
3526 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3527 | PyObject *resultobj; | |
3528 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3529 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3530 | PyObject * obj0 = 0 ; | |
3531 | PyObject * obj1 = 0 ; | |
3532 | char *kwnames[] = { | |
3533 | (char *) "self",(char *) "statBar", NULL | |
3534 | }; | |
3535 | ||
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3539 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | (arg1)->SetStatusBar(arg2); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | Py_INCREF(Py_None); resultobj = Py_None; | |
3549 | return resultobj; | |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
3555 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3558 | wxString *arg2 = 0 ; | |
3559 | int arg3 = (int) 0 ; | |
3560 | bool temp2 = False ; | |
3561 | PyObject * obj0 = 0 ; | |
3562 | PyObject * obj1 = 0 ; | |
3563 | PyObject * obj2 = 0 ; | |
3564 | char *kwnames[] = { | |
3565 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3566 | }; | |
3567 | ||
3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3571 | { | |
3572 | arg2 = wxString_in_helper(obj1); | |
3573 | if (arg2 == NULL) SWIG_fail; | |
3574 | temp2 = True; | |
3575 | } | |
3576 | if (obj2) { | |
3577 | arg3 = (int) SWIG_AsInt(obj2); | |
3578 | if (PyErr_Occurred()) SWIG_fail; | |
3579 | } | |
3580 | { | |
3581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3582 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3583 | ||
3584 | wxPyEndAllowThreads(__tstate); | |
3585 | if (PyErr_Occurred()) SWIG_fail; | |
3586 | } | |
3587 | Py_INCREF(Py_None); resultobj = Py_None; | |
3588 | { | |
3589 | if (temp2) | |
3590 | delete arg2; | |
3591 | } | |
3592 | return resultobj; | |
3593 | fail: | |
3594 | { | |
3595 | if (temp2) | |
3596 | delete arg2; | |
3597 | } | |
3598 | return NULL; | |
3599 | } | |
3600 | ||
3601 | ||
3602 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject *resultobj; | |
3604 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3605 | int arg2 ; | |
3606 | int *arg3 = (int *) 0 ; | |
3607 | PyObject * obj0 = 0 ; | |
3608 | PyObject * obj1 = 0 ; | |
3609 | char *kwnames[] = { | |
3610 | (char *) "self",(char *) "widths", NULL | |
3611 | }; | |
3612 | ||
3613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3616 | { | |
3617 | arg2 = PyList_Size(obj1); | |
3618 | arg3 = int_LIST_helper(obj1); | |
3619 | if (arg3 == NULL) SWIG_fail; | |
3620 | } | |
3621 | { | |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
3628 | Py_INCREF(Py_None); resultobj = Py_None; | |
3629 | { | |
3630 | if (arg3) delete [] arg3; | |
3631 | } | |
3632 | return resultobj; | |
3633 | fail: | |
3634 | { | |
3635 | if (arg3) delete [] arg3; | |
3636 | } | |
3637 | return NULL; | |
3638 | } | |
3639 | ||
3640 | ||
3641 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3642 | PyObject *resultobj; | |
3643 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3644 | wxString *arg2 = 0 ; | |
3645 | int arg3 = (int) 0 ; | |
3646 | bool temp2 = False ; | |
3647 | PyObject * obj0 = 0 ; | |
3648 | PyObject * obj1 = 0 ; | |
3649 | PyObject * obj2 = 0 ; | |
3650 | char *kwnames[] = { | |
3651 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3652 | }; | |
3653 | ||
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3657 | { | |
3658 | arg2 = wxString_in_helper(obj1); | |
3659 | if (arg2 == NULL) SWIG_fail; | |
3660 | temp2 = True; | |
3661 | } | |
3662 | if (obj2) { | |
3663 | arg3 = (int) SWIG_AsInt(obj2); | |
3664 | if (PyErr_Occurred()) SWIG_fail; | |
3665 | } | |
3666 | { | |
3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3668 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3669 | ||
3670 | wxPyEndAllowThreads(__tstate); | |
3671 | if (PyErr_Occurred()) SWIG_fail; | |
3672 | } | |
3673 | Py_INCREF(Py_None); resultobj = Py_None; | |
3674 | { | |
3675 | if (temp2) | |
3676 | delete arg2; | |
3677 | } | |
3678 | return resultobj; | |
3679 | fail: | |
3680 | { | |
3681 | if (temp2) | |
3682 | delete arg2; | |
3683 | } | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
3688 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject *resultobj; | |
3690 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3691 | int arg2 = (int) 0 ; | |
3692 | PyObject * obj0 = 0 ; | |
3693 | PyObject * obj1 = 0 ; | |
3694 | char *kwnames[] = { | |
3695 | (char *) "self",(char *) "number", NULL | |
3696 | }; | |
3697 | ||
3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3701 | if (obj1) { | |
3702 | arg2 = (int) SWIG_AsInt(obj1); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | } | |
3705 | { | |
3706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3707 | (arg1)->PopStatusText(arg2); | |
3708 | ||
3709 | wxPyEndAllowThreads(__tstate); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | } | |
3712 | Py_INCREF(Py_None); resultobj = Py_None; | |
3713 | return resultobj; | |
3714 | fail: | |
3715 | return NULL; | |
3716 | } | |
3717 | ||
3718 | ||
3719 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3720 | PyObject *resultobj; | |
3721 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3722 | int arg2 ; | |
3723 | PyObject * obj0 = 0 ; | |
3724 | PyObject * obj1 = 0 ; | |
3725 | char *kwnames[] = { | |
3726 | (char *) "self",(char *) "n", NULL | |
3727 | }; | |
3728 | ||
3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3732 | arg2 = (int) SWIG_AsInt(obj1); | |
3733 | if (PyErr_Occurred()) SWIG_fail; | |
3734 | { | |
3735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3736 | (arg1)->SetStatusBarPane(arg2); | |
3737 | ||
3738 | wxPyEndAllowThreads(__tstate); | |
3739 | if (PyErr_Occurred()) SWIG_fail; | |
3740 | } | |
3741 | Py_INCREF(Py_None); resultobj = Py_None; | |
3742 | return resultobj; | |
3743 | fail: | |
3744 | return NULL; | |
3745 | } | |
3746 | ||
3747 | ||
3748 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3749 | PyObject *resultobj; | |
3750 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3751 | int result; | |
3752 | PyObject * obj0 = 0 ; | |
3753 | char *kwnames[] = { | |
3754 | (char *) "self", NULL | |
3755 | }; | |
3756 | ||
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3760 | { | |
3761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3762 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3763 | ||
3764 | wxPyEndAllowThreads(__tstate); | |
3765 | if (PyErr_Occurred()) SWIG_fail; | |
3766 | } | |
3767 | resultobj = SWIG_FromInt((int)result); | |
3768 | return resultobj; | |
3769 | fail: | |
3770 | return NULL; | |
3771 | } | |
3772 | ||
3773 | ||
3774 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3775 | PyObject *resultobj; | |
3776 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3777 | long arg2 = (long) -1 ; | |
3778 | int arg3 = (int) -1 ; | |
3779 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3780 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3781 | wxToolBar *result; | |
3782 | bool temp4 = False ; | |
3783 | PyObject * obj0 = 0 ; | |
3784 | PyObject * obj1 = 0 ; | |
3785 | PyObject * obj2 = 0 ; | |
3786 | PyObject * obj3 = 0 ; | |
3787 | char *kwnames[] = { | |
3788 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3789 | }; | |
3790 | ||
3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3794 | if (obj1) { | |
3795 | arg2 = (long) SWIG_AsLong(obj1); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
3798 | if (obj2) { | |
3799 | arg3 = (int) SWIG_AsInt(obj2); | |
3800 | if (PyErr_Occurred()) SWIG_fail; | |
3801 | } | |
3802 | if (obj3) { | |
3803 | { | |
3804 | arg4 = wxString_in_helper(obj3); | |
3805 | if (arg4 == NULL) SWIG_fail; | |
3806 | temp4 = True; | |
3807 | } | |
3808 | } | |
3809 | { | |
3810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3811 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3812 | ||
3813 | wxPyEndAllowThreads(__tstate); | |
3814 | if (PyErr_Occurred()) SWIG_fail; | |
3815 | } | |
3816 | { | |
3817 | resultobj = wxPyMake_wxObject(result); | |
3818 | } | |
3819 | { | |
3820 | if (temp4) | |
3821 | delete arg4; | |
3822 | } | |
3823 | return resultobj; | |
3824 | fail: | |
3825 | { | |
3826 | if (temp4) | |
3827 | delete arg4; | |
3828 | } | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
3833 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject *resultobj; | |
3835 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3836 | wxToolBar *result; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | char *kwnames[] = { | |
3839 | (char *) "self", NULL | |
3840 | }; | |
3841 | ||
3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3845 | { | |
3846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3847 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3848 | ||
3849 | wxPyEndAllowThreads(__tstate); | |
3850 | if (PyErr_Occurred()) SWIG_fail; | |
3851 | } | |
3852 | { | |
3853 | resultobj = wxPyMake_wxObject(result); | |
3854 | } | |
3855 | return resultobj; | |
3856 | fail: | |
3857 | return NULL; | |
3858 | } | |
3859 | ||
3860 | ||
3861 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject *resultobj; | |
3863 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3864 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3865 | PyObject * obj0 = 0 ; | |
3866 | PyObject * obj1 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self",(char *) "toolbar", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3876 | { | |
3877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3878 | (arg1)->SetToolBar(arg2); | |
3879 | ||
3880 | wxPyEndAllowThreads(__tstate); | |
3881 | if (PyErr_Occurred()) SWIG_fail; | |
3882 | } | |
3883 | Py_INCREF(Py_None); resultobj = Py_None; | |
3884 | return resultobj; | |
3885 | fail: | |
3886 | return NULL; | |
3887 | } | |
3888 | ||
3889 | ||
3890 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3891 | PyObject *resultobj; | |
3892 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3893 | wxString *arg2 = 0 ; | |
3894 | bool arg3 ; | |
3895 | bool temp2 = False ; | |
3896 | PyObject * obj0 = 0 ; | |
3897 | PyObject * obj1 = 0 ; | |
3898 | PyObject * obj2 = 0 ; | |
3899 | char *kwnames[] = { | |
3900 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3901 | }; | |
3902 | ||
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3906 | { | |
3907 | arg2 = wxString_in_helper(obj1); | |
3908 | if (arg2 == NULL) SWIG_fail; | |
3909 | temp2 = True; | |
3910 | } | |
3911 | arg3 = (bool) SWIG_AsBool(obj2); | |
3912 | if (PyErr_Occurred()) SWIG_fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
3920 | Py_INCREF(Py_None); resultobj = Py_None; | |
3921 | { | |
3922 | if (temp2) | |
3923 | delete arg2; | |
3924 | } | |
3925 | return resultobj; | |
3926 | fail: | |
3927 | { | |
3928 | if (temp2) | |
3929 | delete arg2; | |
3930 | } | |
3931 | return NULL; | |
3932 | } | |
3933 | ||
3934 | ||
3935 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3936 | PyObject *resultobj; | |
3937 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3938 | wxMenu *arg2 = (wxMenu *) NULL ; | |
3939 | PyObject * obj0 = 0 ; | |
3940 | PyObject * obj1 = 0 ; | |
3941 | char *kwnames[] = { | |
3942 | (char *) "self",(char *) "menu", NULL | |
3943 | }; | |
3944 | ||
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
3946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3948 | if (obj1) { | |
3949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
3950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3951 | } | |
3952 | { | |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | (arg1)->DoMenuUpdates(arg2); | |
3955 | ||
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
3959 | Py_INCREF(Py_None); resultobj = Py_None; | |
3960 | return resultobj; | |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
f20a2e1f RD |
3966 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3967 | PyObject *resultobj; | |
3968 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3969 | wxVisualAttributes result; | |
3970 | PyObject * obj0 = 0 ; | |
3971 | char *kwnames[] = { | |
3972 | (char *) "variant", NULL | |
3973 | }; | |
3974 | ||
3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3976 | if (obj0) { | |
3977 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3978 | if (PyErr_Occurred()) SWIG_fail; | |
3979 | } | |
3980 | { | |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3983 | ||
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
3987 | { | |
3988 | wxVisualAttributes * resultptr; | |
3989 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3990 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3991 | } | |
3992 | return resultobj; | |
3993 | fail: | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
d55e5bfc RD |
3998 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { |
3999 | PyObject *obj; | |
4000 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4001 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4002 | Py_INCREF(obj); | |
4003 | return Py_BuildValue((char *)""); | |
4004 | } | |
4005 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject *resultobj; | |
4007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4008 | int arg2 ; | |
4009 | wxString *arg3 = 0 ; | |
4010 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4011 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4012 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4013 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4014 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4015 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4016 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4017 | wxDialog *result; | |
4018 | bool temp3 = False ; | |
4019 | wxPoint temp4 ; | |
4020 | wxSize temp5 ; | |
4021 | bool temp7 = False ; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | PyObject * obj1 = 0 ; | |
4024 | PyObject * obj2 = 0 ; | |
4025 | PyObject * obj3 = 0 ; | |
4026 | PyObject * obj4 = 0 ; | |
4027 | PyObject * obj5 = 0 ; | |
4028 | PyObject * obj6 = 0 ; | |
4029 | char *kwnames[] = { | |
4030 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4031 | }; | |
4032 | ||
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4036 | arg2 = (int const) SWIG_AsInt(obj1); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | { | |
4039 | arg3 = wxString_in_helper(obj2); | |
4040 | if (arg3 == NULL) SWIG_fail; | |
4041 | temp3 = True; | |
4042 | } | |
4043 | if (obj3) { | |
4044 | { | |
4045 | arg4 = &temp4; | |
4046 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4047 | } | |
4048 | } | |
4049 | if (obj4) { | |
4050 | { | |
4051 | arg5 = &temp5; | |
4052 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4053 | } | |
4054 | } | |
4055 | if (obj5) { | |
4056 | arg6 = (long) SWIG_AsLong(obj5); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
4059 | if (obj6) { | |
4060 | { | |
4061 | arg7 = wxString_in_helper(obj6); | |
4062 | if (arg7 == NULL) SWIG_fail; | |
4063 | temp7 = True; | |
4064 | } | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); | |
4074 | { | |
4075 | if (temp3) | |
4076 | delete arg3; | |
4077 | } | |
4078 | { | |
4079 | if (temp7) | |
4080 | delete arg7; | |
4081 | } | |
4082 | return resultobj; | |
4083 | fail: | |
4084 | { | |
4085 | if (temp3) | |
4086 | delete arg3; | |
4087 | } | |
4088 | { | |
4089 | if (temp7) | |
4090 | delete arg7; | |
4091 | } | |
4092 | return NULL; | |
4093 | } | |
4094 | ||
4095 | ||
4096 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4097 | PyObject *resultobj; | |
4098 | wxDialog *result; | |
4099 | char *kwnames[] = { | |
4100 | NULL | |
4101 | }; | |
4102 | ||
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4104 | { | |
4105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4106 | result = (wxDialog *)new wxDialog(); | |
4107 | ||
4108 | wxPyEndAllowThreads(__tstate); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
4110 | } | |
4111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); | |
4112 | return resultobj; | |
4113 | fail: | |
4114 | return NULL; | |
4115 | } | |
4116 | ||
4117 | ||
4118 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4119 | PyObject *resultobj; | |
4120 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4121 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4122 | int arg3 ; | |
4123 | wxString *arg4 = 0 ; | |
4124 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4125 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4126 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4127 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4128 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4129 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4130 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4131 | bool result; | |
4132 | bool temp4 = False ; | |
4133 | wxPoint temp5 ; | |
4134 | wxSize temp6 ; | |
4135 | bool temp8 = False ; | |
4136 | PyObject * obj0 = 0 ; | |
4137 | PyObject * obj1 = 0 ; | |
4138 | PyObject * obj2 = 0 ; | |
4139 | PyObject * obj3 = 0 ; | |
4140 | PyObject * obj4 = 0 ; | |
4141 | PyObject * obj5 = 0 ; | |
4142 | PyObject * obj6 = 0 ; | |
4143 | PyObject * obj7 = 0 ; | |
4144 | char *kwnames[] = { | |
4145 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4146 | }; | |
4147 | ||
4148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4153 | arg3 = (int const) SWIG_AsInt(obj2); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
4155 | { | |
4156 | arg4 = wxString_in_helper(obj3); | |
4157 | if (arg4 == NULL) SWIG_fail; | |
4158 | temp4 = True; | |
4159 | } | |
4160 | if (obj4) { | |
4161 | { | |
4162 | arg5 = &temp5; | |
4163 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4164 | } | |
4165 | } | |
4166 | if (obj5) { | |
4167 | { | |
4168 | arg6 = &temp6; | |
4169 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4170 | } | |
4171 | } | |
4172 | if (obj6) { | |
4173 | arg7 = (long) SWIG_AsLong(obj6); | |
4174 | if (PyErr_Occurred()) SWIG_fail; | |
4175 | } | |
4176 | if (obj7) { | |
4177 | { | |
4178 | arg8 = wxString_in_helper(obj7); | |
4179 | if (arg8 == NULL) SWIG_fail; | |
4180 | temp8 = True; | |
4181 | } | |
4182 | } | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4186 | ||
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) SWIG_fail; | |
4189 | } | |
4190 | { | |
4191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4192 | } | |
4193 | { | |
4194 | if (temp4) | |
4195 | delete arg4; | |
4196 | } | |
4197 | { | |
4198 | if (temp8) | |
4199 | delete arg8; | |
4200 | } | |
4201 | return resultobj; | |
4202 | fail: | |
4203 | { | |
4204 | if (temp4) | |
4205 | delete arg4; | |
4206 | } | |
4207 | { | |
4208 | if (temp8) | |
4209 | delete arg8; | |
4210 | } | |
4211 | return NULL; | |
4212 | } | |
4213 | ||
4214 | ||
4215 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4216 | PyObject *resultobj; | |
4217 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4218 | int arg2 ; | |
4219 | PyObject * obj0 = 0 ; | |
4220 | PyObject * obj1 = 0 ; | |
4221 | char *kwnames[] = { | |
4222 | (char *) "self",(char *) "returnCode", NULL | |
4223 | }; | |
4224 | ||
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4228 | arg2 = (int) SWIG_AsInt(obj1); | |
4229 | if (PyErr_Occurred()) SWIG_fail; | |
4230 | { | |
4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4232 | (arg1)->SetReturnCode(arg2); | |
4233 | ||
4234 | wxPyEndAllowThreads(__tstate); | |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
4236 | } | |
4237 | Py_INCREF(Py_None); resultobj = Py_None; | |
4238 | return resultobj; | |
4239 | fail: | |
4240 | return NULL; | |
4241 | } | |
4242 | ||
4243 | ||
4244 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4245 | PyObject *resultobj; | |
4246 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4247 | int result; | |
4248 | PyObject * obj0 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "self", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4259 | ||
4260 | wxPyEndAllowThreads(__tstate); | |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
4262 | } | |
4263 | resultobj = SWIG_FromInt((int)result); | |
4264 | return resultobj; | |
4265 | fail: | |
4266 | return NULL; | |
4267 | } | |
4268 | ||
4269 | ||
4270 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4271 | PyObject *resultobj; | |
4272 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4273 | wxString *arg2 = 0 ; | |
4274 | wxSizer *result; | |
4275 | bool temp2 = False ; | |
4276 | PyObject * obj0 = 0 ; | |
4277 | PyObject * obj1 = 0 ; | |
4278 | char *kwnames[] = { | |
4279 | (char *) "self",(char *) "message", NULL | |
4280 | }; | |
4281 | ||
4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4285 | { | |
4286 | arg2 = wxString_in_helper(obj1); | |
4287 | if (arg2 == NULL) SWIG_fail; | |
4288 | temp2 = True; | |
4289 | } | |
4290 | { | |
4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4292 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4293 | ||
4294 | wxPyEndAllowThreads(__tstate); | |
4295 | if (PyErr_Occurred()) SWIG_fail; | |
4296 | } | |
4297 | { | |
4298 | resultobj = wxPyMake_wxSizer(result); | |
4299 | } | |
4300 | { | |
4301 | if (temp2) | |
4302 | delete arg2; | |
4303 | } | |
4304 | return resultobj; | |
4305 | fail: | |
4306 | { | |
4307 | if (temp2) | |
4308 | delete arg2; | |
4309 | } | |
4310 | return NULL; | |
4311 | } | |
4312 | ||
4313 | ||
4314 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4315 | PyObject *resultobj; | |
4316 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4317 | long arg2 ; | |
4318 | wxSizer *result; | |
4319 | PyObject * obj0 = 0 ; | |
4320 | PyObject * obj1 = 0 ; | |
4321 | char *kwnames[] = { | |
4322 | (char *) "self",(char *) "flags", NULL | |
4323 | }; | |
4324 | ||
4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4328 | arg2 = (long) SWIG_AsLong(obj1); | |
4329 | if (PyErr_Occurred()) SWIG_fail; | |
4330 | { | |
4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4332 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4333 | ||
4334 | wxPyEndAllowThreads(__tstate); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
4337 | { | |
4338 | resultobj = wxPyMake_wxSizer(result); | |
4339 | } | |
4340 | return resultobj; | |
4341 | fail: | |
4342 | return NULL; | |
4343 | } | |
4344 | ||
4345 | ||
4346 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4347 | PyObject *resultobj; | |
4348 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4349 | bool result; | |
4350 | PyObject * obj0 = 0 ; | |
4351 | char *kwnames[] = { | |
4352 | (char *) "self", NULL | |
4353 | }; | |
4354 | ||
4355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4358 | { | |
4359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4360 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4361 | ||
4362 | wxPyEndAllowThreads(__tstate); | |
4363 | if (PyErr_Occurred()) SWIG_fail; | |
4364 | } | |
4365 | { | |
4366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4367 | } | |
4368 | return resultobj; | |
4369 | fail: | |
4370 | return NULL; | |
4371 | } | |
4372 | ||
4373 | ||
4374 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject *resultobj; | |
4376 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4377 | int result; | |
4378 | PyObject * obj0 = 0 ; | |
4379 | char *kwnames[] = { | |
4380 | (char *) "self", NULL | |
4381 | }; | |
4382 | ||
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4386 | { | |
4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4388 | result = (int)(arg1)->ShowModal(); | |
4389 | ||
4390 | wxPyEndAllowThreads(__tstate); | |
4391 | if (PyErr_Occurred()) SWIG_fail; | |
4392 | } | |
4393 | resultobj = SWIG_FromInt((int)result); | |
4394 | return resultobj; | |
4395 | fail: | |
4396 | return NULL; | |
4397 | } | |
4398 | ||
4399 | ||
4400 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4401 | PyObject *resultobj; | |
4402 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4403 | int arg2 ; | |
4404 | PyObject * obj0 = 0 ; | |
4405 | PyObject * obj1 = 0 ; | |
4406 | char *kwnames[] = { | |
4407 | (char *) "self",(char *) "retCode", NULL | |
4408 | }; | |
4409 | ||
4410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4413 | arg2 = (int) SWIG_AsInt(obj1); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | { | |
4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4417 | (arg1)->EndModal(arg2); | |
4418 | ||
4419 | wxPyEndAllowThreads(__tstate); | |
4420 | if (PyErr_Occurred()) SWIG_fail; | |
4421 | } | |
4422 | Py_INCREF(Py_None); resultobj = Py_None; | |
4423 | return resultobj; | |
4424 | fail: | |
4425 | return NULL; | |
4426 | } | |
4427 | ||
4428 | ||
f20a2e1f RD |
4429 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4430 | PyObject *resultobj; | |
4431 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4432 | wxVisualAttributes result; | |
4433 | PyObject * obj0 = 0 ; | |
4434 | char *kwnames[] = { | |
4435 | (char *) "variant", NULL | |
4436 | }; | |
4437 | ||
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4439 | if (obj0) { | |
4440 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | { | |
4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4445 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4446 | ||
4447 | wxPyEndAllowThreads(__tstate); | |
4448 | if (PyErr_Occurred()) SWIG_fail; | |
4449 | } | |
4450 | { | |
4451 | wxVisualAttributes * resultptr; | |
4452 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4453 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4454 | } | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
d55e5bfc RD |
4461 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { |
4462 | PyObject *obj; | |
4463 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4464 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4465 | Py_INCREF(obj); | |
4466 | return Py_BuildValue((char *)""); | |
4467 | } | |
4468 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject *resultobj; | |
4470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4471 | int arg2 ; | |
4472 | wxString *arg3 = 0 ; | |
4473 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4474 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4475 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4476 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4477 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4478 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4479 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4480 | wxMiniFrame *result; | |
4481 | bool temp3 = False ; | |
4482 | wxPoint temp4 ; | |
4483 | wxSize temp5 ; | |
4484 | bool temp7 = False ; | |
4485 | PyObject * obj0 = 0 ; | |
4486 | PyObject * obj1 = 0 ; | |
4487 | PyObject * obj2 = 0 ; | |
4488 | PyObject * obj3 = 0 ; | |
4489 | PyObject * obj4 = 0 ; | |
4490 | PyObject * obj5 = 0 ; | |
4491 | PyObject * obj6 = 0 ; | |
4492 | char *kwnames[] = { | |
4493 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4499 | arg2 = (int const) SWIG_AsInt(obj1); | |
4500 | if (PyErr_Occurred()) SWIG_fail; | |
4501 | { | |
4502 | arg3 = wxString_in_helper(obj2); | |
4503 | if (arg3 == NULL) SWIG_fail; | |
4504 | temp3 = True; | |
4505 | } | |
4506 | if (obj3) { | |
4507 | { | |
4508 | arg4 = &temp4; | |
4509 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4510 | } | |
4511 | } | |
4512 | if (obj4) { | |
4513 | { | |
4514 | arg5 = &temp5; | |
4515 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4516 | } | |
4517 | } | |
4518 | if (obj5) { | |
4519 | arg6 = (long) SWIG_AsLong(obj5); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
4521 | } | |
4522 | if (obj6) { | |
4523 | { | |
4524 | arg7 = wxString_in_helper(obj6); | |
4525 | if (arg7 == NULL) SWIG_fail; | |
4526 | temp7 = True; | |
4527 | } | |
4528 | } | |
4529 | { | |
4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4531 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4532 | ||
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4537 | { | |
4538 | if (temp3) | |
4539 | delete arg3; | |
4540 | } | |
4541 | { | |
4542 | if (temp7) | |
4543 | delete arg7; | |
4544 | } | |
4545 | return resultobj; | |
4546 | fail: | |
4547 | { | |
4548 | if (temp3) | |
4549 | delete arg3; | |
4550 | } | |
4551 | { | |
4552 | if (temp7) | |
4553 | delete arg7; | |
4554 | } | |
4555 | return NULL; | |
4556 | } | |
4557 | ||
4558 | ||
4559 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4560 | PyObject *resultobj; | |
4561 | wxMiniFrame *result; | |
4562 | char *kwnames[] = { | |
4563 | NULL | |
4564 | }; | |
4565 | ||
4566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4567 | { | |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | } | |
4574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4575 | return resultobj; | |
4576 | fail: | |
4577 | return NULL; | |
4578 | } | |
4579 | ||
4580 | ||
4581 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject *resultobj; | |
4583 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4584 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4585 | int arg3 ; | |
4586 | wxString *arg4 = 0 ; | |
4587 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4588 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4589 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4590 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4591 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4592 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4593 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4594 | bool result; | |
4595 | bool temp4 = False ; | |
4596 | wxPoint temp5 ; | |
4597 | wxSize temp6 ; | |
4598 | bool temp8 = False ; | |
4599 | PyObject * obj0 = 0 ; | |
4600 | PyObject * obj1 = 0 ; | |
4601 | PyObject * obj2 = 0 ; | |
4602 | PyObject * obj3 = 0 ; | |
4603 | PyObject * obj4 = 0 ; | |
4604 | PyObject * obj5 = 0 ; | |
4605 | PyObject * obj6 = 0 ; | |
4606 | PyObject * obj7 = 0 ; | |
4607 | char *kwnames[] = { | |
4608 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4609 | }; | |
4610 | ||
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, | |
4613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4614 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4616 | arg3 = (int const) SWIG_AsInt(obj2); | |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
4618 | { | |
4619 | arg4 = wxString_in_helper(obj3); | |
4620 | if (arg4 == NULL) SWIG_fail; | |
4621 | temp4 = True; | |
4622 | } | |
4623 | if (obj4) { | |
4624 | { | |
4625 | arg5 = &temp5; | |
4626 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4627 | } | |
4628 | } | |
4629 | if (obj5) { | |
4630 | { | |
4631 | arg6 = &temp6; | |
4632 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4633 | } | |
4634 | } | |
4635 | if (obj6) { | |
4636 | arg7 = (long) SWIG_AsLong(obj6); | |
4637 | if (PyErr_Occurred()) SWIG_fail; | |
4638 | } | |
4639 | if (obj7) { | |
4640 | { | |
4641 | arg8 = wxString_in_helper(obj7); | |
4642 | if (arg8 == NULL) SWIG_fail; | |
4643 | temp8 = True; | |
4644 | } | |
4645 | } | |
4646 | { | |
4647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4648 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4649 | ||
4650 | wxPyEndAllowThreads(__tstate); | |
4651 | if (PyErr_Occurred()) SWIG_fail; | |
4652 | } | |
4653 | { | |
4654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4655 | } | |
4656 | { | |
4657 | if (temp4) | |
4658 | delete arg4; | |
4659 | } | |
4660 | { | |
4661 | if (temp8) | |
4662 | delete arg8; | |
4663 | } | |
4664 | return resultobj; | |
4665 | fail: | |
4666 | { | |
4667 | if (temp4) | |
4668 | delete arg4; | |
4669 | } | |
4670 | { | |
4671 | if (temp8) | |
4672 | delete arg8; | |
4673 | } | |
4674 | return NULL; | |
4675 | } | |
4676 | ||
4677 | ||
4678 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4679 | PyObject *obj; | |
4680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4681 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4682 | Py_INCREF(obj); | |
4683 | return Py_BuildValue((char *)""); | |
4684 | } | |
4685 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4686 | PyObject *resultobj; | |
4687 | wxBitmap *arg1 = 0 ; | |
4688 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4689 | int arg3 ; | |
4690 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4691 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4692 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4693 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4694 | long arg6 = (long) wxNO_BORDER ; | |
4695 | wxSplashScreenWindow *result; | |
4696 | wxPoint temp4 ; | |
4697 | wxSize temp5 ; | |
4698 | PyObject * obj0 = 0 ; | |
4699 | PyObject * obj1 = 0 ; | |
4700 | PyObject * obj2 = 0 ; | |
4701 | PyObject * obj3 = 0 ; | |
4702 | PyObject * obj4 = 0 ; | |
4703 | PyObject * obj5 = 0 ; | |
4704 | char *kwnames[] = { | |
4705 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4706 | }; | |
4707 | ||
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4711 | SWIG_fail; | |
4712 | if (arg1 == NULL) { | |
4713 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4714 | SWIG_fail; | |
4715 | } | |
4716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4718 | arg3 = (int) SWIG_AsInt(obj2); | |
4719 | if (PyErr_Occurred()) SWIG_fail; | |
4720 | if (obj3) { | |
4721 | { | |
4722 | arg4 = &temp4; | |
4723 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4724 | } | |
4725 | } | |
4726 | if (obj4) { | |
4727 | { | |
4728 | arg5 = &temp5; | |
4729 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4730 | } | |
4731 | } | |
4732 | if (obj5) { | |
4733 | arg6 = (long) SWIG_AsLong(obj5); | |
4734 | if (PyErr_Occurred()) SWIG_fail; | |
4735 | } | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4753 | wxBitmap *arg2 = 0 ; | |
4754 | PyObject * obj0 = 0 ; | |
4755 | PyObject * obj1 = 0 ; | |
4756 | char *kwnames[] = { | |
4757 | (char *) "self",(char *) "bitmap", NULL | |
4758 | }; | |
4759 | ||
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4765 | SWIG_fail; | |
4766 | if (arg2 == NULL) { | |
4767 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4768 | SWIG_fail; | |
4769 | } | |
4770 | { | |
4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4772 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4773 | ||
4774 | wxPyEndAllowThreads(__tstate); | |
4775 | if (PyErr_Occurred()) SWIG_fail; | |
4776 | } | |
4777 | Py_INCREF(Py_None); resultobj = Py_None; | |
4778 | return resultobj; | |
4779 | fail: | |
4780 | return NULL; | |
4781 | } | |
4782 | ||
4783 | ||
4784 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4785 | PyObject *resultobj; | |
4786 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4787 | wxBitmap *result; | |
4788 | PyObject * obj0 = 0 ; | |
4789 | char *kwnames[] = { | |
4790 | (char *) "self", NULL | |
4791 | }; | |
4792 | ||
4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4796 | { | |
4797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4798 | { | |
4799 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4800 | result = (wxBitmap *) &_result_ref; | |
4801 | } | |
4802 | ||
4803 | wxPyEndAllowThreads(__tstate); | |
4804 | if (PyErr_Occurred()) SWIG_fail; | |
4805 | } | |
4806 | { | |
4807 | wxBitmap* resultptr = new wxBitmap(*result); | |
4808 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4809 | } | |
4810 | return resultobj; | |
4811 | fail: | |
4812 | return NULL; | |
4813 | } | |
4814 | ||
4815 | ||
4816 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4817 | PyObject *obj; | |
4818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4819 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4820 | Py_INCREF(obj); | |
4821 | return Py_BuildValue((char *)""); | |
4822 | } | |
4823 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4824 | PyObject *resultobj; | |
4825 | wxBitmap *arg1 = 0 ; | |
4826 | long arg2 ; | |
4827 | int arg3 ; | |
4828 | wxWindow *arg4 = (wxWindow *) 0 ; | |
4829 | int arg5 ; | |
4830 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
4831 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4832 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4833 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4834 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4835 | wxSplashScreen *result; | |
4836 | wxPoint temp6 ; | |
4837 | wxSize temp7 ; | |
4838 | PyObject * obj0 = 0 ; | |
4839 | PyObject * obj1 = 0 ; | |
4840 | PyObject * obj2 = 0 ; | |
4841 | PyObject * obj3 = 0 ; | |
4842 | PyObject * obj4 = 0 ; | |
4843 | PyObject * obj5 = 0 ; | |
4844 | PyObject * obj6 = 0 ; | |
4845 | PyObject * obj7 = 0 ; | |
4846 | char *kwnames[] = { | |
4847 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4848 | }; | |
4849 | ||
4850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4853 | SWIG_fail; | |
4854 | if (arg1 == NULL) { | |
4855 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4856 | SWIG_fail; | |
4857 | } | |
4858 | arg2 = (long) SWIG_AsLong(obj1); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | arg3 = (int) SWIG_AsInt(obj2); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4864 | arg5 = (int) SWIG_AsInt(obj4); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | if (obj5) { | |
4867 | { | |
4868 | arg6 = &temp6; | |
4869 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4870 | } | |
4871 | } | |
4872 | if (obj6) { | |
4873 | { | |
4874 | arg7 = &temp7; | |
4875 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4876 | } | |
4877 | } | |
4878 | if (obj7) { | |
4879 | arg8 = (long) SWIG_AsLong(obj7); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
4881 | } | |
4882 | { | |
4883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4884 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
4890 | return resultobj; | |
4891 | fail: | |
4892 | return NULL; | |
4893 | } | |
4894 | ||
4895 | ||
4896 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4897 | PyObject *resultobj; | |
4898 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4899 | long result; | |
4900 | PyObject * obj0 = 0 ; | |
4901 | char *kwnames[] = { | |
4902 | (char *) "self", NULL | |
4903 | }; | |
4904 | ||
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4908 | { | |
4909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4910 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4911 | ||
4912 | wxPyEndAllowThreads(__tstate); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | } | |
4915 | resultobj = SWIG_FromLong((long)result); | |
4916 | return resultobj; | |
4917 | fail: | |
4918 | return NULL; | |
4919 | } | |
4920 | ||
4921 | ||
4922 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4923 | PyObject *resultobj; | |
4924 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4925 | wxSplashScreenWindow *result; | |
4926 | PyObject * obj0 = 0 ; | |
4927 | char *kwnames[] = { | |
4928 | (char *) "self", NULL | |
4929 | }; | |
4930 | ||
4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
4932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
4942 | return resultobj; | |
4943 | fail: | |
4944 | return NULL; | |
4945 | } | |
4946 | ||
4947 | ||
4948 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4949 | PyObject *resultobj; | |
4950 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4951 | int result; | |
4952 | PyObject * obj0 = 0 ; | |
4953 | char *kwnames[] = { | |
4954 | (char *) "self", NULL | |
4955 | }; | |
4956 | ||
4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
4958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
4959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4960 | { | |
4961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4962 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
4963 | ||
4964 | wxPyEndAllowThreads(__tstate); | |
4965 | if (PyErr_Occurred()) SWIG_fail; | |
4966 | } | |
4967 | resultobj = SWIG_FromInt((int)result); | |
4968 | return resultobj; | |
4969 | fail: | |
4970 | return NULL; | |
4971 | } | |
4972 | ||
4973 | ||
4974 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
4975 | PyObject *obj; | |
4976 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4977 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
4978 | Py_INCREF(obj); | |
4979 | return Py_BuildValue((char *)""); | |
4980 | } | |
4981 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4982 | PyObject *resultobj; | |
4983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4984 | int arg2 = (int) -1 ; | |
4985 | long arg3 = (long) wxST_SIZEGRIP ; | |
4986 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
4987 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4988 | wxStatusBar *result; | |
4989 | bool temp4 = False ; | |
4990 | PyObject * obj0 = 0 ; | |
4991 | PyObject * obj1 = 0 ; | |
4992 | PyObject * obj2 = 0 ; | |
4993 | PyObject * obj3 = 0 ; | |
4994 | char *kwnames[] = { | |
4995 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4996 | }; | |
4997 | ||
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5001 | if (obj1) { | |
5002 | arg2 = (int) SWIG_AsInt(obj1); | |
5003 | if (PyErr_Occurred()) SWIG_fail; | |
5004 | } | |
5005 | if (obj2) { | |
5006 | arg3 = (long) SWIG_AsLong(obj2); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | if (obj3) { | |
5010 | { | |
5011 | arg4 = wxString_in_helper(obj3); | |
5012 | if (arg4 == NULL) SWIG_fail; | |
5013 | temp4 = True; | |
5014 | } | |
5015 | } | |
5016 | { | |
5017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5018 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5019 | ||
5020 | wxPyEndAllowThreads(__tstate); | |
5021 | if (PyErr_Occurred()) SWIG_fail; | |
5022 | } | |
5023 | { | |
5024 | resultobj = wxPyMake_wxObject(result); | |
5025 | } | |
5026 | { | |
5027 | if (temp4) | |
5028 | delete arg4; | |
5029 | } | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | { | |
5033 | if (temp4) | |
5034 | delete arg4; | |
5035 | } | |
5036 | return NULL; | |
5037 | } | |
5038 | ||
5039 | ||
5040 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject *resultobj; | |
5042 | wxStatusBar *result; | |
5043 | char *kwnames[] = { | |
5044 | NULL | |
5045 | }; | |
5046 | ||
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | result = (wxStatusBar *)new wxStatusBar(); | |
5051 | ||
5052 | wxPyEndAllowThreads(__tstate); | |
5053 | if (PyErr_Occurred()) SWIG_fail; | |
5054 | } | |
5055 | { | |
5056 | resultobj = wxPyMake_wxObject(result); | |
5057 | } | |
5058 | return resultobj; | |
5059 | fail: | |
5060 | return NULL; | |
5061 | } | |
5062 | ||
5063 | ||
5064 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5065 | PyObject *resultobj; | |
5066 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5068 | int arg3 ; | |
5069 | long arg4 = (long) wxST_SIZEGRIP ; | |
5070 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5071 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5072 | bool result; | |
5073 | bool temp5 = False ; | |
5074 | PyObject * obj0 = 0 ; | |
5075 | PyObject * obj1 = 0 ; | |
5076 | PyObject * obj2 = 0 ; | |
5077 | PyObject * obj3 = 0 ; | |
5078 | PyObject * obj4 = 0 ; | |
5079 | char *kwnames[] = { | |
5080 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5081 | }; | |
5082 | ||
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5088 | arg3 = (int) SWIG_AsInt(obj2); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | if (obj3) { | |
5091 | arg4 = (long) SWIG_AsLong(obj3); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
5093 | } | |
5094 | if (obj4) { | |
5095 | { | |
5096 | arg5 = wxString_in_helper(obj4); | |
5097 | if (arg5 == NULL) SWIG_fail; | |
5098 | temp5 = True; | |
5099 | } | |
5100 | } | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5104 | ||
5105 | wxPyEndAllowThreads(__tstate); | |
5106 | if (PyErr_Occurred()) SWIG_fail; | |
5107 | } | |
5108 | { | |
5109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5110 | } | |
5111 | { | |
5112 | if (temp5) | |
5113 | delete arg5; | |
5114 | } | |
5115 | return resultobj; | |
5116 | fail: | |
5117 | { | |
5118 | if (temp5) | |
5119 | delete arg5; | |
5120 | } | |
5121 | return NULL; | |
5122 | } | |
5123 | ||
5124 | ||
5125 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5126 | PyObject *resultobj; | |
5127 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5128 | int arg2 = (int) 1 ; | |
5129 | PyObject * obj0 = 0 ; | |
5130 | PyObject * obj1 = 0 ; | |
5131 | char *kwnames[] = { | |
5132 | (char *) "self",(char *) "number", NULL | |
5133 | }; | |
5134 | ||
5135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5138 | if (obj1) { | |
5139 | arg2 = (int) SWIG_AsInt(obj1); | |
5140 | if (PyErr_Occurred()) SWIG_fail; | |
5141 | } | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | (arg1)->SetFieldsCount(arg2); | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | Py_INCREF(Py_None); resultobj = Py_None; | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
5156 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5157 | PyObject *resultobj; | |
5158 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5159 | int result; | |
5160 | PyObject * obj0 = 0 ; | |
5161 | char *kwnames[] = { | |
5162 | (char *) "self", NULL | |
5163 | }; | |
5164 | ||
5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5168 | { | |
5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5170 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5171 | ||
5172 | wxPyEndAllowThreads(__tstate); | |
5173 | if (PyErr_Occurred()) SWIG_fail; | |
5174 | } | |
5175 | resultobj = SWIG_FromInt((int)result); | |
5176 | return resultobj; | |
5177 | fail: | |
5178 | return NULL; | |
5179 | } | |
5180 | ||
5181 | ||
5182 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5183 | PyObject *resultobj; | |
5184 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5185 | wxString *arg2 = 0 ; | |
5186 | int arg3 = (int) 0 ; | |
5187 | bool temp2 = False ; | |
5188 | PyObject * obj0 = 0 ; | |
5189 | PyObject * obj1 = 0 ; | |
5190 | PyObject * obj2 = 0 ; | |
5191 | char *kwnames[] = { | |
5192 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5193 | }; | |
5194 | ||
5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5198 | { | |
5199 | arg2 = wxString_in_helper(obj1); | |
5200 | if (arg2 == NULL) SWIG_fail; | |
5201 | temp2 = True; | |
5202 | } | |
5203 | if (obj2) { | |
5204 | arg3 = (int) SWIG_AsInt(obj2); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
5207 | { | |
5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5209 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5210 | ||
5211 | wxPyEndAllowThreads(__tstate); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | } | |
5214 | Py_INCREF(Py_None); resultobj = Py_None; | |
5215 | { | |
5216 | if (temp2) | |
5217 | delete arg2; | |
5218 | } | |
5219 | return resultobj; | |
5220 | fail: | |
5221 | { | |
5222 | if (temp2) | |
5223 | delete arg2; | |
5224 | } | |
5225 | return NULL; | |
5226 | } | |
5227 | ||
5228 | ||
5229 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5230 | PyObject *resultobj; | |
5231 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5232 | int arg2 = (int) 0 ; | |
5233 | wxString result; | |
5234 | PyObject * obj0 = 0 ; | |
5235 | PyObject * obj1 = 0 ; | |
5236 | char *kwnames[] = { | |
5237 | (char *) "self",(char *) "number", NULL | |
5238 | }; | |
5239 | ||
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5243 | if (obj1) { | |
5244 | arg2 = (int) SWIG_AsInt(obj1); | |
5245 | if (PyErr_Occurred()) SWIG_fail; | |
5246 | } | |
5247 | { | |
5248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5249 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5250 | ||
5251 | wxPyEndAllowThreads(__tstate); | |
5252 | if (PyErr_Occurred()) SWIG_fail; | |
5253 | } | |
5254 | { | |
5255 | #if wxUSE_UNICODE | |
5256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5257 | #else | |
5258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5259 | #endif | |
5260 | } | |
5261 | return resultobj; | |
5262 | fail: | |
5263 | return NULL; | |
5264 | } | |
5265 | ||
5266 | ||
5267 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5268 | PyObject *resultobj; | |
5269 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5270 | wxString *arg2 = 0 ; | |
5271 | int arg3 = (int) 0 ; | |
5272 | bool temp2 = False ; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | PyObject * obj1 = 0 ; | |
5275 | PyObject * obj2 = 0 ; | |
5276 | char *kwnames[] = { | |
5277 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5278 | }; | |
5279 | ||
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5283 | { | |
5284 | arg2 = wxString_in_helper(obj1); | |
5285 | if (arg2 == NULL) SWIG_fail; | |
5286 | temp2 = True; | |
5287 | } | |
5288 | if (obj2) { | |
5289 | arg3 = (int) SWIG_AsInt(obj2); | |
5290 | if (PyErr_Occurred()) SWIG_fail; | |
5291 | } | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5294 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5295 | ||
5296 | wxPyEndAllowThreads(__tstate); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | Py_INCREF(Py_None); resultobj = Py_None; | |
5300 | { | |
5301 | if (temp2) | |
5302 | delete arg2; | |
5303 | } | |
5304 | return resultobj; | |
5305 | fail: | |
5306 | { | |
5307 | if (temp2) | |
5308 | delete arg2; | |
5309 | } | |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
5314 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject *resultobj; | |
5316 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5317 | int arg2 = (int) 0 ; | |
5318 | PyObject * obj0 = 0 ; | |
5319 | PyObject * obj1 = 0 ; | |
5320 | char *kwnames[] = { | |
5321 | (char *) "self",(char *) "number", NULL | |
5322 | }; | |
5323 | ||
5324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5327 | if (obj1) { | |
5328 | arg2 = (int) SWIG_AsInt(obj1); | |
5329 | if (PyErr_Occurred()) SWIG_fail; | |
5330 | } | |
5331 | { | |
5332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5333 | (arg1)->PopStatusText(arg2); | |
5334 | ||
5335 | wxPyEndAllowThreads(__tstate); | |
5336 | if (PyErr_Occurred()) SWIG_fail; | |
5337 | } | |
5338 | Py_INCREF(Py_None); resultobj = Py_None; | |
5339 | return resultobj; | |
5340 | fail: | |
5341 | return NULL; | |
5342 | } | |
5343 | ||
5344 | ||
5345 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5346 | PyObject *resultobj; | |
5347 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5348 | int arg2 ; | |
5349 | int *arg3 = (int *) 0 ; | |
5350 | PyObject * obj0 = 0 ; | |
5351 | PyObject * obj1 = 0 ; | |
5352 | char *kwnames[] = { | |
5353 | (char *) "self",(char *) "widths", NULL | |
5354 | }; | |
5355 | ||
5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5359 | { | |
5360 | arg2 = PyList_Size(obj1); | |
5361 | arg3 = int_LIST_helper(obj1); | |
5362 | if (arg3 == NULL) SWIG_fail; | |
5363 | } | |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5367 | ||
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | Py_INCREF(Py_None); resultobj = Py_None; | |
5372 | { | |
5373 | if (arg3) delete [] arg3; | |
5374 | } | |
5375 | return resultobj; | |
5376 | fail: | |
5377 | { | |
5378 | if (arg3) delete [] arg3; | |
5379 | } | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5387 | int arg2 ; | |
5388 | wxRect result; | |
5389 | PyObject * obj0 = 0 ; | |
5390 | PyObject * obj1 = 0 ; | |
5391 | char *kwnames[] = { | |
5392 | (char *) "self",(char *) "i", NULL | |
5393 | }; | |
5394 | ||
5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5398 | arg2 = (int) SWIG_AsInt(obj1); | |
5399 | if (PyErr_Occurred()) SWIG_fail; | |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | { | |
5408 | wxRect * resultptr; | |
5409 | resultptr = new wxRect((wxRect &) result); | |
5410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5411 | } | |
5412 | return resultobj; | |
5413 | fail: | |
5414 | return NULL; | |
5415 | } | |
5416 | ||
5417 | ||
5418 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5419 | PyObject *resultobj; | |
5420 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5421 | int arg2 ; | |
5422 | PyObject * obj0 = 0 ; | |
5423 | PyObject * obj1 = 0 ; | |
5424 | char *kwnames[] = { | |
5425 | (char *) "self",(char *) "height", NULL | |
5426 | }; | |
5427 | ||
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5431 | arg2 = (int) SWIG_AsInt(obj1); | |
5432 | if (PyErr_Occurred()) SWIG_fail; | |
5433 | { | |
5434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5435 | (arg1)->SetMinHeight(arg2); | |
5436 | ||
5437 | wxPyEndAllowThreads(__tstate); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | } | |
5440 | Py_INCREF(Py_None); resultobj = Py_None; | |
5441 | return resultobj; | |
5442 | fail: | |
5443 | return NULL; | |
5444 | } | |
5445 | ||
5446 | ||
5447 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5448 | PyObject *resultobj; | |
5449 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5450 | int result; | |
5451 | PyObject * obj0 = 0 ; | |
5452 | char *kwnames[] = { | |
5453 | (char *) "self", NULL | |
5454 | }; | |
5455 | ||
5456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5459 | { | |
5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5461 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5462 | ||
5463 | wxPyEndAllowThreads(__tstate); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | } | |
5466 | resultobj = SWIG_FromInt((int)result); | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5474 | PyObject *resultobj; | |
5475 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5476 | int result; | |
5477 | PyObject * obj0 = 0 ; | |
5478 | char *kwnames[] = { | |
5479 | (char *) "self", NULL | |
5480 | }; | |
5481 | ||
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5485 | { | |
5486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5487 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5488 | ||
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | resultobj = SWIG_FromInt((int)result); | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
f20a2e1f RD |
5499 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5500 | PyObject *resultobj; | |
5501 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5502 | wxVisualAttributes result; | |
5503 | PyObject * obj0 = 0 ; | |
5504 | char *kwnames[] = { | |
5505 | (char *) "variant", NULL | |
5506 | }; | |
5507 | ||
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5509 | if (obj0) { | |
5510 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
5513 | { | |
5514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5515 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5516 | ||
5517 | wxPyEndAllowThreads(__tstate); | |
5518 | if (PyErr_Occurred()) SWIG_fail; | |
5519 | } | |
5520 | { | |
5521 | wxVisualAttributes * resultptr; | |
5522 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5523 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5524 | } | |
5525 | return resultobj; | |
5526 | fail: | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
d55e5bfc RD |
5531 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { |
5532 | PyObject *obj; | |
5533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5534 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5535 | Py_INCREF(obj); | |
5536 | return Py_BuildValue((char *)""); | |
5537 | } | |
5538 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5539 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5540 | return 1; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | static PyObject *_wrap_SplitterNameStr_get() { | |
5545 | PyObject *pyobj; | |
5546 | ||
5547 | { | |
5548 | #if wxUSE_UNICODE | |
5549 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5550 | #else | |
5551 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5552 | #endif | |
5553 | } | |
5554 | return pyobj; | |
5555 | } | |
5556 | ||
5557 | ||
5558 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5559 | PyObject *resultobj; | |
5560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5561 | int arg2 = (int) -1 ; | |
5562 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5563 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5564 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5565 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5566 | long arg5 = (long) wxSP_3D ; | |
5567 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5568 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5569 | wxSplitterWindow *result; | |
5570 | wxPoint temp3 ; | |
5571 | wxSize temp4 ; | |
5572 | bool temp6 = False ; | |
5573 | PyObject * obj0 = 0 ; | |
5574 | PyObject * obj1 = 0 ; | |
5575 | PyObject * obj2 = 0 ; | |
5576 | PyObject * obj3 = 0 ; | |
5577 | PyObject * obj4 = 0 ; | |
5578 | PyObject * obj5 = 0 ; | |
5579 | char *kwnames[] = { | |
5580 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5581 | }; | |
5582 | ||
5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5586 | if (obj1) { | |
5587 | arg2 = (int) SWIG_AsInt(obj1); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
5590 | if (obj2) { | |
5591 | { | |
5592 | arg3 = &temp3; | |
5593 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5594 | } | |
5595 | } | |
5596 | if (obj3) { | |
5597 | { | |
5598 | arg4 = &temp4; | |
5599 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5600 | } | |
5601 | } | |
5602 | if (obj4) { | |
5603 | arg5 = (long) SWIG_AsLong(obj4); | |
5604 | if (PyErr_Occurred()) SWIG_fail; | |
5605 | } | |
5606 | if (obj5) { | |
5607 | { | |
5608 | arg6 = wxString_in_helper(obj5); | |
5609 | if (arg6 == NULL) SWIG_fail; | |
5610 | temp6 = True; | |
5611 | } | |
5612 | } | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5616 | ||
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5621 | { | |
5622 | if (temp6) | |
5623 | delete arg6; | |
5624 | } | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | { | |
5628 | if (temp6) | |
5629 | delete arg6; | |
5630 | } | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject *resultobj; | |
5637 | wxSplitterWindow *result; | |
5638 | char *kwnames[] = { | |
5639 | NULL | |
5640 | }; | |
5641 | ||
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5643 | { | |
5644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5645 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5646 | ||
5647 | wxPyEndAllowThreads(__tstate); | |
5648 | if (PyErr_Occurred()) SWIG_fail; | |
5649 | } | |
5650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5651 | return resultobj; | |
5652 | fail: | |
5653 | return NULL; | |
5654 | } | |
5655 | ||
5656 | ||
5657 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5658 | PyObject *resultobj; | |
5659 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5660 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5661 | int arg3 = (int) -1 ; | |
5662 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5663 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5664 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5665 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5666 | long arg6 = (long) wxSP_3D ; | |
5667 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5668 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5669 | bool result; | |
5670 | wxPoint temp4 ; | |
5671 | wxSize temp5 ; | |
5672 | bool temp7 = False ; | |
5673 | PyObject * obj0 = 0 ; | |
5674 | PyObject * obj1 = 0 ; | |
5675 | PyObject * obj2 = 0 ; | |
5676 | PyObject * obj3 = 0 ; | |
5677 | PyObject * obj4 = 0 ; | |
5678 | PyObject * obj5 = 0 ; | |
5679 | PyObject * obj6 = 0 ; | |
5680 | char *kwnames[] = { | |
5681 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5689 | if (obj2) { | |
5690 | arg3 = (int) SWIG_AsInt(obj2); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | if (obj3) { | |
5694 | { | |
5695 | arg4 = &temp4; | |
5696 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5697 | } | |
5698 | } | |
5699 | if (obj4) { | |
5700 | { | |
5701 | arg5 = &temp5; | |
5702 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5703 | } | |
5704 | } | |
5705 | if (obj5) { | |
5706 | arg6 = (long) SWIG_AsLong(obj5); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
5709 | if (obj6) { | |
5710 | { | |
5711 | arg7 = wxString_in_helper(obj6); | |
5712 | if (arg7 == NULL) SWIG_fail; | |
5713 | temp7 = True; | |
5714 | } | |
5715 | } | |
5716 | { | |
5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5718 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5719 | ||
5720 | wxPyEndAllowThreads(__tstate); | |
5721 | if (PyErr_Occurred()) SWIG_fail; | |
5722 | } | |
5723 | { | |
5724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5725 | } | |
5726 | { | |
5727 | if (temp7) | |
5728 | delete arg7; | |
5729 | } | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | { | |
5733 | if (temp7) | |
5734 | delete arg7; | |
5735 | } | |
5736 | return NULL; | |
5737 | } | |
5738 | ||
5739 | ||
5740 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject *resultobj; | |
5742 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5743 | wxWindow *result; | |
5744 | PyObject * obj0 = 0 ; | |
5745 | char *kwnames[] = { | |
5746 | (char *) "self", NULL | |
5747 | }; | |
5748 | ||
5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5752 | { | |
5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5754 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5755 | ||
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | { | |
5760 | resultobj = wxPyMake_wxObject(result); | |
5761 | } | |
5762 | return resultobj; | |
5763 | fail: | |
5764 | return NULL; | |
5765 | } | |
5766 | ||
5767 | ||
5768 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5769 | PyObject *resultobj; | |
5770 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5771 | wxWindow *result; | |
5772 | PyObject * obj0 = 0 ; | |
5773 | char *kwnames[] = { | |
5774 | (char *) "self", NULL | |
5775 | }; | |
5776 | ||
5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5780 | { | |
5781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5782 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5783 | ||
5784 | wxPyEndAllowThreads(__tstate); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
5787 | { | |
5788 | resultobj = wxPyMake_wxObject(result); | |
5789 | } | |
5790 | return resultobj; | |
5791 | fail: | |
5792 | return NULL; | |
5793 | } | |
5794 | ||
5795 | ||
5796 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject *resultobj; | |
5798 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5799 | int arg2 ; | |
5800 | PyObject * obj0 = 0 ; | |
5801 | PyObject * obj1 = 0 ; | |
5802 | char *kwnames[] = { | |
5803 | (char *) "self",(char *) "mode", NULL | |
5804 | }; | |
5805 | ||
5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5809 | arg2 = (int) SWIG_AsInt(obj1); | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
5811 | { | |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | (arg1)->SetSplitMode(arg2); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | Py_INCREF(Py_None); resultobj = Py_None; | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5828 | int result; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | char *kwnames[] = { | |
5831 | (char *) "self", NULL | |
5832 | }; | |
5833 | ||
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5837 | { | |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5840 | ||
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
5844 | resultobj = SWIG_FromInt((int)result); | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
5851 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject *resultobj; | |
5853 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5855 | PyObject * obj0 = 0 ; | |
5856 | PyObject * obj1 = 0 ; | |
5857 | char *kwnames[] = { | |
5858 | (char *) "self",(char *) "window", NULL | |
5859 | }; | |
5860 | ||
5861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5866 | { | |
5867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5868 | (arg1)->Initialize(arg2); | |
5869 | ||
5870 | wxPyEndAllowThreads(__tstate); | |
5871 | if (PyErr_Occurred()) SWIG_fail; | |
5872 | } | |
5873 | Py_INCREF(Py_None); resultobj = Py_None; | |
5874 | return resultobj; | |
5875 | fail: | |
5876 | return NULL; | |
5877 | } | |
5878 | ||
5879 | ||
5880 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject *resultobj; | |
5882 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5883 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5884 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5885 | int arg4 = (int) 0 ; | |
5886 | bool result; | |
5887 | PyObject * obj0 = 0 ; | |
5888 | PyObject * obj1 = 0 ; | |
5889 | PyObject * obj2 = 0 ; | |
5890 | PyObject * obj3 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5900 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5902 | if (obj3) { | |
5903 | arg4 = (int) SWIG_AsInt(obj3); | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | } | |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | { | |
5914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5915 | } | |
5916 | return resultobj; | |
5917 | fail: | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
5922 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject *resultobj; | |
5924 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5925 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5926 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5927 | int arg4 = (int) 0 ; | |
5928 | bool result; | |
5929 | PyObject * obj0 = 0 ; | |
5930 | PyObject * obj1 = 0 ; | |
5931 | PyObject * obj2 = 0 ; | |
5932 | PyObject * obj3 = 0 ; | |
5933 | char *kwnames[] = { | |
5934 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5935 | }; | |
5936 | ||
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5942 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
5943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5944 | if (obj3) { | |
5945 | arg4 = (int) SWIG_AsInt(obj3); | |
5946 | if (PyErr_Occurred()) SWIG_fail; | |
5947 | } | |
5948 | { | |
5949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5950 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
5951 | ||
5952 | wxPyEndAllowThreads(__tstate); | |
5953 | if (PyErr_Occurred()) SWIG_fail; | |
5954 | } | |
5955 | { | |
5956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5957 | } | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
5964 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject *resultobj; | |
5966 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5967 | wxWindow *arg2 = (wxWindow *) NULL ; | |
5968 | bool result; | |
5969 | PyObject * obj0 = 0 ; | |
5970 | PyObject * obj1 = 0 ; | |
5971 | char *kwnames[] = { | |
5972 | (char *) "self",(char *) "toRemove", NULL | |
5973 | }; | |
5974 | ||
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
5976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5978 | if (obj1) { | |
5979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5981 | } | |
5982 | { | |
5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5984 | result = (bool)(arg1)->Unsplit(arg2); | |
5985 | ||
5986 | wxPyEndAllowThreads(__tstate); | |
5987 | if (PyErr_Occurred()) SWIG_fail; | |
5988 | } | |
5989 | { | |
5990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5991 | } | |
5992 | return resultobj; | |
5993 | fail: | |
5994 | return NULL; | |
5995 | } | |
5996 | ||
5997 | ||
5998 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5999 | PyObject *resultobj; | |
6000 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6002 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6003 | bool result; | |
6004 | PyObject * obj0 = 0 ; | |
6005 | PyObject * obj1 = 0 ; | |
6006 | PyObject * obj2 = 0 ; | |
6007 | char *kwnames[] = { | |
6008 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6009 | }; | |
6010 | ||
6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6014 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6016 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6018 | { | |
6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6020 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6021 | ||
6022 | wxPyEndAllowThreads(__tstate); | |
6023 | if (PyErr_Occurred()) SWIG_fail; | |
6024 | } | |
6025 | { | |
6026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6027 | } | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj; | |
6036 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6037 | PyObject * obj0 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "self", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | (arg1)->UpdateSize(); | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | Py_INCREF(Py_None); resultobj = Py_None; | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
6059 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject *resultobj; | |
6061 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6062 | bool result; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6071 | { | |
6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6073 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6074 | ||
6075 | wxPyEndAllowThreads(__tstate); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | { | |
6079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6080 | } | |
6081 | return resultobj; | |
6082 | fail: | |
6083 | return NULL; | |
6084 | } | |
6085 | ||
6086 | ||
6087 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6088 | PyObject *resultobj; | |
6089 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6090 | int arg2 ; | |
6091 | PyObject * obj0 = 0 ; | |
6092 | PyObject * obj1 = 0 ; | |
6093 | char *kwnames[] = { | |
6094 | (char *) "self",(char *) "width", NULL | |
6095 | }; | |
6096 | ||
6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6100 | arg2 = (int) SWIG_AsInt(obj1); | |
6101 | if (PyErr_Occurred()) SWIG_fail; | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6104 | (arg1)->SetSashSize(arg2); | |
6105 | ||
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
6109 | Py_INCREF(Py_None); resultobj = Py_None; | |
6110 | return resultobj; | |
6111 | fail: | |
6112 | return NULL; | |
6113 | } | |
6114 | ||
6115 | ||
6116 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6117 | PyObject *resultobj; | |
6118 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6119 | int arg2 ; | |
6120 | PyObject * obj0 = 0 ; | |
6121 | PyObject * obj1 = 0 ; | |
6122 | char *kwnames[] = { | |
6123 | (char *) "self",(char *) "width", NULL | |
6124 | }; | |
6125 | ||
6126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6129 | arg2 = (int) SWIG_AsInt(obj1); | |
6130 | if (PyErr_Occurred()) SWIG_fail; | |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6133 | (arg1)->SetBorderSize(arg2); | |
6134 | ||
6135 | wxPyEndAllowThreads(__tstate); | |
6136 | if (PyErr_Occurred()) SWIG_fail; | |
6137 | } | |
6138 | Py_INCREF(Py_None); resultobj = Py_None; | |
6139 | return resultobj; | |
6140 | fail: | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
6145 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6146 | PyObject *resultobj; | |
6147 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6148 | int result; | |
6149 | PyObject * obj0 = 0 ; | |
6150 | char *kwnames[] = { | |
6151 | (char *) "self", NULL | |
6152 | }; | |
6153 | ||
6154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6157 | { | |
6158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6159 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6160 | ||
6161 | wxPyEndAllowThreads(__tstate); | |
6162 | if (PyErr_Occurred()) SWIG_fail; | |
6163 | } | |
6164 | resultobj = SWIG_FromInt((int)result); | |
6165 | return resultobj; | |
6166 | fail: | |
6167 | return NULL; | |
6168 | } | |
6169 | ||
6170 | ||
6171 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6172 | PyObject *resultobj; | |
6173 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6174 | int result; | |
6175 | PyObject * obj0 = 0 ; | |
6176 | char *kwnames[] = { | |
6177 | (char *) "self", NULL | |
6178 | }; | |
6179 | ||
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | resultobj = SWIG_FromInt((int)result); | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
6197 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6198 | PyObject *resultobj; | |
6199 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6200 | int arg2 ; | |
6201 | bool arg3 = (bool) True ; | |
6202 | PyObject * obj0 = 0 ; | |
6203 | PyObject * obj1 = 0 ; | |
6204 | PyObject * obj2 = 0 ; | |
6205 | char *kwnames[] = { | |
6206 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6207 | }; | |
6208 | ||
6209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6212 | arg2 = (int) SWIG_AsInt(obj1); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | if (obj2) { | |
6215 | arg3 = (bool) SWIG_AsBool(obj2); | |
6216 | if (PyErr_Occurred()) SWIG_fail; | |
6217 | } | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | (arg1)->SetSashPosition(arg2,arg3); | |
6221 | ||
6222 | wxPyEndAllowThreads(__tstate); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | } | |
6225 | Py_INCREF(Py_None); resultobj = Py_None; | |
6226 | return resultobj; | |
6227 | fail: | |
6228 | return NULL; | |
6229 | } | |
6230 | ||
6231 | ||
6232 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6233 | PyObject *resultobj; | |
6234 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6235 | int result; | |
6236 | PyObject * obj0 = 0 ; | |
6237 | char *kwnames[] = { | |
6238 | (char *) "self", NULL | |
6239 | }; | |
6240 | ||
6241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
6251 | resultobj = SWIG_FromInt((int)result); | |
6252 | return resultobj; | |
6253 | fail: | |
6254 | return NULL; | |
6255 | } | |
6256 | ||
6257 | ||
6258 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6259 | PyObject *resultobj; | |
6260 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6261 | int arg2 ; | |
6262 | PyObject * obj0 = 0 ; | |
6263 | PyObject * obj1 = 0 ; | |
6264 | char *kwnames[] = { | |
6265 | (char *) "self",(char *) "min", NULL | |
6266 | }; | |
6267 | ||
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6271 | arg2 = (int) SWIG_AsInt(obj1); | |
6272 | if (PyErr_Occurred()) SWIG_fail; | |
6273 | { | |
6274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6275 | (arg1)->SetMinimumPaneSize(arg2); | |
6276 | ||
6277 | wxPyEndAllowThreads(__tstate); | |
6278 | if (PyErr_Occurred()) SWIG_fail; | |
6279 | } | |
6280 | Py_INCREF(Py_None); resultobj = Py_None; | |
6281 | return resultobj; | |
6282 | fail: | |
6283 | return NULL; | |
6284 | } | |
6285 | ||
6286 | ||
6287 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6288 | PyObject *resultobj; | |
6289 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6290 | int result; | |
6291 | PyObject * obj0 = 0 ; | |
6292 | char *kwnames[] = { | |
6293 | (char *) "self", NULL | |
6294 | }; | |
6295 | ||
6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6299 | { | |
6300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6301 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6302 | ||
6303 | wxPyEndAllowThreads(__tstate); | |
6304 | if (PyErr_Occurred()) SWIG_fail; | |
6305 | } | |
6306 | resultobj = SWIG_FromInt((int)result); | |
6307 | return resultobj; | |
6308 | fail: | |
6309 | return NULL; | |
6310 | } | |
6311 | ||
6312 | ||
6313 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6314 | PyObject *resultobj; | |
6315 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6316 | int arg2 ; | |
6317 | int arg3 ; | |
6318 | int arg4 = (int) 5 ; | |
6319 | bool result; | |
6320 | PyObject * obj0 = 0 ; | |
6321 | PyObject * obj1 = 0 ; | |
6322 | PyObject * obj2 = 0 ; | |
6323 | PyObject * obj3 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6326 | }; | |
6327 | ||
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6331 | arg2 = (int) SWIG_AsInt(obj1); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | arg3 = (int) SWIG_AsInt(obj2); | |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
6335 | if (obj3) { | |
6336 | arg4 = (int) SWIG_AsInt(obj3); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6342 | ||
6343 | wxPyEndAllowThreads(__tstate); | |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
6345 | } | |
6346 | { | |
6347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6348 | } | |
6349 | return resultobj; | |
6350 | fail: | |
6351 | return NULL; | |
6352 | } | |
6353 | ||
6354 | ||
6355 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6356 | PyObject *resultobj; | |
6357 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6358 | PyObject * obj0 = 0 ; | |
6359 | char *kwnames[] = { | |
6360 | (char *) "self", NULL | |
6361 | }; | |
6362 | ||
6363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6368 | (arg1)->SizeWindows(); | |
6369 | ||
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
6373 | Py_INCREF(Py_None); resultobj = Py_None; | |
6374 | return resultobj; | |
6375 | fail: | |
6376 | return NULL; | |
6377 | } | |
6378 | ||
6379 | ||
6380 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6381 | PyObject *resultobj; | |
6382 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6383 | bool arg2 ; | |
6384 | PyObject * obj0 = 0 ; | |
6385 | PyObject * obj1 = 0 ; | |
6386 | char *kwnames[] = { | |
6387 | (char *) "self",(char *) "needUpdating", NULL | |
6388 | }; | |
6389 | ||
6390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6393 | arg2 = (bool) SWIG_AsBool(obj1); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | (arg1)->SetNeedUpdating(arg2); | |
6398 | ||
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
6402 | Py_INCREF(Py_None); resultobj = Py_None; | |
6403 | return resultobj; | |
6404 | fail: | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
6409 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6410 | PyObject *resultobj; | |
6411 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6412 | bool result; | |
6413 | PyObject * obj0 = 0 ; | |
6414 | char *kwnames[] = { | |
6415 | (char *) "self", NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6421 | { | |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6430 | } | |
6431 | return resultobj; | |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
f20a2e1f RD |
6437 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6438 | PyObject *resultobj; | |
6439 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6440 | wxVisualAttributes result; | |
6441 | PyObject * obj0 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "variant", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6447 | if (obj0) { | |
6448 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | { | |
6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6453 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6454 | ||
6455 | wxPyEndAllowThreads(__tstate); | |
6456 | if (PyErr_Occurred()) SWIG_fail; | |
6457 | } | |
6458 | { | |
6459 | wxVisualAttributes * resultptr; | |
6460 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6462 | } | |
6463 | return resultobj; | |
6464 | fail: | |
6465 | return NULL; | |
6466 | } | |
6467 | ||
6468 | ||
d55e5bfc RD |
6469 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { |
6470 | PyObject *obj; | |
6471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6472 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6473 | Py_INCREF(obj); | |
6474 | return Py_BuildValue((char *)""); | |
6475 | } | |
6476 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6477 | PyObject *resultobj; | |
6478 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6479 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6480 | wxSplitterEvent *result; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | PyObject * obj1 = 0 ; | |
6483 | char *kwnames[] = { | |
6484 | (char *) "type",(char *) "splitter", NULL | |
6485 | }; | |
6486 | ||
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6488 | if (obj0) { | |
6489 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6490 | if (PyErr_Occurred()) SWIG_fail; | |
6491 | } | |
6492 | if (obj1) { | |
6493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6495 | } | |
6496 | { | |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6498 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6499 | ||
6500 | wxPyEndAllowThreads(__tstate); | |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | return NULL; | |
6507 | } | |
6508 | ||
6509 | ||
6510 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6511 | PyObject *resultobj; | |
6512 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6513 | int arg2 ; | |
6514 | PyObject * obj0 = 0 ; | |
6515 | PyObject * obj1 = 0 ; | |
6516 | char *kwnames[] = { | |
6517 | (char *) "self",(char *) "pos", NULL | |
6518 | }; | |
6519 | ||
6520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6523 | arg2 = (int) SWIG_AsInt(obj1); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | { | |
6526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6527 | (arg1)->SetSashPosition(arg2); | |
6528 | ||
6529 | wxPyEndAllowThreads(__tstate); | |
6530 | if (PyErr_Occurred()) SWIG_fail; | |
6531 | } | |
6532 | Py_INCREF(Py_None); resultobj = Py_None; | |
6533 | return resultobj; | |
6534 | fail: | |
6535 | return NULL; | |
6536 | } | |
6537 | ||
6538 | ||
6539 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject *resultobj; | |
6541 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6542 | int result; | |
6543 | PyObject * obj0 = 0 ; | |
6544 | char *kwnames[] = { | |
6545 | (char *) "self", NULL | |
6546 | }; | |
6547 | ||
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6551 | { | |
6552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6553 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6554 | ||
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
6558 | resultobj = SWIG_FromInt((int)result); | |
6559 | return resultobj; | |
6560 | fail: | |
6561 | return NULL; | |
6562 | } | |
6563 | ||
6564 | ||
6565 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6566 | PyObject *resultobj; | |
6567 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6568 | wxWindow *result; | |
6569 | PyObject * obj0 = 0 ; | |
6570 | char *kwnames[] = { | |
6571 | (char *) "self", NULL | |
6572 | }; | |
6573 | ||
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | { | |
6585 | resultobj = wxPyMake_wxObject(result); | |
6586 | } | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | return NULL; | |
6590 | } | |
6591 | ||
6592 | ||
6593 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6594 | PyObject *resultobj; | |
6595 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6596 | int result; | |
6597 | PyObject * obj0 = 0 ; | |
6598 | char *kwnames[] = { | |
6599 | (char *) "self", NULL | |
6600 | }; | |
6601 | ||
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6605 | { | |
6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6607 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6608 | ||
6609 | wxPyEndAllowThreads(__tstate); | |
6610 | if (PyErr_Occurred()) SWIG_fail; | |
6611 | } | |
6612 | resultobj = SWIG_FromInt((int)result); | |
6613 | return resultobj; | |
6614 | fail: | |
6615 | return NULL; | |
6616 | } | |
6617 | ||
6618 | ||
6619 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6620 | PyObject *resultobj; | |
6621 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6622 | int result; | |
6623 | PyObject * obj0 = 0 ; | |
6624 | char *kwnames[] = { | |
6625 | (char *) "self", NULL | |
6626 | }; | |
6627 | ||
6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6631 | { | |
6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6633 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6634 | ||
6635 | wxPyEndAllowThreads(__tstate); | |
6636 | if (PyErr_Occurred()) SWIG_fail; | |
6637 | } | |
6638 | resultobj = SWIG_FromInt((int)result); | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6646 | PyObject *obj; | |
6647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6648 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6649 | Py_INCREF(obj); | |
6650 | return Py_BuildValue((char *)""); | |
6651 | } | |
6652 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6653 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6654 | return 1; | |
6655 | } | |
6656 | ||
6657 | ||
6658 | static PyObject *_wrap_SashNameStr_get() { | |
6659 | PyObject *pyobj; | |
6660 | ||
6661 | { | |
6662 | #if wxUSE_UNICODE | |
6663 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6664 | #else | |
6665 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6666 | #endif | |
6667 | } | |
6668 | return pyobj; | |
6669 | } | |
6670 | ||
6671 | ||
6672 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6673 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6674 | return 1; | |
6675 | } | |
6676 | ||
6677 | ||
6678 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6679 | PyObject *pyobj; | |
6680 | ||
6681 | { | |
6682 | #if wxUSE_UNICODE | |
6683 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6684 | #else | |
6685 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6686 | #endif | |
6687 | } | |
6688 | return pyobj; | |
6689 | } | |
6690 | ||
6691 | ||
6692 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6693 | PyObject *resultobj; | |
6694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6695 | int arg2 ; | |
6696 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6697 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6698 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6699 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6700 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6701 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6702 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6703 | wxSashWindow *result; | |
6704 | wxPoint temp3 ; | |
6705 | wxSize temp4 ; | |
6706 | bool temp6 = False ; | |
6707 | PyObject * obj0 = 0 ; | |
6708 | PyObject * obj1 = 0 ; | |
6709 | PyObject * obj2 = 0 ; | |
6710 | PyObject * obj3 = 0 ; | |
6711 | PyObject * obj4 = 0 ; | |
6712 | PyObject * obj5 = 0 ; | |
6713 | char *kwnames[] = { | |
6714 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6715 | }; | |
6716 | ||
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6720 | arg2 = (int) SWIG_AsInt(obj1); | |
6721 | if (PyErr_Occurred()) SWIG_fail; | |
6722 | if (obj2) { | |
6723 | { | |
6724 | arg3 = &temp3; | |
6725 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6726 | } | |
6727 | } | |
6728 | if (obj3) { | |
6729 | { | |
6730 | arg4 = &temp4; | |
6731 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6732 | } | |
6733 | } | |
6734 | if (obj4) { | |
6735 | arg5 = (long) SWIG_AsLong(obj4); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
6738 | if (obj5) { | |
6739 | { | |
6740 | arg6 = wxString_in_helper(obj5); | |
6741 | if (arg6 == NULL) SWIG_fail; | |
6742 | temp6 = True; | |
6743 | } | |
6744 | } | |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6753 | { | |
6754 | if (temp6) | |
6755 | delete arg6; | |
6756 | } | |
6757 | return resultobj; | |
6758 | fail: | |
6759 | { | |
6760 | if (temp6) | |
6761 | delete arg6; | |
6762 | } | |
6763 | return NULL; | |
6764 | } | |
6765 | ||
6766 | ||
6767 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6768 | PyObject *resultobj; | |
6769 | wxSashWindow *result; | |
6770 | char *kwnames[] = { | |
6771 | NULL | |
6772 | }; | |
6773 | ||
6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6775 | { | |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | result = (wxSashWindow *)new wxSashWindow(); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject *resultobj; | |
6791 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6792 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6793 | int arg3 ; | |
6794 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6795 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6796 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6797 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6798 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6799 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6800 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6801 | bool result; | |
6802 | wxPoint temp4 ; | |
6803 | wxSize temp5 ; | |
6804 | bool temp7 = False ; | |
6805 | PyObject * obj0 = 0 ; | |
6806 | PyObject * obj1 = 0 ; | |
6807 | PyObject * obj2 = 0 ; | |
6808 | PyObject * obj3 = 0 ; | |
6809 | PyObject * obj4 = 0 ; | |
6810 | PyObject * obj5 = 0 ; | |
6811 | PyObject * obj6 = 0 ; | |
6812 | char *kwnames[] = { | |
6813 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6814 | }; | |
6815 | ||
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6819 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6821 | arg3 = (int) SWIG_AsInt(obj2); | |
6822 | if (PyErr_Occurred()) SWIG_fail; | |
6823 | if (obj3) { | |
6824 | { | |
6825 | arg4 = &temp4; | |
6826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6827 | } | |
6828 | } | |
6829 | if (obj4) { | |
6830 | { | |
6831 | arg5 = &temp5; | |
6832 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6833 | } | |
6834 | } | |
6835 | if (obj5) { | |
6836 | arg6 = (long) SWIG_AsLong(obj5); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
6839 | if (obj6) { | |
6840 | { | |
6841 | arg7 = wxString_in_helper(obj6); | |
6842 | if (arg7 == NULL) SWIG_fail; | |
6843 | temp7 = True; | |
6844 | } | |
6845 | } | |
6846 | { | |
6847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6848 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6849 | ||
6850 | wxPyEndAllowThreads(__tstate); | |
6851 | if (PyErr_Occurred()) SWIG_fail; | |
6852 | } | |
6853 | { | |
6854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6855 | } | |
6856 | { | |
6857 | if (temp7) | |
6858 | delete arg7; | |
6859 | } | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | { | |
6863 | if (temp7) | |
6864 | delete arg7; | |
6865 | } | |
6866 | return NULL; | |
6867 | } | |
6868 | ||
6869 | ||
6870 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6871 | PyObject *resultobj; | |
6872 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6873 | int arg2 ; | |
6874 | bool arg3 ; | |
6875 | PyObject * obj0 = 0 ; | |
6876 | PyObject * obj1 = 0 ; | |
6877 | PyObject * obj2 = 0 ; | |
6878 | char *kwnames[] = { | |
6879 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6880 | }; | |
6881 | ||
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6885 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | arg3 = (bool) SWIG_AsBool(obj2); | |
6888 | if (PyErr_Occurred()) SWIG_fail; | |
6889 | { | |
6890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6891 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6892 | ||
6893 | wxPyEndAllowThreads(__tstate); | |
6894 | if (PyErr_Occurred()) SWIG_fail; | |
6895 | } | |
6896 | Py_INCREF(Py_None); resultobj = Py_None; | |
6897 | return resultobj; | |
6898 | fail: | |
6899 | return NULL; | |
6900 | } | |
6901 | ||
6902 | ||
6903 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6904 | PyObject *resultobj; | |
6905 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6906 | int arg2 ; | |
6907 | bool result; | |
6908 | PyObject * obj0 = 0 ; | |
6909 | PyObject * obj1 = 0 ; | |
6910 | char *kwnames[] = { | |
6911 | (char *) "self",(char *) "edge", NULL | |
6912 | }; | |
6913 | ||
6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
6915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6917 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6918 | if (PyErr_Occurred()) SWIG_fail; | |
6919 | { | |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
6926 | { | |
6927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6928 | } | |
6929 | return resultobj; | |
6930 | fail: | |
6931 | return NULL; | |
6932 | } | |
6933 | ||
6934 | ||
6935 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject *resultobj; | |
6937 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6938 | int arg2 ; | |
6939 | bool arg3 ; | |
6940 | PyObject * obj0 = 0 ; | |
6941 | PyObject * obj1 = 0 ; | |
6942 | PyObject * obj2 = 0 ; | |
6943 | char *kwnames[] = { | |
6944 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
6945 | }; | |
6946 | ||
6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6950 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | arg3 = (bool) SWIG_AsBool(obj2); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | { | |
6955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6956 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
6957 | ||
6958 | wxPyEndAllowThreads(__tstate); | |
6959 | if (PyErr_Occurred()) SWIG_fail; | |
6960 | } | |
6961 | Py_INCREF(Py_None); resultobj = Py_None; | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | return NULL; | |
6965 | } | |
6966 | ||
6967 | ||
6968 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6969 | PyObject *resultobj; | |
6970 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6971 | int arg2 ; | |
6972 | bool result; | |
6973 | PyObject * obj0 = 0 ; | |
6974 | PyObject * obj1 = 0 ; | |
6975 | char *kwnames[] = { | |
6976 | (char *) "self",(char *) "edge", NULL | |
6977 | }; | |
6978 | ||
6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
6980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
6981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6982 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
6983 | if (PyErr_Occurred()) SWIG_fail; | |
6984 | { | |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
6987 | ||
6988 | wxPyEndAllowThreads(__tstate); | |
6989 | if (PyErr_Occurred()) SWIG_fail; | |
6990 | } | |
6991 | { | |
6992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6993 | } | |
6994 | return resultobj; | |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
7000 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7001 | PyObject *resultobj; | |
7002 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7003 | int arg2 ; | |
7004 | int result; | |
7005 | PyObject * obj0 = 0 ; | |
7006 | PyObject * obj1 = 0 ; | |
7007 | char *kwnames[] = { | |
7008 | (char *) "self",(char *) "edge", NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7014 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7015 | if (PyErr_Occurred()) SWIG_fail; | |
7016 | { | |
7017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7018 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7019 | ||
7020 | wxPyEndAllowThreads(__tstate); | |
7021 | if (PyErr_Occurred()) SWIG_fail; | |
7022 | } | |
7023 | resultobj = SWIG_FromInt((int)result); | |
7024 | return resultobj; | |
7025 | fail: | |
7026 | return NULL; | |
7027 | } | |
7028 | ||
7029 | ||
7030 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7031 | PyObject *resultobj; | |
7032 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7033 | int arg2 ; | |
7034 | PyObject * obj0 = 0 ; | |
7035 | PyObject * obj1 = 0 ; | |
7036 | char *kwnames[] = { | |
7037 | (char *) "self",(char *) "width", NULL | |
7038 | }; | |
7039 | ||
7040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7043 | arg2 = (int) SWIG_AsInt(obj1); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | { | |
7046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7047 | (arg1)->SetDefaultBorderSize(arg2); | |
7048 | ||
7049 | wxPyEndAllowThreads(__tstate); | |
7050 | if (PyErr_Occurred()) SWIG_fail; | |
7051 | } | |
7052 | Py_INCREF(Py_None); resultobj = Py_None; | |
7053 | return resultobj; | |
7054 | fail: | |
7055 | return NULL; | |
7056 | } | |
7057 | ||
7058 | ||
7059 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7060 | PyObject *resultobj; | |
7061 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7062 | int result; | |
7063 | PyObject * obj0 = 0 ; | |
7064 | char *kwnames[] = { | |
7065 | (char *) "self", NULL | |
7066 | }; | |
7067 | ||
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7071 | { | |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7073 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7074 | ||
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | resultobj = SWIG_FromInt((int)result); | |
7079 | return resultobj; | |
7080 | fail: | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
7085 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7086 | PyObject *resultobj; | |
7087 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7088 | int arg2 ; | |
7089 | PyObject * obj0 = 0 ; | |
7090 | PyObject * obj1 = 0 ; | |
7091 | char *kwnames[] = { | |
7092 | (char *) "self",(char *) "width", NULL | |
7093 | }; | |
7094 | ||
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7098 | arg2 = (int) SWIG_AsInt(obj1); | |
7099 | if (PyErr_Occurred()) SWIG_fail; | |
7100 | { | |
7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7102 | (arg1)->SetExtraBorderSize(arg2); | |
7103 | ||
7104 | wxPyEndAllowThreads(__tstate); | |
7105 | if (PyErr_Occurred()) SWIG_fail; | |
7106 | } | |
7107 | Py_INCREF(Py_None); resultobj = Py_None; | |
7108 | return resultobj; | |
7109 | fail: | |
7110 | return NULL; | |
7111 | } | |
7112 | ||
7113 | ||
7114 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7115 | PyObject *resultobj; | |
7116 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7117 | int result; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | resultobj = SWIG_FromInt((int)result); | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | return NULL; | |
7137 | } | |
7138 | ||
7139 | ||
7140 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7141 | PyObject *resultobj; | |
7142 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7143 | int arg2 ; | |
7144 | PyObject * obj0 = 0 ; | |
7145 | PyObject * obj1 = 0 ; | |
7146 | char *kwnames[] = { | |
7147 | (char *) "self",(char *) "min", NULL | |
7148 | }; | |
7149 | ||
7150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7153 | arg2 = (int) SWIG_AsInt(obj1); | |
7154 | if (PyErr_Occurred()) SWIG_fail; | |
7155 | { | |
7156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7157 | (arg1)->SetMinimumSizeX(arg2); | |
7158 | ||
7159 | wxPyEndAllowThreads(__tstate); | |
7160 | if (PyErr_Occurred()) SWIG_fail; | |
7161 | } | |
7162 | Py_INCREF(Py_None); resultobj = Py_None; | |
7163 | return resultobj; | |
7164 | fail: | |
7165 | return NULL; | |
7166 | } | |
7167 | ||
7168 | ||
7169 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7170 | PyObject *resultobj; | |
7171 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7172 | int arg2 ; | |
7173 | PyObject * obj0 = 0 ; | |
7174 | PyObject * obj1 = 0 ; | |
7175 | char *kwnames[] = { | |
7176 | (char *) "self",(char *) "min", NULL | |
7177 | }; | |
7178 | ||
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7182 | arg2 = (int) SWIG_AsInt(obj1); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | { | |
7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7186 | (arg1)->SetMinimumSizeY(arg2); | |
7187 | ||
7188 | wxPyEndAllowThreads(__tstate); | |
7189 | if (PyErr_Occurred()) SWIG_fail; | |
7190 | } | |
7191 | Py_INCREF(Py_None); resultobj = Py_None; | |
7192 | return resultobj; | |
7193 | fail: | |
7194 | return NULL; | |
7195 | } | |
7196 | ||
7197 | ||
7198 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject *resultobj; | |
7200 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7201 | int result; | |
7202 | PyObject * obj0 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "self", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7210 | { | |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7213 | ||
7214 | wxPyEndAllowThreads(__tstate); | |
7215 | if (PyErr_Occurred()) SWIG_fail; | |
7216 | } | |
7217 | resultobj = SWIG_FromInt((int)result); | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
7226 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7227 | int result; | |
7228 | PyObject * obj0 = 0 ; | |
7229 | char *kwnames[] = { | |
7230 | (char *) "self", NULL | |
7231 | }; | |
7232 | ||
7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | resultobj = SWIG_FromInt((int)result); | |
7244 | return resultobj; | |
7245 | fail: | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
7250 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject *resultobj; | |
7252 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7253 | int arg2 ; | |
7254 | PyObject * obj0 = 0 ; | |
7255 | PyObject * obj1 = 0 ; | |
7256 | char *kwnames[] = { | |
7257 | (char *) "self",(char *) "max", NULL | |
7258 | }; | |
7259 | ||
7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7263 | arg2 = (int) SWIG_AsInt(obj1); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | { | |
7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7267 | (arg1)->SetMaximumSizeX(arg2); | |
7268 | ||
7269 | wxPyEndAllowThreads(__tstate); | |
7270 | if (PyErr_Occurred()) SWIG_fail; | |
7271 | } | |
7272 | Py_INCREF(Py_None); resultobj = Py_None; | |
7273 | return resultobj; | |
7274 | fail: | |
7275 | return NULL; | |
7276 | } | |
7277 | ||
7278 | ||
7279 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject *resultobj; | |
7281 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7282 | int arg2 ; | |
7283 | PyObject * obj0 = 0 ; | |
7284 | PyObject * obj1 = 0 ; | |
7285 | char *kwnames[] = { | |
7286 | (char *) "self",(char *) "max", NULL | |
7287 | }; | |
7288 | ||
7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7292 | arg2 = (int) SWIG_AsInt(obj1); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | (arg1)->SetMaximumSizeY(arg2); | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | Py_INCREF(Py_None); resultobj = Py_None; | |
7302 | return resultobj; | |
7303 | fail: | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
7308 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7309 | PyObject *resultobj; | |
7310 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7311 | int result; | |
7312 | PyObject * obj0 = 0 ; | |
7313 | char *kwnames[] = { | |
7314 | (char *) "self", NULL | |
7315 | }; | |
7316 | ||
7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7320 | { | |
7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7322 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7323 | ||
7324 | wxPyEndAllowThreads(__tstate); | |
7325 | if (PyErr_Occurred()) SWIG_fail; | |
7326 | } | |
7327 | resultobj = SWIG_FromInt((int)result); | |
7328 | return resultobj; | |
7329 | fail: | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
7334 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7335 | PyObject *resultobj; | |
7336 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7337 | int result; | |
7338 | PyObject * obj0 = 0 ; | |
7339 | char *kwnames[] = { | |
7340 | (char *) "self", NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7346 | { | |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7349 | ||
7350 | wxPyEndAllowThreads(__tstate); | |
7351 | if (PyErr_Occurred()) SWIG_fail; | |
7352 | } | |
7353 | resultobj = SWIG_FromInt((int)result); | |
7354 | return resultobj; | |
7355 | fail: | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
7360 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject *resultobj; | |
7362 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7363 | int arg2 ; | |
7364 | int arg3 ; | |
7365 | int arg4 = (int) 2 ; | |
7366 | int result; | |
7367 | PyObject * obj0 = 0 ; | |
7368 | PyObject * obj1 = 0 ; | |
7369 | PyObject * obj2 = 0 ; | |
7370 | PyObject * obj3 = 0 ; | |
7371 | char *kwnames[] = { | |
7372 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7373 | }; | |
7374 | ||
7375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7378 | arg2 = (int) SWIG_AsInt(obj1); | |
7379 | if (PyErr_Occurred()) SWIG_fail; | |
7380 | arg3 = (int) SWIG_AsInt(obj2); | |
7381 | if (PyErr_Occurred()) SWIG_fail; | |
7382 | if (obj3) { | |
7383 | arg4 = (int) SWIG_AsInt(obj3); | |
7384 | if (PyErr_Occurred()) SWIG_fail; | |
7385 | } | |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | resultobj = SWIG_FromInt((int)result); | |
7394 | return resultobj; | |
7395 | fail: | |
7396 | return NULL; | |
7397 | } | |
7398 | ||
7399 | ||
7400 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7401 | PyObject *resultobj; | |
7402 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7403 | PyObject * obj0 = 0 ; | |
7404 | char *kwnames[] = { | |
7405 | (char *) "self", NULL | |
7406 | }; | |
7407 | ||
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7411 | { | |
7412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7413 | (arg1)->SizeWindows(); | |
7414 | ||
7415 | wxPyEndAllowThreads(__tstate); | |
7416 | if (PyErr_Occurred()) SWIG_fail; | |
7417 | } | |
7418 | Py_INCREF(Py_None); resultobj = Py_None; | |
7419 | return resultobj; | |
7420 | fail: | |
7421 | return NULL; | |
7422 | } | |
7423 | ||
7424 | ||
7425 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7426 | PyObject *obj; | |
7427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7428 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7429 | Py_INCREF(obj); | |
7430 | return Py_BuildValue((char *)""); | |
7431 | } | |
7432 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7433 | PyObject *resultobj; | |
7434 | int arg1 = (int) 0 ; | |
7435 | int arg2 = (int) wxSASH_NONE ; | |
7436 | wxSashEvent *result; | |
7437 | PyObject * obj0 = 0 ; | |
7438 | PyObject * obj1 = 0 ; | |
7439 | char *kwnames[] = { | |
7440 | (char *) "id",(char *) "edge", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7444 | if (obj0) { | |
7445 | arg1 = (int) SWIG_AsInt(obj0); | |
7446 | if (PyErr_Occurred()) SWIG_fail; | |
7447 | } | |
7448 | if (obj1) { | |
7449 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
7452 | { | |
7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7454 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7455 | ||
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
7459 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7460 | return resultobj; | |
7461 | fail: | |
7462 | return NULL; | |
7463 | } | |
7464 | ||
7465 | ||
7466 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7467 | PyObject *resultobj; | |
7468 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7469 | int arg2 ; | |
7470 | PyObject * obj0 = 0 ; | |
7471 | PyObject * obj1 = 0 ; | |
7472 | char *kwnames[] = { | |
7473 | (char *) "self",(char *) "edge", NULL | |
7474 | }; | |
7475 | ||
7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7479 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7480 | if (PyErr_Occurred()) SWIG_fail; | |
7481 | { | |
7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7483 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7484 | ||
7485 | wxPyEndAllowThreads(__tstate); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | } | |
7488 | Py_INCREF(Py_None); resultobj = Py_None; | |
7489 | return resultobj; | |
7490 | fail: | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
7495 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7496 | PyObject *resultobj; | |
7497 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7498 | int result; | |
7499 | PyObject * obj0 = 0 ; | |
7500 | char *kwnames[] = { | |
7501 | (char *) "self", NULL | |
7502 | }; | |
7503 | ||
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
7514 | resultobj = SWIG_FromInt((int)result); | |
7515 | return resultobj; | |
7516 | fail: | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
7521 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7522 | PyObject *resultobj; | |
7523 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7524 | wxRect *arg2 = 0 ; | |
7525 | wxRect temp2 ; | |
7526 | PyObject * obj0 = 0 ; | |
7527 | PyObject * obj1 = 0 ; | |
7528 | char *kwnames[] = { | |
7529 | (char *) "self",(char *) "rect", NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7535 | { | |
7536 | arg2 = &temp2; | |
7537 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7538 | } | |
7539 | { | |
7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7541 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7542 | ||
7543 | wxPyEndAllowThreads(__tstate); | |
7544 | if (PyErr_Occurred()) SWIG_fail; | |
7545 | } | |
7546 | Py_INCREF(Py_None); resultobj = Py_None; | |
7547 | return resultobj; | |
7548 | fail: | |
7549 | return NULL; | |
7550 | } | |
7551 | ||
7552 | ||
7553 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7554 | PyObject *resultobj; | |
7555 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7556 | wxRect result; | |
7557 | PyObject * obj0 = 0 ; | |
7558 | char *kwnames[] = { | |
7559 | (char *) "self", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7565 | { | |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | { | |
7573 | wxRect * resultptr; | |
7574 | resultptr = new wxRect((wxRect &) result); | |
7575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7576 | } | |
7577 | return resultobj; | |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
7583 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7584 | PyObject *resultobj; | |
7585 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7586 | int arg2 ; | |
7587 | PyObject * obj0 = 0 ; | |
7588 | PyObject * obj1 = 0 ; | |
7589 | char *kwnames[] = { | |
7590 | (char *) "self",(char *) "status", NULL | |
7591 | }; | |
7592 | ||
7593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7596 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | { | |
7599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7600 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7601 | ||
7602 | wxPyEndAllowThreads(__tstate); | |
7603 | if (PyErr_Occurred()) SWIG_fail; | |
7604 | } | |
7605 | Py_INCREF(Py_None); resultobj = Py_None; | |
7606 | return resultobj; | |
7607 | fail: | |
7608 | return NULL; | |
7609 | } | |
7610 | ||
7611 | ||
7612 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject *resultobj; | |
7614 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7615 | int result; | |
7616 | PyObject * obj0 = 0 ; | |
7617 | char *kwnames[] = { | |
7618 | (char *) "self", NULL | |
7619 | }; | |
7620 | ||
7621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7624 | { | |
7625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7626 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7627 | ||
7628 | wxPyEndAllowThreads(__tstate); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | } | |
7631 | resultobj = SWIG_FromInt((int)result); | |
7632 | return resultobj; | |
7633 | fail: | |
7634 | return NULL; | |
7635 | } | |
7636 | ||
7637 | ||
7638 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7639 | PyObject *obj; | |
7640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7641 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7642 | Py_INCREF(obj); | |
7643 | return Py_BuildValue((char *)""); | |
7644 | } | |
7645 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7646 | PyObject *resultobj; | |
7647 | int arg1 = (int) 0 ; | |
7648 | wxQueryLayoutInfoEvent *result; | |
7649 | PyObject * obj0 = 0 ; | |
7650 | char *kwnames[] = { | |
7651 | (char *) "id", NULL | |
7652 | }; | |
7653 | ||
7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7655 | if (obj0) { | |
7656 | arg1 = (int) SWIG_AsInt(obj0); | |
7657 | if (PyErr_Occurred()) SWIG_fail; | |
7658 | } | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7667 | return resultobj; | |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7674 | PyObject *resultobj; | |
7675 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7676 | int arg2 ; | |
7677 | PyObject * obj0 = 0 ; | |
7678 | PyObject * obj1 = 0 ; | |
7679 | char *kwnames[] = { | |
7680 | (char *) "self",(char *) "length", NULL | |
7681 | }; | |
7682 | ||
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7686 | arg2 = (int) SWIG_AsInt(obj1); | |
7687 | if (PyErr_Occurred()) SWIG_fail; | |
7688 | { | |
7689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7690 | (arg1)->SetRequestedLength(arg2); | |
7691 | ||
7692 | wxPyEndAllowThreads(__tstate); | |
7693 | if (PyErr_Occurred()) SWIG_fail; | |
7694 | } | |
7695 | Py_INCREF(Py_None); resultobj = Py_None; | |
7696 | return resultobj; | |
7697 | fail: | |
7698 | return NULL; | |
7699 | } | |
7700 | ||
7701 | ||
7702 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7703 | PyObject *resultobj; | |
7704 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7705 | int result; | |
7706 | PyObject * obj0 = 0 ; | |
7707 | char *kwnames[] = { | |
7708 | (char *) "self", NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7714 | { | |
7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7716 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7717 | ||
7718 | wxPyEndAllowThreads(__tstate); | |
7719 | if (PyErr_Occurred()) SWIG_fail; | |
7720 | } | |
7721 | resultobj = SWIG_FromInt((int)result); | |
7722 | return resultobj; | |
7723 | fail: | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7731 | int arg2 ; | |
7732 | PyObject * obj0 = 0 ; | |
7733 | PyObject * obj1 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self",(char *) "flags", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7741 | arg2 = (int) SWIG_AsInt(obj1); | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | { | |
7744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7745 | (arg1)->SetFlags(arg2); | |
7746 | ||
7747 | wxPyEndAllowThreads(__tstate); | |
7748 | if (PyErr_Occurred()) SWIG_fail; | |
7749 | } | |
7750 | Py_INCREF(Py_None); resultobj = Py_None; | |
7751 | return resultobj; | |
7752 | fail: | |
7753 | return NULL; | |
7754 | } | |
7755 | ||
7756 | ||
7757 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7758 | PyObject *resultobj; | |
7759 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7760 | int result; | |
7761 | PyObject * obj0 = 0 ; | |
7762 | char *kwnames[] = { | |
7763 | (char *) "self", NULL | |
7764 | }; | |
7765 | ||
7766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7769 | { | |
7770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7771 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7772 | ||
7773 | wxPyEndAllowThreads(__tstate); | |
7774 | if (PyErr_Occurred()) SWIG_fail; | |
7775 | } | |
7776 | resultobj = SWIG_FromInt((int)result); | |
7777 | return resultobj; | |
7778 | fail: | |
7779 | return NULL; | |
7780 | } | |
7781 | ||
7782 | ||
7783 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7784 | PyObject *resultobj; | |
7785 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7786 | wxSize *arg2 = 0 ; | |
7787 | wxSize temp2 ; | |
7788 | PyObject * obj0 = 0 ; | |
7789 | PyObject * obj1 = 0 ; | |
7790 | char *kwnames[] = { | |
7791 | (char *) "self",(char *) "size", NULL | |
7792 | }; | |
7793 | ||
7794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7797 | { | |
7798 | arg2 = &temp2; | |
7799 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7800 | } | |
7801 | { | |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | (arg1)->SetSize((wxSize const &)*arg2); | |
7804 | ||
7805 | wxPyEndAllowThreads(__tstate); | |
7806 | if (PyErr_Occurred()) SWIG_fail; | |
7807 | } | |
7808 | Py_INCREF(Py_None); resultobj = Py_None; | |
7809 | return resultobj; | |
7810 | fail: | |
7811 | return NULL; | |
7812 | } | |
7813 | ||
7814 | ||
7815 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7816 | PyObject *resultobj; | |
7817 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7818 | wxSize result; | |
7819 | PyObject * obj0 = 0 ; | |
7820 | char *kwnames[] = { | |
7821 | (char *) "self", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | { | |
7835 | wxSize * resultptr; | |
7836 | resultptr = new wxSize((wxSize &) result); | |
7837 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7838 | } | |
7839 | return resultobj; | |
7840 | fail: | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
7845 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7846 | PyObject *resultobj; | |
7847 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7848 | int arg2 ; | |
7849 | PyObject * obj0 = 0 ; | |
7850 | PyObject * obj1 = 0 ; | |
7851 | char *kwnames[] = { | |
7852 | (char *) "self",(char *) "orient", NULL | |
7853 | }; | |
7854 | ||
7855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
7856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7858 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
7859 | if (PyErr_Occurred()) SWIG_fail; | |
7860 | { | |
7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7862 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7863 | ||
7864 | wxPyEndAllowThreads(__tstate); | |
7865 | if (PyErr_Occurred()) SWIG_fail; | |
7866 | } | |
7867 | Py_INCREF(Py_None); resultobj = Py_None; | |
7868 | return resultobj; | |
7869 | fail: | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject *resultobj; | |
7876 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7877 | int result; | |
7878 | PyObject * obj0 = 0 ; | |
7879 | char *kwnames[] = { | |
7880 | (char *) "self", NULL | |
7881 | }; | |
7882 | ||
7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7886 | { | |
7887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7888 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7889 | ||
7890 | wxPyEndAllowThreads(__tstate); | |
7891 | if (PyErr_Occurred()) SWIG_fail; | |
7892 | } | |
7893 | resultobj = SWIG_FromInt((int)result); | |
7894 | return resultobj; | |
7895 | fail: | |
7896 | return NULL; | |
7897 | } | |
7898 | ||
7899 | ||
7900 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7901 | PyObject *resultobj; | |
7902 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7903 | int arg2 ; | |
7904 | PyObject * obj0 = 0 ; | |
7905 | PyObject * obj1 = 0 ; | |
7906 | char *kwnames[] = { | |
7907 | (char *) "self",(char *) "align", NULL | |
7908 | }; | |
7909 | ||
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7913 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
7914 | if (PyErr_Occurred()) SWIG_fail; | |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | Py_INCREF(Py_None); resultobj = Py_None; | |
7923 | return resultobj; | |
7924 | fail: | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7932 | int result; | |
7933 | PyObject * obj0 = 0 ; | |
7934 | char *kwnames[] = { | |
7935 | (char *) "self", NULL | |
7936 | }; | |
7937 | ||
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
7939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7941 | { | |
7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7943 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
7944 | ||
7945 | wxPyEndAllowThreads(__tstate); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
7948 | resultobj = SWIG_FromInt((int)result); | |
7949 | return resultobj; | |
7950 | fail: | |
7951 | return NULL; | |
7952 | } | |
7953 | ||
7954 | ||
7955 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
7956 | PyObject *obj; | |
7957 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7958 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
7959 | Py_INCREF(obj); | |
7960 | return Py_BuildValue((char *)""); | |
7961 | } | |
7962 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7963 | PyObject *resultobj; | |
7964 | int arg1 = (int) 0 ; | |
7965 | wxCalculateLayoutEvent *result; | |
7966 | PyObject * obj0 = 0 ; | |
7967 | char *kwnames[] = { | |
7968 | (char *) "id", NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
7972 | if (obj0) { | |
7973 | arg1 = (int) SWIG_AsInt(obj0); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
7983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
7984 | return resultobj; | |
7985 | fail: | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
7990 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject *resultobj; | |
7992 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7993 | int arg2 ; | |
7994 | PyObject * obj0 = 0 ; | |
7995 | PyObject * obj1 = 0 ; | |
7996 | char *kwnames[] = { | |
7997 | (char *) "self",(char *) "flags", NULL | |
7998 | }; | |
7999 | ||
8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8003 | arg2 = (int) SWIG_AsInt(obj1); | |
8004 | if (PyErr_Occurred()) SWIG_fail; | |
8005 | { | |
8006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8007 | (arg1)->SetFlags(arg2); | |
8008 | ||
8009 | wxPyEndAllowThreads(__tstate); | |
8010 | if (PyErr_Occurred()) SWIG_fail; | |
8011 | } | |
8012 | Py_INCREF(Py_None); resultobj = Py_None; | |
8013 | return resultobj; | |
8014 | fail: | |
8015 | return NULL; | |
8016 | } | |
8017 | ||
8018 | ||
8019 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8020 | PyObject *resultobj; | |
8021 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8022 | int result; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "self", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8031 | { | |
8032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8033 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8034 | ||
8035 | wxPyEndAllowThreads(__tstate); | |
8036 | if (PyErr_Occurred()) SWIG_fail; | |
8037 | } | |
8038 | resultobj = SWIG_FromInt((int)result); | |
8039 | return resultobj; | |
8040 | fail: | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj; | |
8047 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8048 | wxRect *arg2 = 0 ; | |
8049 | wxRect temp2 ; | |
8050 | PyObject * obj0 = 0 ; | |
8051 | PyObject * obj1 = 0 ; | |
8052 | char *kwnames[] = { | |
8053 | (char *) "self",(char *) "rect", NULL | |
8054 | }; | |
8055 | ||
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8059 | { | |
8060 | arg2 = &temp2; | |
8061 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8062 | } | |
8063 | { | |
8064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8065 | (arg1)->SetRect((wxRect const &)*arg2); | |
8066 | ||
8067 | wxPyEndAllowThreads(__tstate); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | } | |
8070 | Py_INCREF(Py_None); resultobj = Py_None; | |
8071 | return resultobj; | |
8072 | fail: | |
8073 | return NULL; | |
8074 | } | |
8075 | ||
8076 | ||
8077 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8078 | PyObject *resultobj; | |
8079 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8080 | wxRect result; | |
8081 | PyObject * obj0 = 0 ; | |
8082 | char *kwnames[] = { | |
8083 | (char *) "self", NULL | |
8084 | }; | |
8085 | ||
8086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8089 | { | |
8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8091 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8092 | ||
8093 | wxPyEndAllowThreads(__tstate); | |
8094 | if (PyErr_Occurred()) SWIG_fail; | |
8095 | } | |
8096 | { | |
8097 | wxRect * resultptr; | |
8098 | resultptr = new wxRect((wxRect &) result); | |
8099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8100 | } | |
8101 | return resultobj; | |
8102 | fail: | |
8103 | return NULL; | |
8104 | } | |
8105 | ||
8106 | ||
8107 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8108 | PyObject *obj; | |
8109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8110 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8111 | Py_INCREF(obj); | |
8112 | return Py_BuildValue((char *)""); | |
8113 | } | |
8114 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8115 | PyObject *resultobj; | |
8116 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8117 | int arg2 ; | |
8118 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8119 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8120 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8121 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8122 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8123 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8124 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8125 | wxSashLayoutWindow *result; | |
8126 | wxPoint temp3 ; | |
8127 | wxSize temp4 ; | |
8128 | bool temp6 = False ; | |
8129 | PyObject * obj0 = 0 ; | |
8130 | PyObject * obj1 = 0 ; | |
8131 | PyObject * obj2 = 0 ; | |
8132 | PyObject * obj3 = 0 ; | |
8133 | PyObject * obj4 = 0 ; | |
8134 | PyObject * obj5 = 0 ; | |
8135 | char *kwnames[] = { | |
8136 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8137 | }; | |
8138 | ||
8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
8140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8142 | arg2 = (int) SWIG_AsInt(obj1); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | if (obj2) { | |
8145 | { | |
8146 | arg3 = &temp3; | |
8147 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8148 | } | |
8149 | } | |
8150 | if (obj3) { | |
8151 | { | |
8152 | arg4 = &temp4; | |
8153 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8154 | } | |
8155 | } | |
8156 | if (obj4) { | |
8157 | arg5 = (long) SWIG_AsLong(obj4); | |
8158 | if (PyErr_Occurred()) SWIG_fail; | |
8159 | } | |
8160 | if (obj5) { | |
8161 | { | |
8162 | arg6 = wxString_in_helper(obj5); | |
8163 | if (arg6 == NULL) SWIG_fail; | |
8164 | temp6 = True; | |
8165 | } | |
8166 | } | |
8167 | { | |
8168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8169 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8170 | ||
8171 | wxPyEndAllowThreads(__tstate); | |
8172 | if (PyErr_Occurred()) SWIG_fail; | |
8173 | } | |
8174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8175 | { | |
8176 | if (temp6) | |
8177 | delete arg6; | |
8178 | } | |
8179 | return resultobj; | |
8180 | fail: | |
8181 | { | |
8182 | if (temp6) | |
8183 | delete arg6; | |
8184 | } | |
8185 | return NULL; | |
8186 | } | |
8187 | ||
8188 | ||
8189 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8190 | PyObject *resultobj; | |
8191 | wxSashLayoutWindow *result; | |
8192 | char *kwnames[] = { | |
8193 | NULL | |
8194 | }; | |
8195 | ||
8196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8197 | { | |
8198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8199 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8200 | ||
8201 | wxPyEndAllowThreads(__tstate); | |
8202 | if (PyErr_Occurred()) SWIG_fail; | |
8203 | } | |
8204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8205 | return resultobj; | |
8206 | fail: | |
8207 | return NULL; | |
8208 | } | |
8209 | ||
8210 | ||
8211 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8212 | PyObject *resultobj; | |
8213 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8214 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8215 | int arg3 ; | |
8216 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8217 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8218 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8219 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8220 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8221 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8222 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8223 | bool result; | |
8224 | wxPoint temp4 ; | |
8225 | wxSize temp5 ; | |
8226 | bool temp7 = False ; | |
8227 | PyObject * obj0 = 0 ; | |
8228 | PyObject * obj1 = 0 ; | |
8229 | PyObject * obj2 = 0 ; | |
8230 | PyObject * obj3 = 0 ; | |
8231 | PyObject * obj4 = 0 ; | |
8232 | PyObject * obj5 = 0 ; | |
8233 | PyObject * obj6 = 0 ; | |
8234 | char *kwnames[] = { | |
8235 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8236 | }; | |
8237 | ||
8238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8243 | arg3 = (int) SWIG_AsInt(obj2); | |
8244 | if (PyErr_Occurred()) SWIG_fail; | |
8245 | if (obj3) { | |
8246 | { | |
8247 | arg4 = &temp4; | |
8248 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8249 | } | |
8250 | } | |
8251 | if (obj4) { | |
8252 | { | |
8253 | arg5 = &temp5; | |
8254 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8255 | } | |
8256 | } | |
8257 | if (obj5) { | |
8258 | arg6 = (long) SWIG_AsLong(obj5); | |
8259 | if (PyErr_Occurred()) SWIG_fail; | |
8260 | } | |
8261 | if (obj6) { | |
8262 | { | |
8263 | arg7 = wxString_in_helper(obj6); | |
8264 | if (arg7 == NULL) SWIG_fail; | |
8265 | temp7 = True; | |
8266 | } | |
8267 | } | |
8268 | { | |
8269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8270 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8271 | ||
8272 | wxPyEndAllowThreads(__tstate); | |
8273 | if (PyErr_Occurred()) SWIG_fail; | |
8274 | } | |
8275 | { | |
8276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8277 | } | |
8278 | { | |
8279 | if (temp7) | |
8280 | delete arg7; | |
8281 | } | |
8282 | return resultobj; | |
8283 | fail: | |
8284 | { | |
8285 | if (temp7) | |
8286 | delete arg7; | |
8287 | } | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
8292 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8293 | PyObject *resultobj; | |
8294 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8295 | int result; | |
8296 | PyObject * obj0 = 0 ; | |
8297 | char *kwnames[] = { | |
8298 | (char *) "self", NULL | |
8299 | }; | |
8300 | ||
8301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8304 | { | |
8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8306 | result = (int)(arg1)->GetAlignment(); | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
8311 | resultobj = SWIG_FromInt((int)result); | |
8312 | return resultobj; | |
8313 | fail: | |
8314 | return NULL; | |
8315 | } | |
8316 | ||
8317 | ||
8318 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8319 | PyObject *resultobj; | |
8320 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8321 | int result; | |
8322 | PyObject * obj0 = 0 ; | |
8323 | char *kwnames[] = { | |
8324 | (char *) "self", NULL | |
8325 | }; | |
8326 | ||
8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8330 | { | |
8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8332 | result = (int)(arg1)->GetOrientation(); | |
8333 | ||
8334 | wxPyEndAllowThreads(__tstate); | |
8335 | if (PyErr_Occurred()) SWIG_fail; | |
8336 | } | |
8337 | resultobj = SWIG_FromInt((int)result); | |
8338 | return resultobj; | |
8339 | fail: | |
8340 | return NULL; | |
8341 | } | |
8342 | ||
8343 | ||
8344 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8345 | PyObject *resultobj; | |
8346 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8347 | int arg2 ; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | PyObject * obj1 = 0 ; | |
8350 | char *kwnames[] = { | |
8351 | (char *) "self",(char *) "alignment", NULL | |
8352 | }; | |
8353 | ||
8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8357 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | { | |
8360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8361 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8362 | ||
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
8366 | Py_INCREF(Py_None); resultobj = Py_None; | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
8373 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8374 | PyObject *resultobj; | |
8375 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8376 | wxSize *arg2 = 0 ; | |
8377 | wxSize temp2 ; | |
8378 | PyObject * obj0 = 0 ; | |
8379 | PyObject * obj1 = 0 ; | |
8380 | char *kwnames[] = { | |
8381 | (char *) "self",(char *) "size", NULL | |
8382 | }; | |
8383 | ||
8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8387 | { | |
8388 | arg2 = &temp2; | |
8389 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8390 | } | |
8391 | { | |
8392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8393 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8394 | ||
8395 | wxPyEndAllowThreads(__tstate); | |
8396 | if (PyErr_Occurred()) SWIG_fail; | |
8397 | } | |
8398 | Py_INCREF(Py_None); resultobj = Py_None; | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | return NULL; | |
8402 | } | |
8403 | ||
8404 | ||
8405 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8406 | PyObject *resultobj; | |
8407 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8408 | int arg2 ; | |
8409 | PyObject * obj0 = 0 ; | |
8410 | PyObject * obj1 = 0 ; | |
8411 | char *kwnames[] = { | |
8412 | (char *) "self",(char *) "orientation", NULL | |
8413 | }; | |
8414 | ||
8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8418 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | { | |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) SWIG_fail; | |
8426 | } | |
8427 | Py_INCREF(Py_None); resultobj = Py_None; | |
8428 | return resultobj; | |
8429 | fail: | |
8430 | return NULL; | |
8431 | } | |
8432 | ||
8433 | ||
8434 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8435 | PyObject *obj; | |
8436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8437 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8438 | Py_INCREF(obj); | |
8439 | return Py_BuildValue((char *)""); | |
8440 | } | |
8441 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8442 | PyObject *resultobj; | |
8443 | wxLayoutAlgorithm *result; | |
8444 | char *kwnames[] = { | |
8445 | NULL | |
8446 | }; | |
8447 | ||
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8449 | { | |
8450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8451 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8452 | ||
8453 | wxPyEndAllowThreads(__tstate); | |
8454 | if (PyErr_Occurred()) SWIG_fail; | |
8455 | } | |
8456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8457 | return resultobj; | |
8458 | fail: | |
8459 | return NULL; | |
8460 | } | |
8461 | ||
8462 | ||
8463 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8464 | PyObject *resultobj; | |
8465 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8466 | PyObject * obj0 = 0 ; | |
8467 | char *kwnames[] = { | |
8468 | (char *) "self", NULL | |
8469 | }; | |
8470 | ||
8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8474 | { | |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | delete arg1; | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | Py_INCREF(Py_None); resultobj = Py_None; | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
8488 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8489 | PyObject *resultobj; | |
8490 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8491 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8492 | wxRect *arg3 = (wxRect *) NULL ; | |
8493 | bool result; | |
8494 | PyObject * obj0 = 0 ; | |
8495 | PyObject * obj1 = 0 ; | |
8496 | PyObject * obj2 = 0 ; | |
8497 | char *kwnames[] = { | |
8498 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8499 | }; | |
8500 | ||
8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8506 | if (obj2) { | |
8507 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8509 | } | |
8510 | { | |
8511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8512 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8513 | ||
8514 | wxPyEndAllowThreads(__tstate); | |
8515 | if (PyErr_Occurred()) SWIG_fail; | |
8516 | } | |
8517 | { | |
8518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8519 | } | |
8520 | return resultobj; | |
8521 | fail: | |
8522 | return NULL; | |
8523 | } | |
8524 | ||
8525 | ||
8526 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8527 | PyObject *resultobj; | |
8528 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8529 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8530 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8531 | bool result; | |
8532 | PyObject * obj0 = 0 ; | |
8533 | PyObject * obj1 = 0 ; | |
8534 | PyObject * obj2 = 0 ; | |
8535 | char *kwnames[] = { | |
8536 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8537 | }; | |
8538 | ||
8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8542 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8544 | if (obj2) { | |
8545 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8547 | } | |
8548 | { | |
8549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8550 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8551 | ||
8552 | wxPyEndAllowThreads(__tstate); | |
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
8555 | { | |
8556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8557 | } | |
8558 | return resultobj; | |
8559 | fail: | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
8564 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8565 | PyObject *resultobj; | |
8566 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8567 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8568 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8569 | bool result; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | PyObject * obj1 = 0 ; | |
8572 | PyObject * obj2 = 0 ; | |
8573 | char *kwnames[] = { | |
8574 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8575 | }; | |
8576 | ||
8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8582 | if (obj2) { | |
8583 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8585 | } | |
8586 | { | |
8587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8588 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8589 | ||
8590 | wxPyEndAllowThreads(__tstate); | |
8591 | if (PyErr_Occurred()) SWIG_fail; | |
8592 | } | |
8593 | { | |
8594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8595 | } | |
8596 | return resultobj; | |
8597 | fail: | |
8598 | return NULL; | |
8599 | } | |
8600 | ||
8601 | ||
8602 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8603 | PyObject *obj; | |
8604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8605 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8606 | Py_INCREF(obj); | |
8607 | return Py_BuildValue((char *)""); | |
8608 | } | |
8609 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject *resultobj; | |
8611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8612 | int arg2 = (int) wxBORDER_NONE ; | |
8613 | wxPopupWindow *result; | |
8614 | PyObject * obj0 = 0 ; | |
8615 | PyObject * obj1 = 0 ; | |
8616 | char *kwnames[] = { | |
8617 | (char *) "parent",(char *) "flags", NULL | |
8618 | }; | |
8619 | ||
8620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8623 | if (obj1) { | |
8624 | arg2 = (int) SWIG_AsInt(obj1); | |
8625 | if (PyErr_Occurred()) SWIG_fail; | |
8626 | } | |
8627 | { | |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8629 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8630 | ||
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | } | |
8634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8635 | return resultobj; | |
8636 | fail: | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
8641 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8642 | PyObject *resultobj; | |
8643 | wxPopupWindow *result; | |
8644 | char *kwnames[] = { | |
8645 | NULL | |
8646 | }; | |
8647 | ||
8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8649 | { | |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8657 | return resultobj; | |
8658 | fail: | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8664 | PyObject *resultobj; | |
8665 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8667 | int arg3 = (int) wxBORDER_NONE ; | |
8668 | bool result; | |
8669 | PyObject * obj0 = 0 ; | |
8670 | PyObject * obj1 = 0 ; | |
8671 | PyObject * obj2 = 0 ; | |
8672 | char *kwnames[] = { | |
8673 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
8674 | }; | |
8675 | ||
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8681 | if (obj2) { | |
8682 | arg3 = (int) SWIG_AsInt(obj2); | |
8683 | if (PyErr_Occurred()) SWIG_fail; | |
8684 | } | |
8685 | { | |
8686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8687 | result = (bool)(arg1)->Create(arg2,arg3); | |
8688 | ||
8689 | wxPyEndAllowThreads(__tstate); | |
8690 | if (PyErr_Occurred()) SWIG_fail; | |
8691 | } | |
8692 | { | |
8693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8694 | } | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject *resultobj; | |
8703 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8704 | wxPoint *arg2 = 0 ; | |
8705 | wxSize *arg3 = 0 ; | |
8706 | wxPoint temp2 ; | |
8707 | wxSize temp3 ; | |
8708 | PyObject * obj0 = 0 ; | |
8709 | PyObject * obj1 = 0 ; | |
8710 | PyObject * obj2 = 0 ; | |
8711 | char *kwnames[] = { | |
8712 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
8713 | }; | |
8714 | ||
8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8718 | { | |
8719 | arg2 = &temp2; | |
8720 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8721 | } | |
8722 | { | |
8723 | arg3 = &temp3; | |
8724 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
8725 | } | |
8726 | { | |
8727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8728 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8729 | ||
8730 | wxPyEndAllowThreads(__tstate); | |
8731 | if (PyErr_Occurred()) SWIG_fail; | |
8732 | } | |
8733 | Py_INCREF(Py_None); resultobj = Py_None; | |
8734 | return resultobj; | |
8735 | fail: | |
8736 | return NULL; | |
8737 | } | |
8738 | ||
8739 | ||
8740 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8741 | PyObject *obj; | |
8742 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8743 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8744 | Py_INCREF(obj); | |
8745 | return Py_BuildValue((char *)""); | |
8746 | } | |
8747 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8748 | PyObject *resultobj; | |
8749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8750 | int arg2 = (int) wxBORDER_NONE ; | |
8751 | wxPyPopupTransientWindow *result; | |
8752 | PyObject * obj0 = 0 ; | |
8753 | PyObject * obj1 = 0 ; | |
8754 | char *kwnames[] = { | |
8755 | (char *) "parent",(char *) "style", NULL | |
8756 | }; | |
8757 | ||
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8761 | if (obj1) { | |
8762 | arg2 = (int) SWIG_AsInt(obj1); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
8765 | { | |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
8772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8773 | return resultobj; | |
8774 | fail: | |
8775 | return NULL; | |
8776 | } | |
8777 | ||
8778 | ||
8779 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8780 | PyObject *resultobj; | |
8781 | wxPyPopupTransientWindow *result; | |
8782 | char *kwnames[] = { | |
8783 | NULL | |
8784 | }; | |
8785 | ||
8786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8787 | { | |
8788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8789 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8790 | ||
8791 | wxPyEndAllowThreads(__tstate); | |
8792 | if (PyErr_Occurred()) SWIG_fail; | |
8793 | } | |
8794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8795 | return resultobj; | |
8796 | fail: | |
8797 | return NULL; | |
8798 | } | |
8799 | ||
8800 | ||
8801 | static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8802 | PyObject *resultobj; | |
8803 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8804 | PyObject *arg2 = (PyObject *) 0 ; | |
8805 | PyObject *arg3 = (PyObject *) 0 ; | |
8806 | PyObject * obj0 = 0 ; | |
8807 | PyObject * obj1 = 0 ; | |
8808 | PyObject * obj2 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
8815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8816 | arg2 = obj1; | |
8817 | arg3 = obj2; | |
8818 | { | |
8819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8820 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8821 | ||
8822 | wxPyEndAllowThreads(__tstate); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | Py_INCREF(Py_None); resultobj = Py_None; | |
8826 | return resultobj; | |
8827 | fail: | |
8828 | return NULL; | |
8829 | } | |
8830 | ||
8831 | ||
8832 | static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8833 | PyObject *resultobj; | |
8834 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8835 | wxWindow *arg2 = (wxWindow *) NULL ; | |
8836 | PyObject * obj0 = 0 ; | |
8837 | PyObject * obj1 = 0 ; | |
8838 | char *kwnames[] = { | |
8839 | (char *) "self",(char *) "focus", NULL | |
8840 | }; | |
8841 | ||
8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; | |
8843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
8844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8845 | if (obj1) { | |
8846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8848 | } | |
8849 | { | |
8850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8851 | (arg1)->Popup(arg2); | |
8852 | ||
8853 | wxPyEndAllowThreads(__tstate); | |
8854 | if (PyErr_Occurred()) SWIG_fail; | |
8855 | } | |
8856 | Py_INCREF(Py_None); resultobj = Py_None; | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | return NULL; | |
8860 | } | |
8861 | ||
8862 | ||
8863 | static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8864 | PyObject *resultobj; | |
8865 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8866 | PyObject * obj0 = 0 ; | |
8867 | char *kwnames[] = { | |
8868 | (char *) "self", NULL | |
8869 | }; | |
8870 | ||
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; | |
8872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
8873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | (arg1)->Dismiss(); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | Py_INCREF(Py_None); resultobj = Py_None; | |
8882 | return resultobj; | |
8883 | fail: | |
8884 | return NULL; | |
8885 | } | |
8886 | ||
8887 | ||
8888 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
8889 | PyObject *obj; | |
8890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8891 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8892 | Py_INCREF(obj); | |
8893 | return Py_BuildValue((char *)""); | |
8894 | } | |
8895 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8896 | PyObject *resultobj; | |
8897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8898 | wxString *arg2 = 0 ; | |
8899 | int arg3 = (int) 100 ; | |
8900 | wxRect *arg4 = (wxRect *) NULL ; | |
8901 | wxTipWindow *result; | |
8902 | bool temp2 = False ; | |
8903 | PyObject * obj0 = 0 ; | |
8904 | PyObject * obj1 = 0 ; | |
8905 | PyObject * obj2 = 0 ; | |
8906 | PyObject * obj3 = 0 ; | |
8907 | char *kwnames[] = { | |
8908 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8909 | }; | |
8910 | ||
8911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8914 | { | |
8915 | arg2 = wxString_in_helper(obj1); | |
8916 | if (arg2 == NULL) SWIG_fail; | |
8917 | temp2 = True; | |
8918 | } | |
8919 | if (obj2) { | |
8920 | arg3 = (int) SWIG_AsInt(obj2); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
8923 | if (obj3) { | |
8924 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
8925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8926 | } | |
8927 | { | |
8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8929 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8930 | ||
8931 | wxPyEndAllowThreads(__tstate); | |
8932 | if (PyErr_Occurred()) SWIG_fail; | |
8933 | } | |
8934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
8935 | { | |
8936 | if (temp2) | |
8937 | delete arg2; | |
8938 | } | |
8939 | return resultobj; | |
8940 | fail: | |
8941 | { | |
8942 | if (temp2) | |
8943 | delete arg2; | |
8944 | } | |
8945 | return NULL; | |
8946 | } | |
8947 | ||
8948 | ||
8949 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8950 | PyObject *resultobj; | |
8951 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8952 | wxRect *arg2 = 0 ; | |
8953 | wxRect temp2 ; | |
8954 | PyObject * obj0 = 0 ; | |
8955 | PyObject * obj1 = 0 ; | |
8956 | char *kwnames[] = { | |
8957 | (char *) "self",(char *) "rectBound", NULL | |
8958 | }; | |
8959 | ||
8960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8963 | { | |
8964 | arg2 = &temp2; | |
8965 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8966 | } | |
8967 | { | |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8969 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8970 | ||
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | Py_INCREF(Py_None); resultobj = Py_None; | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | return NULL; | |
8978 | } | |
8979 | ||
8980 | ||
8981 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8982 | PyObject *resultobj; | |
8983 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8984 | PyObject * obj0 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "self", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
8991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8992 | { | |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | (arg1)->Close(); | |
8995 | ||
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
8999 | Py_INCREF(Py_None); resultobj = Py_None; | |
9000 | return resultobj; | |
9001 | fail: | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
9006 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
9007 | PyObject *obj; | |
9008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9009 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
9010 | Py_INCREF(obj); | |
9011 | return Py_BuildValue((char *)""); | |
9012 | } | |
9013 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9014 | PyObject *resultobj; | |
9015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9016 | int arg2 = (int) wxID_ANY ; | |
9017 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9018 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9019 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9020 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9021 | long arg5 = (long) 0 ; | |
9022 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
9023 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9024 | wxPyVScrolledWindow *result; | |
9025 | wxPoint temp3 ; | |
9026 | wxSize temp4 ; | |
9027 | bool temp6 = False ; | |
9028 | PyObject * obj0 = 0 ; | |
9029 | PyObject * obj1 = 0 ; | |
9030 | PyObject * obj2 = 0 ; | |
9031 | PyObject * obj3 = 0 ; | |
9032 | PyObject * obj4 = 0 ; | |
9033 | PyObject * obj5 = 0 ; | |
9034 | char *kwnames[] = { | |
9035 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9036 | }; | |
9037 | ||
9038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9041 | if (obj1) { | |
9042 | arg2 = (int) SWIG_AsInt(obj1); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | } | |
9045 | if (obj2) { | |
9046 | { | |
9047 | arg3 = &temp3; | |
9048 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9049 | } | |
9050 | } | |
9051 | if (obj3) { | |
9052 | { | |
9053 | arg4 = &temp4; | |
9054 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9055 | } | |
9056 | } | |
9057 | if (obj4) { | |
9058 | arg5 = (long) SWIG_AsLong(obj4); | |
9059 | if (PyErr_Occurred()) SWIG_fail; | |
9060 | } | |
9061 | if (obj5) { | |
9062 | { | |
9063 | arg6 = wxString_in_helper(obj5); | |
9064 | if (arg6 == NULL) SWIG_fail; | |
9065 | temp6 = True; | |
9066 | } | |
9067 | } | |
9068 | { | |
9069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9070 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9071 | ||
9072 | wxPyEndAllowThreads(__tstate); | |
9073 | if (PyErr_Occurred()) SWIG_fail; | |
9074 | } | |
9075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9076 | { | |
9077 | if (temp6) | |
9078 | delete arg6; | |
9079 | } | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | { | |
9083 | if (temp6) | |
9084 | delete arg6; | |
9085 | } | |
9086 | return NULL; | |
9087 | } | |
9088 | ||
9089 | ||
9090 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9091 | PyObject *resultobj; | |
9092 | wxPyVScrolledWindow *result; | |
9093 | char *kwnames[] = { | |
9094 | NULL | |
9095 | }; | |
9096 | ||
9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
9098 | { | |
9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9100 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
9101 | ||
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9106 | return resultobj; | |
9107 | fail: | |
9108 | return NULL; | |
9109 | } | |
9110 | ||
9111 | ||
9112 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9113 | PyObject *resultobj; | |
9114 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9115 | PyObject *arg2 = (PyObject *) 0 ; | |
9116 | PyObject *arg3 = (PyObject *) 0 ; | |
9117 | PyObject * obj0 = 0 ; | |
9118 | PyObject * obj1 = 0 ; | |
9119 | PyObject * obj2 = 0 ; | |
9120 | char *kwnames[] = { | |
9121 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9122 | }; | |
9123 | ||
9124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9127 | arg2 = obj1; | |
9128 | arg3 = obj2; | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | Py_INCREF(Py_None); resultobj = Py_None; | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9144 | PyObject *resultobj; | |
9145 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9146 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9147 | int arg3 = (int) wxID_ANY ; | |
9148 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9149 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9150 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9151 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9152 | long arg6 = (long) 0 ; | |
9153 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9154 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9155 | bool result; | |
9156 | wxPoint temp4 ; | |
9157 | wxSize temp5 ; | |
9158 | bool temp7 = False ; | |
9159 | PyObject * obj0 = 0 ; | |
9160 | PyObject * obj1 = 0 ; | |
9161 | PyObject * obj2 = 0 ; | |
9162 | PyObject * obj3 = 0 ; | |
9163 | PyObject * obj4 = 0 ; | |
9164 | PyObject * obj5 = 0 ; | |
9165 | PyObject * obj6 = 0 ; | |
9166 | char *kwnames[] = { | |
9167 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9168 | }; | |
9169 | ||
9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9173 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9175 | if (obj2) { | |
9176 | arg3 = (int) SWIG_AsInt(obj2); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | } | |
9179 | if (obj3) { | |
9180 | { | |
9181 | arg4 = &temp4; | |
9182 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9183 | } | |
9184 | } | |
9185 | if (obj4) { | |
9186 | { | |
9187 | arg5 = &temp5; | |
9188 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9189 | } | |
9190 | } | |
9191 | if (obj5) { | |
9192 | arg6 = (long) SWIG_AsLong(obj5); | |
9193 | if (PyErr_Occurred()) SWIG_fail; | |
9194 | } | |
9195 | if (obj6) { | |
9196 | { | |
9197 | arg7 = wxString_in_helper(obj6); | |
9198 | if (arg7 == NULL) SWIG_fail; | |
9199 | temp7 = True; | |
9200 | } | |
9201 | } | |
9202 | { | |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9204 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9205 | ||
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
9209 | { | |
9210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9211 | } | |
9212 | { | |
9213 | if (temp7) | |
9214 | delete arg7; | |
9215 | } | |
9216 | return resultobj; | |
9217 | fail: | |
9218 | { | |
9219 | if (temp7) | |
9220 | delete arg7; | |
9221 | } | |
9222 | return NULL; | |
9223 | } | |
9224 | ||
9225 | ||
9226 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9227 | PyObject *resultobj; | |
9228 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9229 | size_t arg2 ; | |
9230 | PyObject * obj0 = 0 ; | |
9231 | PyObject * obj1 = 0 ; | |
9232 | char *kwnames[] = { | |
9233 | (char *) "self",(char *) "count", NULL | |
9234 | }; | |
9235 | ||
9236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9239 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | { | |
9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9243 | (arg1)->SetLineCount(arg2); | |
9244 | ||
9245 | wxPyEndAllowThreads(__tstate); | |
9246 | if (PyErr_Occurred()) SWIG_fail; | |
9247 | } | |
9248 | Py_INCREF(Py_None); resultobj = Py_None; | |
9249 | return resultobj; | |
9250 | fail: | |
9251 | return NULL; | |
9252 | } | |
9253 | ||
9254 | ||
9255 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9256 | PyObject *resultobj; | |
9257 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9258 | size_t arg2 ; | |
9259 | bool result; | |
9260 | PyObject * obj0 = 0 ; | |
9261 | PyObject * obj1 = 0 ; | |
9262 | char *kwnames[] = { | |
9263 | (char *) "self",(char *) "line", NULL | |
9264 | }; | |
9265 | ||
9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9269 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9270 | if (PyErr_Occurred()) SWIG_fail; | |
9271 | { | |
9272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9273 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9274 | ||
9275 | wxPyEndAllowThreads(__tstate); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
9277 | } | |
9278 | { | |
9279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9280 | } | |
9281 | return resultobj; | |
9282 | fail: | |
9283 | return NULL; | |
9284 | } | |
9285 | ||
9286 | ||
9287 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9288 | PyObject *resultobj; | |
9289 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9290 | int arg2 ; | |
9291 | bool result; | |
9292 | PyObject * obj0 = 0 ; | |
9293 | PyObject * obj1 = 0 ; | |
9294 | char *kwnames[] = { | |
9295 | (char *) "self",(char *) "lines", NULL | |
9296 | }; | |
9297 | ||
9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9301 | arg2 = (int) SWIG_AsInt(obj1); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | { | |
9304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9305 | result = (bool)(arg1)->ScrollLines(arg2); | |
9306 | ||
9307 | wxPyEndAllowThreads(__tstate); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | } | |
9310 | { | |
9311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9312 | } | |
9313 | return resultobj; | |
9314 | fail: | |
9315 | return NULL; | |
9316 | } | |
9317 | ||
9318 | ||
9319 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9320 | PyObject *resultobj; | |
9321 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9322 | int arg2 ; | |
9323 | bool result; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | PyObject * obj1 = 0 ; | |
9326 | char *kwnames[] = { | |
9327 | (char *) "self",(char *) "pages", NULL | |
9328 | }; | |
9329 | ||
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9333 | arg2 = (int) SWIG_AsInt(obj1); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | { | |
9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9337 | result = (bool)(arg1)->ScrollPages(arg2); | |
9338 | ||
9339 | wxPyEndAllowThreads(__tstate); | |
9340 | if (PyErr_Occurred()) SWIG_fail; | |
9341 | } | |
9342 | { | |
9343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9344 | } | |
9345 | return resultobj; | |
9346 | fail: | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
9351 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9352 | PyObject *resultobj; | |
9353 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9354 | size_t arg2 ; | |
9355 | PyObject * obj0 = 0 ; | |
9356 | PyObject * obj1 = 0 ; | |
9357 | char *kwnames[] = { | |
9358 | (char *) "self",(char *) "line", NULL | |
9359 | }; | |
9360 | ||
9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9364 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9365 | if (PyErr_Occurred()) SWIG_fail; | |
9366 | { | |
9367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9368 | (arg1)->RefreshLine(arg2); | |
9369 | ||
9370 | wxPyEndAllowThreads(__tstate); | |
9371 | if (PyErr_Occurred()) SWIG_fail; | |
9372 | } | |
9373 | Py_INCREF(Py_None); resultobj = Py_None; | |
9374 | return resultobj; | |
9375 | fail: | |
9376 | return NULL; | |
9377 | } | |
9378 | ||
9379 | ||
9380 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9381 | PyObject *resultobj; | |
9382 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9383 | size_t arg2 ; | |
9384 | size_t arg3 ; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | PyObject * obj1 = 0 ; | |
9387 | PyObject * obj2 = 0 ; | |
9388 | char *kwnames[] = { | |
9389 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9390 | }; | |
9391 | ||
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9395 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
9397 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | { | |
9400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9401 | (arg1)->RefreshLines(arg2,arg3); | |
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_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9414 | PyObject *resultobj; | |
9415 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9416 | int arg2 ; | |
9417 | int arg3 ; | |
9418 | int result; | |
9419 | PyObject * obj0 = 0 ; | |
9420 | PyObject * obj1 = 0 ; | |
9421 | PyObject * obj2 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9429 | arg2 = (int) SWIG_AsInt(obj1); | |
9430 | if (PyErr_Occurred()) SWIG_fail; | |
9431 | arg3 = (int) SWIG_AsInt(obj2); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | { | |
9434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9435 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9436 | ||
9437 | wxPyEndAllowThreads(__tstate); | |
9438 | if (PyErr_Occurred()) SWIG_fail; | |
9439 | } | |
9440 | resultobj = SWIG_FromInt((int)result); | |
9441 | return resultobj; | |
9442 | fail: | |
9443 | return NULL; | |
9444 | } | |
9445 | ||
9446 | ||
9447 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9448 | PyObject *resultobj; | |
9449 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9450 | wxPoint *arg2 = 0 ; | |
9451 | int result; | |
9452 | wxPoint temp2 ; | |
9453 | PyObject * obj0 = 0 ; | |
9454 | PyObject * obj1 = 0 ; | |
9455 | char *kwnames[] = { | |
9456 | (char *) "self",(char *) "pt", NULL | |
9457 | }; | |
9458 | ||
9459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9462 | { | |
9463 | arg2 = &temp2; | |
9464 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9465 | } | |
9466 | { | |
9467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9468 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9469 | ||
9470 | wxPyEndAllowThreads(__tstate); | |
9471 | if (PyErr_Occurred()) SWIG_fail; | |
9472 | } | |
9473 | resultobj = SWIG_FromInt((int)result); | |
9474 | return resultobj; | |
9475 | fail: | |
9476 | return NULL; | |
9477 | } | |
9478 | ||
9479 | ||
9480 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9481 | PyObject *resultobj; | |
9482 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9483 | PyObject * obj0 = 0 ; | |
9484 | char *kwnames[] = { | |
9485 | (char *) "self", NULL | |
9486 | }; | |
9487 | ||
9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9491 | { | |
9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9493 | (arg1)->RefreshAll(); | |
9494 | ||
9495 | wxPyEndAllowThreads(__tstate); | |
9496 | if (PyErr_Occurred()) SWIG_fail; | |
9497 | } | |
9498 | Py_INCREF(Py_None); resultobj = Py_None; | |
9499 | return resultobj; | |
9500 | fail: | |
9501 | return NULL; | |
9502 | } | |
9503 | ||
9504 | ||
9505 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9506 | PyObject *resultobj; | |
9507 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9508 | size_t result; | |
9509 | PyObject * obj0 = 0 ; | |
9510 | char *kwnames[] = { | |
9511 | (char *) "self", NULL | |
9512 | }; | |
9513 | ||
9514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9517 | { | |
9518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9519 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9520 | ||
9521 | wxPyEndAllowThreads(__tstate); | |
9522 | if (PyErr_Occurred()) SWIG_fail; | |
9523 | } | |
9524 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9525 | return resultobj; | |
9526 | fail: | |
9527 | return NULL; | |
9528 | } | |
9529 | ||
9530 | ||
9531 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9532 | PyObject *resultobj; | |
9533 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9534 | size_t result; | |
9535 | PyObject * obj0 = 0 ; | |
9536 | char *kwnames[] = { | |
9537 | (char *) "self", NULL | |
9538 | }; | |
9539 | ||
9540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9543 | { | |
9544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9545 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9546 | ||
9547 | wxPyEndAllowThreads(__tstate); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
9550 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9551 | return resultobj; | |
9552 | fail: | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
9557 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9558 | PyObject *resultobj; | |
9559 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9560 | size_t result; | |
9561 | PyObject * obj0 = 0 ; | |
9562 | char *kwnames[] = { | |
9563 | (char *) "self", NULL | |
9564 | }; | |
9565 | ||
9566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9569 | { | |
9570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9571 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9572 | ||
9573 | wxPyEndAllowThreads(__tstate); | |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
9575 | } | |
9576 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9577 | return resultobj; | |
9578 | fail: | |
9579 | return NULL; | |
9580 | } | |
9581 | ||
9582 | ||
9583 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9584 | PyObject *resultobj; | |
9585 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9586 | size_t arg2 ; | |
9587 | bool result; | |
9588 | PyObject * obj0 = 0 ; | |
9589 | PyObject * obj1 = 0 ; | |
9590 | char *kwnames[] = { | |
9591 | (char *) "self",(char *) "line", NULL | |
9592 | }; | |
9593 | ||
9594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9597 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9598 | if (PyErr_Occurred()) SWIG_fail; | |
9599 | { | |
9600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9601 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9602 | ||
9603 | wxPyEndAllowThreads(__tstate); | |
9604 | if (PyErr_Occurred()) SWIG_fail; | |
9605 | } | |
9606 | { | |
9607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9608 | } | |
9609 | return resultobj; | |
9610 | fail: | |
9611 | return NULL; | |
9612 | } | |
9613 | ||
9614 | ||
9615 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9616 | PyObject *obj; | |
9617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9618 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9619 | Py_INCREF(obj); | |
9620 | return Py_BuildValue((char *)""); | |
9621 | } | |
9622 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9623 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9624 | return 1; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9629 | PyObject *pyobj; | |
9630 | ||
9631 | { | |
9632 | #if wxUSE_UNICODE | |
9633 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9634 | #else | |
9635 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9636 | #endif | |
9637 | } | |
9638 | return pyobj; | |
9639 | } | |
9640 | ||
9641 | ||
9642 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9643 | PyObject *resultobj; | |
9644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9645 | int arg2 = (int) wxID_ANY ; | |
9646 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9647 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9648 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9649 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9650 | long arg5 = (long) 0 ; | |
9651 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9652 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9653 | wxPyVListBox *result; | |
9654 | wxPoint temp3 ; | |
9655 | wxSize temp4 ; | |
9656 | bool temp6 = False ; | |
9657 | PyObject * obj0 = 0 ; | |
9658 | PyObject * obj1 = 0 ; | |
9659 | PyObject * obj2 = 0 ; | |
9660 | PyObject * obj3 = 0 ; | |
9661 | PyObject * obj4 = 0 ; | |
9662 | PyObject * obj5 = 0 ; | |
9663 | char *kwnames[] = { | |
9664 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9665 | }; | |
9666 | ||
9667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9670 | if (obj1) { | |
9671 | arg2 = (int) SWIG_AsInt(obj1); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | if (obj2) { | |
9675 | { | |
9676 | arg3 = &temp3; | |
9677 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9678 | } | |
9679 | } | |
9680 | if (obj3) { | |
9681 | { | |
9682 | arg4 = &temp4; | |
9683 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9684 | } | |
9685 | } | |
9686 | if (obj4) { | |
9687 | arg5 = (long) SWIG_AsLong(obj4); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | if (obj5) { | |
9691 | { | |
9692 | arg6 = wxString_in_helper(obj5); | |
9693 | if (arg6 == NULL) SWIG_fail; | |
9694 | temp6 = True; | |
9695 | } | |
9696 | } | |
9697 | { | |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9699 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
9702 | if (PyErr_Occurred()) SWIG_fail; | |
9703 | } | |
9704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9705 | { | |
9706 | if (temp6) | |
9707 | delete arg6; | |
9708 | } | |
9709 | return resultobj; | |
9710 | fail: | |
9711 | { | |
9712 | if (temp6) | |
9713 | delete arg6; | |
9714 | } | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
9719 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject *resultobj; | |
9721 | wxPyVListBox *result; | |
9722 | char *kwnames[] = { | |
9723 | NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9727 | { | |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9729 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9730 | ||
9731 | wxPyEndAllowThreads(__tstate); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | } | |
9734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9735 | return resultobj; | |
9736 | fail: | |
9737 | return NULL; | |
9738 | } | |
9739 | ||
9740 | ||
9741 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9742 | PyObject *resultobj; | |
9743 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9744 | PyObject *arg2 = (PyObject *) 0 ; | |
9745 | PyObject *arg3 = (PyObject *) 0 ; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | PyObject * obj1 = 0 ; | |
9748 | PyObject * obj2 = 0 ; | |
9749 | char *kwnames[] = { | |
9750 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9751 | }; | |
9752 | ||
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9756 | arg2 = obj1; | |
9757 | arg3 = obj2; | |
9758 | { | |
9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9760 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9761 | ||
9762 | wxPyEndAllowThreads(__tstate); | |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | Py_INCREF(Py_None); resultobj = Py_None; | |
9766 | return resultobj; | |
9767 | fail: | |
9768 | return NULL; | |
9769 | } | |
9770 | ||
9771 | ||
9772 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9773 | PyObject *resultobj; | |
9774 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9775 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9776 | int arg3 = (int) wxID_ANY ; | |
9777 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9778 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9779 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9780 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9781 | long arg6 = (long) 0 ; | |
9782 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9783 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9784 | bool result; | |
9785 | wxPoint temp4 ; | |
9786 | wxSize temp5 ; | |
9787 | bool temp7 = False ; | |
9788 | PyObject * obj0 = 0 ; | |
9789 | PyObject * obj1 = 0 ; | |
9790 | PyObject * obj2 = 0 ; | |
9791 | PyObject * obj3 = 0 ; | |
9792 | PyObject * obj4 = 0 ; | |
9793 | PyObject * obj5 = 0 ; | |
9794 | PyObject * obj6 = 0 ; | |
9795 | char *kwnames[] = { | |
9796 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9797 | }; | |
9798 | ||
9799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9804 | if (obj2) { | |
9805 | arg3 = (int) SWIG_AsInt(obj2); | |
9806 | if (PyErr_Occurred()) SWIG_fail; | |
9807 | } | |
9808 | if (obj3) { | |
9809 | { | |
9810 | arg4 = &temp4; | |
9811 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9812 | } | |
9813 | } | |
9814 | if (obj4) { | |
9815 | { | |
9816 | arg5 = &temp5; | |
9817 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9818 | } | |
9819 | } | |
9820 | if (obj5) { | |
9821 | arg6 = (long) SWIG_AsLong(obj5); | |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
9823 | } | |
9824 | if (obj6) { | |
9825 | { | |
9826 | arg7 = wxString_in_helper(obj6); | |
9827 | if (arg7 == NULL) SWIG_fail; | |
9828 | temp7 = True; | |
9829 | } | |
9830 | } | |
9831 | { | |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
9838 | { | |
9839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9840 | } | |
9841 | { | |
9842 | if (temp7) | |
9843 | delete arg7; | |
9844 | } | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | { | |
9848 | if (temp7) | |
9849 | delete arg7; | |
9850 | } | |
9851 | return NULL; | |
9852 | } | |
9853 | ||
9854 | ||
9855 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject *resultobj; | |
9857 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9858 | size_t result; | |
9859 | PyObject * obj0 = 0 ; | |
9860 | char *kwnames[] = { | |
9861 | (char *) "self", NULL | |
9862 | }; | |
9863 | ||
9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9870 | ||
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) SWIG_fail; | |
9873 | } | |
9874 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9875 | return resultobj; | |
9876 | fail: | |
9877 | return NULL; | |
9878 | } | |
9879 | ||
9880 | ||
9881 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject *resultobj; | |
9883 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9884 | bool result; | |
9885 | PyObject * obj0 = 0 ; | |
9886 | char *kwnames[] = { | |
9887 | (char *) "self", NULL | |
9888 | }; | |
9889 | ||
9890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9893 | { | |
9894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9895 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9896 | ||
9897 | wxPyEndAllowThreads(__tstate); | |
9898 | if (PyErr_Occurred()) SWIG_fail; | |
9899 | } | |
9900 | { | |
9901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9902 | } | |
9903 | return resultobj; | |
9904 | fail: | |
9905 | return NULL; | |
9906 | } | |
9907 | ||
9908 | ||
9909 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9910 | PyObject *resultobj; | |
9911 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9912 | int result; | |
9913 | PyObject * obj0 = 0 ; | |
9914 | char *kwnames[] = { | |
9915 | (char *) "self", NULL | |
9916 | }; | |
9917 | ||
9918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9921 | { | |
9922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9923 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9924 | ||
9925 | wxPyEndAllowThreads(__tstate); | |
9926 | if (PyErr_Occurred()) SWIG_fail; | |
9927 | } | |
9928 | resultobj = SWIG_FromInt((int)result); | |
9929 | return resultobj; | |
9930 | fail: | |
9931 | return NULL; | |
9932 | } | |
9933 | ||
9934 | ||
9935 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9936 | PyObject *resultobj; | |
9937 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9938 | size_t arg2 ; | |
9939 | bool result; | |
9940 | PyObject * obj0 = 0 ; | |
9941 | PyObject * obj1 = 0 ; | |
9942 | char *kwnames[] = { | |
9943 | (char *) "self",(char *) "item", NULL | |
9944 | }; | |
9945 | ||
9946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9949 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | { | |
9952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9953 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9954 | ||
9955 | wxPyEndAllowThreads(__tstate); | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | } | |
9958 | { | |
9959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9960 | } | |
9961 | return resultobj; | |
9962 | fail: | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
9967 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9968 | PyObject *resultobj; | |
9969 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9970 | size_t arg2 ; | |
9971 | bool result; | |
9972 | PyObject * obj0 = 0 ; | |
9973 | PyObject * obj1 = 0 ; | |
9974 | char *kwnames[] = { | |
9975 | (char *) "self",(char *) "item", NULL | |
9976 | }; | |
9977 | ||
9978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9981 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9982 | if (PyErr_Occurred()) SWIG_fail; | |
9983 | { | |
9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9985 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
9986 | ||
9987 | wxPyEndAllowThreads(__tstate); | |
9988 | if (PyErr_Occurred()) SWIG_fail; | |
9989 | } | |
9990 | { | |
9991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9992 | } | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject *resultobj; | |
10001 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10002 | size_t result; | |
10003 | PyObject * obj0 = 0 ; | |
10004 | char *kwnames[] = { | |
10005 | (char *) "self", NULL | |
10006 | }; | |
10007 | ||
10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
10009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10011 | { | |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
10014 | ||
10015 | wxPyEndAllowThreads(__tstate); | |
10016 | if (PyErr_Occurred()) SWIG_fail; | |
10017 | } | |
10018 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10019 | return resultobj; | |
10020 | fail: | |
10021 | return NULL; | |
10022 | } | |
10023 | ||
10024 | ||
10025 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10026 | PyObject *resultobj; | |
10027 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10028 | unsigned long *arg2 = 0 ; | |
10029 | int result; | |
10030 | PyObject * obj0 = 0 ; | |
10031 | PyObject * obj1 = 0 ; | |
10032 | char *kwnames[] = { | |
10033 | (char *) "self",(char *) "cookie", NULL | |
10034 | }; | |
10035 | ||
10036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
10037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10039 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
10040 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10041 | SWIG_fail; | |
10042 | if (arg2 == NULL) { | |
10043 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10044 | SWIG_fail; | |
10045 | } | |
10046 | { | |
10047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10048 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
10049 | ||
10050 | wxPyEndAllowThreads(__tstate); | |
10051 | if (PyErr_Occurred()) SWIG_fail; | |
10052 | } | |
10053 | resultobj = SWIG_FromInt((int)result); | |
10054 | return resultobj; | |
10055 | fail: | |
10056 | return NULL; | |
10057 | } | |
10058 | ||
10059 | ||
10060 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10061 | PyObject *resultobj; | |
10062 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10063 | unsigned long *arg2 = 0 ; | |
10064 | int result; | |
10065 | PyObject * obj0 = 0 ; | |
10066 | PyObject * obj1 = 0 ; | |
10067 | char *kwnames[] = { | |
10068 | (char *) "self",(char *) "cookie", NULL | |
10069 | }; | |
10070 | ||
10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
10072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_long, | |
10075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10076 | SWIG_fail; | |
10077 | if (arg2 == NULL) { | |
10078 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10079 | SWIG_fail; | |
10080 | } | |
10081 | { | |
10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10083 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
10084 | ||
10085 | wxPyEndAllowThreads(__tstate); | |
10086 | if (PyErr_Occurred()) SWIG_fail; | |
10087 | } | |
10088 | resultobj = SWIG_FromInt((int)result); | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | return NULL; | |
10092 | } | |
10093 | ||
10094 | ||
10095 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10096 | PyObject *resultobj; | |
10097 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10098 | wxPoint result; | |
10099 | PyObject * obj0 = 0 ; | |
10100 | char *kwnames[] = { | |
10101 | (char *) "self", NULL | |
10102 | }; | |
10103 | ||
10104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
10105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10107 | { | |
10108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10109 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
10110 | ||
10111 | wxPyEndAllowThreads(__tstate); | |
10112 | if (PyErr_Occurred()) SWIG_fail; | |
10113 | } | |
10114 | { | |
10115 | wxPoint * resultptr; | |
10116 | resultptr = new wxPoint((wxPoint &) result); | |
10117 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10118 | } | |
10119 | return resultobj; | |
10120 | fail: | |
10121 | return NULL; | |
10122 | } | |
10123 | ||
10124 | ||
10125 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject *resultobj; | |
10127 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10128 | wxColour *result; | |
10129 | PyObject * obj0 = 0 ; | |
10130 | char *kwnames[] = { | |
10131 | (char *) "self", NULL | |
10132 | }; | |
10133 | ||
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10137 | { | |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | { | |
10140 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10141 | result = (wxColour *) &_result_ref; | |
10142 | } | |
10143 | ||
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10148 | return resultobj; | |
10149 | fail: | |
10150 | return NULL; | |
10151 | } | |
10152 | ||
10153 | ||
10154 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10155 | PyObject *resultobj; | |
10156 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10157 | size_t arg2 ; | |
10158 | PyObject * obj0 = 0 ; | |
10159 | PyObject * obj1 = 0 ; | |
10160 | char *kwnames[] = { | |
10161 | (char *) "self",(char *) "count", NULL | |
10162 | }; | |
10163 | ||
10164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10167 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | (arg1)->SetItemCount(arg2); | |
10172 | ||
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | Py_INCREF(Py_None); resultobj = Py_None; | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj; | |
10185 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10186 | PyObject * obj0 = 0 ; | |
10187 | char *kwnames[] = { | |
10188 | (char *) "self", NULL | |
10189 | }; | |
10190 | ||
10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10194 | { | |
10195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10196 | (arg1)->Clear(); | |
10197 | ||
10198 | wxPyEndAllowThreads(__tstate); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | } | |
10201 | Py_INCREF(Py_None); resultobj = Py_None; | |
10202 | return resultobj; | |
10203 | fail: | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
10208 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10209 | PyObject *resultobj; | |
10210 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10211 | int arg2 ; | |
10212 | PyObject * obj0 = 0 ; | |
10213 | PyObject * obj1 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "self",(char *) "selection", NULL | |
10216 | }; | |
10217 | ||
10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10221 | arg2 = (int) SWIG_AsInt(obj1); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | (arg1)->SetSelection(arg2); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
10230 | Py_INCREF(Py_None); resultobj = Py_None; | |
10231 | return resultobj; | |
10232 | fail: | |
10233 | return NULL; | |
10234 | } | |
10235 | ||
10236 | ||
10237 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10238 | PyObject *resultobj; | |
10239 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10240 | size_t arg2 ; | |
10241 | bool arg3 = (bool) True ; | |
10242 | bool result; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | PyObject * obj1 = 0 ; | |
10245 | PyObject * obj2 = 0 ; | |
10246 | char *kwnames[] = { | |
10247 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10248 | }; | |
10249 | ||
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10253 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10254 | if (PyErr_Occurred()) SWIG_fail; | |
10255 | if (obj2) { | |
10256 | arg3 = (bool) SWIG_AsBool(obj2); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
10259 | { | |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10261 | result = (bool)(arg1)->Select(arg2,arg3); | |
10262 | ||
10263 | wxPyEndAllowThreads(__tstate); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | } | |
10266 | { | |
10267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10268 | } | |
10269 | return resultobj; | |
10270 | fail: | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
10275 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10276 | PyObject *resultobj; | |
10277 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10278 | size_t arg2 ; | |
10279 | size_t arg3 ; | |
10280 | bool result; | |
10281 | PyObject * obj0 = 0 ; | |
10282 | PyObject * obj1 = 0 ; | |
10283 | PyObject * obj2 = 0 ; | |
10284 | char *kwnames[] = { | |
10285 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10286 | }; | |
10287 | ||
10288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10291 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10292 | if (PyErr_Occurred()) SWIG_fail; | |
10293 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10294 | if (PyErr_Occurred()) SWIG_fail; | |
10295 | { | |
10296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10297 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10298 | ||
10299 | wxPyEndAllowThreads(__tstate); | |
10300 | if (PyErr_Occurred()) SWIG_fail; | |
10301 | } | |
10302 | { | |
10303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10304 | } | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
10311 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10312 | PyObject *resultobj; | |
10313 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10314 | size_t arg2 ; | |
10315 | PyObject * obj0 = 0 ; | |
10316 | PyObject * obj1 = 0 ; | |
10317 | char *kwnames[] = { | |
10318 | (char *) "self",(char *) "item", NULL | |
10319 | }; | |
10320 | ||
10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10324 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10325 | if (PyErr_Occurred()) SWIG_fail; | |
10326 | { | |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | (arg1)->Toggle(arg2); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
10333 | Py_INCREF(Py_None); resultobj = Py_None; | |
10334 | return resultobj; | |
10335 | fail: | |
10336 | return NULL; | |
10337 | } | |
10338 | ||
10339 | ||
10340 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject *resultobj; | |
10342 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10343 | bool result; | |
10344 | PyObject * obj0 = 0 ; | |
10345 | char *kwnames[] = { | |
10346 | (char *) "self", NULL | |
10347 | }; | |
10348 | ||
10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | result = (bool)(arg1)->SelectAll(); | |
10355 | ||
10356 | wxPyEndAllowThreads(__tstate); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
10359 | { | |
10360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10361 | } | |
10362 | return resultobj; | |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10371 | bool result; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | char *kwnames[] = { | |
10374 | (char *) "self", NULL | |
10375 | }; | |
10376 | ||
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10380 | { | |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (bool)(arg1)->DeselectAll(); | |
10383 | ||
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
10387 | { | |
10388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10389 | } | |
10390 | return resultobj; | |
10391 | fail: | |
10392 | return NULL; | |
10393 | } | |
10394 | ||
10395 | ||
10396 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10397 | PyObject *resultobj; | |
10398 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10399 | wxPoint *arg2 = 0 ; | |
10400 | wxPoint temp2 ; | |
10401 | PyObject * obj0 = 0 ; | |
10402 | PyObject * obj1 = 0 ; | |
10403 | char *kwnames[] = { | |
10404 | (char *) "self",(char *) "pt", NULL | |
10405 | }; | |
10406 | ||
10407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10410 | { | |
10411 | arg2 = &temp2; | |
10412 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10413 | } | |
10414 | { | |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | Py_INCREF(Py_None); resultobj = Py_None; | |
10422 | return resultobj; | |
10423 | fail: | |
10424 | return NULL; | |
10425 | } | |
10426 | ||
10427 | ||
10428 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10429 | PyObject *resultobj; | |
10430 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10431 | int arg2 ; | |
10432 | int arg3 ; | |
10433 | PyObject * obj0 = 0 ; | |
10434 | PyObject * obj1 = 0 ; | |
10435 | PyObject * obj2 = 0 ; | |
10436 | char *kwnames[] = { | |
10437 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10438 | }; | |
10439 | ||
10440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10443 | arg2 = (int) SWIG_AsInt(obj1); | |
10444 | if (PyErr_Occurred()) SWIG_fail; | |
10445 | arg3 = (int) SWIG_AsInt(obj2); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | { | |
10448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10449 | (arg1)->SetMargins(arg2,arg3); | |
10450 | ||
10451 | wxPyEndAllowThreads(__tstate); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
10454 | Py_INCREF(Py_None); resultobj = Py_None; | |
10455 | return resultobj; | |
10456 | fail: | |
10457 | return NULL; | |
10458 | } | |
10459 | ||
10460 | ||
10461 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10462 | PyObject *resultobj; | |
10463 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10464 | wxColour *arg2 = 0 ; | |
10465 | wxColour temp2 ; | |
10466 | PyObject * obj0 = 0 ; | |
10467 | PyObject * obj1 = 0 ; | |
10468 | char *kwnames[] = { | |
10469 | (char *) "self",(char *) "col", NULL | |
10470 | }; | |
10471 | ||
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10475 | { | |
10476 | arg2 = &temp2; | |
10477 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10478 | } | |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10482 | ||
10483 | wxPyEndAllowThreads(__tstate); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
10486 | Py_INCREF(Py_None); resultobj = Py_None; | |
10487 | return resultobj; | |
10488 | fail: | |
10489 | return NULL; | |
10490 | } | |
10491 | ||
10492 | ||
10493 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10494 | PyObject *obj; | |
10495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10496 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10497 | Py_INCREF(obj); | |
10498 | return Py_BuildValue((char *)""); | |
10499 | } | |
10500 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10501 | PyObject *resultobj; | |
10502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10503 | int arg2 = (int) wxID_ANY ; | |
10504 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10505 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10506 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10507 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10508 | long arg5 = (long) 0 ; | |
10509 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10510 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10511 | wxPyHtmlListBox *result; | |
10512 | wxPoint temp3 ; | |
10513 | wxSize temp4 ; | |
10514 | bool temp6 = False ; | |
10515 | PyObject * obj0 = 0 ; | |
10516 | PyObject * obj1 = 0 ; | |
10517 | PyObject * obj2 = 0 ; | |
10518 | PyObject * obj3 = 0 ; | |
10519 | PyObject * obj4 = 0 ; | |
10520 | PyObject * obj5 = 0 ; | |
10521 | char *kwnames[] = { | |
10522 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10523 | }; | |
10524 | ||
10525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10528 | if (obj1) { | |
10529 | arg2 = (int) SWIG_AsInt(obj1); | |
10530 | if (PyErr_Occurred()) SWIG_fail; | |
10531 | } | |
10532 | if (obj2) { | |
10533 | { | |
10534 | arg3 = &temp3; | |
10535 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10536 | } | |
10537 | } | |
10538 | if (obj3) { | |
10539 | { | |
10540 | arg4 = &temp4; | |
10541 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10542 | } | |
10543 | } | |
10544 | if (obj4) { | |
10545 | arg5 = (long) SWIG_AsLong(obj4); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | } | |
10548 | if (obj5) { | |
10549 | { | |
10550 | arg6 = wxString_in_helper(obj5); | |
10551 | if (arg6 == NULL) SWIG_fail; | |
10552 | temp6 = True; | |
10553 | } | |
10554 | } | |
10555 | { | |
10556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10557 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10558 | ||
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | } | |
10562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10563 | { | |
10564 | if (temp6) | |
10565 | delete arg6; | |
10566 | } | |
10567 | return resultobj; | |
10568 | fail: | |
10569 | { | |
10570 | if (temp6) | |
10571 | delete arg6; | |
10572 | } | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxPyHtmlListBox *result; | |
10580 | char *kwnames[] = { | |
10581 | NULL | |
10582 | }; | |
10583 | ||
10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10585 | { | |
10586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10587 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10588 | ||
10589 | wxPyEndAllowThreads(__tstate); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | } | |
10592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj; | |
10601 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10602 | PyObject *arg2 = (PyObject *) 0 ; | |
10603 | PyObject *arg3 = (PyObject *) 0 ; | |
10604 | PyObject * obj0 = 0 ; | |
10605 | PyObject * obj1 = 0 ; | |
10606 | PyObject * obj2 = 0 ; | |
10607 | char *kwnames[] = { | |
10608 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10609 | }; | |
10610 | ||
10611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10614 | arg2 = obj1; | |
10615 | arg3 = obj2; | |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) SWIG_fail; | |
10622 | } | |
10623 | Py_INCREF(Py_None); resultobj = Py_None; | |
10624 | return resultobj; | |
10625 | fail: | |
10626 | return NULL; | |
10627 | } | |
10628 | ||
10629 | ||
10630 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10631 | PyObject *resultobj; | |
10632 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10633 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10634 | int arg3 = (int) wxID_ANY ; | |
10635 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10636 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10637 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10638 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10639 | long arg6 = (long) 0 ; | |
10640 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10641 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10642 | bool result; | |
10643 | wxPoint temp4 ; | |
10644 | wxSize temp5 ; | |
10645 | bool temp7 = False ; | |
10646 | PyObject * obj0 = 0 ; | |
10647 | PyObject * obj1 = 0 ; | |
10648 | PyObject * obj2 = 0 ; | |
10649 | PyObject * obj3 = 0 ; | |
10650 | PyObject * obj4 = 0 ; | |
10651 | PyObject * obj5 = 0 ; | |
10652 | PyObject * obj6 = 0 ; | |
10653 | char *kwnames[] = { | |
10654 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10655 | }; | |
10656 | ||
10657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10662 | if (obj2) { | |
10663 | arg3 = (int) SWIG_AsInt(obj2); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | } | |
10666 | if (obj3) { | |
10667 | { | |
10668 | arg4 = &temp4; | |
10669 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10670 | } | |
10671 | } | |
10672 | if (obj4) { | |
10673 | { | |
10674 | arg5 = &temp5; | |
10675 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10676 | } | |
10677 | } | |
10678 | if (obj5) { | |
10679 | arg6 = (long) SWIG_AsLong(obj5); | |
10680 | if (PyErr_Occurred()) SWIG_fail; | |
10681 | } | |
10682 | if (obj6) { | |
10683 | { | |
10684 | arg7 = wxString_in_helper(obj6); | |
10685 | if (arg7 == NULL) SWIG_fail; | |
10686 | temp7 = True; | |
10687 | } | |
10688 | } | |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10691 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10692 | ||
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
10695 | } | |
10696 | { | |
10697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10698 | } | |
10699 | { | |
10700 | if (temp7) | |
10701 | delete arg7; | |
10702 | } | |
10703 | return resultobj; | |
10704 | fail: | |
10705 | { | |
10706 | if (temp7) | |
10707 | delete arg7; | |
10708 | } | |
10709 | return NULL; | |
10710 | } | |
10711 | ||
10712 | ||
10713 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10714 | PyObject *resultobj; | |
10715 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10716 | PyObject * obj0 = 0 ; | |
10717 | char *kwnames[] = { | |
10718 | (char *) "self", NULL | |
10719 | }; | |
10720 | ||
10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10724 | { | |
10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10726 | (arg1)->RefreshAll(); | |
10727 | ||
10728 | wxPyEndAllowThreads(__tstate); | |
10729 | if (PyErr_Occurred()) SWIG_fail; | |
10730 | } | |
10731 | Py_INCREF(Py_None); resultobj = Py_None; | |
10732 | return resultobj; | |
10733 | fail: | |
10734 | return NULL; | |
10735 | } | |
10736 | ||
10737 | ||
10738 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10739 | PyObject *resultobj; | |
10740 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10741 | size_t arg2 ; | |
10742 | PyObject * obj0 = 0 ; | |
10743 | PyObject * obj1 = 0 ; | |
10744 | char *kwnames[] = { | |
10745 | (char *) "self",(char *) "count", NULL | |
10746 | }; | |
10747 | ||
10748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10751 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10752 | if (PyErr_Occurred()) SWIG_fail; | |
10753 | { | |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10755 | (arg1)->SetItemCount(arg2); | |
10756 | ||
10757 | wxPyEndAllowThreads(__tstate); | |
10758 | if (PyErr_Occurred()) SWIG_fail; | |
10759 | } | |
10760 | Py_INCREF(Py_None); resultobj = Py_None; | |
10761 | return resultobj; | |
10762 | fail: | |
10763 | return NULL; | |
10764 | } | |
10765 | ||
10766 | ||
c24da6d6 RD |
10767 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { |
10768 | PyObject *resultobj; | |
10769 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10770 | wxFileSystem *result; | |
10771 | PyObject * obj0 = 0 ; | |
10772 | char *kwnames[] = { | |
10773 | (char *) "self", NULL | |
10774 | }; | |
10775 | ||
10776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10779 | { | |
10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10781 | { | |
10782 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10783 | result = (wxFileSystem *) &_result_ref; | |
10784 | } | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
d55e5bfc RD |
10796 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { |
10797 | PyObject *obj; | |
10798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10799 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10800 | Py_INCREF(obj); | |
10801 | return Py_BuildValue((char *)""); | |
10802 | } | |
10803 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject *resultobj; | |
10805 | wxTaskBarIcon *result; | |
10806 | char *kwnames[] = { | |
10807 | NULL | |
10808 | }; | |
10809 | ||
10810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
10825 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10826 | PyObject *resultobj; | |
10827 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10828 | PyObject * obj0 = 0 ; | |
10829 | char *kwnames[] = { | |
10830 | (char *) "self", NULL | |
10831 | }; | |
10832 | ||
10833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10836 | { | |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | delete arg1; | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | Py_INCREF(Py_None); resultobj = Py_None; | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
10850 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject *resultobj; | |
10852 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10853 | PyObject * obj0 = 0 ; | |
10854 | char *kwnames[] = { | |
10855 | (char *) "self", NULL | |
10856 | }; | |
10857 | ||
10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
10859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | wxTaskBarIcon_Destroy(arg1); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | Py_INCREF(Py_None); resultobj = Py_None; | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
10875 | static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10876 | PyObject *resultobj; | |
10877 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10878 | bool result; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; | |
10885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
10894 | { | |
10895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10896 | } | |
10897 | return resultobj; | |
10898 | fail: | |
10899 | return NULL; | |
10900 | } | |
10901 | ||
10902 | ||
10903 | static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10904 | PyObject *resultobj; | |
10905 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10906 | bool result; | |
10907 | PyObject * obj0 = 0 ; | |
10908 | char *kwnames[] = { | |
10909 | (char *) "self", NULL | |
10910 | }; | |
10911 | ||
10912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; | |
10913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10915 | { | |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); | |
10918 | ||
10919 | wxPyEndAllowThreads(__tstate); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
10921 | } | |
10922 | { | |
10923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10924 | } | |
10925 | return resultobj; | |
10926 | fail: | |
10927 | return NULL; | |
10928 | } | |
10929 | ||
10930 | ||
10931 | static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10932 | PyObject *resultobj; | |
10933 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10934 | wxIcon *arg2 = 0 ; | |
10935 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10936 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10937 | bool result; | |
10938 | bool temp3 = False ; | |
10939 | PyObject * obj0 = 0 ; | |
10940 | PyObject * obj1 = 0 ; | |
10941 | PyObject * obj2 = 0 ; | |
10942 | char *kwnames[] = { | |
10943 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
10944 | }; | |
10945 | ||
10946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
10950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10951 | SWIG_fail; | |
10952 | if (arg2 == NULL) { | |
10953 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10954 | SWIG_fail; | |
10955 | } | |
10956 | if (obj2) { | |
10957 | { | |
10958 | arg3 = wxString_in_helper(obj2); | |
10959 | if (arg3 == NULL) SWIG_fail; | |
10960 | temp3 = True; | |
10961 | } | |
10962 | } | |
10963 | { | |
10964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10965 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
10966 | ||
10967 | wxPyEndAllowThreads(__tstate); | |
10968 | if (PyErr_Occurred()) SWIG_fail; | |
10969 | } | |
10970 | { | |
10971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10972 | } | |
10973 | { | |
10974 | if (temp3) | |
10975 | delete arg3; | |
10976 | } | |
10977 | return resultobj; | |
10978 | fail: | |
10979 | { | |
10980 | if (temp3) | |
10981 | delete arg3; | |
10982 | } | |
10983 | return NULL; | |
10984 | } | |
10985 | ||
10986 | ||
10987 | static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10988 | PyObject *resultobj; | |
10989 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10990 | bool result; | |
10991 | PyObject * obj0 = 0 ; | |
10992 | char *kwnames[] = { | |
10993 | (char *) "self", NULL | |
10994 | }; | |
10995 | ||
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; | |
10997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10999 | { | |
11000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11001 | result = (bool)(arg1)->RemoveIcon(); | |
11002 | ||
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
11006 | { | |
11007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11008 | } | |
11009 | return resultobj; | |
11010 | fail: | |
11011 | return NULL; | |
11012 | } | |
11013 | ||
11014 | ||
11015 | static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11016 | PyObject *resultobj; | |
11017 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11018 | wxMenu *arg2 = (wxMenu *) 0 ; | |
11019 | bool result; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | PyObject * obj1 = 0 ; | |
11022 | char *kwnames[] = { | |
11023 | (char *) "self",(char *) "menu", NULL | |
11024 | }; | |
11025 | ||
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; | |
11027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
11030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11031 | { | |
11032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11033 | result = (bool)(arg1)->PopupMenu(arg2); | |
11034 | ||
11035 | wxPyEndAllowThreads(__tstate); | |
11036 | if (PyErr_Occurred()) SWIG_fail; | |
11037 | } | |
11038 | { | |
11039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11040 | } | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
11047 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
11048 | PyObject *obj; | |
11049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11050 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
11051 | Py_INCREF(obj); | |
11052 | return Py_BuildValue((char *)""); | |
11053 | } | |
11054 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxEventType arg1 ; | |
11057 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
11058 | wxTaskBarIconEvent *result; | |
11059 | PyObject * obj0 = 0 ; | |
11060 | PyObject * obj1 = 0 ; | |
11061 | char *kwnames[] = { | |
11062 | (char *) "evtType",(char *) "tbIcon", NULL | |
11063 | }; | |
11064 | ||
11065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
11066 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
11069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11070 | { | |
11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11072 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
11073 | ||
11074 | wxPyEndAllowThreads(__tstate); | |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
11076 | } | |
11077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
11078 | return resultobj; | |
11079 | fail: | |
11080 | return NULL; | |
11081 | } | |
11082 | ||
11083 | ||
11084 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
11085 | PyObject *obj; | |
11086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11087 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
11088 | Py_INCREF(obj); | |
11089 | return Py_BuildValue((char *)""); | |
11090 | } | |
11091 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
11092 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
11093 | return 1; | |
11094 | } | |
11095 | ||
11096 | ||
11097 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
11098 | PyObject *pyobj; | |
11099 | ||
11100 | { | |
11101 | #if wxUSE_UNICODE | |
11102 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11103 | #else | |
11104 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11105 | #endif | |
11106 | } | |
11107 | return pyobj; | |
11108 | } | |
11109 | ||
11110 | ||
11111 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
11112 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
11113 | return 1; | |
11114 | } | |
11115 | ||
11116 | ||
11117 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
11118 | PyObject *pyobj; | |
11119 | ||
11120 | { | |
11121 | #if wxUSE_UNICODE | |
11122 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11123 | #else | |
11124 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11125 | #endif | |
11126 | } | |
11127 | return pyobj; | |
11128 | } | |
11129 | ||
11130 | ||
11131 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
11132 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
11133 | return 1; | |
11134 | } | |
11135 | ||
11136 | ||
11137 | static PyObject *_wrap_DirDialogNameStr_get() { | |
11138 | PyObject *pyobj; | |
11139 | ||
11140 | { | |
11141 | #if wxUSE_UNICODE | |
11142 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11143 | #else | |
11144 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11145 | #endif | |
11146 | } | |
11147 | return pyobj; | |
11148 | } | |
11149 | ||
11150 | ||
11151 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
11152 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
11153 | return 1; | |
11154 | } | |
11155 | ||
11156 | ||
11157 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
11158 | PyObject *pyobj; | |
11159 | ||
11160 | { | |
11161 | #if wxUSE_UNICODE | |
11162 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11163 | #else | |
11164 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11165 | #endif | |
11166 | } | |
11167 | return pyobj; | |
11168 | } | |
11169 | ||
11170 | ||
11171 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
11172 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
11173 | return 1; | |
11174 | } | |
11175 | ||
11176 | ||
11177 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
11178 | PyObject *pyobj; | |
11179 | ||
11180 | { | |
11181 | #if wxUSE_UNICODE | |
11182 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11183 | #else | |
11184 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11185 | #endif | |
11186 | } | |
11187 | return pyobj; | |
11188 | } | |
11189 | ||
11190 | ||
11191 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
11192 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
11193 | return 1; | |
11194 | } | |
11195 | ||
11196 | ||
11197 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
11198 | PyObject *pyobj; | |
11199 | ||
11200 | { | |
11201 | #if wxUSE_UNICODE | |
11202 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11203 | #else | |
11204 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11205 | #endif | |
11206 | } | |
11207 | return pyobj; | |
11208 | } | |
11209 | ||
11210 | ||
11211 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11212 | PyObject *resultobj; | |
11213 | wxColourData *result; | |
11214 | char *kwnames[] = { | |
11215 | NULL | |
11216 | }; | |
11217 | ||
11218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
11219 | { | |
11220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11221 | result = (wxColourData *)new wxColourData(); | |
11222 | ||
11223 | wxPyEndAllowThreads(__tstate); | |
11224 | if (PyErr_Occurred()) SWIG_fail; | |
11225 | } | |
11226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
11227 | return resultobj; | |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj; | |
11235 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11236 | PyObject * obj0 = 0 ; | |
11237 | char *kwnames[] = { | |
11238 | (char *) "self", NULL | |
11239 | }; | |
11240 | ||
11241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
11242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11244 | { | |
11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11246 | delete arg1; | |
11247 | ||
11248 | wxPyEndAllowThreads(__tstate); | |
11249 | if (PyErr_Occurred()) SWIG_fail; | |
11250 | } | |
11251 | Py_INCREF(Py_None); resultobj = Py_None; | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | return NULL; | |
11255 | } | |
11256 | ||
11257 | ||
11258 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11259 | PyObject *resultobj; | |
11260 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11261 | bool result; | |
11262 | PyObject * obj0 = 0 ; | |
11263 | char *kwnames[] = { | |
11264 | (char *) "self", NULL | |
11265 | }; | |
11266 | ||
11267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
11268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11270 | { | |
11271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11272 | result = (bool)(arg1)->GetChooseFull(); | |
11273 | ||
11274 | wxPyEndAllowThreads(__tstate); | |
11275 | if (PyErr_Occurred()) SWIG_fail; | |
11276 | } | |
11277 | { | |
11278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11279 | } | |
11280 | return resultobj; | |
11281 | fail: | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11287 | PyObject *resultobj; | |
11288 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11289 | wxColour result; | |
11290 | PyObject * obj0 = 0 ; | |
11291 | char *kwnames[] = { | |
11292 | (char *) "self", NULL | |
11293 | }; | |
11294 | ||
11295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11298 | { | |
11299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11300 | result = (arg1)->GetColour(); | |
11301 | ||
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
11305 | { | |
11306 | wxColour * resultptr; | |
11307 | resultptr = new wxColour((wxColour &) result); | |
11308 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11309 | } | |
11310 | return resultobj; | |
11311 | fail: | |
11312 | return NULL; | |
11313 | } | |
11314 | ||
11315 | ||
11316 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11317 | PyObject *resultobj; | |
11318 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11319 | int arg2 ; | |
11320 | wxColour result; | |
11321 | PyObject * obj0 = 0 ; | |
11322 | PyObject * obj1 = 0 ; | |
11323 | char *kwnames[] = { | |
11324 | (char *) "self",(char *) "i", NULL | |
11325 | }; | |
11326 | ||
11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11330 | arg2 = (int) SWIG_AsInt(obj1); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
11332 | { | |
11333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11334 | result = (arg1)->GetCustomColour(arg2); | |
11335 | ||
11336 | wxPyEndAllowThreads(__tstate); | |
11337 | if (PyErr_Occurred()) SWIG_fail; | |
11338 | } | |
11339 | { | |
11340 | wxColour * resultptr; | |
11341 | resultptr = new wxColour((wxColour &) result); | |
11342 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11343 | } | |
11344 | return resultobj; | |
11345 | fail: | |
11346 | return NULL; | |
11347 | } | |
11348 | ||
11349 | ||
11350 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11351 | PyObject *resultobj; | |
11352 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11353 | int arg2 ; | |
11354 | PyObject * obj0 = 0 ; | |
11355 | PyObject * obj1 = 0 ; | |
11356 | char *kwnames[] = { | |
11357 | (char *) "self",(char *) "flag", NULL | |
11358 | }; | |
11359 | ||
11360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11363 | arg2 = (int) SWIG_AsInt(obj1); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | { | |
11366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11367 | (arg1)->SetChooseFull(arg2); | |
11368 | ||
11369 | wxPyEndAllowThreads(__tstate); | |
11370 | if (PyErr_Occurred()) SWIG_fail; | |
11371 | } | |
11372 | Py_INCREF(Py_None); resultobj = Py_None; | |
11373 | return resultobj; | |
11374 | fail: | |
11375 | return NULL; | |
11376 | } | |
11377 | ||
11378 | ||
11379 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11380 | PyObject *resultobj; | |
11381 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11382 | wxColour *arg2 = 0 ; | |
11383 | wxColour temp2 ; | |
11384 | PyObject * obj0 = 0 ; | |
11385 | PyObject * obj1 = 0 ; | |
11386 | char *kwnames[] = { | |
11387 | (char *) "self",(char *) "colour", NULL | |
11388 | }; | |
11389 | ||
11390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11393 | { | |
11394 | arg2 = &temp2; | |
11395 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11396 | } | |
11397 | { | |
11398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11399 | (arg1)->SetColour((wxColour const &)*arg2); | |
11400 | ||
11401 | wxPyEndAllowThreads(__tstate); | |
11402 | if (PyErr_Occurred()) SWIG_fail; | |
11403 | } | |
11404 | Py_INCREF(Py_None); resultobj = Py_None; | |
11405 | return resultobj; | |
11406 | fail: | |
11407 | return NULL; | |
11408 | } | |
11409 | ||
11410 | ||
11411 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11412 | PyObject *resultobj; | |
11413 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11414 | int arg2 ; | |
11415 | wxColour *arg3 = 0 ; | |
11416 | wxColour temp3 ; | |
11417 | PyObject * obj0 = 0 ; | |
11418 | PyObject * obj1 = 0 ; | |
11419 | PyObject * obj2 = 0 ; | |
11420 | char *kwnames[] = { | |
11421 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11422 | }; | |
11423 | ||
11424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11427 | arg2 = (int) SWIG_AsInt(obj1); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | { | |
11430 | arg3 = &temp3; | |
11431 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11432 | } | |
11433 | { | |
11434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11435 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11436 | ||
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
11440 | Py_INCREF(Py_None); resultobj = Py_None; | |
11441 | return resultobj; | |
11442 | fail: | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
11447 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11448 | PyObject *obj; | |
11449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11450 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11451 | Py_INCREF(obj); | |
11452 | return Py_BuildValue((char *)""); | |
11453 | } | |
11454 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11455 | PyObject *resultobj; | |
11456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11457 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11458 | wxColourDialog *result; | |
11459 | PyObject * obj0 = 0 ; | |
11460 | PyObject * obj1 = 0 ; | |
11461 | char *kwnames[] = { | |
11462 | (char *) "parent",(char *) "data", NULL | |
11463 | }; | |
11464 | ||
11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11468 | if (obj1) { | |
11469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11471 | } | |
11472 | { | |
11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11474 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11475 | ||
11476 | wxPyEndAllowThreads(__tstate); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | } | |
11479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11480 | return resultobj; | |
11481 | fail: | |
11482 | return NULL; | |
11483 | } | |
11484 | ||
11485 | ||
11486 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11487 | PyObject *resultobj; | |
11488 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11489 | wxColourData *result; | |
11490 | PyObject * obj0 = 0 ; | |
11491 | char *kwnames[] = { | |
11492 | (char *) "self", NULL | |
11493 | }; | |
11494 | ||
11495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | { | |
11501 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11502 | result = (wxColourData *) &_result_ref; | |
11503 | } | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11509 | return resultobj; | |
11510 | fail: | |
11511 | return NULL; | |
11512 | } | |
11513 | ||
11514 | ||
11515 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11516 | PyObject *obj; | |
11517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11518 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11519 | Py_INCREF(obj); | |
11520 | return Py_BuildValue((char *)""); | |
11521 | } | |
11522 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11523 | PyObject *resultobj; | |
11524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11525 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11526 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11527 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11528 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11529 | long arg4 = (long) 0 ; | |
11530 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11531 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11532 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11533 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11534 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11535 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11536 | wxDirDialog *result; | |
11537 | bool temp2 = False ; | |
11538 | bool temp3 = False ; | |
11539 | wxPoint temp5 ; | |
11540 | wxSize temp6 ; | |
11541 | bool temp7 = False ; | |
11542 | PyObject * obj0 = 0 ; | |
11543 | PyObject * obj1 = 0 ; | |
11544 | PyObject * obj2 = 0 ; | |
11545 | PyObject * obj3 = 0 ; | |
11546 | PyObject * obj4 = 0 ; | |
11547 | PyObject * obj5 = 0 ; | |
11548 | PyObject * obj6 = 0 ; | |
11549 | char *kwnames[] = { | |
11550 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11551 | }; | |
11552 | ||
11553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11556 | if (obj1) { | |
11557 | { | |
11558 | arg2 = wxString_in_helper(obj1); | |
11559 | if (arg2 == NULL) SWIG_fail; | |
11560 | temp2 = True; | |
11561 | } | |
11562 | } | |
11563 | if (obj2) { | |
11564 | { | |
11565 | arg3 = wxString_in_helper(obj2); | |
11566 | if (arg3 == NULL) SWIG_fail; | |
11567 | temp3 = True; | |
11568 | } | |
11569 | } | |
11570 | if (obj3) { | |
11571 | arg4 = (long) SWIG_AsLong(obj3); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
11574 | if (obj4) { | |
11575 | { | |
11576 | arg5 = &temp5; | |
11577 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11578 | } | |
11579 | } | |
11580 | if (obj5) { | |
11581 | { | |
11582 | arg6 = &temp6; | |
11583 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11584 | } | |
11585 | } | |
11586 | if (obj6) { | |
11587 | { | |
11588 | arg7 = wxString_in_helper(obj6); | |
11589 | if (arg7 == NULL) SWIG_fail; | |
11590 | temp7 = True; | |
11591 | } | |
11592 | } | |
11593 | { | |
11594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11595 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11596 | ||
11597 | wxPyEndAllowThreads(__tstate); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11601 | { | |
11602 | if (temp2) | |
11603 | delete arg2; | |
11604 | } | |
11605 | { | |
11606 | if (temp3) | |
11607 | delete arg3; | |
11608 | } | |
11609 | { | |
11610 | if (temp7) | |
11611 | delete arg7; | |
11612 | } | |
11613 | return resultobj; | |
11614 | fail: | |
11615 | { | |
11616 | if (temp2) | |
11617 | delete arg2; | |
11618 | } | |
11619 | { | |
11620 | if (temp3) | |
11621 | delete arg3; | |
11622 | } | |
11623 | { | |
11624 | if (temp7) | |
11625 | delete arg7; | |
11626 | } | |
11627 | return NULL; | |
11628 | } | |
11629 | ||
11630 | ||
11631 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11632 | PyObject *resultobj; | |
11633 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11634 | wxString result; | |
11635 | PyObject * obj0 = 0 ; | |
11636 | char *kwnames[] = { | |
11637 | (char *) "self", NULL | |
11638 | }; | |
11639 | ||
11640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11643 | { | |
11644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11645 | result = (arg1)->GetPath(); | |
11646 | ||
11647 | wxPyEndAllowThreads(__tstate); | |
11648 | if (PyErr_Occurred()) SWIG_fail; | |
11649 | } | |
11650 | { | |
11651 | #if wxUSE_UNICODE | |
11652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11653 | #else | |
11654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11655 | #endif | |
11656 | } | |
11657 | return resultobj; | |
11658 | fail: | |
11659 | return NULL; | |
11660 | } | |
11661 | ||
11662 | ||
11663 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11664 | PyObject *resultobj; | |
11665 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11666 | wxString result; | |
11667 | PyObject * obj0 = 0 ; | |
11668 | char *kwnames[] = { | |
11669 | (char *) "self", NULL | |
11670 | }; | |
11671 | ||
11672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (arg1)->GetMessage(); | |
11678 | ||
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | { | |
11683 | #if wxUSE_UNICODE | |
11684 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11685 | #else | |
11686 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11687 | #endif | |
11688 | } | |
11689 | return resultobj; | |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11698 | long result; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | char *kwnames[] = { | |
11701 | (char *) "self", NULL | |
11702 | }; | |
11703 | ||
11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (long)(arg1)->GetStyle(); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | resultobj = SWIG_FromLong((long)result); | |
11715 | return resultobj; | |
11716 | fail: | |
11717 | return NULL; | |
11718 | } | |
11719 | ||
11720 | ||
11721 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11722 | PyObject *resultobj; | |
11723 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11724 | wxString *arg2 = 0 ; | |
11725 | bool temp2 = False ; | |
11726 | PyObject * obj0 = 0 ; | |
11727 | PyObject * obj1 = 0 ; | |
11728 | char *kwnames[] = { | |
11729 | (char *) "self",(char *) "message", NULL | |
11730 | }; | |
11731 | ||
11732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11735 | { | |
11736 | arg2 = wxString_in_helper(obj1); | |
11737 | if (arg2 == NULL) SWIG_fail; | |
11738 | temp2 = True; | |
11739 | } | |
11740 | { | |
11741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11742 | (arg1)->SetMessage((wxString const &)*arg2); | |
11743 | ||
11744 | wxPyEndAllowThreads(__tstate); | |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
11746 | } | |
11747 | Py_INCREF(Py_None); resultobj = Py_None; | |
11748 | { | |
11749 | if (temp2) | |
11750 | delete arg2; | |
11751 | } | |
11752 | return resultobj; | |
11753 | fail: | |
11754 | { | |
11755 | if (temp2) | |
11756 | delete arg2; | |
11757 | } | |
11758 | return NULL; | |
11759 | } | |
11760 | ||
11761 | ||
11762 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11763 | PyObject *resultobj; | |
11764 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11765 | wxString *arg2 = 0 ; | |
11766 | bool temp2 = False ; | |
11767 | PyObject * obj0 = 0 ; | |
11768 | PyObject * obj1 = 0 ; | |
11769 | char *kwnames[] = { | |
11770 | (char *) "self",(char *) "path", NULL | |
11771 | }; | |
11772 | ||
11773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11776 | { | |
11777 | arg2 = wxString_in_helper(obj1); | |
11778 | if (arg2 == NULL) SWIG_fail; | |
11779 | temp2 = True; | |
11780 | } | |
11781 | { | |
11782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11783 | (arg1)->SetPath((wxString const &)*arg2); | |
11784 | ||
11785 | wxPyEndAllowThreads(__tstate); | |
11786 | if (PyErr_Occurred()) SWIG_fail; | |
11787 | } | |
11788 | Py_INCREF(Py_None); resultobj = Py_None; | |
11789 | { | |
11790 | if (temp2) | |
11791 | delete arg2; | |
11792 | } | |
11793 | return resultobj; | |
11794 | fail: | |
11795 | { | |
11796 | if (temp2) | |
11797 | delete arg2; | |
11798 | } | |
11799 | return NULL; | |
11800 | } | |
11801 | ||
11802 | ||
11803 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11804 | PyObject *obj; | |
11805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11806 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11807 | Py_INCREF(obj); | |
11808 | return Py_BuildValue((char *)""); | |
11809 | } | |
11810 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11811 | PyObject *resultobj; | |
11812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11813 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11814 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11815 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11816 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11817 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11818 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11819 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11820 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11821 | long arg6 = (long) 0 ; | |
11822 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11823 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11824 | wxFileDialog *result; | |
11825 | bool temp2 = False ; | |
11826 | bool temp3 = False ; | |
11827 | bool temp4 = False ; | |
11828 | bool temp5 = False ; | |
11829 | wxPoint temp7 ; | |
11830 | PyObject * obj0 = 0 ; | |
11831 | PyObject * obj1 = 0 ; | |
11832 | PyObject * obj2 = 0 ; | |
11833 | PyObject * obj3 = 0 ; | |
11834 | PyObject * obj4 = 0 ; | |
11835 | PyObject * obj5 = 0 ; | |
11836 | PyObject * obj6 = 0 ; | |
11837 | char *kwnames[] = { | |
11838 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11839 | }; | |
11840 | ||
11841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11844 | if (obj1) { | |
11845 | { | |
11846 | arg2 = wxString_in_helper(obj1); | |
11847 | if (arg2 == NULL) SWIG_fail; | |
11848 | temp2 = True; | |
11849 | } | |
11850 | } | |
11851 | if (obj2) { | |
11852 | { | |
11853 | arg3 = wxString_in_helper(obj2); | |
11854 | if (arg3 == NULL) SWIG_fail; | |
11855 | temp3 = True; | |
11856 | } | |
11857 | } | |
11858 | if (obj3) { | |
11859 | { | |
11860 | arg4 = wxString_in_helper(obj3); | |
11861 | if (arg4 == NULL) SWIG_fail; | |
11862 | temp4 = True; | |
11863 | } | |
11864 | } | |
11865 | if (obj4) { | |
11866 | { | |
11867 | arg5 = wxString_in_helper(obj4); | |
11868 | if (arg5 == NULL) SWIG_fail; | |
11869 | temp5 = True; | |
11870 | } | |
11871 | } | |
11872 | if (obj5) { | |
11873 | arg6 = (long) SWIG_AsLong(obj5); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | if (obj6) { | |
11877 | { | |
11878 | arg7 = &temp7; | |
11879 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11880 | } | |
11881 | } | |
11882 | { | |
11883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11884 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11885 | ||
11886 | wxPyEndAllowThreads(__tstate); | |
11887 | if (PyErr_Occurred()) SWIG_fail; | |
11888 | } | |
11889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
11890 | { | |
11891 | if (temp2) | |
11892 | delete arg2; | |
11893 | } | |
11894 | { | |
11895 | if (temp3) | |
11896 | delete arg3; | |
11897 | } | |
11898 | { | |
11899 | if (temp4) | |
11900 | delete arg4; | |
11901 | } | |
11902 | { | |
11903 | if (temp5) | |
11904 | delete arg5; | |
11905 | } | |
11906 | return resultobj; | |
11907 | fail: | |
11908 | { | |
11909 | if (temp2) | |
11910 | delete arg2; | |
11911 | } | |
11912 | { | |
11913 | if (temp3) | |
11914 | delete arg3; | |
11915 | } | |
11916 | { | |
11917 | if (temp4) | |
11918 | delete arg4; | |
11919 | } | |
11920 | { | |
11921 | if (temp5) | |
11922 | delete arg5; | |
11923 | } | |
11924 | return NULL; | |
11925 | } | |
11926 | ||
11927 | ||
11928 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11929 | PyObject *resultobj; | |
11930 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11931 | wxString *arg2 = 0 ; | |
11932 | bool temp2 = False ; | |
11933 | PyObject * obj0 = 0 ; | |
11934 | PyObject * obj1 = 0 ; | |
11935 | char *kwnames[] = { | |
11936 | (char *) "self",(char *) "message", NULL | |
11937 | }; | |
11938 | ||
11939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11942 | { | |
11943 | arg2 = wxString_in_helper(obj1); | |
11944 | if (arg2 == NULL) SWIG_fail; | |
11945 | temp2 = True; | |
11946 | } | |
11947 | { | |
11948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11949 | (arg1)->SetMessage((wxString const &)*arg2); | |
11950 | ||
11951 | wxPyEndAllowThreads(__tstate); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | Py_INCREF(Py_None); resultobj = Py_None; | |
11955 | { | |
11956 | if (temp2) | |
11957 | delete arg2; | |
11958 | } | |
11959 | return resultobj; | |
11960 | fail: | |
11961 | { | |
11962 | if (temp2) | |
11963 | delete arg2; | |
11964 | } | |
11965 | return NULL; | |
11966 | } | |
11967 | ||
11968 | ||
11969 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11970 | PyObject *resultobj; | |
11971 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11972 | wxString *arg2 = 0 ; | |
11973 | bool temp2 = False ; | |
11974 | PyObject * obj0 = 0 ; | |
11975 | PyObject * obj1 = 0 ; | |
11976 | char *kwnames[] = { | |
11977 | (char *) "self",(char *) "path", NULL | |
11978 | }; | |
11979 | ||
11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
11982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11983 | { | |
11984 | arg2 = wxString_in_helper(obj1); | |
11985 | if (arg2 == NULL) SWIG_fail; | |
11986 | temp2 = True; | |
11987 | } | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | (arg1)->SetPath((wxString const &)*arg2); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
11995 | Py_INCREF(Py_None); resultobj = Py_None; | |
11996 | { | |
11997 | if (temp2) | |
11998 | delete arg2; | |
11999 | } | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | { | |
12003 | if (temp2) | |
12004 | delete arg2; | |
12005 | } | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
12010 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12011 | PyObject *resultobj; | |
12012 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12013 | wxString *arg2 = 0 ; | |
12014 | bool temp2 = False ; | |
12015 | PyObject * obj0 = 0 ; | |
12016 | PyObject * obj1 = 0 ; | |
12017 | char *kwnames[] = { | |
12018 | (char *) "self",(char *) "dir", NULL | |
12019 | }; | |
12020 | ||
12021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
12022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12024 | { | |
12025 | arg2 = wxString_in_helper(obj1); | |
12026 | if (arg2 == NULL) SWIG_fail; | |
12027 | temp2 = True; | |
12028 | } | |
12029 | { | |
12030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12031 | (arg1)->SetDirectory((wxString const &)*arg2); | |
12032 | ||
12033 | wxPyEndAllowThreads(__tstate); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | Py_INCREF(Py_None); resultobj = Py_None; | |
12037 | { | |
12038 | if (temp2) | |
12039 | delete arg2; | |
12040 | } | |
12041 | return resultobj; | |
12042 | fail: | |
12043 | { | |
12044 | if (temp2) | |
12045 | delete arg2; | |
12046 | } | |
12047 | return NULL; | |
12048 | } | |
12049 | ||
12050 | ||
12051 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12052 | PyObject *resultobj; | |
12053 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12054 | wxString *arg2 = 0 ; | |
12055 | bool temp2 = False ; | |
12056 | PyObject * obj0 = 0 ; | |
12057 | PyObject * obj1 = 0 ; | |
12058 | char *kwnames[] = { | |
12059 | (char *) "self",(char *) "name", NULL | |
12060 | }; | |
12061 | ||
12062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
12063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12065 | { | |
12066 | arg2 = wxString_in_helper(obj1); | |
12067 | if (arg2 == NULL) SWIG_fail; | |
12068 | temp2 = True; | |
12069 | } | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | (arg1)->SetFilename((wxString const &)*arg2); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
12077 | Py_INCREF(Py_None); resultobj = Py_None; | |
12078 | { | |
12079 | if (temp2) | |
12080 | delete arg2; | |
12081 | } | |
12082 | return resultobj; | |
12083 | fail: | |
12084 | { | |
12085 | if (temp2) | |
12086 | delete arg2; | |
12087 | } | |
12088 | return NULL; | |
12089 | } | |
12090 | ||
12091 | ||
12092 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12093 | PyObject *resultobj; | |
12094 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12095 | wxString *arg2 = 0 ; | |
12096 | bool temp2 = False ; | |
12097 | PyObject * obj0 = 0 ; | |
12098 | PyObject * obj1 = 0 ; | |
12099 | char *kwnames[] = { | |
12100 | (char *) "self",(char *) "wildCard", NULL | |
12101 | }; | |
12102 | ||
12103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
12104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12106 | { | |
12107 | arg2 = wxString_in_helper(obj1); | |
12108 | if (arg2 == NULL) SWIG_fail; | |
12109 | temp2 = True; | |
12110 | } | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | (arg1)->SetWildcard((wxString const &)*arg2); | |
12114 | ||
12115 | wxPyEndAllowThreads(__tstate); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
12118 | Py_INCREF(Py_None); resultobj = Py_None; | |
12119 | { | |
12120 | if (temp2) | |
12121 | delete arg2; | |
12122 | } | |
12123 | return resultobj; | |
12124 | fail: | |
12125 | { | |
12126 | if (temp2) | |
12127 | delete arg2; | |
12128 | } | |
12129 | return NULL; | |
12130 | } | |
12131 | ||
12132 | ||
12133 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12134 | PyObject *resultobj; | |
12135 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12136 | long arg2 ; | |
12137 | PyObject * obj0 = 0 ; | |
12138 | PyObject * obj1 = 0 ; | |
12139 | char *kwnames[] = { | |
12140 | (char *) "self",(char *) "style", NULL | |
12141 | }; | |
12142 | ||
12143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
12144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12146 | arg2 = (long) SWIG_AsLong(obj1); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | { | |
12149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12150 | (arg1)->SetStyle(arg2); | |
12151 | ||
12152 | wxPyEndAllowThreads(__tstate); | |
12153 | if (PyErr_Occurred()) SWIG_fail; | |
12154 | } | |
12155 | Py_INCREF(Py_None); resultobj = Py_None; | |
12156 | return resultobj; | |
12157 | fail: | |
12158 | return NULL; | |
12159 | } | |
12160 | ||
12161 | ||
12162 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12163 | PyObject *resultobj; | |
12164 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12165 | int arg2 ; | |
12166 | PyObject * obj0 = 0 ; | |
12167 | PyObject * obj1 = 0 ; | |
12168 | char *kwnames[] = { | |
12169 | (char *) "self",(char *) "filterIndex", NULL | |
12170 | }; | |
12171 | ||
12172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
12173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12175 | arg2 = (int) SWIG_AsInt(obj1); | |
12176 | if (PyErr_Occurred()) SWIG_fail; | |
12177 | { | |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | (arg1)->SetFilterIndex(arg2); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
12184 | Py_INCREF(Py_None); resultobj = Py_None; | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12192 | PyObject *resultobj; | |
12193 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12194 | wxString result; | |
12195 | PyObject * obj0 = 0 ; | |
12196 | char *kwnames[] = { | |
12197 | (char *) "self", NULL | |
12198 | }; | |
12199 | ||
12200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
12201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12203 | { | |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12205 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
12209 | } | |
12210 | { | |
12211 | #if wxUSE_UNICODE | |
12212 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12213 | #else | |
12214 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12215 | #endif | |
12216 | } | |
12217 | return resultobj; | |
12218 | fail: | |
12219 | return NULL; | |
12220 | } | |
12221 | ||
12222 | ||
12223 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12224 | PyObject *resultobj; | |
12225 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12226 | wxString result; | |
12227 | PyObject * obj0 = 0 ; | |
12228 | char *kwnames[] = { | |
12229 | (char *) "self", NULL | |
12230 | }; | |
12231 | ||
12232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
12233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12235 | { | |
12236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12237 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
12238 | ||
12239 | wxPyEndAllowThreads(__tstate); | |
12240 | if (PyErr_Occurred()) SWIG_fail; | |
12241 | } | |
12242 | { | |
12243 | #if wxUSE_UNICODE | |
12244 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12245 | #else | |
12246 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12247 | #endif | |
12248 | } | |
12249 | return resultobj; | |
12250 | fail: | |
12251 | return NULL; | |
12252 | } | |
12253 | ||
12254 | ||
12255 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12256 | PyObject *resultobj; | |
12257 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12258 | wxString result; | |
12259 | PyObject * obj0 = 0 ; | |
12260 | char *kwnames[] = { | |
12261 | (char *) "self", NULL | |
12262 | }; | |
12263 | ||
12264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
12265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12267 | { | |
12268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12269 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
12270 | ||
12271 | wxPyEndAllowThreads(__tstate); | |
12272 | if (PyErr_Occurred()) SWIG_fail; | |
12273 | } | |
12274 | { | |
12275 | #if wxUSE_UNICODE | |
12276 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12277 | #else | |
12278 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12279 | #endif | |
12280 | } | |
12281 | return resultobj; | |
12282 | fail: | |
12283 | return NULL; | |
12284 | } | |
12285 | ||
12286 | ||
12287 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12288 | PyObject *resultobj; | |
12289 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12290 | wxString result; | |
12291 | PyObject * obj0 = 0 ; | |
12292 | char *kwnames[] = { | |
12293 | (char *) "self", NULL | |
12294 | }; | |
12295 | ||
12296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12299 | { | |
12300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12301 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12302 | ||
12303 | wxPyEndAllowThreads(__tstate); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | { | |
12307 | #if wxUSE_UNICODE | |
12308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12309 | #else | |
12310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12311 | #endif | |
12312 | } | |
12313 | return resultobj; | |
12314 | fail: | |
12315 | return NULL; | |
12316 | } | |
12317 | ||
12318 | ||
12319 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12320 | PyObject *resultobj; | |
12321 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12322 | wxString result; | |
12323 | PyObject * obj0 = 0 ; | |
12324 | char *kwnames[] = { | |
12325 | (char *) "self", NULL | |
12326 | }; | |
12327 | ||
12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12331 | { | |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | { | |
12339 | #if wxUSE_UNICODE | |
12340 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12341 | #else | |
12342 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12343 | #endif | |
12344 | } | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12354 | long result; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12363 | { | |
12364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12365 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12366 | ||
12367 | wxPyEndAllowThreads(__tstate); | |
12368 | if (PyErr_Occurred()) SWIG_fail; | |
12369 | } | |
12370 | resultobj = SWIG_FromLong((long)result); | |
12371 | return resultobj; | |
12372 | fail: | |
12373 | return NULL; | |
12374 | } | |
12375 | ||
12376 | ||
12377 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12378 | PyObject *resultobj; | |
12379 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12380 | int result; | |
12381 | PyObject * obj0 = 0 ; | |
12382 | char *kwnames[] = { | |
12383 | (char *) "self", NULL | |
12384 | }; | |
12385 | ||
12386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12389 | { | |
12390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12391 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12392 | ||
12393 | wxPyEndAllowThreads(__tstate); | |
12394 | if (PyErr_Occurred()) SWIG_fail; | |
12395 | } | |
12396 | resultobj = SWIG_FromInt((int)result); | |
12397 | return resultobj; | |
12398 | fail: | |
12399 | return NULL; | |
12400 | } | |
12401 | ||
12402 | ||
12403 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12404 | PyObject *resultobj; | |
12405 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12406 | PyObject *result; | |
12407 | PyObject * obj0 = 0 ; | |
12408 | char *kwnames[] = { | |
12409 | (char *) "self", NULL | |
12410 | }; | |
12411 | ||
12412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12415 | { | |
12416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12417 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12418 | ||
12419 | wxPyEndAllowThreads(__tstate); | |
12420 | if (PyErr_Occurred()) SWIG_fail; | |
12421 | } | |
12422 | resultobj = result; | |
12423 | return resultobj; | |
12424 | fail: | |
12425 | return NULL; | |
12426 | } | |
12427 | ||
12428 | ||
12429 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12430 | PyObject *resultobj; | |
12431 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12432 | PyObject *result; | |
12433 | PyObject * obj0 = 0 ; | |
12434 | char *kwnames[] = { | |
12435 | (char *) "self", NULL | |
12436 | }; | |
12437 | ||
12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | resultobj = result; | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
12455 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12456 | PyObject *obj; | |
12457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12458 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12459 | Py_INCREF(obj); | |
12460 | return Py_BuildValue((char *)""); | |
12461 | } | |
12462 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12463 | PyObject *resultobj; | |
12464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12465 | wxString *arg2 = 0 ; | |
12466 | wxString *arg3 = 0 ; | |
12467 | int arg4 = (int) 0 ; | |
12468 | wxString *arg5 = (wxString *) 0 ; | |
12469 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12470 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12471 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12472 | wxMultiChoiceDialog *result; | |
12473 | bool temp2 = False ; | |
12474 | bool temp3 = False ; | |
12475 | wxPoint temp6 ; | |
12476 | PyObject * obj0 = 0 ; | |
12477 | PyObject * obj1 = 0 ; | |
12478 | PyObject * obj2 = 0 ; | |
12479 | PyObject * obj3 = 0 ; | |
12480 | PyObject * obj4 = 0 ; | |
12481 | PyObject * obj5 = 0 ; | |
12482 | char *kwnames[] = { | |
12483 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12484 | }; | |
12485 | ||
12486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12489 | { | |
12490 | arg2 = wxString_in_helper(obj1); | |
12491 | if (arg2 == NULL) SWIG_fail; | |
12492 | temp2 = True; | |
12493 | } | |
12494 | { | |
12495 | arg3 = wxString_in_helper(obj2); | |
12496 | if (arg3 == NULL) SWIG_fail; | |
12497 | temp3 = True; | |
12498 | } | |
12499 | if (obj3) { | |
12500 | { | |
12501 | arg4 = PyList_Size(obj3); | |
12502 | arg5 = wxString_LIST_helper(obj3); | |
12503 | if (arg5 == NULL) SWIG_fail; | |
12504 | } | |
12505 | } | |
12506 | if (obj4) { | |
12507 | arg6 = (long) SWIG_AsLong(obj4); | |
12508 | if (PyErr_Occurred()) SWIG_fail; | |
12509 | } | |
12510 | if (obj5) { | |
12511 | { | |
12512 | arg7 = &temp6; | |
12513 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12514 | } | |
12515 | } | |
12516 | { | |
12517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12518 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12519 | ||
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12524 | { | |
12525 | if (temp2) | |
12526 | delete arg2; | |
12527 | } | |
12528 | { | |
12529 | if (temp3) | |
12530 | delete arg3; | |
12531 | } | |
12532 | { | |
12533 | if (arg5) delete [] arg5; | |
12534 | } | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | { | |
12538 | if (temp2) | |
12539 | delete arg2; | |
12540 | } | |
12541 | { | |
12542 | if (temp3) | |
12543 | delete arg3; | |
12544 | } | |
12545 | { | |
12546 | if (arg5) delete [] arg5; | |
12547 | } | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
12552 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12553 | PyObject *resultobj; | |
12554 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12555 | wxArrayInt *arg2 = 0 ; | |
12556 | bool temp2 = False ; | |
12557 | PyObject * obj0 = 0 ; | |
12558 | PyObject * obj1 = 0 ; | |
12559 | char *kwnames[] = { | |
12560 | (char *) "self",(char *) "selections", NULL | |
12561 | }; | |
12562 | ||
12563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12566 | { | |
12567 | if (! PySequence_Check(obj1)) { | |
12568 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12569 | SWIG_fail; | |
12570 | } | |
12571 | arg2 = new wxArrayInt; | |
12572 | temp2 = True; | |
12573 | int i, len=PySequence_Length(obj1); | |
12574 | for (i=0; i<len; i++) { | |
12575 | PyObject* item = PySequence_GetItem(obj1, i); | |
12576 | PyObject* number = PyNumber_Int(item); | |
12577 | arg2->Add(PyInt_AS_LONG(number)); | |
12578 | Py_DECREF(item); | |
12579 | Py_DECREF(number); | |
12580 | } | |
12581 | } | |
12582 | { | |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12584 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12585 | ||
12586 | wxPyEndAllowThreads(__tstate); | |
12587 | if (PyErr_Occurred()) SWIG_fail; | |
12588 | } | |
12589 | Py_INCREF(Py_None); resultobj = Py_None; | |
12590 | { | |
12591 | if (temp2) delete arg2; | |
12592 | } | |
12593 | return resultobj; | |
12594 | fail: | |
12595 | { | |
12596 | if (temp2) delete arg2; | |
12597 | } | |
12598 | return NULL; | |
12599 | } | |
12600 | ||
12601 | ||
12602 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12603 | PyObject *resultobj; | |
12604 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12605 | PyObject *result; | |
12606 | PyObject * obj0 = 0 ; | |
12607 | char *kwnames[] = { | |
12608 | (char *) "self", NULL | |
12609 | }; | |
12610 | ||
12611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12614 | { | |
12615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12616 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12617 | ||
12618 | wxPyEndAllowThreads(__tstate); | |
12619 | if (PyErr_Occurred()) SWIG_fail; | |
12620 | } | |
12621 | resultobj = result; | |
12622 | return resultobj; | |
12623 | fail: | |
12624 | return NULL; | |
12625 | } | |
12626 | ||
12627 | ||
12628 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12629 | PyObject *obj; | |
12630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12631 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12632 | Py_INCREF(obj); | |
12633 | return Py_BuildValue((char *)""); | |
12634 | } | |
12635 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12636 | PyObject *resultobj; | |
12637 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12638 | wxString *arg2 = 0 ; | |
12639 | wxString *arg3 = 0 ; | |
12640 | int arg4 ; | |
12641 | wxString *arg5 = (wxString *) 0 ; | |
12642 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12643 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12644 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12645 | wxSingleChoiceDialog *result; | |
12646 | bool temp2 = False ; | |
12647 | bool temp3 = False ; | |
12648 | wxPoint temp6 ; | |
12649 | PyObject * obj0 = 0 ; | |
12650 | PyObject * obj1 = 0 ; | |
12651 | PyObject * obj2 = 0 ; | |
12652 | PyObject * obj3 = 0 ; | |
12653 | PyObject * obj4 = 0 ; | |
12654 | PyObject * obj5 = 0 ; | |
12655 | char *kwnames[] = { | |
12656 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12657 | }; | |
12658 | ||
12659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12662 | { | |
12663 | arg2 = wxString_in_helper(obj1); | |
12664 | if (arg2 == NULL) SWIG_fail; | |
12665 | temp2 = True; | |
12666 | } | |
12667 | { | |
12668 | arg3 = wxString_in_helper(obj2); | |
12669 | if (arg3 == NULL) SWIG_fail; | |
12670 | temp3 = True; | |
12671 | } | |
12672 | { | |
12673 | arg4 = PyList_Size(obj3); | |
12674 | arg5 = wxString_LIST_helper(obj3); | |
12675 | if (arg5 == NULL) SWIG_fail; | |
12676 | } | |
12677 | if (obj4) { | |
12678 | arg6 = (long) SWIG_AsLong(obj4); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
12681 | if (obj5) { | |
12682 | { | |
12683 | arg7 = &temp6; | |
12684 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12685 | } | |
12686 | } | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12690 | ||
12691 | wxPyEndAllowThreads(__tstate); | |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12695 | { | |
12696 | if (temp2) | |
12697 | delete arg2; | |
12698 | } | |
12699 | { | |
12700 | if (temp3) | |
12701 | delete arg3; | |
12702 | } | |
12703 | { | |
12704 | if (arg5) delete [] arg5; | |
12705 | } | |
12706 | return resultobj; | |
12707 | fail: | |
12708 | { | |
12709 | if (temp2) | |
12710 | delete arg2; | |
12711 | } | |
12712 | { | |
12713 | if (temp3) | |
12714 | delete arg3; | |
12715 | } | |
12716 | { | |
12717 | if (arg5) delete [] arg5; | |
12718 | } | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
12723 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12724 | PyObject *resultobj; | |
12725 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12726 | int result; | |
12727 | PyObject * obj0 = 0 ; | |
12728 | char *kwnames[] = { | |
12729 | (char *) "self", NULL | |
12730 | }; | |
12731 | ||
12732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12735 | { | |
12736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12737 | result = (int)(arg1)->GetSelection(); | |
12738 | ||
12739 | wxPyEndAllowThreads(__tstate); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | } | |
12742 | resultobj = SWIG_FromInt((int)result); | |
12743 | return resultobj; | |
12744 | fail: | |
12745 | return NULL; | |
12746 | } | |
12747 | ||
12748 | ||
12749 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12750 | PyObject *resultobj; | |
12751 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12752 | wxString result; | |
12753 | PyObject * obj0 = 0 ; | |
12754 | char *kwnames[] = { | |
12755 | (char *) "self", NULL | |
12756 | }; | |
12757 | ||
12758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12761 | { | |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | result = (arg1)->GetStringSelection(); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | { | |
12769 | #if wxUSE_UNICODE | |
12770 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12771 | #else | |
12772 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12773 | #endif | |
12774 | } | |
12775 | return resultobj; | |
12776 | fail: | |
12777 | return NULL; | |
12778 | } | |
12779 | ||
12780 | ||
12781 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12782 | PyObject *resultobj; | |
12783 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12784 | int arg2 ; | |
12785 | PyObject * obj0 = 0 ; | |
12786 | PyObject * obj1 = 0 ; | |
12787 | char *kwnames[] = { | |
12788 | (char *) "self",(char *) "sel", NULL | |
12789 | }; | |
12790 | ||
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12794 | arg2 = (int) SWIG_AsInt(obj1); | |
12795 | if (PyErr_Occurred()) SWIG_fail; | |
12796 | { | |
12797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12798 | (arg1)->SetSelection(arg2); | |
12799 | ||
12800 | wxPyEndAllowThreads(__tstate); | |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
12803 | Py_INCREF(Py_None); resultobj = Py_None; | |
12804 | return resultobj; | |
12805 | fail: | |
12806 | return NULL; | |
12807 | } | |
12808 | ||
12809 | ||
12810 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12811 | PyObject *obj; | |
12812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12813 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12814 | Py_INCREF(obj); | |
12815 | return Py_BuildValue((char *)""); | |
12816 | } | |
12817 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12818 | PyObject *resultobj; | |
12819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12820 | wxString *arg2 = 0 ; | |
12821 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12822 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12823 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12824 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12825 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12826 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12827 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12828 | wxTextEntryDialog *result; | |
12829 | bool temp2 = False ; | |
12830 | bool temp3 = False ; | |
12831 | bool temp4 = False ; | |
12832 | wxPoint temp6 ; | |
12833 | PyObject * obj0 = 0 ; | |
12834 | PyObject * obj1 = 0 ; | |
12835 | PyObject * obj2 = 0 ; | |
12836 | PyObject * obj3 = 0 ; | |
12837 | PyObject * obj4 = 0 ; | |
12838 | PyObject * obj5 = 0 ; | |
12839 | char *kwnames[] = { | |
12840 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12841 | }; | |
12842 | ||
12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12846 | { | |
12847 | arg2 = wxString_in_helper(obj1); | |
12848 | if (arg2 == NULL) SWIG_fail; | |
12849 | temp2 = True; | |
12850 | } | |
12851 | if (obj2) { | |
12852 | { | |
12853 | arg3 = wxString_in_helper(obj2); | |
12854 | if (arg3 == NULL) SWIG_fail; | |
12855 | temp3 = True; | |
12856 | } | |
12857 | } | |
12858 | if (obj3) { | |
12859 | { | |
12860 | arg4 = wxString_in_helper(obj3); | |
12861 | if (arg4 == NULL) SWIG_fail; | |
12862 | temp4 = True; | |
12863 | } | |
12864 | } | |
12865 | if (obj4) { | |
12866 | arg5 = (long) SWIG_AsLong(obj4); | |
12867 | if (PyErr_Occurred()) SWIG_fail; | |
12868 | } | |
12869 | if (obj5) { | |
12870 | { | |
12871 | arg6 = &temp6; | |
12872 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12873 | } | |
12874 | } | |
12875 | { | |
12876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12877 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12878 | ||
12879 | wxPyEndAllowThreads(__tstate); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | } | |
12882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
12883 | { | |
12884 | if (temp2) | |
12885 | delete arg2; | |
12886 | } | |
12887 | { | |
12888 | if (temp3) | |
12889 | delete arg3; | |
12890 | } | |
12891 | { | |
12892 | if (temp4) | |
12893 | delete arg4; | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | { | |
12898 | if (temp2) | |
12899 | delete arg2; | |
12900 | } | |
12901 | { | |
12902 | if (temp3) | |
12903 | delete arg3; | |
12904 | } | |
12905 | { | |
12906 | if (temp4) | |
12907 | delete arg4; | |
12908 | } | |
12909 | return NULL; | |
12910 | } | |
12911 | ||
12912 | ||
12913 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12914 | PyObject *resultobj; | |
12915 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12916 | wxString result; | |
12917 | PyObject * obj0 = 0 ; | |
12918 | char *kwnames[] = { | |
12919 | (char *) "self", NULL | |
12920 | }; | |
12921 | ||
12922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12925 | { | |
12926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12927 | result = (arg1)->GetValue(); | |
12928 | ||
12929 | wxPyEndAllowThreads(__tstate); | |
12930 | if (PyErr_Occurred()) SWIG_fail; | |
12931 | } | |
12932 | { | |
12933 | #if wxUSE_UNICODE | |
12934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12935 | #else | |
12936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12937 | #endif | |
12938 | } | |
12939 | return resultobj; | |
12940 | fail: | |
12941 | return NULL; | |
12942 | } | |
12943 | ||
12944 | ||
12945 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12946 | PyObject *resultobj; | |
12947 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12948 | wxString *arg2 = 0 ; | |
12949 | bool temp2 = False ; | |
12950 | PyObject * obj0 = 0 ; | |
12951 | PyObject * obj1 = 0 ; | |
12952 | char *kwnames[] = { | |
12953 | (char *) "self",(char *) "value", NULL | |
12954 | }; | |
12955 | ||
12956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
12958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12959 | { | |
12960 | arg2 = wxString_in_helper(obj1); | |
12961 | if (arg2 == NULL) SWIG_fail; | |
12962 | temp2 = True; | |
12963 | } | |
12964 | { | |
12965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12966 | (arg1)->SetValue((wxString const &)*arg2); | |
12967 | ||
12968 | wxPyEndAllowThreads(__tstate); | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | } | |
12971 | Py_INCREF(Py_None); resultobj = Py_None; | |
12972 | { | |
12973 | if (temp2) | |
12974 | delete arg2; | |
12975 | } | |
12976 | return resultobj; | |
12977 | fail: | |
12978 | { | |
12979 | if (temp2) | |
12980 | delete arg2; | |
12981 | } | |
12982 | return NULL; | |
12983 | } | |
12984 | ||
12985 | ||
12986 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
12987 | PyObject *obj; | |
12988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12989 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12990 | Py_INCREF(obj); | |
12991 | return Py_BuildValue((char *)""); | |
12992 | } | |
12993 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12994 | PyObject *resultobj; | |
12995 | wxFontData *result; | |
12996 | char *kwnames[] = { | |
12997 | NULL | |
12998 | }; | |
12999 | ||
13000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
13001 | { | |
13002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13003 | result = (wxFontData *)new wxFontData(); | |
13004 | ||
13005 | wxPyEndAllowThreads(__tstate); | |
13006 | if (PyErr_Occurred()) SWIG_fail; | |
13007 | } | |
13008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
13009 | return resultobj; | |
13010 | fail: | |
13011 | return NULL; | |
13012 | } | |
13013 | ||
13014 | ||
13015 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13016 | PyObject *resultobj; | |
13017 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13018 | PyObject * obj0 = 0 ; | |
13019 | char *kwnames[] = { | |
13020 | (char *) "self", NULL | |
13021 | }; | |
13022 | ||
13023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
13024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13026 | { | |
13027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13028 | delete arg1; | |
13029 | ||
13030 | wxPyEndAllowThreads(__tstate); | |
13031 | if (PyErr_Occurred()) SWIG_fail; | |
13032 | } | |
13033 | Py_INCREF(Py_None); resultobj = Py_None; | |
13034 | return resultobj; | |
13035 | fail: | |
13036 | return NULL; | |
13037 | } | |
13038 | ||
13039 | ||
13040 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13041 | PyObject *resultobj; | |
13042 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13043 | bool arg2 ; | |
13044 | PyObject * obj0 = 0 ; | |
13045 | PyObject * obj1 = 0 ; | |
13046 | char *kwnames[] = { | |
13047 | (char *) "self",(char *) "enable", NULL | |
13048 | }; | |
13049 | ||
13050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
13051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13053 | arg2 = (bool) SWIG_AsBool(obj1); | |
13054 | if (PyErr_Occurred()) SWIG_fail; | |
13055 | { | |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | (arg1)->EnableEffects(arg2); | |
13058 | ||
13059 | wxPyEndAllowThreads(__tstate); | |
13060 | if (PyErr_Occurred()) SWIG_fail; | |
13061 | } | |
13062 | Py_INCREF(Py_None); resultobj = Py_None; | |
13063 | return resultobj; | |
13064 | fail: | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject *resultobj; | |
13071 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13072 | bool result; | |
13073 | PyObject * obj0 = 0 ; | |
13074 | char *kwnames[] = { | |
13075 | (char *) "self", NULL | |
13076 | }; | |
13077 | ||
13078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
13079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13081 | { | |
13082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13083 | result = (bool)(arg1)->GetAllowSymbols(); | |
13084 | ||
13085 | wxPyEndAllowThreads(__tstate); | |
13086 | if (PyErr_Occurred()) SWIG_fail; | |
13087 | } | |
13088 | { | |
13089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13090 | } | |
13091 | return resultobj; | |
13092 | fail: | |
13093 | return NULL; | |
13094 | } | |
13095 | ||
13096 | ||
13097 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13098 | PyObject *resultobj; | |
13099 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13100 | wxColour result; | |
13101 | PyObject * obj0 = 0 ; | |
13102 | char *kwnames[] = { | |
13103 | (char *) "self", NULL | |
13104 | }; | |
13105 | ||
13106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
13107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13109 | { | |
13110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13111 | result = (arg1)->GetColour(); | |
13112 | ||
13113 | wxPyEndAllowThreads(__tstate); | |
13114 | if (PyErr_Occurred()) SWIG_fail; | |
13115 | } | |
13116 | { | |
13117 | wxColour * resultptr; | |
13118 | resultptr = new wxColour((wxColour &) result); | |
13119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
13120 | } | |
13121 | return resultobj; | |
13122 | fail: | |
13123 | return NULL; | |
13124 | } | |
13125 | ||
13126 | ||
13127 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13128 | PyObject *resultobj; | |
13129 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13130 | wxFont result; | |
13131 | PyObject * obj0 = 0 ; | |
13132 | char *kwnames[] = { | |
13133 | (char *) "self", NULL | |
13134 | }; | |
13135 | ||
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
13137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13139 | { | |
13140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13141 | result = (arg1)->GetChosenFont(); | |
13142 | ||
13143 | wxPyEndAllowThreads(__tstate); | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
13146 | { | |
13147 | wxFont * resultptr; | |
13148 | resultptr = new wxFont((wxFont &) result); | |
13149 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13150 | } | |
13151 | return resultobj; | |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
13157 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13160 | bool result; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
13167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13169 | { | |
13170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13171 | result = (bool)(arg1)->GetEnableEffects(); | |
13172 | ||
13173 | wxPyEndAllowThreads(__tstate); | |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
13175 | } | |
13176 | { | |
13177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13178 | } | |
13179 | return resultobj; | |
13180 | fail: | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
13185 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13186 | PyObject *resultobj; | |
13187 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13188 | wxFont result; | |
13189 | PyObject * obj0 = 0 ; | |
13190 | char *kwnames[] = { | |
13191 | (char *) "self", NULL | |
13192 | }; | |
13193 | ||
13194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
13195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13197 | { | |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13199 | result = (arg1)->GetInitialFont(); | |
13200 | ||
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | { | |
13205 | wxFont * resultptr; | |
13206 | resultptr = new wxFont((wxFont &) result); | |
13207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13208 | } | |
13209 | return resultobj; | |
13210 | fail: | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13218 | bool result; | |
13219 | PyObject * obj0 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
13225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13227 | { | |
13228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13229 | result = (bool)(arg1)->GetShowHelp(); | |
13230 | ||
13231 | wxPyEndAllowThreads(__tstate); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | { | |
13235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13236 | } | |
13237 | return resultobj; | |
13238 | fail: | |
13239 | return NULL; | |
13240 | } | |
13241 | ||
13242 | ||
13243 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13244 | PyObject *resultobj; | |
13245 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13246 | bool arg2 ; | |
13247 | PyObject * obj0 = 0 ; | |
13248 | PyObject * obj1 = 0 ; | |
13249 | char *kwnames[] = { | |
13250 | (char *) "self",(char *) "allowSymbols", NULL | |
13251 | }; | |
13252 | ||
13253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
13254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13256 | arg2 = (bool) SWIG_AsBool(obj1); | |
13257 | if (PyErr_Occurred()) SWIG_fail; | |
13258 | { | |
13259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13260 | (arg1)->SetAllowSymbols(arg2); | |
13261 | ||
13262 | wxPyEndAllowThreads(__tstate); | |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
13264 | } | |
13265 | Py_INCREF(Py_None); resultobj = Py_None; | |
13266 | return resultobj; | |
13267 | fail: | |
13268 | return NULL; | |
13269 | } | |
13270 | ||
13271 | ||
13272 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13273 | PyObject *resultobj; | |
13274 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13275 | wxFont *arg2 = 0 ; | |
13276 | PyObject * obj0 = 0 ; | |
13277 | PyObject * obj1 = 0 ; | |
13278 | char *kwnames[] = { | |
13279 | (char *) "self",(char *) "font", NULL | |
13280 | }; | |
13281 | ||
13282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
13283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13286 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13287 | SWIG_fail; | |
13288 | if (arg2 == NULL) { | |
13289 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13290 | SWIG_fail; | |
13291 | } | |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13295 | ||
13296 | wxPyEndAllowThreads(__tstate); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
13299 | Py_INCREF(Py_None); resultobj = Py_None; | |
13300 | return resultobj; | |
13301 | fail: | |
13302 | return NULL; | |
13303 | } | |
13304 | ||
13305 | ||
13306 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13307 | PyObject *resultobj; | |
13308 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13309 | wxColour *arg2 = 0 ; | |
13310 | wxColour temp2 ; | |
13311 | PyObject * obj0 = 0 ; | |
13312 | PyObject * obj1 = 0 ; | |
13313 | char *kwnames[] = { | |
13314 | (char *) "self",(char *) "colour", NULL | |
13315 | }; | |
13316 | ||
13317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13320 | { | |
13321 | arg2 = &temp2; | |
13322 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13323 | } | |
13324 | { | |
13325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13326 | (arg1)->SetColour((wxColour const &)*arg2); | |
13327 | ||
13328 | wxPyEndAllowThreads(__tstate); | |
13329 | if (PyErr_Occurred()) SWIG_fail; | |
13330 | } | |
13331 | Py_INCREF(Py_None); resultobj = Py_None; | |
13332 | return resultobj; | |
13333 | fail: | |
13334 | return NULL; | |
13335 | } | |
13336 | ||
13337 | ||
13338 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13339 | PyObject *resultobj; | |
13340 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13341 | wxFont *arg2 = 0 ; | |
13342 | PyObject * obj0 = 0 ; | |
13343 | PyObject * obj1 = 0 ; | |
13344 | char *kwnames[] = { | |
13345 | (char *) "self",(char *) "font", NULL | |
13346 | }; | |
13347 | ||
13348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13353 | SWIG_fail; | |
13354 | if (arg2 == NULL) { | |
13355 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13356 | SWIG_fail; | |
13357 | } | |
13358 | { | |
13359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13360 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13361 | ||
13362 | wxPyEndAllowThreads(__tstate); | |
13363 | if (PyErr_Occurred()) SWIG_fail; | |
13364 | } | |
13365 | Py_INCREF(Py_None); resultobj = Py_None; | |
13366 | return resultobj; | |
13367 | fail: | |
13368 | return NULL; | |
13369 | } | |
13370 | ||
13371 | ||
13372 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13373 | PyObject *resultobj; | |
13374 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13375 | int arg2 ; | |
13376 | int arg3 ; | |
13377 | PyObject * obj0 = 0 ; | |
13378 | PyObject * obj1 = 0 ; | |
13379 | PyObject * obj2 = 0 ; | |
13380 | char *kwnames[] = { | |
13381 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13382 | }; | |
13383 | ||
13384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13387 | arg2 = (int) SWIG_AsInt(obj1); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | arg3 = (int) SWIG_AsInt(obj2); | |
13390 | if (PyErr_Occurred()) SWIG_fail; | |
13391 | { | |
13392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13393 | (arg1)->SetRange(arg2,arg3); | |
13394 | ||
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | Py_INCREF(Py_None); resultobj = Py_None; | |
13399 | return resultobj; | |
13400 | fail: | |
13401 | return NULL; | |
13402 | } | |
13403 | ||
13404 | ||
13405 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13406 | PyObject *resultobj; | |
13407 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13408 | bool arg2 ; | |
13409 | PyObject * obj0 = 0 ; | |
13410 | PyObject * obj1 = 0 ; | |
13411 | char *kwnames[] = { | |
13412 | (char *) "self",(char *) "showHelp", NULL | |
13413 | }; | |
13414 | ||
13415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13418 | arg2 = (bool) SWIG_AsBool(obj1); | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | { | |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | (arg1)->SetShowHelp(arg2); | |
13423 | ||
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
13427 | Py_INCREF(Py_None); resultobj = Py_None; | |
13428 | return resultobj; | |
13429 | fail: | |
13430 | return NULL; | |
13431 | } | |
13432 | ||
13433 | ||
13434 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13435 | PyObject *obj; | |
13436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13437 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13438 | Py_INCREF(obj); | |
13439 | return Py_BuildValue((char *)""); | |
13440 | } | |
13441 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13442 | PyObject *resultobj; | |
13443 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13444 | wxFontData *arg2 = 0 ; | |
13445 | wxFontDialog *result; | |
13446 | PyObject * obj0 = 0 ; | |
13447 | PyObject * obj1 = 0 ; | |
13448 | char *kwnames[] = { | |
13449 | (char *) "parent",(char *) "data", NULL | |
13450 | }; | |
13451 | ||
13452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13456 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13457 | SWIG_fail; | |
13458 | if (arg2 == NULL) { | |
13459 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13460 | SWIG_fail; | |
13461 | } | |
13462 | { | |
13463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13464 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13465 | ||
13466 | wxPyEndAllowThreads(__tstate); | |
13467 | if (PyErr_Occurred()) SWIG_fail; | |
13468 | } | |
13469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13470 | return resultobj; | |
13471 | fail: | |
13472 | return NULL; | |
13473 | } | |
13474 | ||
13475 | ||
13476 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13477 | PyObject *resultobj; | |
13478 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13479 | wxFontData *result; | |
13480 | PyObject * obj0 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | { | |
13491 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13492 | result = (wxFontData *) &_result_ref; | |
13493 | } | |
13494 | ||
13495 | wxPyEndAllowThreads(__tstate); | |
13496 | if (PyErr_Occurred()) SWIG_fail; | |
13497 | } | |
13498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13499 | return resultobj; | |
13500 | fail: | |
13501 | return NULL; | |
13502 | } | |
13503 | ||
13504 | ||
13505 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13506 | PyObject *obj; | |
13507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13508 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13509 | Py_INCREF(obj); | |
13510 | return Py_BuildValue((char *)""); | |
13511 | } | |
13512 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13513 | PyObject *resultobj; | |
13514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13515 | wxString *arg2 = 0 ; | |
13516 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13517 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13518 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13519 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13520 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13521 | wxMessageDialog *result; | |
13522 | bool temp2 = False ; | |
13523 | bool temp3 = False ; | |
13524 | wxPoint temp5 ; | |
13525 | PyObject * obj0 = 0 ; | |
13526 | PyObject * obj1 = 0 ; | |
13527 | PyObject * obj2 = 0 ; | |
13528 | PyObject * obj3 = 0 ; | |
13529 | PyObject * obj4 = 0 ; | |
13530 | char *kwnames[] = { | |
13531 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13532 | }; | |
13533 | ||
13534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13537 | { | |
13538 | arg2 = wxString_in_helper(obj1); | |
13539 | if (arg2 == NULL) SWIG_fail; | |
13540 | temp2 = True; | |
13541 | } | |
13542 | if (obj2) { | |
13543 | { | |
13544 | arg3 = wxString_in_helper(obj2); | |
13545 | if (arg3 == NULL) SWIG_fail; | |
13546 | temp3 = True; | |
13547 | } | |
13548 | } | |
13549 | if (obj3) { | |
13550 | arg4 = (long) SWIG_AsLong(obj3); | |
13551 | if (PyErr_Occurred()) SWIG_fail; | |
13552 | } | |
13553 | if (obj4) { | |
13554 | { | |
13555 | arg5 = &temp5; | |
13556 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13557 | } | |
13558 | } | |
13559 | { | |
13560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13561 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13562 | ||
13563 | wxPyEndAllowThreads(__tstate); | |
13564 | if (PyErr_Occurred()) SWIG_fail; | |
13565 | } | |
13566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13567 | { | |
13568 | if (temp2) | |
13569 | delete arg2; | |
13570 | } | |
13571 | { | |
13572 | if (temp3) | |
13573 | delete arg3; | |
13574 | } | |
13575 | return resultobj; | |
13576 | fail: | |
13577 | { | |
13578 | if (temp2) | |
13579 | delete arg2; | |
13580 | } | |
13581 | { | |
13582 | if (temp3) | |
13583 | delete arg3; | |
13584 | } | |
13585 | return NULL; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13590 | PyObject *obj; | |
13591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13592 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13593 | Py_INCREF(obj); | |
13594 | return Py_BuildValue((char *)""); | |
13595 | } | |
13596 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13597 | PyObject *resultobj; | |
13598 | wxString *arg1 = 0 ; | |
13599 | wxString *arg2 = 0 ; | |
13600 | int arg3 = (int) 100 ; | |
13601 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13602 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13603 | wxProgressDialog *result; | |
13604 | bool temp1 = False ; | |
13605 | bool temp2 = False ; | |
13606 | PyObject * obj0 = 0 ; | |
13607 | PyObject * obj1 = 0 ; | |
13608 | PyObject * obj2 = 0 ; | |
13609 | PyObject * obj3 = 0 ; | |
13610 | PyObject * obj4 = 0 ; | |
13611 | char *kwnames[] = { | |
13612 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13613 | }; | |
13614 | ||
13615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13616 | { | |
13617 | arg1 = wxString_in_helper(obj0); | |
13618 | if (arg1 == NULL) SWIG_fail; | |
13619 | temp1 = True; | |
13620 | } | |
13621 | { | |
13622 | arg2 = wxString_in_helper(obj1); | |
13623 | if (arg2 == NULL) SWIG_fail; | |
13624 | temp2 = True; | |
13625 | } | |
13626 | if (obj2) { | |
13627 | arg3 = (int) SWIG_AsInt(obj2); | |
13628 | if (PyErr_Occurred()) SWIG_fail; | |
13629 | } | |
13630 | if (obj3) { | |
13631 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13633 | } | |
13634 | if (obj4) { | |
13635 | arg5 = (int) SWIG_AsInt(obj4); | |
13636 | if (PyErr_Occurred()) SWIG_fail; | |
13637 | } | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13646 | { | |
13647 | if (temp1) | |
13648 | delete arg1; | |
13649 | } | |
13650 | { | |
13651 | if (temp2) | |
13652 | delete arg2; | |
13653 | } | |
13654 | return resultobj; | |
13655 | fail: | |
13656 | { | |
13657 | if (temp1) | |
13658 | delete arg1; | |
13659 | } | |
13660 | { | |
13661 | if (temp2) | |
13662 | delete arg2; | |
13663 | } | |
13664 | return NULL; | |
13665 | } | |
13666 | ||
13667 | ||
13668 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13669 | PyObject *resultobj; | |
13670 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13671 | int arg2 ; | |
13672 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13673 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13674 | bool result; | |
13675 | bool temp3 = False ; | |
13676 | PyObject * obj0 = 0 ; | |
13677 | PyObject * obj1 = 0 ; | |
13678 | PyObject * obj2 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13686 | arg2 = (int) SWIG_AsInt(obj1); | |
13687 | if (PyErr_Occurred()) SWIG_fail; | |
13688 | if (obj2) { | |
13689 | { | |
13690 | arg3 = wxString_in_helper(obj2); | |
13691 | if (arg3 == NULL) SWIG_fail; | |
13692 | temp3 = True; | |
13693 | } | |
13694 | } | |
13695 | { | |
13696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13697 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
13702 | { | |
13703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13704 | } | |
13705 | { | |
13706 | if (temp3) | |
13707 | delete arg3; | |
13708 | } | |
13709 | return resultobj; | |
13710 | fail: | |
13711 | { | |
13712 | if (temp3) | |
13713 | delete arg3; | |
13714 | } | |
13715 | return NULL; | |
13716 | } | |
13717 | ||
13718 | ||
13719 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13720 | PyObject *resultobj; | |
13721 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13722 | PyObject * obj0 = 0 ; | |
13723 | char *kwnames[] = { | |
13724 | (char *) "self", NULL | |
13725 | }; | |
13726 | ||
13727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13730 | { | |
13731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13732 | (arg1)->Resume(); | |
13733 | ||
13734 | wxPyEndAllowThreads(__tstate); | |
13735 | if (PyErr_Occurred()) SWIG_fail; | |
13736 | } | |
13737 | Py_INCREF(Py_None); resultobj = Py_None; | |
13738 | return resultobj; | |
13739 | fail: | |
13740 | return NULL; | |
13741 | } | |
13742 | ||
13743 | ||
13744 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13745 | PyObject *obj; | |
13746 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13747 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13748 | Py_INCREF(obj); | |
13749 | return Py_BuildValue((char *)""); | |
13750 | } | |
13751 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13752 | PyObject *resultobj; | |
13753 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13754 | int arg2 = (int) 0 ; | |
13755 | wxFindDialogEvent *result; | |
13756 | PyObject * obj0 = 0 ; | |
13757 | PyObject * obj1 = 0 ; | |
13758 | char *kwnames[] = { | |
13759 | (char *) "commandType",(char *) "id", NULL | |
13760 | }; | |
13761 | ||
13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13763 | if (obj0) { | |
13764 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13765 | if (PyErr_Occurred()) SWIG_fail; | |
13766 | } | |
13767 | if (obj1) { | |
13768 | arg2 = (int) SWIG_AsInt(obj1); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13773 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13774 | ||
13775 | wxPyEndAllowThreads(__tstate); | |
13776 | if (PyErr_Occurred()) SWIG_fail; | |
13777 | } | |
13778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13779 | return resultobj; | |
13780 | fail: | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13786 | PyObject *resultobj; | |
13787 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13788 | int result; | |
13789 | PyObject * obj0 = 0 ; | |
13790 | char *kwnames[] = { | |
13791 | (char *) "self", NULL | |
13792 | }; | |
13793 | ||
13794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13797 | { | |
13798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13799 | result = (int)(arg1)->GetFlags(); | |
13800 | ||
13801 | wxPyEndAllowThreads(__tstate); | |
13802 | if (PyErr_Occurred()) SWIG_fail; | |
13803 | } | |
13804 | resultobj = SWIG_FromInt((int)result); | |
13805 | return resultobj; | |
13806 | fail: | |
13807 | return NULL; | |
13808 | } | |
13809 | ||
13810 | ||
13811 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13812 | PyObject *resultobj; | |
13813 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13814 | wxString *result; | |
13815 | PyObject * obj0 = 0 ; | |
13816 | char *kwnames[] = { | |
13817 | (char *) "self", NULL | |
13818 | }; | |
13819 | ||
13820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13823 | { | |
13824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13825 | { | |
13826 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13827 | result = (wxString *) &_result_ref; | |
13828 | } | |
13829 | ||
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
13833 | { | |
13834 | #if wxUSE_UNICODE | |
13835 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13836 | #else | |
13837 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13838 | #endif | |
13839 | } | |
13840 | return resultobj; | |
13841 | fail: | |
13842 | return NULL; | |
13843 | } | |
13844 | ||
13845 | ||
13846 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13847 | PyObject *resultobj; | |
13848 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13849 | wxString *result; | |
13850 | PyObject * obj0 = 0 ; | |
13851 | char *kwnames[] = { | |
13852 | (char *) "self", NULL | |
13853 | }; | |
13854 | ||
13855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13858 | { | |
13859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13860 | { | |
13861 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13862 | result = (wxString *) &_result_ref; | |
13863 | } | |
13864 | ||
13865 | wxPyEndAllowThreads(__tstate); | |
13866 | if (PyErr_Occurred()) SWIG_fail; | |
13867 | } | |
13868 | { | |
13869 | #if wxUSE_UNICODE | |
13870 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13871 | #else | |
13872 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13873 | #endif | |
13874 | } | |
13875 | return resultobj; | |
13876 | fail: | |
13877 | return NULL; | |
13878 | } | |
13879 | ||
13880 | ||
13881 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13882 | PyObject *resultobj; | |
13883 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13884 | wxFindReplaceDialog *result; | |
13885 | PyObject * obj0 = 0 ; | |
13886 | char *kwnames[] = { | |
13887 | (char *) "self", NULL | |
13888 | }; | |
13889 | ||
13890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13893 | { | |
13894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13895 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13896 | ||
13897 | wxPyEndAllowThreads(__tstate); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
13900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13901 | return resultobj; | |
13902 | fail: | |
13903 | return NULL; | |
13904 | } | |
13905 | ||
13906 | ||
13907 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13908 | PyObject *resultobj; | |
13909 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13910 | int arg2 ; | |
13911 | PyObject * obj0 = 0 ; | |
13912 | PyObject * obj1 = 0 ; | |
13913 | char *kwnames[] = { | |
13914 | (char *) "self",(char *) "flags", NULL | |
13915 | }; | |
13916 | ||
13917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
13918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13920 | arg2 = (int) SWIG_AsInt(obj1); | |
13921 | if (PyErr_Occurred()) SWIG_fail; | |
13922 | { | |
13923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13924 | (arg1)->SetFlags(arg2); | |
13925 | ||
13926 | wxPyEndAllowThreads(__tstate); | |
13927 | if (PyErr_Occurred()) SWIG_fail; | |
13928 | } | |
13929 | Py_INCREF(Py_None); resultobj = Py_None; | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | return NULL; | |
13933 | } | |
13934 | ||
13935 | ||
13936 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13937 | PyObject *resultobj; | |
13938 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13939 | wxString *arg2 = 0 ; | |
13940 | bool temp2 = False ; | |
13941 | PyObject * obj0 = 0 ; | |
13942 | PyObject * obj1 = 0 ; | |
13943 | char *kwnames[] = { | |
13944 | (char *) "self",(char *) "str", NULL | |
13945 | }; | |
13946 | ||
13947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13950 | { | |
13951 | arg2 = wxString_in_helper(obj1); | |
13952 | if (arg2 == NULL) SWIG_fail; | |
13953 | temp2 = True; | |
13954 | } | |
13955 | { | |
13956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13957 | (arg1)->SetFindString((wxString const &)*arg2); | |
13958 | ||
13959 | wxPyEndAllowThreads(__tstate); | |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
13961 | } | |
13962 | Py_INCREF(Py_None); resultobj = Py_None; | |
13963 | { | |
13964 | if (temp2) | |
13965 | delete arg2; | |
13966 | } | |
13967 | return resultobj; | |
13968 | fail: | |
13969 | { | |
13970 | if (temp2) | |
13971 | delete arg2; | |
13972 | } | |
13973 | return NULL; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13978 | PyObject *resultobj; | |
13979 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13980 | wxString *arg2 = 0 ; | |
13981 | bool temp2 = False ; | |
13982 | PyObject * obj0 = 0 ; | |
13983 | PyObject * obj1 = 0 ; | |
13984 | char *kwnames[] = { | |
13985 | (char *) "self",(char *) "str", NULL | |
13986 | }; | |
13987 | ||
13988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13991 | { | |
13992 | arg2 = wxString_in_helper(obj1); | |
13993 | if (arg2 == NULL) SWIG_fail; | |
13994 | temp2 = True; | |
13995 | } | |
13996 | { | |
13997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13998 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13999 | ||
14000 | wxPyEndAllowThreads(__tstate); | |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
14002 | } | |
14003 | Py_INCREF(Py_None); resultobj = Py_None; | |
14004 | { | |
14005 | if (temp2) | |
14006 | delete arg2; | |
14007 | } | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | { | |
14011 | if (temp2) | |
14012 | delete arg2; | |
14013 | } | |
14014 | return NULL; | |
14015 | } | |
14016 | ||
14017 | ||
14018 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
14019 | PyObject *obj; | |
14020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14021 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
14022 | Py_INCREF(obj); | |
14023 | return Py_BuildValue((char *)""); | |
14024 | } | |
14025 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14026 | PyObject *resultobj; | |
14027 | int arg1 = (int) 0 ; | |
14028 | wxFindReplaceData *result; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "flags", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
14035 | if (obj0) { | |
14036 | arg1 = (int) SWIG_AsInt(obj0); | |
14037 | if (PyErr_Occurred()) SWIG_fail; | |
14038 | } | |
14039 | { | |
14040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14041 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
14042 | ||
14043 | wxPyEndAllowThreads(__tstate); | |
14044 | if (PyErr_Occurred()) SWIG_fail; | |
14045 | } | |
14046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
14047 | return resultobj; | |
14048 | fail: | |
14049 | return NULL; | |
14050 | } | |
14051 | ||
14052 | ||
14053 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14054 | PyObject *resultobj; | |
14055 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14056 | PyObject * obj0 = 0 ; | |
14057 | char *kwnames[] = { | |
14058 | (char *) "self", NULL | |
14059 | }; | |
14060 | ||
14061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
14062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14064 | { | |
14065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14066 | delete arg1; | |
14067 | ||
14068 | wxPyEndAllowThreads(__tstate); | |
14069 | if (PyErr_Occurred()) SWIG_fail; | |
14070 | } | |
14071 | Py_INCREF(Py_None); resultobj = Py_None; | |
14072 | return resultobj; | |
14073 | fail: | |
14074 | return NULL; | |
14075 | } | |
14076 | ||
14077 | ||
14078 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14079 | PyObject *resultobj; | |
14080 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14081 | wxString *result; | |
14082 | PyObject * obj0 = 0 ; | |
14083 | char *kwnames[] = { | |
14084 | (char *) "self", NULL | |
14085 | }; | |
14086 | ||
14087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
14088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | { | |
14093 | wxString const &_result_ref = (arg1)->GetFindString(); | |
14094 | result = (wxString *) &_result_ref; | |
14095 | } | |
14096 | ||
14097 | wxPyEndAllowThreads(__tstate); | |
14098 | if (PyErr_Occurred()) SWIG_fail; | |
14099 | } | |
14100 | { | |
14101 | #if wxUSE_UNICODE | |
14102 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14103 | #else | |
14104 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14105 | #endif | |
14106 | } | |
14107 | return resultobj; | |
14108 | fail: | |
14109 | return NULL; | |
14110 | } | |
14111 | ||
14112 | ||
14113 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14114 | PyObject *resultobj; | |
14115 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14116 | wxString *result; | |
14117 | PyObject * obj0 = 0 ; | |
14118 | char *kwnames[] = { | |
14119 | (char *) "self", NULL | |
14120 | }; | |
14121 | ||
14122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
14123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14125 | { | |
14126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14127 | { | |
14128 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
14129 | result = (wxString *) &_result_ref; | |
14130 | } | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | { | |
14136 | #if wxUSE_UNICODE | |
14137 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14138 | #else | |
14139 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14140 | #endif | |
14141 | } | |
14142 | return resultobj; | |
14143 | fail: | |
14144 | return NULL; | |
14145 | } | |
14146 | ||
14147 | ||
14148 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14149 | PyObject *resultobj; | |
14150 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14151 | int result; | |
14152 | PyObject * obj0 = 0 ; | |
14153 | char *kwnames[] = { | |
14154 | (char *) "self", NULL | |
14155 | }; | |
14156 | ||
14157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
14158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | result = (int)(arg1)->GetFlags(); | |
14163 | ||
14164 | wxPyEndAllowThreads(__tstate); | |
14165 | if (PyErr_Occurred()) SWIG_fail; | |
14166 | } | |
14167 | resultobj = SWIG_FromInt((int)result); | |
14168 | return resultobj; | |
14169 | fail: | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14175 | PyObject *resultobj; | |
14176 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14177 | int arg2 ; | |
14178 | PyObject * obj0 = 0 ; | |
14179 | PyObject * obj1 = 0 ; | |
14180 | char *kwnames[] = { | |
14181 | (char *) "self",(char *) "flags", NULL | |
14182 | }; | |
14183 | ||
14184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14187 | arg2 = (int) SWIG_AsInt(obj1); | |
14188 | if (PyErr_Occurred()) SWIG_fail; | |
14189 | { | |
14190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14191 | (arg1)->SetFlags(arg2); | |
14192 | ||
14193 | wxPyEndAllowThreads(__tstate); | |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
14196 | Py_INCREF(Py_None); resultobj = Py_None; | |
14197 | return resultobj; | |
14198 | fail: | |
14199 | return NULL; | |
14200 | } | |
14201 | ||
14202 | ||
14203 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14204 | PyObject *resultobj; | |
14205 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14206 | wxString *arg2 = 0 ; | |
14207 | bool temp2 = False ; | |
14208 | PyObject * obj0 = 0 ; | |
14209 | PyObject * obj1 = 0 ; | |
14210 | char *kwnames[] = { | |
14211 | (char *) "self",(char *) "str", NULL | |
14212 | }; | |
14213 | ||
14214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14217 | { | |
14218 | arg2 = wxString_in_helper(obj1); | |
14219 | if (arg2 == NULL) SWIG_fail; | |
14220 | temp2 = True; | |
14221 | } | |
14222 | { | |
14223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14224 | (arg1)->SetFindString((wxString const &)*arg2); | |
14225 | ||
14226 | wxPyEndAllowThreads(__tstate); | |
14227 | if (PyErr_Occurred()) SWIG_fail; | |
14228 | } | |
14229 | Py_INCREF(Py_None); resultobj = Py_None; | |
14230 | { | |
14231 | if (temp2) | |
14232 | delete arg2; | |
14233 | } | |
14234 | return resultobj; | |
14235 | fail: | |
14236 | { | |
14237 | if (temp2) | |
14238 | delete arg2; | |
14239 | } | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
14244 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14245 | PyObject *resultobj; | |
14246 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14247 | wxString *arg2 = 0 ; | |
14248 | bool temp2 = False ; | |
14249 | PyObject * obj0 = 0 ; | |
14250 | PyObject * obj1 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self",(char *) "str", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14258 | { | |
14259 | arg2 = wxString_in_helper(obj1); | |
14260 | if (arg2 == NULL) SWIG_fail; | |
14261 | temp2 = True; | |
14262 | } | |
14263 | { | |
14264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14265 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14266 | ||
14267 | wxPyEndAllowThreads(__tstate); | |
14268 | if (PyErr_Occurred()) SWIG_fail; | |
14269 | } | |
14270 | Py_INCREF(Py_None); resultobj = Py_None; | |
14271 | { | |
14272 | if (temp2) | |
14273 | delete arg2; | |
14274 | } | |
14275 | return resultobj; | |
14276 | fail: | |
14277 | { | |
14278 | if (temp2) | |
14279 | delete arg2; | |
14280 | } | |
14281 | return NULL; | |
14282 | } | |
14283 | ||
14284 | ||
14285 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14286 | PyObject *obj; | |
14287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14288 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14289 | Py_INCREF(obj); | |
14290 | return Py_BuildValue((char *)""); | |
14291 | } | |
14292 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14295 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14296 | wxString *arg3 = 0 ; | |
14297 | int arg4 = (int) 0 ; | |
14298 | wxFindReplaceDialog *result; | |
14299 | bool temp3 = False ; | |
14300 | PyObject * obj0 = 0 ; | |
14301 | PyObject * obj1 = 0 ; | |
14302 | PyObject * obj2 = 0 ; | |
14303 | PyObject * obj3 = 0 ; | |
14304 | char *kwnames[] = { | |
14305 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14306 | }; | |
14307 | ||
14308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14313 | { | |
14314 | arg3 = wxString_in_helper(obj2); | |
14315 | if (arg3 == NULL) SWIG_fail; | |
14316 | temp3 = True; | |
14317 | } | |
14318 | if (obj3) { | |
14319 | arg4 = (int) SWIG_AsInt(obj3); | |
14320 | if (PyErr_Occurred()) SWIG_fail; | |
14321 | } | |
14322 | { | |
14323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14324 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14325 | ||
14326 | wxPyEndAllowThreads(__tstate); | |
14327 | if (PyErr_Occurred()) SWIG_fail; | |
14328 | } | |
14329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14330 | { | |
14331 | if (temp3) | |
14332 | delete arg3; | |
14333 | } | |
14334 | return resultobj; | |
14335 | fail: | |
14336 | { | |
14337 | if (temp3) | |
14338 | delete arg3; | |
14339 | } | |
14340 | return NULL; | |
14341 | } | |
14342 | ||
14343 | ||
14344 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14345 | PyObject *resultobj; | |
14346 | wxFindReplaceDialog *result; | |
14347 | char *kwnames[] = { | |
14348 | NULL | |
14349 | }; | |
14350 | ||
14351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14352 | { | |
14353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14354 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14355 | ||
14356 | wxPyEndAllowThreads(__tstate); | |
14357 | if (PyErr_Occurred()) SWIG_fail; | |
14358 | } | |
14359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14360 | return resultobj; | |
14361 | fail: | |
14362 | return NULL; | |
14363 | } | |
14364 | ||
14365 | ||
14366 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14367 | PyObject *resultobj; | |
14368 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14369 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14370 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14371 | wxString *arg4 = 0 ; | |
14372 | int arg5 = (int) 0 ; | |
14373 | bool result; | |
14374 | bool temp4 = False ; | |
14375 | PyObject * obj0 = 0 ; | |
14376 | PyObject * obj1 = 0 ; | |
14377 | PyObject * obj2 = 0 ; | |
14378 | PyObject * obj3 = 0 ; | |
14379 | PyObject * obj4 = 0 ; | |
14380 | char *kwnames[] = { | |
14381 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14382 | }; | |
14383 | ||
14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14389 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14391 | { | |
14392 | arg4 = wxString_in_helper(obj3); | |
14393 | if (arg4 == NULL) SWIG_fail; | |
14394 | temp4 = True; | |
14395 | } | |
14396 | if (obj4) { | |
14397 | arg5 = (int) SWIG_AsInt(obj4); | |
14398 | if (PyErr_Occurred()) SWIG_fail; | |
14399 | } | |
14400 | { | |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14402 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
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 | return resultobj; | |
14415 | fail: | |
14416 | { | |
14417 | if (temp4) | |
14418 | delete arg4; | |
14419 | } | |
14420 | return NULL; | |
14421 | } | |
14422 | ||
14423 | ||
14424 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14425 | PyObject *resultobj; | |
14426 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14427 | wxFindReplaceData *result; | |
14428 | PyObject * obj0 = 0 ; | |
14429 | char *kwnames[] = { | |
14430 | (char *) "self", NULL | |
14431 | }; | |
14432 | ||
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14436 | { | |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | } | |
14443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14444 | return resultobj; | |
14445 | fail: | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
14450 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14451 | PyObject *resultobj; | |
14452 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14453 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14454 | PyObject * obj0 = 0 ; | |
14455 | PyObject * obj1 = 0 ; | |
14456 | char *kwnames[] = { | |
14457 | (char *) "self",(char *) "data", NULL | |
14458 | }; | |
14459 | ||
14460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14465 | { | |
14466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14467 | (arg1)->SetData(arg2); | |
14468 | ||
14469 | wxPyEndAllowThreads(__tstate); | |
14470 | if (PyErr_Occurred()) SWIG_fail; | |
14471 | } | |
14472 | Py_INCREF(Py_None); resultobj = Py_None; | |
14473 | return resultobj; | |
14474 | fail: | |
14475 | return NULL; | |
14476 | } | |
14477 | ||
14478 | ||
14479 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14480 | PyObject *obj; | |
14481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14482 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14483 | Py_INCREF(obj); | |
14484 | return Py_BuildValue((char *)""); | |
14485 | } | |
14486 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14487 | PyObject *resultobj; | |
14488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14489 | int arg2 ; | |
14490 | wxString *arg3 = 0 ; | |
14491 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14492 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14493 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14494 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14495 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14496 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14497 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14498 | wxMDIParentFrame *result; | |
14499 | bool temp3 = False ; | |
14500 | wxPoint temp4 ; | |
14501 | wxSize temp5 ; | |
14502 | bool temp7 = False ; | |
14503 | PyObject * obj0 = 0 ; | |
14504 | PyObject * obj1 = 0 ; | |
14505 | PyObject * obj2 = 0 ; | |
14506 | PyObject * obj3 = 0 ; | |
14507 | PyObject * obj4 = 0 ; | |
14508 | PyObject * obj5 = 0 ; | |
14509 | PyObject * obj6 = 0 ; | |
14510 | char *kwnames[] = { | |
14511 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14512 | }; | |
14513 | ||
14514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14517 | arg2 = (int const) SWIG_AsInt(obj1); | |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
14519 | { | |
14520 | arg3 = wxString_in_helper(obj2); | |
14521 | if (arg3 == NULL) SWIG_fail; | |
14522 | temp3 = True; | |
14523 | } | |
14524 | if (obj3) { | |
14525 | { | |
14526 | arg4 = &temp4; | |
14527 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14528 | } | |
14529 | } | |
14530 | if (obj4) { | |
14531 | { | |
14532 | arg5 = &temp5; | |
14533 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14534 | } | |
14535 | } | |
14536 | if (obj5) { | |
14537 | arg6 = (long) SWIG_AsLong(obj5); | |
14538 | if (PyErr_Occurred()) SWIG_fail; | |
14539 | } | |
14540 | if (obj6) { | |
14541 | { | |
14542 | arg7 = wxString_in_helper(obj6); | |
14543 | if (arg7 == NULL) SWIG_fail; | |
14544 | temp7 = True; | |
14545 | } | |
14546 | } | |
14547 | { | |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14549 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | } | |
14554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14555 | { | |
14556 | if (temp3) | |
14557 | delete arg3; | |
14558 | } | |
14559 | { | |
14560 | if (temp7) | |
14561 | delete arg7; | |
14562 | } | |
14563 | return resultobj; | |
14564 | fail: | |
14565 | { | |
14566 | if (temp3) | |
14567 | delete arg3; | |
14568 | } | |
14569 | { | |
14570 | if (temp7) | |
14571 | delete arg7; | |
14572 | } | |
14573 | return NULL; | |
14574 | } | |
14575 | ||
14576 | ||
14577 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14578 | PyObject *resultobj; | |
14579 | wxMDIParentFrame *result; | |
14580 | char *kwnames[] = { | |
14581 | NULL | |
14582 | }; | |
14583 | ||
14584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14585 | { | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14588 | ||
14589 | wxPyEndAllowThreads(__tstate); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14593 | return resultobj; | |
14594 | fail: | |
14595 | return NULL; | |
14596 | } | |
14597 | ||
14598 | ||
14599 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14600 | PyObject *resultobj; | |
14601 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14602 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14603 | int arg3 ; | |
14604 | wxString *arg4 = 0 ; | |
14605 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14606 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14607 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14608 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14609 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14610 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14611 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14612 | bool result; | |
14613 | bool temp4 = False ; | |
14614 | wxPoint temp5 ; | |
14615 | wxSize temp6 ; | |
14616 | bool temp8 = False ; | |
14617 | PyObject * obj0 = 0 ; | |
14618 | PyObject * obj1 = 0 ; | |
14619 | PyObject * obj2 = 0 ; | |
14620 | PyObject * obj3 = 0 ; | |
14621 | PyObject * obj4 = 0 ; | |
14622 | PyObject * obj5 = 0 ; | |
14623 | PyObject * obj6 = 0 ; | |
14624 | PyObject * obj7 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14634 | arg3 = (int const) SWIG_AsInt(obj2); | |
14635 | if (PyErr_Occurred()) SWIG_fail; | |
14636 | { | |
14637 | arg4 = wxString_in_helper(obj3); | |
14638 | if (arg4 == NULL) SWIG_fail; | |
14639 | temp4 = True; | |
14640 | } | |
14641 | if (obj4) { | |
14642 | { | |
14643 | arg5 = &temp5; | |
14644 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14645 | } | |
14646 | } | |
14647 | if (obj5) { | |
14648 | { | |
14649 | arg6 = &temp6; | |
14650 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14651 | } | |
14652 | } | |
14653 | if (obj6) { | |
14654 | arg7 = (long) SWIG_AsLong(obj6); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
14657 | if (obj7) { | |
14658 | { | |
14659 | arg8 = wxString_in_helper(obj7); | |
14660 | if (arg8 == NULL) SWIG_fail; | |
14661 | temp8 = True; | |
14662 | } | |
14663 | } | |
14664 | { | |
14665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14666 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14667 | ||
14668 | wxPyEndAllowThreads(__tstate); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
14670 | } | |
14671 | { | |
14672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14673 | } | |
14674 | { | |
14675 | if (temp4) | |
14676 | delete arg4; | |
14677 | } | |
14678 | { | |
14679 | if (temp8) | |
14680 | delete arg8; | |
14681 | } | |
14682 | return resultobj; | |
14683 | fail: | |
14684 | { | |
14685 | if (temp4) | |
14686 | delete arg4; | |
14687 | } | |
14688 | { | |
14689 | if (temp8) | |
14690 | delete arg8; | |
14691 | } | |
14692 | return NULL; | |
14693 | } | |
14694 | ||
14695 | ||
14696 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14697 | PyObject *resultobj; | |
14698 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14699 | PyObject * obj0 = 0 ; | |
14700 | char *kwnames[] = { | |
14701 | (char *) "self", NULL | |
14702 | }; | |
14703 | ||
14704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14707 | { | |
14708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14709 | (arg1)->ActivateNext(); | |
14710 | ||
14711 | wxPyEndAllowThreads(__tstate); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | Py_INCREF(Py_None); resultobj = Py_None; | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14724 | PyObject * obj0 = 0 ; | |
14725 | char *kwnames[] = { | |
14726 | (char *) "self", NULL | |
14727 | }; | |
14728 | ||
14729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14732 | { | |
14733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14734 | (arg1)->ActivatePrevious(); | |
14735 | ||
14736 | wxPyEndAllowThreads(__tstate); | |
14737 | if (PyErr_Occurred()) SWIG_fail; | |
14738 | } | |
14739 | Py_INCREF(Py_None); resultobj = Py_None; | |
14740 | return resultobj; | |
14741 | fail: | |
14742 | return NULL; | |
14743 | } | |
14744 | ||
14745 | ||
14746 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14747 | PyObject *resultobj; | |
14748 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14749 | PyObject * obj0 = 0 ; | |
14750 | char *kwnames[] = { | |
14751 | (char *) "self", NULL | |
14752 | }; | |
14753 | ||
14754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14757 | { | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | (arg1)->ArrangeIcons(); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | } | |
14764 | Py_INCREF(Py_None); resultobj = Py_None; | |
14765 | return resultobj; | |
14766 | fail: | |
14767 | return NULL; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14772 | PyObject *resultobj; | |
14773 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14774 | PyObject * obj0 = 0 ; | |
14775 | char *kwnames[] = { | |
14776 | (char *) "self", NULL | |
14777 | }; | |
14778 | ||
14779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14782 | { | |
14783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14784 | (arg1)->Cascade(); | |
14785 | ||
14786 | wxPyEndAllowThreads(__tstate); | |
14787 | if (PyErr_Occurred()) SWIG_fail; | |
14788 | } | |
14789 | Py_INCREF(Py_None); resultobj = Py_None; | |
14790 | return resultobj; | |
14791 | fail: | |
14792 | return NULL; | |
14793 | } | |
14794 | ||
14795 | ||
14796 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14797 | PyObject *resultobj; | |
14798 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14799 | wxMDIChildFrame *result; | |
14800 | PyObject * obj0 = 0 ; | |
14801 | char *kwnames[] = { | |
14802 | (char *) "self", NULL | |
14803 | }; | |
14804 | ||
14805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14808 | { | |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14810 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | { | |
14816 | resultobj = wxPyMake_wxObject(result); | |
14817 | } | |
14818 | return resultobj; | |
14819 | fail: | |
14820 | return NULL; | |
14821 | } | |
14822 | ||
14823 | ||
14824 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14825 | PyObject *resultobj; | |
14826 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14827 | wxMDIClientWindow *result; | |
14828 | PyObject * obj0 = 0 ; | |
14829 | char *kwnames[] = { | |
14830 | (char *) "self", NULL | |
14831 | }; | |
14832 | ||
14833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14836 | { | |
14837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14838 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14839 | ||
14840 | wxPyEndAllowThreads(__tstate); | |
14841 | if (PyErr_Occurred()) SWIG_fail; | |
14842 | } | |
14843 | { | |
14844 | resultobj = wxPyMake_wxObject(result); | |
14845 | } | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14853 | PyObject *resultobj; | |
14854 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14855 | wxWindow *result; | |
14856 | PyObject * obj0 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "self", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14864 | { | |
14865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14866 | result = (wxWindow *)(arg1)->GetToolBar(); | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
14871 | { | |
14872 | resultobj = wxPyMake_wxObject(result); | |
14873 | } | |
14874 | return resultobj; | |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
14880 | static PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj; | |
14882 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14883 | wxMenu *result; | |
14884 | PyObject * obj0 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "self", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetWindowMenu",kwnames,&obj0)) goto fail; | |
14890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14892 | { | |
14893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14894 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
14895 | ||
14896 | wxPyEndAllowThreads(__tstate); | |
14897 | if (PyErr_Occurred()) SWIG_fail; | |
14898 | } | |
14899 | { | |
14900 | resultobj = wxPyMake_wxObject(result); | |
14901 | } | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
14908 | static PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14909 | PyObject *resultobj; | |
14910 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14911 | wxMenu *arg2 = (wxMenu *) 0 ; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | PyObject * obj1 = 0 ; | |
14914 | char *kwnames[] = { | |
14915 | (char *) "self",(char *) "menu", NULL | |
14916 | }; | |
14917 | ||
14918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) goto fail; | |
14919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
14922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14923 | { | |
14924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14925 | (arg1)->SetWindowMenu(arg2); | |
14926 | ||
14927 | wxPyEndAllowThreads(__tstate); | |
14928 | if (PyErr_Occurred()) SWIG_fail; | |
14929 | } | |
14930 | Py_INCREF(Py_None); resultobj = Py_None; | |
14931 | return resultobj; | |
14932 | fail: | |
14933 | return NULL; | |
14934 | } | |
14935 | ||
14936 | ||
14937 | static PyObject *_wrap_MDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14938 | PyObject *resultobj; | |
14939 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14940 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
14941 | PyObject * obj0 = 0 ; | |
14942 | PyObject * obj1 = 0 ; | |
14943 | char *kwnames[] = { | |
14944 | (char *) "self",(char *) "toolbar", NULL | |
14945 | }; | |
14946 | ||
14947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
14948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
14951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14952 | { | |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14954 | (arg1)->SetToolBar(arg2); | |
14955 | ||
14956 | wxPyEndAllowThreads(__tstate); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | } | |
14959 | Py_INCREF(Py_None); resultobj = Py_None; | |
14960 | return resultobj; | |
14961 | fail: | |
14962 | return NULL; | |
14963 | } | |
14964 | ||
14965 | ||
14966 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14967 | PyObject *resultobj; | |
14968 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14969 | PyObject * obj0 = 0 ; | |
14970 | char *kwnames[] = { | |
14971 | (char *) "self", NULL | |
14972 | }; | |
14973 | ||
14974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14977 | { | |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | (arg1)->Tile(); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
14984 | Py_INCREF(Py_None); resultobj = Py_None; | |
14985 | return resultobj; | |
14986 | fail: | |
14987 | return NULL; | |
14988 | } | |
14989 | ||
14990 | ||
14991 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
14992 | PyObject *obj; | |
14993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14994 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14995 | Py_INCREF(obj); | |
14996 | return Py_BuildValue((char *)""); | |
14997 | } | |
14998 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14999 | PyObject *resultobj; | |
15000 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15001 | int arg2 ; | |
15002 | wxString *arg3 = 0 ; | |
15003 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15004 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15005 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15006 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15007 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
15008 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
15009 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15010 | wxMDIChildFrame *result; | |
15011 | bool temp3 = False ; | |
15012 | wxPoint temp4 ; | |
15013 | wxSize temp5 ; | |
15014 | bool temp7 = False ; | |
15015 | PyObject * obj0 = 0 ; | |
15016 | PyObject * obj1 = 0 ; | |
15017 | PyObject * obj2 = 0 ; | |
15018 | PyObject * obj3 = 0 ; | |
15019 | PyObject * obj4 = 0 ; | |
15020 | PyObject * obj5 = 0 ; | |
15021 | PyObject * obj6 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15029 | arg2 = (int const) SWIG_AsInt(obj1); | |
15030 | if (PyErr_Occurred()) SWIG_fail; | |
15031 | { | |
15032 | arg3 = wxString_in_helper(obj2); | |
15033 | if (arg3 == NULL) SWIG_fail; | |
15034 | temp3 = True; | |
15035 | } | |
15036 | if (obj3) { | |
15037 | { | |
15038 | arg4 = &temp4; | |
15039 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15040 | } | |
15041 | } | |
15042 | if (obj4) { | |
15043 | { | |
15044 | arg5 = &temp5; | |
15045 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15046 | } | |
15047 | } | |
15048 | if (obj5) { | |
15049 | arg6 = (long) SWIG_AsLong(obj5); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
15052 | if (obj6) { | |
15053 | { | |
15054 | arg7 = wxString_in_helper(obj6); | |
15055 | if (arg7 == NULL) SWIG_fail; | |
15056 | temp7 = True; | |
15057 | } | |
15058 | } | |
15059 | { | |
15060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15061 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15062 | ||
15063 | wxPyEndAllowThreads(__tstate); | |
15064 | if (PyErr_Occurred()) SWIG_fail; | |
15065 | } | |
15066 | { | |
15067 | resultobj = wxPyMake_wxObject(result); | |
15068 | } | |
15069 | { | |
15070 | if (temp3) | |
15071 | delete arg3; | |
15072 | } | |
15073 | { | |
15074 | if (temp7) | |
15075 | delete arg7; | |
15076 | } | |
15077 | return resultobj; | |
15078 | fail: | |
15079 | { | |
15080 | if (temp3) | |
15081 | delete arg3; | |
15082 | } | |
15083 | { | |
15084 | if (temp7) | |
15085 | delete arg7; | |
15086 | } | |
15087 | return NULL; | |
15088 | } | |
15089 | ||
15090 | ||
15091 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15092 | PyObject *resultobj; | |
15093 | wxMDIChildFrame *result; | |
15094 | char *kwnames[] = { | |
15095 | NULL | |
15096 | }; | |
15097 | ||
15098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
15099 | { | |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
15106 | { | |
15107 | resultobj = wxPyMake_wxObject(result); | |
15108 | } | |
15109 | return resultobj; | |
15110 | fail: | |
15111 | return NULL; | |
15112 | } | |
15113 | ||
15114 | ||
15115 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15116 | PyObject *resultobj; | |
15117 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15118 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15119 | int arg3 ; | |
15120 | wxString *arg4 = 0 ; | |
15121 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15122 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15123 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15124 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15125 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
15126 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
15127 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15128 | bool result; | |
15129 | bool temp4 = False ; | |
15130 | wxPoint temp5 ; | |
15131 | wxSize temp6 ; | |
15132 | bool temp8 = False ; | |
15133 | PyObject * obj0 = 0 ; | |
15134 | PyObject * obj1 = 0 ; | |
15135 | PyObject * obj2 = 0 ; | |
15136 | PyObject * obj3 = 0 ; | |
15137 | PyObject * obj4 = 0 ; | |
15138 | PyObject * obj5 = 0 ; | |
15139 | PyObject * obj6 = 0 ; | |
15140 | PyObject * obj7 = 0 ; | |
15141 | char *kwnames[] = { | |
15142 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15143 | }; | |
15144 | ||
15145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
15146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15150 | arg3 = (int const) SWIG_AsInt(obj2); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
15152 | { | |
15153 | arg4 = wxString_in_helper(obj3); | |
15154 | if (arg4 == NULL) SWIG_fail; | |
15155 | temp4 = True; | |
15156 | } | |
15157 | if (obj4) { | |
15158 | { | |
15159 | arg5 = &temp5; | |
15160 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15161 | } | |
15162 | } | |
15163 | if (obj5) { | |
15164 | { | |
15165 | arg6 = &temp6; | |
15166 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15167 | } | |
15168 | } | |
15169 | if (obj6) { | |
15170 | arg7 = (long) SWIG_AsLong(obj6); | |
15171 | if (PyErr_Occurred()) SWIG_fail; | |
15172 | } | |
15173 | if (obj7) { | |
15174 | { | |
15175 | arg8 = wxString_in_helper(obj7); | |
15176 | if (arg8 == NULL) SWIG_fail; | |
15177 | temp8 = True; | |
15178 | } | |
15179 | } | |
15180 | { | |
15181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15182 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
15183 | ||
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | { | |
15188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15189 | } | |
15190 | { | |
15191 | if (temp4) | |
15192 | delete arg4; | |
15193 | } | |
15194 | { | |
15195 | if (temp8) | |
15196 | delete arg8; | |
15197 | } | |
15198 | return resultobj; | |
15199 | fail: | |
15200 | { | |
15201 | if (temp4) | |
15202 | delete arg4; | |
15203 | } | |
15204 | { | |
15205 | if (temp8) | |
15206 | delete arg8; | |
15207 | } | |
15208 | return NULL; | |
15209 | } | |
15210 | ||
15211 | ||
15212 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15213 | PyObject *resultobj; | |
15214 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15215 | PyObject * obj0 = 0 ; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "self", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
15221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15223 | { | |
15224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15225 | (arg1)->Activate(); | |
15226 | ||
15227 | wxPyEndAllowThreads(__tstate); | |
15228 | if (PyErr_Occurred()) SWIG_fail; | |
15229 | } | |
15230 | Py_INCREF(Py_None); resultobj = Py_None; | |
15231 | return resultobj; | |
15232 | fail: | |
15233 | return NULL; | |
15234 | } | |
15235 | ||
15236 | ||
15237 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15238 | PyObject *resultobj; | |
15239 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15240 | bool arg2 ; | |
15241 | PyObject * obj0 = 0 ; | |
15242 | PyObject * obj1 = 0 ; | |
15243 | char *kwnames[] = { | |
15244 | (char *) "self",(char *) "maximize", NULL | |
15245 | }; | |
15246 | ||
15247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
15248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15250 | arg2 = (bool) SWIG_AsBool(obj1); | |
15251 | if (PyErr_Occurred()) SWIG_fail; | |
15252 | { | |
15253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15254 | (arg1)->Maximize(arg2); | |
15255 | ||
15256 | wxPyEndAllowThreads(__tstate); | |
15257 | if (PyErr_Occurred()) SWIG_fail; | |
15258 | } | |
15259 | Py_INCREF(Py_None); resultobj = Py_None; | |
15260 | return resultobj; | |
15261 | fail: | |
15262 | return NULL; | |
15263 | } | |
15264 | ||
15265 | ||
15266 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15267 | PyObject *resultobj; | |
15268 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15269 | PyObject * obj0 = 0 ; | |
15270 | char *kwnames[] = { | |
15271 | (char *) "self", NULL | |
15272 | }; | |
15273 | ||
15274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
15275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15277 | { | |
15278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15279 | (arg1)->Restore(); | |
15280 | ||
15281 | wxPyEndAllowThreads(__tstate); | |
15282 | if (PyErr_Occurred()) SWIG_fail; | |
15283 | } | |
15284 | Py_INCREF(Py_None); resultobj = Py_None; | |
15285 | return resultobj; | |
15286 | fail: | |
15287 | return NULL; | |
15288 | } | |
15289 | ||
15290 | ||
15291 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
15292 | PyObject *obj; | |
15293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15294 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
15295 | Py_INCREF(obj); | |
15296 | return Py_BuildValue((char *)""); | |
15297 | } | |
15298 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15299 | PyObject *resultobj; | |
15300 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15301 | long arg2 = (long) 0 ; | |
15302 | wxMDIClientWindow *result; | |
15303 | PyObject * obj0 = 0 ; | |
15304 | PyObject * obj1 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "parent",(char *) "style", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15312 | if (obj1) { | |
15313 | arg2 = (long) SWIG_AsLong(obj1); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
15316 | { | |
15317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15318 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
15319 | ||
15320 | wxPyEndAllowThreads(__tstate); | |
15321 | if (PyErr_Occurred()) SWIG_fail; | |
15322 | } | |
15323 | { | |
15324 | resultobj = wxPyMake_wxObject(result); | |
15325 | } | |
15326 | return resultobj; | |
15327 | fail: | |
15328 | return NULL; | |
15329 | } | |
15330 | ||
15331 | ||
15332 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15333 | PyObject *resultobj; | |
15334 | wxMDIClientWindow *result; | |
15335 | char *kwnames[] = { | |
15336 | NULL | |
15337 | }; | |
15338 | ||
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | { | |
15348 | resultobj = wxPyMake_wxObject(result); | |
15349 | } | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | return NULL; | |
15353 | } | |
15354 | ||
15355 | ||
15356 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15357 | PyObject *resultobj; | |
15358 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
15359 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15360 | long arg3 = (long) 0 ; | |
15361 | bool result; | |
15362 | PyObject * obj0 = 0 ; | |
15363 | PyObject * obj1 = 0 ; | |
15364 | PyObject * obj2 = 0 ; | |
15365 | char *kwnames[] = { | |
15366 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15367 | }; | |
15368 | ||
15369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15374 | if (obj2) { | |
15375 | arg3 = (long) SWIG_AsLong(obj2); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | result = (bool)(arg1)->Create(arg2,arg3); | |
15381 | ||
15382 | wxPyEndAllowThreads(__tstate); | |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
15384 | } | |
15385 | { | |
15386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15387 | } | |
15388 | return resultobj; | |
15389 | fail: | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
15394 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15395 | PyObject *obj; | |
15396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15397 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15398 | Py_INCREF(obj); | |
15399 | return Py_BuildValue((char *)""); | |
15400 | } | |
15401 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15402 | PyObject *resultobj; | |
15403 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15404 | int arg2 ; | |
15405 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15406 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15407 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15408 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15409 | long arg5 = (long) 0 ; | |
15410 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15411 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15412 | wxPyWindow *result; | |
15413 | wxPoint temp3 ; | |
15414 | wxSize temp4 ; | |
15415 | bool temp6 = False ; | |
15416 | PyObject * obj0 = 0 ; | |
15417 | PyObject * obj1 = 0 ; | |
15418 | PyObject * obj2 = 0 ; | |
15419 | PyObject * obj3 = 0 ; | |
15420 | PyObject * obj4 = 0 ; | |
15421 | PyObject * obj5 = 0 ; | |
15422 | char *kwnames[] = { | |
15423 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15424 | }; | |
15425 | ||
15426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15429 | arg2 = (int const) SWIG_AsInt(obj1); | |
15430 | if (PyErr_Occurred()) SWIG_fail; | |
15431 | if (obj2) { | |
15432 | { | |
15433 | arg3 = &temp3; | |
15434 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15435 | } | |
15436 | } | |
15437 | if (obj3) { | |
15438 | { | |
15439 | arg4 = &temp4; | |
15440 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15441 | } | |
15442 | } | |
15443 | if (obj4) { | |
15444 | arg5 = (long) SWIG_AsLong(obj4); | |
15445 | if (PyErr_Occurred()) SWIG_fail; | |
15446 | } | |
15447 | if (obj5) { | |
15448 | { | |
15449 | arg6 = wxString_in_helper(obj5); | |
15450 | if (arg6 == NULL) SWIG_fail; | |
15451 | temp6 = True; | |
15452 | } | |
15453 | } | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15457 | ||
15458 | wxPyEndAllowThreads(__tstate); | |
15459 | if (PyErr_Occurred()) SWIG_fail; | |
15460 | } | |
15461 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15462 | { | |
15463 | if (temp6) | |
15464 | delete arg6; | |
15465 | } | |
15466 | return resultobj; | |
15467 | fail: | |
15468 | { | |
15469 | if (temp6) | |
15470 | delete arg6; | |
15471 | } | |
15472 | return NULL; | |
15473 | } | |
15474 | ||
15475 | ||
15476 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15477 | PyObject *resultobj; | |
15478 | wxPyWindow *result; | |
15479 | char *kwnames[] = { | |
15480 | NULL | |
15481 | }; | |
15482 | ||
15483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15484 | { | |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15486 | result = (wxPyWindow *)new wxPyWindow(); | |
15487 | ||
15488 | wxPyEndAllowThreads(__tstate); | |
15489 | if (PyErr_Occurred()) SWIG_fail; | |
15490 | } | |
15491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15492 | return resultobj; | |
15493 | fail: | |
15494 | return NULL; | |
15495 | } | |
15496 | ||
15497 | ||
15498 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15499 | PyObject *resultobj; | |
15500 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15501 | PyObject *arg2 = (PyObject *) 0 ; | |
15502 | PyObject *arg3 = (PyObject *) 0 ; | |
15503 | PyObject * obj0 = 0 ; | |
15504 | PyObject * obj1 = 0 ; | |
15505 | PyObject * obj2 = 0 ; | |
15506 | char *kwnames[] = { | |
15507 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15508 | }; | |
15509 | ||
15510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15513 | arg2 = obj1; | |
15514 | arg3 = obj2; | |
15515 | { | |
15516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15517 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15518 | ||
15519 | wxPyEndAllowThreads(__tstate); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
15521 | } | |
15522 | Py_INCREF(Py_None); resultobj = Py_None; | |
15523 | return resultobj; | |
15524 | fail: | |
15525 | return NULL; | |
15526 | } | |
15527 | ||
15528 | ||
15529 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15530 | PyObject *resultobj; | |
15531 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15532 | int arg2 ; | |
15533 | int arg3 ; | |
15534 | int arg4 ; | |
15535 | int arg5 ; | |
15536 | PyObject * obj0 = 0 ; | |
15537 | PyObject * obj1 = 0 ; | |
15538 | PyObject * obj2 = 0 ; | |
15539 | PyObject * obj3 = 0 ; | |
15540 | PyObject * obj4 = 0 ; | |
15541 | char *kwnames[] = { | |
15542 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15543 | }; | |
15544 | ||
15545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15548 | arg2 = (int) SWIG_AsInt(obj1); | |
15549 | if (PyErr_Occurred()) SWIG_fail; | |
15550 | arg3 = (int) SWIG_AsInt(obj2); | |
15551 | if (PyErr_Occurred()) SWIG_fail; | |
15552 | arg4 = (int) SWIG_AsInt(obj3); | |
15553 | if (PyErr_Occurred()) SWIG_fail; | |
15554 | arg5 = (int) SWIG_AsInt(obj4); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | { | |
15557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15558 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15559 | ||
15560 | wxPyEndAllowThreads(__tstate); | |
15561 | if (PyErr_Occurred()) SWIG_fail; | |
15562 | } | |
15563 | Py_INCREF(Py_None); resultobj = Py_None; | |
15564 | return resultobj; | |
15565 | fail: | |
15566 | return NULL; | |
15567 | } | |
15568 | ||
15569 | ||
15570 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15571 | PyObject *resultobj; | |
15572 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15573 | int arg2 ; | |
15574 | int arg3 ; | |
15575 | int arg4 ; | |
15576 | int arg5 ; | |
15577 | int arg6 = (int) wxSIZE_AUTO ; | |
15578 | PyObject * obj0 = 0 ; | |
15579 | PyObject * obj1 = 0 ; | |
15580 | PyObject * obj2 = 0 ; | |
15581 | PyObject * obj3 = 0 ; | |
15582 | PyObject * obj4 = 0 ; | |
15583 | PyObject * obj5 = 0 ; | |
15584 | char *kwnames[] = { | |
15585 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15586 | }; | |
15587 | ||
15588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15591 | arg2 = (int) SWIG_AsInt(obj1); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | arg3 = (int) SWIG_AsInt(obj2); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | arg4 = (int) SWIG_AsInt(obj3); | |
15596 | if (PyErr_Occurred()) SWIG_fail; | |
15597 | arg5 = (int) SWIG_AsInt(obj4); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | if (obj5) { | |
15600 | arg6 = (int) SWIG_AsInt(obj5); | |
15601 | if (PyErr_Occurred()) SWIG_fail; | |
15602 | } | |
15603 | { | |
15604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15605 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15606 | ||
15607 | wxPyEndAllowThreads(__tstate); | |
15608 | if (PyErr_Occurred()) SWIG_fail; | |
15609 | } | |
15610 | Py_INCREF(Py_None); resultobj = Py_None; | |
15611 | return resultobj; | |
15612 | fail: | |
15613 | return NULL; | |
15614 | } | |
15615 | ||
15616 | ||
15617 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15618 | PyObject *resultobj; | |
15619 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15620 | int arg2 ; | |
15621 | int arg3 ; | |
15622 | PyObject * obj0 = 0 ; | |
15623 | PyObject * obj1 = 0 ; | |
15624 | PyObject * obj2 = 0 ; | |
15625 | char *kwnames[] = { | |
15626 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15627 | }; | |
15628 | ||
15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15632 | arg2 = (int) SWIG_AsInt(obj1); | |
15633 | if (PyErr_Occurred()) SWIG_fail; | |
15634 | arg3 = (int) SWIG_AsInt(obj2); | |
15635 | if (PyErr_Occurred()) SWIG_fail; | |
15636 | { | |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15638 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15639 | ||
15640 | wxPyEndAllowThreads(__tstate); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
15643 | Py_INCREF(Py_None); resultobj = Py_None; | |
15644 | return resultobj; | |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
15650 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15651 | PyObject *resultobj; | |
15652 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15653 | int arg2 ; | |
15654 | int arg3 ; | |
15655 | PyObject * obj0 = 0 ; | |
15656 | PyObject * obj1 = 0 ; | |
15657 | PyObject * obj2 = 0 ; | |
15658 | char *kwnames[] = { | |
15659 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15660 | }; | |
15661 | ||
15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15665 | arg2 = (int) SWIG_AsInt(obj1); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | arg3 = (int) SWIG_AsInt(obj2); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | { | |
15670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15671 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15672 | ||
15673 | wxPyEndAllowThreads(__tstate); | |
15674 | if (PyErr_Occurred()) SWIG_fail; | |
15675 | } | |
15676 | Py_INCREF(Py_None); resultobj = Py_None; | |
15677 | return resultobj; | |
15678 | fail: | |
15679 | return NULL; | |
15680 | } | |
15681 | ||
15682 | ||
15683 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15684 | PyObject *resultobj; | |
15685 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15686 | int *arg2 = (int *) 0 ; | |
15687 | int *arg3 = (int *) 0 ; | |
15688 | int temp2 ; | |
15689 | int temp3 ; | |
15690 | PyObject * obj0 = 0 ; | |
15691 | char *kwnames[] = { | |
15692 | (char *) "self", NULL | |
15693 | }; | |
15694 | ||
15695 | arg2 = &temp2; | |
15696 | arg3 = &temp3; | |
15697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
15707 | Py_INCREF(Py_None); resultobj = Py_None; | |
15708 | { | |
15709 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15710 | resultobj = t_output_helper(resultobj,o); | |
15711 | } | |
15712 | { | |
15713 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15714 | resultobj = t_output_helper(resultobj,o); | |
15715 | } | |
15716 | return resultobj; | |
15717 | fail: | |
15718 | return NULL; | |
15719 | } | |
15720 | ||
15721 | ||
15722 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15723 | PyObject *resultobj; | |
15724 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15725 | int *arg2 = (int *) 0 ; | |
15726 | int *arg3 = (int *) 0 ; | |
15727 | int temp2 ; | |
15728 | int temp3 ; | |
15729 | PyObject * obj0 = 0 ; | |
15730 | char *kwnames[] = { | |
15731 | (char *) "self", NULL | |
15732 | }; | |
15733 | ||
15734 | arg2 = &temp2; | |
15735 | arg3 = &temp3; | |
15736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15739 | { | |
15740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15741 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15742 | ||
15743 | wxPyEndAllowThreads(__tstate); | |
15744 | if (PyErr_Occurred()) SWIG_fail; | |
15745 | } | |
15746 | Py_INCREF(Py_None); resultobj = Py_None; | |
15747 | { | |
15748 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15749 | resultobj = t_output_helper(resultobj,o); | |
15750 | } | |
15751 | { | |
15752 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15753 | resultobj = t_output_helper(resultobj,o); | |
15754 | } | |
15755 | return resultobj; | |
15756 | fail: | |
15757 | return NULL; | |
15758 | } | |
15759 | ||
15760 | ||
15761 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15762 | PyObject *resultobj; | |
15763 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15764 | int *arg2 = (int *) 0 ; | |
15765 | int *arg3 = (int *) 0 ; | |
15766 | int temp2 ; | |
15767 | int temp3 ; | |
15768 | PyObject * obj0 = 0 ; | |
15769 | char *kwnames[] = { | |
15770 | (char *) "self", NULL | |
15771 | }; | |
15772 | ||
15773 | arg2 = &temp2; | |
15774 | arg3 = &temp3; | |
15775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15778 | { | |
15779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15780 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15781 | ||
15782 | wxPyEndAllowThreads(__tstate); | |
15783 | if (PyErr_Occurred()) SWIG_fail; | |
15784 | } | |
15785 | Py_INCREF(Py_None); resultobj = Py_None; | |
15786 | { | |
15787 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15788 | resultobj = t_output_helper(resultobj,o); | |
15789 | } | |
15790 | { | |
15791 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15792 | resultobj = t_output_helper(resultobj,o); | |
15793 | } | |
15794 | return resultobj; | |
15795 | fail: | |
15796 | return NULL; | |
15797 | } | |
15798 | ||
15799 | ||
15800 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15801 | PyObject *resultobj; | |
15802 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15803 | wxSize result; | |
15804 | PyObject * obj0 = 0 ; | |
15805 | char *kwnames[] = { | |
15806 | (char *) "self", NULL | |
15807 | }; | |
15808 | ||
15809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15812 | { | |
15813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15814 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15815 | ||
15816 | wxPyEndAllowThreads(__tstate); | |
15817 | if (PyErr_Occurred()) SWIG_fail; | |
15818 | } | |
15819 | { | |
15820 | wxSize * resultptr; | |
15821 | resultptr = new wxSize((wxSize &) result); | |
15822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15823 | } | |
15824 | return resultobj; | |
15825 | fail: | |
15826 | return NULL; | |
15827 | } | |
15828 | ||
15829 | ||
15830 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15831 | PyObject *resultobj; | |
15832 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15833 | wxSize result; | |
15834 | PyObject * obj0 = 0 ; | |
15835 | char *kwnames[] = { | |
15836 | (char *) "self", NULL | |
15837 | }; | |
15838 | ||
15839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15842 | { | |
15843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15844 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15845 | ||
15846 | wxPyEndAllowThreads(__tstate); | |
15847 | if (PyErr_Occurred()) SWIG_fail; | |
15848 | } | |
15849 | { | |
15850 | wxSize * resultptr; | |
15851 | resultptr = new wxSize((wxSize &) result); | |
15852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15853 | } | |
15854 | return resultobj; | |
15855 | fail: | |
15856 | return NULL; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15861 | PyObject *resultobj; | |
15862 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15863 | PyObject * obj0 = 0 ; | |
15864 | char *kwnames[] = { | |
15865 | (char *) "self", NULL | |
15866 | }; | |
15867 | ||
15868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15871 | { | |
15872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15873 | (arg1)->base_InitDialog(); | |
15874 | ||
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
15878 | Py_INCREF(Py_None); resultobj = Py_None; | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15886 | PyObject *resultobj; | |
15887 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15888 | bool result; | |
15889 | PyObject * obj0 = 0 ; | |
15890 | char *kwnames[] = { | |
15891 | (char *) "self", NULL | |
15892 | }; | |
15893 | ||
15894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15897 | { | |
15898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15899 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15900 | ||
15901 | wxPyEndAllowThreads(__tstate); | |
15902 | if (PyErr_Occurred()) SWIG_fail; | |
15903 | } | |
15904 | { | |
15905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15906 | } | |
15907 | return resultobj; | |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15914 | PyObject *resultobj; | |
15915 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15916 | bool result; | |
15917 | PyObject * obj0 = 0 ; | |
15918 | char *kwnames[] = { | |
15919 | (char *) "self", NULL | |
15920 | }; | |
15921 | ||
15922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15925 | { | |
15926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15927 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15928 | ||
15929 | wxPyEndAllowThreads(__tstate); | |
15930 | if (PyErr_Occurred()) SWIG_fail; | |
15931 | } | |
15932 | { | |
15933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15934 | } | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15942 | PyObject *resultobj; | |
15943 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15944 | bool result; | |
15945 | PyObject * obj0 = 0 ; | |
15946 | char *kwnames[] = { | |
15947 | (char *) "self", NULL | |
15948 | }; | |
15949 | ||
15950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15953 | { | |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | result = (bool)(arg1)->base_Validate(); | |
15956 | ||
15957 | wxPyEndAllowThreads(__tstate); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | } | |
15960 | { | |
15961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15962 | } | |
15963 | return resultobj; | |
15964 | fail: | |
15965 | return NULL; | |
15966 | } | |
15967 | ||
15968 | ||
15969 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15970 | PyObject *resultobj; | |
15971 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15972 | bool result; | |
15973 | PyObject * obj0 = 0 ; | |
15974 | char *kwnames[] = { | |
15975 | (char *) "self", NULL | |
15976 | }; | |
15977 | ||
15978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15981 | { | |
15982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15983 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15984 | ||
15985 | wxPyEndAllowThreads(__tstate); | |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | { | |
15989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15990 | } | |
15991 | return resultobj; | |
15992 | fail: | |
15993 | return NULL; | |
15994 | } | |
15995 | ||
15996 | ||
15997 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15998 | PyObject *resultobj; | |
15999 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16000 | bool result; | |
16001 | PyObject * obj0 = 0 ; | |
16002 | char *kwnames[] = { | |
16003 | (char *) "self", NULL | |
16004 | }; | |
16005 | ||
16006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16009 | { | |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
16016 | { | |
16017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16018 | } | |
16019 | return resultobj; | |
16020 | fail: | |
16021 | return NULL; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16026 | PyObject *resultobj; | |
16027 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16028 | wxSize result; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | char *kwnames[] = { | |
16031 | (char *) "self", NULL | |
16032 | }; | |
16033 | ||
16034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16037 | { | |
16038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16039 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
16040 | ||
16041 | wxPyEndAllowThreads(__tstate); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
16043 | } | |
16044 | { | |
16045 | wxSize * resultptr; | |
16046 | resultptr = new wxSize((wxSize &) result); | |
16047 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16048 | } | |
16049 | return resultobj; | |
16050 | fail: | |
16051 | return NULL; | |
16052 | } | |
16053 | ||
16054 | ||
16055 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16056 | PyObject *resultobj; | |
16057 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16058 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16059 | PyObject * obj0 = 0 ; | |
16060 | PyObject * obj1 = 0 ; | |
16061 | char *kwnames[] = { | |
16062 | (char *) "self",(char *) "child", NULL | |
16063 | }; | |
16064 | ||
16065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16070 | { | |
16071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16072 | (arg1)->base_AddChild(arg2); | |
16073 | ||
16074 | wxPyEndAllowThreads(__tstate); | |
16075 | if (PyErr_Occurred()) SWIG_fail; | |
16076 | } | |
16077 | Py_INCREF(Py_None); resultobj = Py_None; | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | return NULL; | |
16081 | } | |
16082 | ||
16083 | ||
16084 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16085 | PyObject *resultobj; | |
16086 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16087 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16088 | PyObject * obj0 = 0 ; | |
16089 | PyObject * obj1 = 0 ; | |
16090 | char *kwnames[] = { | |
16091 | (char *) "self",(char *) "child", NULL | |
16092 | }; | |
16093 | ||
16094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16099 | { | |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | (arg1)->base_RemoveChild(arg2); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | Py_INCREF(Py_None); resultobj = Py_None; | |
16107 | return resultobj; | |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
16113 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16114 | PyObject *resultobj; | |
16115 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16116 | bool result; | |
16117 | PyObject * obj0 = 0 ; | |
16118 | char *kwnames[] = { | |
16119 | (char *) "self", NULL | |
16120 | }; | |
16121 | ||
16122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16125 | { | |
16126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16127 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
16128 | ||
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | { | |
16133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16134 | } | |
16135 | return resultobj; | |
16136 | fail: | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
16141 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16142 | PyObject *resultobj; | |
16143 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16144 | wxColour *arg2 = 0 ; | |
16145 | wxColour temp2 ; | |
16146 | PyObject * obj0 = 0 ; | |
16147 | PyObject * obj1 = 0 ; | |
16148 | char *kwnames[] = { | |
16149 | (char *) "self",(char *) "c", NULL | |
16150 | }; | |
16151 | ||
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16155 | { | |
16156 | arg2 = &temp2; | |
16157 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16158 | } | |
16159 | { | |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
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 * PyWindow_swigregister(PyObject *self, PyObject *args) { | |
16174 | PyObject *obj; | |
16175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16176 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
16177 | Py_INCREF(obj); | |
16178 | return Py_BuildValue((char *)""); | |
16179 | } | |
16180 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16181 | PyObject *resultobj; | |
16182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16183 | int arg2 ; | |
16184 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16185 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16186 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16187 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16188 | long arg5 = (long) 0 ; | |
16189 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16190 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16191 | wxPyPanel *result; | |
16192 | wxPoint temp3 ; | |
16193 | wxSize temp4 ; | |
16194 | bool temp6 = False ; | |
16195 | PyObject * obj0 = 0 ; | |
16196 | PyObject * obj1 = 0 ; | |
16197 | PyObject * obj2 = 0 ; | |
16198 | PyObject * obj3 = 0 ; | |
16199 | PyObject * obj4 = 0 ; | |
16200 | PyObject * obj5 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16203 | }; | |
16204 | ||
16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16208 | arg2 = (int const) SWIG_AsInt(obj1); | |
16209 | if (PyErr_Occurred()) SWIG_fail; | |
16210 | if (obj2) { | |
16211 | { | |
16212 | arg3 = &temp3; | |
16213 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16214 | } | |
16215 | } | |
16216 | if (obj3) { | |
16217 | { | |
16218 | arg4 = &temp4; | |
16219 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16220 | } | |
16221 | } | |
16222 | if (obj4) { | |
16223 | arg5 = (long) SWIG_AsLong(obj4); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
16226 | if (obj5) { | |
16227 | { | |
16228 | arg6 = wxString_in_helper(obj5); | |
16229 | if (arg6 == NULL) SWIG_fail; | |
16230 | temp6 = True; | |
16231 | } | |
16232 | } | |
16233 | { | |
16234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16235 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16236 | ||
16237 | wxPyEndAllowThreads(__tstate); | |
16238 | if (PyErr_Occurred()) SWIG_fail; | |
16239 | } | |
16240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16241 | { | |
16242 | if (temp6) | |
16243 | delete arg6; | |
16244 | } | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | { | |
16248 | if (temp6) | |
16249 | delete arg6; | |
16250 | } | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
16255 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16256 | PyObject *resultobj; | |
16257 | wxPyPanel *result; | |
16258 | char *kwnames[] = { | |
16259 | NULL | |
16260 | }; | |
16261 | ||
16262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
16263 | { | |
16264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16265 | result = (wxPyPanel *)new wxPyPanel(); | |
16266 | ||
16267 | wxPyEndAllowThreads(__tstate); | |
16268 | if (PyErr_Occurred()) SWIG_fail; | |
16269 | } | |
16270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16271 | return resultobj; | |
16272 | fail: | |
16273 | return NULL; | |
16274 | } | |
16275 | ||
16276 | ||
16277 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16278 | PyObject *resultobj; | |
16279 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16280 | PyObject *arg2 = (PyObject *) 0 ; | |
16281 | PyObject *arg3 = (PyObject *) 0 ; | |
16282 | PyObject * obj0 = 0 ; | |
16283 | PyObject * obj1 = 0 ; | |
16284 | PyObject * obj2 = 0 ; | |
16285 | char *kwnames[] = { | |
16286 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16287 | }; | |
16288 | ||
16289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16292 | arg2 = obj1; | |
16293 | arg3 = obj2; | |
16294 | { | |
16295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16296 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16297 | ||
16298 | wxPyEndAllowThreads(__tstate); | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | Py_INCREF(Py_None); resultobj = Py_None; | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
16305 | } | |
16306 | ||
16307 | ||
16308 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16309 | PyObject *resultobj; | |
16310 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16311 | int arg2 ; | |
16312 | int arg3 ; | |
16313 | int arg4 ; | |
16314 | int arg5 ; | |
16315 | PyObject * obj0 = 0 ; | |
16316 | PyObject * obj1 = 0 ; | |
16317 | PyObject * obj2 = 0 ; | |
16318 | PyObject * obj3 = 0 ; | |
16319 | PyObject * obj4 = 0 ; | |
16320 | char *kwnames[] = { | |
16321 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16322 | }; | |
16323 | ||
16324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16327 | arg2 = (int) SWIG_AsInt(obj1); | |
16328 | if (PyErr_Occurred()) SWIG_fail; | |
16329 | arg3 = (int) SWIG_AsInt(obj2); | |
16330 | if (PyErr_Occurred()) SWIG_fail; | |
16331 | arg4 = (int) SWIG_AsInt(obj3); | |
16332 | if (PyErr_Occurred()) SWIG_fail; | |
16333 | arg5 = (int) SWIG_AsInt(obj4); | |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | { | |
16336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16337 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16338 | ||
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | Py_INCREF(Py_None); resultobj = Py_None; | |
16343 | return resultobj; | |
16344 | fail: | |
16345 | return NULL; | |
16346 | } | |
16347 | ||
16348 | ||
16349 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj; | |
16351 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16352 | int arg2 ; | |
16353 | int arg3 ; | |
16354 | int arg4 ; | |
16355 | int arg5 ; | |
16356 | int arg6 = (int) wxSIZE_AUTO ; | |
16357 | PyObject * obj0 = 0 ; | |
16358 | PyObject * obj1 = 0 ; | |
16359 | PyObject * obj2 = 0 ; | |
16360 | PyObject * obj3 = 0 ; | |
16361 | PyObject * obj4 = 0 ; | |
16362 | PyObject * obj5 = 0 ; | |
16363 | char *kwnames[] = { | |
16364 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16365 | }; | |
16366 | ||
16367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16370 | arg2 = (int) SWIG_AsInt(obj1); | |
16371 | if (PyErr_Occurred()) SWIG_fail; | |
16372 | arg3 = (int) SWIG_AsInt(obj2); | |
16373 | if (PyErr_Occurred()) SWIG_fail; | |
16374 | arg4 = (int) SWIG_AsInt(obj3); | |
16375 | if (PyErr_Occurred()) SWIG_fail; | |
16376 | arg5 = (int) SWIG_AsInt(obj4); | |
16377 | if (PyErr_Occurred()) SWIG_fail; | |
16378 | if (obj5) { | |
16379 | arg6 = (int) SWIG_AsInt(obj5); | |
16380 | if (PyErr_Occurred()) SWIG_fail; | |
16381 | } | |
16382 | { | |
16383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16384 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16385 | ||
16386 | wxPyEndAllowThreads(__tstate); | |
16387 | if (PyErr_Occurred()) SWIG_fail; | |
16388 | } | |
16389 | Py_INCREF(Py_None); resultobj = Py_None; | |
16390 | return resultobj; | |
16391 | fail: | |
16392 | return NULL; | |
16393 | } | |
16394 | ||
16395 | ||
16396 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16397 | PyObject *resultobj; | |
16398 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16399 | int arg2 ; | |
16400 | int arg3 ; | |
16401 | PyObject * obj0 = 0 ; | |
16402 | PyObject * obj1 = 0 ; | |
16403 | PyObject * obj2 = 0 ; | |
16404 | char *kwnames[] = { | |
16405 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16406 | }; | |
16407 | ||
16408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16411 | arg2 = (int) SWIG_AsInt(obj1); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | arg3 = (int) SWIG_AsInt(obj2); | |
16414 | if (PyErr_Occurred()) SWIG_fail; | |
16415 | { | |
16416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16417 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16418 | ||
16419 | wxPyEndAllowThreads(__tstate); | |
16420 | if (PyErr_Occurred()) SWIG_fail; | |
16421 | } | |
16422 | Py_INCREF(Py_None); resultobj = Py_None; | |
16423 | return resultobj; | |
16424 | fail: | |
16425 | return NULL; | |
16426 | } | |
16427 | ||
16428 | ||
16429 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16430 | PyObject *resultobj; | |
16431 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16432 | int arg2 ; | |
16433 | int arg3 ; | |
16434 | PyObject * obj0 = 0 ; | |
16435 | PyObject * obj1 = 0 ; | |
16436 | PyObject * obj2 = 0 ; | |
16437 | char *kwnames[] = { | |
16438 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16439 | }; | |
16440 | ||
16441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16444 | arg2 = (int) SWIG_AsInt(obj1); | |
16445 | if (PyErr_Occurred()) SWIG_fail; | |
16446 | arg3 = (int) SWIG_AsInt(obj2); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | { | |
16449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16450 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16451 | ||
16452 | wxPyEndAllowThreads(__tstate); | |
16453 | if (PyErr_Occurred()) SWIG_fail; | |
16454 | } | |
16455 | Py_INCREF(Py_None); resultobj = Py_None; | |
16456 | return resultobj; | |
16457 | fail: | |
16458 | return NULL; | |
16459 | } | |
16460 | ||
16461 | ||
16462 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16463 | PyObject *resultobj; | |
16464 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16465 | int *arg2 = (int *) 0 ; | |
16466 | int *arg3 = (int *) 0 ; | |
16467 | int temp2 ; | |
16468 | int temp3 ; | |
16469 | PyObject * obj0 = 0 ; | |
16470 | char *kwnames[] = { | |
16471 | (char *) "self", NULL | |
16472 | }; | |
16473 | ||
16474 | arg2 = &temp2; | |
16475 | arg3 = &temp3; | |
16476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16479 | { | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | { | |
16488 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16489 | resultobj = t_output_helper(resultobj,o); | |
16490 | } | |
16491 | { | |
16492 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16493 | resultobj = t_output_helper(resultobj,o); | |
16494 | } | |
16495 | return resultobj; | |
16496 | fail: | |
16497 | return NULL; | |
16498 | } | |
16499 | ||
16500 | ||
16501 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16502 | PyObject *resultobj; | |
16503 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16504 | int *arg2 = (int *) 0 ; | |
16505 | int *arg3 = (int *) 0 ; | |
16506 | int temp2 ; | |
16507 | int temp3 ; | |
16508 | PyObject * obj0 = 0 ; | |
16509 | char *kwnames[] = { | |
16510 | (char *) "self", NULL | |
16511 | }; | |
16512 | ||
16513 | arg2 = &temp2; | |
16514 | arg3 = &temp3; | |
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16518 | { | |
16519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16520 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16521 | ||
16522 | wxPyEndAllowThreads(__tstate); | |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
16524 | } | |
16525 | Py_INCREF(Py_None); resultobj = Py_None; | |
16526 | { | |
16527 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16528 | resultobj = t_output_helper(resultobj,o); | |
16529 | } | |
16530 | { | |
16531 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16532 | resultobj = t_output_helper(resultobj,o); | |
16533 | } | |
16534 | return resultobj; | |
16535 | fail: | |
16536 | return NULL; | |
16537 | } | |
16538 | ||
16539 | ||
16540 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16541 | PyObject *resultobj; | |
16542 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16543 | int *arg2 = (int *) 0 ; | |
16544 | int *arg3 = (int *) 0 ; | |
16545 | int temp2 ; | |
16546 | int temp3 ; | |
16547 | PyObject * obj0 = 0 ; | |
16548 | char *kwnames[] = { | |
16549 | (char *) "self", NULL | |
16550 | }; | |
16551 | ||
16552 | arg2 = &temp2; | |
16553 | arg3 = &temp3; | |
16554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16557 | { | |
16558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16559 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16560 | ||
16561 | wxPyEndAllowThreads(__tstate); | |
16562 | if (PyErr_Occurred()) SWIG_fail; | |
16563 | } | |
16564 | Py_INCREF(Py_None); resultobj = Py_None; | |
16565 | { | |
16566 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16567 | resultobj = t_output_helper(resultobj,o); | |
16568 | } | |
16569 | { | |
16570 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16571 | resultobj = t_output_helper(resultobj,o); | |
16572 | } | |
16573 | return resultobj; | |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
16579 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16580 | PyObject *resultobj; | |
16581 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16582 | wxSize result; | |
16583 | PyObject * obj0 = 0 ; | |
16584 | char *kwnames[] = { | |
16585 | (char *) "self", NULL | |
16586 | }; | |
16587 | ||
16588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16591 | { | |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16594 | ||
16595 | wxPyEndAllowThreads(__tstate); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | } | |
16598 | { | |
16599 | wxSize * resultptr; | |
16600 | resultptr = new wxSize((wxSize &) result); | |
16601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16602 | } | |
16603 | return resultobj; | |
16604 | fail: | |
16605 | return NULL; | |
16606 | } | |
16607 | ||
16608 | ||
16609 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16610 | PyObject *resultobj; | |
16611 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16612 | wxSize result; | |
16613 | PyObject * obj0 = 0 ; | |
16614 | char *kwnames[] = { | |
16615 | (char *) "self", NULL | |
16616 | }; | |
16617 | ||
16618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16621 | { | |
16622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16623 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16624 | ||
16625 | wxPyEndAllowThreads(__tstate); | |
16626 | if (PyErr_Occurred()) SWIG_fail; | |
16627 | } | |
16628 | { | |
16629 | wxSize * resultptr; | |
16630 | resultptr = new wxSize((wxSize &) result); | |
16631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16632 | } | |
16633 | return resultobj; | |
16634 | fail: | |
16635 | return NULL; | |
16636 | } | |
16637 | ||
16638 | ||
16639 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16640 | PyObject *resultobj; | |
16641 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16642 | PyObject * obj0 = 0 ; | |
16643 | char *kwnames[] = { | |
16644 | (char *) "self", NULL | |
16645 | }; | |
16646 | ||
16647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16650 | { | |
16651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16652 | (arg1)->base_InitDialog(); | |
16653 | ||
16654 | wxPyEndAllowThreads(__tstate); | |
16655 | if (PyErr_Occurred()) SWIG_fail; | |
16656 | } | |
16657 | Py_INCREF(Py_None); resultobj = Py_None; | |
16658 | return resultobj; | |
16659 | fail: | |
16660 | return NULL; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16665 | PyObject *resultobj; | |
16666 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16667 | bool result; | |
16668 | PyObject * obj0 = 0 ; | |
16669 | char *kwnames[] = { | |
16670 | (char *) "self", NULL | |
16671 | }; | |
16672 | ||
16673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16676 | { | |
16677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16678 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16679 | ||
16680 | wxPyEndAllowThreads(__tstate); | |
16681 | if (PyErr_Occurred()) SWIG_fail; | |
16682 | } | |
16683 | { | |
16684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16685 | } | |
16686 | return resultobj; | |
16687 | fail: | |
16688 | return NULL; | |
16689 | } | |
16690 | ||
16691 | ||
16692 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16693 | PyObject *resultobj; | |
16694 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16695 | bool result; | |
16696 | PyObject * obj0 = 0 ; | |
16697 | char *kwnames[] = { | |
16698 | (char *) "self", NULL | |
16699 | }; | |
16700 | ||
16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16704 | { | |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | { | |
16712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16713 | } | |
16714 | return resultobj; | |
16715 | fail: | |
16716 | return NULL; | |
16717 | } | |
16718 | ||
16719 | ||
16720 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16721 | PyObject *resultobj; | |
16722 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16723 | bool result; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | char *kwnames[] = { | |
16726 | (char *) "self", NULL | |
16727 | }; | |
16728 | ||
16729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16734 | result = (bool)(arg1)->base_Validate(); | |
16735 | ||
16736 | wxPyEndAllowThreads(__tstate); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
16739 | { | |
16740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16741 | } | |
16742 | return resultobj; | |
16743 | fail: | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16749 | PyObject *resultobj; | |
16750 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16751 | bool result; | |
16752 | PyObject * obj0 = 0 ; | |
16753 | char *kwnames[] = { | |
16754 | (char *) "self", NULL | |
16755 | }; | |
16756 | ||
16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16760 | { | |
16761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16762 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
16763 | ||
16764 | wxPyEndAllowThreads(__tstate); | |
16765 | if (PyErr_Occurred()) SWIG_fail; | |
16766 | } | |
16767 | { | |
16768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16769 | } | |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16777 | PyObject *resultobj; | |
16778 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16779 | bool result; | |
16780 | PyObject * obj0 = 0 ; | |
16781 | char *kwnames[] = { | |
16782 | (char *) "self", NULL | |
16783 | }; | |
16784 | ||
16785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16788 | { | |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | { | |
16796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16797 | } | |
16798 | return resultobj; | |
16799 | fail: | |
16800 | return NULL; | |
16801 | } | |
16802 | ||
16803 | ||
16804 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16805 | PyObject *resultobj; | |
16806 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16807 | wxSize result; | |
16808 | PyObject * obj0 = 0 ; | |
16809 | char *kwnames[] = { | |
16810 | (char *) "self", NULL | |
16811 | }; | |
16812 | ||
16813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16816 | { | |
16817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16818 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
16819 | ||
16820 | wxPyEndAllowThreads(__tstate); | |
16821 | if (PyErr_Occurred()) SWIG_fail; | |
16822 | } | |
16823 | { | |
16824 | wxSize * resultptr; | |
16825 | resultptr = new wxSize((wxSize &) result); | |
16826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16827 | } | |
16828 | return resultobj; | |
16829 | fail: | |
16830 | return NULL; | |
16831 | } | |
16832 | ||
16833 | ||
16834 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16835 | PyObject *resultobj; | |
16836 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16837 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16838 | PyObject * obj0 = 0 ; | |
16839 | PyObject * obj1 = 0 ; | |
16840 | char *kwnames[] = { | |
16841 | (char *) "self",(char *) "child", NULL | |
16842 | }; | |
16843 | ||
16844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16849 | { | |
16850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16851 | (arg1)->base_AddChild(arg2); | |
16852 | ||
16853 | wxPyEndAllowThreads(__tstate); | |
16854 | if (PyErr_Occurred()) SWIG_fail; | |
16855 | } | |
16856 | Py_INCREF(Py_None); resultobj = Py_None; | |
16857 | return resultobj; | |
16858 | fail: | |
16859 | return NULL; | |
16860 | } | |
16861 | ||
16862 | ||
16863 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16864 | PyObject *resultobj; | |
16865 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16866 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16867 | PyObject * obj0 = 0 ; | |
16868 | PyObject * obj1 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self",(char *) "child", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16878 | { | |
16879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16880 | (arg1)->base_RemoveChild(arg2); | |
16881 | ||
16882 | wxPyEndAllowThreads(__tstate); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
16885 | Py_INCREF(Py_None); resultobj = Py_None; | |
16886 | return resultobj; | |
16887 | fail: | |
16888 | return NULL; | |
16889 | } | |
16890 | ||
16891 | ||
16892 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16893 | PyObject *resultobj; | |
16894 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16895 | bool result; | |
16896 | PyObject * obj0 = 0 ; | |
16897 | char *kwnames[] = { | |
16898 | (char *) "self", NULL | |
16899 | }; | |
16900 | ||
16901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16904 | { | |
16905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16906 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
16907 | ||
16908 | wxPyEndAllowThreads(__tstate); | |
16909 | if (PyErr_Occurred()) SWIG_fail; | |
16910 | } | |
16911 | { | |
16912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16913 | } | |
16914 | return resultobj; | |
16915 | fail: | |
16916 | return NULL; | |
16917 | } | |
16918 | ||
16919 | ||
16920 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16921 | PyObject *resultobj; | |
16922 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16923 | wxColour *arg2 = 0 ; | |
16924 | wxColour temp2 ; | |
16925 | PyObject * obj0 = 0 ; | |
16926 | PyObject * obj1 = 0 ; | |
16927 | char *kwnames[] = { | |
16928 | (char *) "self",(char *) "c", NULL | |
16929 | }; | |
16930 | ||
16931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16934 | { | |
16935 | arg2 = &temp2; | |
16936 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16937 | } | |
16938 | { | |
16939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16940 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16941 | ||
16942 | wxPyEndAllowThreads(__tstate); | |
16943 | if (PyErr_Occurred()) SWIG_fail; | |
16944 | } | |
16945 | Py_INCREF(Py_None); resultobj = Py_None; | |
16946 | return resultobj; | |
16947 | fail: | |
16948 | return NULL; | |
16949 | } | |
16950 | ||
16951 | ||
16952 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { | |
16953 | PyObject *obj; | |
16954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16955 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16956 | Py_INCREF(obj); | |
16957 | return Py_BuildValue((char *)""); | |
16958 | } | |
16959 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16960 | PyObject *resultobj; | |
16961 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16962 | int arg2 ; | |
16963 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16964 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16965 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16966 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16967 | long arg5 = (long) 0 ; | |
16968 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16969 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16970 | wxPyScrolledWindow *result; | |
16971 | wxPoint temp3 ; | |
16972 | wxSize temp4 ; | |
16973 | bool temp6 = False ; | |
16974 | PyObject * obj0 = 0 ; | |
16975 | PyObject * obj1 = 0 ; | |
16976 | PyObject * obj2 = 0 ; | |
16977 | PyObject * obj3 = 0 ; | |
16978 | PyObject * obj4 = 0 ; | |
16979 | PyObject * obj5 = 0 ; | |
16980 | char *kwnames[] = { | |
16981 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16982 | }; | |
16983 | ||
16984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16987 | arg2 = (int const) SWIG_AsInt(obj1); | |
16988 | if (PyErr_Occurred()) SWIG_fail; | |
16989 | if (obj2) { | |
16990 | { | |
16991 | arg3 = &temp3; | |
16992 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16993 | } | |
16994 | } | |
16995 | if (obj3) { | |
16996 | { | |
16997 | arg4 = &temp4; | |
16998 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16999 | } | |
17000 | } | |
17001 | if (obj4) { | |
17002 | arg5 = (long) SWIG_AsLong(obj4); | |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
17004 | } | |
17005 | if (obj5) { | |
17006 | { | |
17007 | arg6 = wxString_in_helper(obj5); | |
17008 | if (arg6 == NULL) SWIG_fail; | |
17009 | temp6 = True; | |
17010 | } | |
17011 | } | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17014 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17015 | ||
17016 | wxPyEndAllowThreads(__tstate); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | } | |
17019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17020 | { | |
17021 | if (temp6) | |
17022 | delete arg6; | |
17023 | } | |
17024 | return resultobj; | |
17025 | fail: | |
17026 | { | |
17027 | if (temp6) | |
17028 | delete arg6; | |
17029 | } | |
17030 | return NULL; | |
17031 | } | |
17032 | ||
17033 | ||
17034 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17035 | PyObject *resultobj; | |
17036 | wxPyScrolledWindow *result; | |
17037 | char *kwnames[] = { | |
17038 | NULL | |
17039 | }; | |
17040 | ||
17041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
17042 | { | |
17043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17044 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
17045 | ||
17046 | wxPyEndAllowThreads(__tstate); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
17049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17050 | return resultobj; | |
17051 | fail: | |
17052 | return NULL; | |
17053 | } | |
17054 | ||
17055 | ||
17056 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17057 | PyObject *resultobj; | |
17058 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17059 | PyObject *arg2 = (PyObject *) 0 ; | |
17060 | PyObject *arg3 = (PyObject *) 0 ; | |
17061 | PyObject * obj0 = 0 ; | |
17062 | PyObject * obj1 = 0 ; | |
17063 | PyObject * obj2 = 0 ; | |
17064 | char *kwnames[] = { | |
17065 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17066 | }; | |
17067 | ||
17068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17071 | arg2 = obj1; | |
17072 | arg3 = obj2; | |
17073 | { | |
17074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17075 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17076 | ||
17077 | wxPyEndAllowThreads(__tstate); | |
17078 | if (PyErr_Occurred()) SWIG_fail; | |
17079 | } | |
17080 | Py_INCREF(Py_None); resultobj = Py_None; | |
17081 | return resultobj; | |
17082 | fail: | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
17087 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17088 | PyObject *resultobj; | |
17089 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17090 | int arg2 ; | |
17091 | int arg3 ; | |
17092 | int arg4 ; | |
17093 | int arg5 ; | |
17094 | PyObject * obj0 = 0 ; | |
17095 | PyObject * obj1 = 0 ; | |
17096 | PyObject * obj2 = 0 ; | |
17097 | PyObject * obj3 = 0 ; | |
17098 | PyObject * obj4 = 0 ; | |
17099 | char *kwnames[] = { | |
17100 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17101 | }; | |
17102 | ||
17103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17106 | arg2 = (int) SWIG_AsInt(obj1); | |
17107 | if (PyErr_Occurred()) SWIG_fail; | |
17108 | arg3 = (int) SWIG_AsInt(obj2); | |
17109 | if (PyErr_Occurred()) SWIG_fail; | |
17110 | arg4 = (int) SWIG_AsInt(obj3); | |
17111 | if (PyErr_Occurred()) SWIG_fail; | |
17112 | arg5 = (int) SWIG_AsInt(obj4); | |
17113 | if (PyErr_Occurred()) SWIG_fail; | |
17114 | { | |
17115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17116 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
17117 | ||
17118 | wxPyEndAllowThreads(__tstate); | |
17119 | if (PyErr_Occurred()) SWIG_fail; | |
17120 | } | |
17121 | Py_INCREF(Py_None); resultobj = Py_None; | |
17122 | return resultobj; | |
17123 | fail: | |
17124 | return NULL; | |
17125 | } | |
17126 | ||
17127 | ||
17128 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17129 | PyObject *resultobj; | |
17130 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17131 | int arg2 ; | |
17132 | int arg3 ; | |
17133 | int arg4 ; | |
17134 | int arg5 ; | |
17135 | int arg6 = (int) wxSIZE_AUTO ; | |
17136 | PyObject * obj0 = 0 ; | |
17137 | PyObject * obj1 = 0 ; | |
17138 | PyObject * obj2 = 0 ; | |
17139 | PyObject * obj3 = 0 ; | |
17140 | PyObject * obj4 = 0 ; | |
17141 | PyObject * obj5 = 0 ; | |
17142 | char *kwnames[] = { | |
17143 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
17144 | }; | |
17145 | ||
17146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17149 | arg2 = (int) SWIG_AsInt(obj1); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | arg3 = (int) SWIG_AsInt(obj2); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | arg4 = (int) SWIG_AsInt(obj3); | |
17154 | if (PyErr_Occurred()) SWIG_fail; | |
17155 | arg5 = (int) SWIG_AsInt(obj4); | |
17156 | if (PyErr_Occurred()) SWIG_fail; | |
17157 | if (obj5) { | |
17158 | arg6 = (int) SWIG_AsInt(obj5); | |
17159 | if (PyErr_Occurred()) SWIG_fail; | |
17160 | } | |
17161 | { | |
17162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17163 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
17164 | ||
17165 | wxPyEndAllowThreads(__tstate); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | } | |
17168 | Py_INCREF(Py_None); resultobj = Py_None; | |
17169 | return resultobj; | |
17170 | fail: | |
17171 | return NULL; | |
17172 | } | |
17173 | ||
17174 | ||
17175 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17176 | PyObject *resultobj; | |
17177 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17178 | int arg2 ; | |
17179 | int arg3 ; | |
17180 | PyObject * obj0 = 0 ; | |
17181 | PyObject * obj1 = 0 ; | |
17182 | PyObject * obj2 = 0 ; | |
17183 | char *kwnames[] = { | |
17184 | (char *) "self",(char *) "width",(char *) "height", NULL | |
17185 | }; | |
17186 | ||
17187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17190 | arg2 = (int) SWIG_AsInt(obj1); | |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
17192 | arg3 = (int) SWIG_AsInt(obj2); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | { | |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
17197 | ||
17198 | wxPyEndAllowThreads(__tstate); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | } | |
17201 | Py_INCREF(Py_None); resultobj = Py_None; | |
17202 | return resultobj; | |
17203 | fail: | |
17204 | return NULL; | |
17205 | } | |
17206 | ||
17207 | ||
17208 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17209 | PyObject *resultobj; | |
17210 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17211 | int arg2 ; | |
17212 | int arg3 ; | |
17213 | PyObject * obj0 = 0 ; | |
17214 | PyObject * obj1 = 0 ; | |
17215 | PyObject * obj2 = 0 ; | |
17216 | char *kwnames[] = { | |
17217 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17218 | }; | |
17219 | ||
17220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17223 | arg2 = (int) SWIG_AsInt(obj1); | |
17224 | if (PyErr_Occurred()) SWIG_fail; | |
17225 | arg3 = (int) SWIG_AsInt(obj2); | |
17226 | if (PyErr_Occurred()) SWIG_fail; | |
17227 | { | |
17228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17229 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
17230 | ||
17231 | wxPyEndAllowThreads(__tstate); | |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
17233 | } | |
17234 | Py_INCREF(Py_None); resultobj = Py_None; | |
17235 | return resultobj; | |
17236 | fail: | |
17237 | return NULL; | |
17238 | } | |
17239 | ||
17240 | ||
17241 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17242 | PyObject *resultobj; | |
17243 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17244 | int *arg2 = (int *) 0 ; | |
17245 | int *arg3 = (int *) 0 ; | |
17246 | int temp2 ; | |
17247 | int temp3 ; | |
17248 | PyObject * obj0 = 0 ; | |
17249 | char *kwnames[] = { | |
17250 | (char *) "self", NULL | |
17251 | }; | |
17252 | ||
17253 | arg2 = &temp2; | |
17254 | arg3 = &temp3; | |
17255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
17256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17258 | { | |
17259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17260 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
17261 | ||
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | Py_INCREF(Py_None); resultobj = Py_None; | |
17266 | { | |
17267 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17268 | resultobj = t_output_helper(resultobj,o); | |
17269 | } | |
17270 | { | |
17271 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17272 | resultobj = t_output_helper(resultobj,o); | |
17273 | } | |
17274 | return resultobj; | |
17275 | fail: | |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17281 | PyObject *resultobj; | |
17282 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17283 | int *arg2 = (int *) 0 ; | |
17284 | int *arg3 = (int *) 0 ; | |
17285 | int temp2 ; | |
17286 | int temp3 ; | |
17287 | PyObject * obj0 = 0 ; | |
17288 | char *kwnames[] = { | |
17289 | (char *) "self", NULL | |
17290 | }; | |
17291 | ||
17292 | arg2 = &temp2; | |
17293 | arg3 = &temp3; | |
17294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
17295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17297 | { | |
17298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17299 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
17300 | ||
17301 | wxPyEndAllowThreads(__tstate); | |
17302 | if (PyErr_Occurred()) SWIG_fail; | |
17303 | } | |
17304 | Py_INCREF(Py_None); resultobj = Py_None; | |
17305 | { | |
17306 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17307 | resultobj = t_output_helper(resultobj,o); | |
17308 | } | |
17309 | { | |
17310 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17311 | resultobj = t_output_helper(resultobj,o); | |
17312 | } | |
17313 | return resultobj; | |
17314 | fail: | |
17315 | return NULL; | |
17316 | } | |
17317 | ||
17318 | ||
17319 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17320 | PyObject *resultobj; | |
17321 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17322 | int *arg2 = (int *) 0 ; | |
17323 | int *arg3 = (int *) 0 ; | |
17324 | int temp2 ; | |
17325 | int temp3 ; | |
17326 | PyObject * obj0 = 0 ; | |
17327 | char *kwnames[] = { | |
17328 | (char *) "self", NULL | |
17329 | }; | |
17330 | ||
17331 | arg2 = &temp2; | |
17332 | arg3 = &temp3; | |
17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
17334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17336 | { | |
17337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17338 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
17339 | ||
17340 | wxPyEndAllowThreads(__tstate); | |
17341 | if (PyErr_Occurred()) SWIG_fail; | |
17342 | } | |
17343 | Py_INCREF(Py_None); resultobj = Py_None; | |
17344 | { | |
17345 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17346 | resultobj = t_output_helper(resultobj,o); | |
17347 | } | |
17348 | { | |
17349 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17350 | resultobj = t_output_helper(resultobj,o); | |
17351 | } | |
17352 | return resultobj; | |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
17358 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17359 | PyObject *resultobj; | |
17360 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17361 | wxSize result; | |
17362 | PyObject * obj0 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
17368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17370 | { | |
17371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17372 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17373 | ||
17374 | wxPyEndAllowThreads(__tstate); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | } | |
17377 | { | |
17378 | wxSize * resultptr; | |
17379 | resultptr = new wxSize((wxSize &) result); | |
17380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17381 | } | |
17382 | return resultobj; | |
17383 | fail: | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17391 | wxSize result; | |
17392 | PyObject * obj0 = 0 ; | |
17393 | char *kwnames[] = { | |
17394 | (char *) "self", NULL | |
17395 | }; | |
17396 | ||
17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17400 | { | |
17401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17402 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17403 | ||
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
17407 | { | |
17408 | wxSize * resultptr; | |
17409 | resultptr = new wxSize((wxSize &) result); | |
17410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17411 | } | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj; | |
17420 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17421 | PyObject * obj0 = 0 ; | |
17422 | char *kwnames[] = { | |
17423 | (char *) "self", NULL | |
17424 | }; | |
17425 | ||
17426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17429 | { | |
17430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17431 | (arg1)->base_InitDialog(); | |
17432 | ||
17433 | wxPyEndAllowThreads(__tstate); | |
17434 | if (PyErr_Occurred()) SWIG_fail; | |
17435 | } | |
17436 | Py_INCREF(Py_None); resultobj = Py_None; | |
17437 | return resultobj; | |
17438 | fail: | |
17439 | return NULL; | |
17440 | } | |
17441 | ||
17442 | ||
17443 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17444 | PyObject *resultobj; | |
17445 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17446 | bool result; | |
17447 | PyObject * obj0 = 0 ; | |
17448 | char *kwnames[] = { | |
17449 | (char *) "self", NULL | |
17450 | }; | |
17451 | ||
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17455 | { | |
17456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17457 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17458 | ||
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
17462 | { | |
17463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17464 | } | |
17465 | return resultobj; | |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
17471 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17472 | PyObject *resultobj; | |
17473 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17474 | bool result; | |
17475 | PyObject * obj0 = 0 ; | |
17476 | char *kwnames[] = { | |
17477 | (char *) "self", NULL | |
17478 | }; | |
17479 | ||
17480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17483 | { | |
17484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17485 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17486 | ||
17487 | wxPyEndAllowThreads(__tstate); | |
17488 | if (PyErr_Occurred()) SWIG_fail; | |
17489 | } | |
17490 | { | |
17491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17492 | } | |
17493 | return resultobj; | |
17494 | fail: | |
17495 | return NULL; | |
17496 | } | |
17497 | ||
17498 | ||
17499 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17500 | PyObject *resultobj; | |
17501 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17502 | bool result; | |
17503 | PyObject * obj0 = 0 ; | |
17504 | char *kwnames[] = { | |
17505 | (char *) "self", NULL | |
17506 | }; | |
17507 | ||
17508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17511 | { | |
17512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17513 | result = (bool)(arg1)->base_Validate(); | |
17514 | ||
17515 | wxPyEndAllowThreads(__tstate); | |
17516 | if (PyErr_Occurred()) SWIG_fail; | |
17517 | } | |
17518 | { | |
17519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17520 | } | |
17521 | return resultobj; | |
17522 | fail: | |
17523 | return NULL; | |
17524 | } | |
17525 | ||
17526 | ||
17527 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17528 | PyObject *resultobj; | |
17529 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17530 | bool result; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | char *kwnames[] = { | |
17533 | (char *) "self", NULL | |
17534 | }; | |
17535 | ||
17536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17539 | { | |
17540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17541 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17542 | ||
17543 | wxPyEndAllowThreads(__tstate); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | } | |
17546 | { | |
17547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17548 | } | |
17549 | return resultobj; | |
17550 | fail: | |
17551 | return NULL; | |
17552 | } | |
17553 | ||
17554 | ||
17555 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17556 | PyObject *resultobj; | |
17557 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17558 | bool result; | |
17559 | PyObject * obj0 = 0 ; | |
17560 | char *kwnames[] = { | |
17561 | (char *) "self", NULL | |
17562 | }; | |
17563 | ||
17564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17567 | { | |
17568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17569 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17570 | ||
17571 | wxPyEndAllowThreads(__tstate); | |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
17573 | } | |
17574 | { | |
17575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17576 | } | |
17577 | return resultobj; | |
17578 | fail: | |
17579 | return NULL; | |
17580 | } | |
17581 | ||
17582 | ||
17583 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17584 | PyObject *resultobj; | |
17585 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17586 | wxSize result; | |
17587 | PyObject * obj0 = 0 ; | |
17588 | char *kwnames[] = { | |
17589 | (char *) "self", NULL | |
17590 | }; | |
17591 | ||
17592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17595 | { | |
17596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17597 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17598 | ||
17599 | wxPyEndAllowThreads(__tstate); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
17602 | { | |
17603 | wxSize * resultptr; | |
17604 | resultptr = new wxSize((wxSize &) result); | |
17605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17606 | } | |
17607 | return resultobj; | |
17608 | fail: | |
17609 | return NULL; | |
17610 | } | |
17611 | ||
17612 | ||
17613 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17614 | PyObject *resultobj; | |
17615 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17616 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17617 | PyObject * obj0 = 0 ; | |
17618 | PyObject * obj1 = 0 ; | |
17619 | char *kwnames[] = { | |
17620 | (char *) "self",(char *) "child", NULL | |
17621 | }; | |
17622 | ||
17623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17628 | { | |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17630 | (arg1)->base_AddChild(arg2); | |
17631 | ||
17632 | wxPyEndAllowThreads(__tstate); | |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
17634 | } | |
17635 | Py_INCREF(Py_None); resultobj = Py_None; | |
17636 | return resultobj; | |
17637 | fail: | |
17638 | return NULL; | |
17639 | } | |
17640 | ||
17641 | ||
17642 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17643 | PyObject *resultobj; | |
17644 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17646 | PyObject * obj0 = 0 ; | |
17647 | PyObject * obj1 = 0 ; | |
17648 | char *kwnames[] = { | |
17649 | (char *) "self",(char *) "child", NULL | |
17650 | }; | |
17651 | ||
17652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17655 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17657 | { | |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | (arg1)->base_RemoveChild(arg2); | |
17660 | ||
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
17664 | Py_INCREF(Py_None); resultobj = Py_None; | |
17665 | return resultobj; | |
17666 | fail: | |
17667 | return NULL; | |
17668 | } | |
17669 | ||
17670 | ||
17671 | static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17672 | PyObject *resultobj; | |
17673 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17674 | bool result; | |
17675 | PyObject * obj0 = 0 ; | |
17676 | char *kwnames[] = { | |
17677 | (char *) "self", NULL | |
17678 | }; | |
17679 | ||
17680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17683 | { | |
17684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17685 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
17686 | ||
17687 | wxPyEndAllowThreads(__tstate); | |
17688 | if (PyErr_Occurred()) SWIG_fail; | |
17689 | } | |
17690 | { | |
17691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17692 | } | |
17693 | return resultobj; | |
17694 | fail: | |
17695 | return NULL; | |
17696 | } | |
17697 | ||
17698 | ||
17699 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17700 | PyObject *resultobj; | |
17701 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17702 | wxColour *arg2 = 0 ; | |
17703 | wxColour temp2 ; | |
17704 | PyObject * obj0 = 0 ; | |
17705 | PyObject * obj1 = 0 ; | |
17706 | char *kwnames[] = { | |
17707 | (char *) "self",(char *) "c", NULL | |
17708 | }; | |
17709 | ||
17710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17713 | { | |
17714 | arg2 = &temp2; | |
17715 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17716 | } | |
17717 | { | |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17719 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17720 | ||
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
17724 | Py_INCREF(Py_None); resultobj = Py_None; | |
17725 | return resultobj; | |
17726 | fail: | |
17727 | return NULL; | |
17728 | } | |
17729 | ||
17730 | ||
17731 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
17732 | PyObject *obj; | |
17733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17734 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
17735 | Py_INCREF(obj); | |
17736 | return Py_BuildValue((char *)""); | |
17737 | } | |
17738 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
17739 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
17740 | return 1; | |
17741 | } | |
17742 | ||
17743 | ||
17744 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
17745 | PyObject *pyobj; | |
17746 | ||
17747 | { | |
17748 | #if wxUSE_UNICODE | |
17749 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17750 | #else | |
17751 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
17752 | #endif | |
17753 | } | |
17754 | return pyobj; | |
17755 | } | |
17756 | ||
17757 | ||
17758 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
17759 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
17760 | return 1; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
17765 | PyObject *pyobj; | |
17766 | ||
17767 | { | |
17768 | #if wxUSE_UNICODE | |
17769 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17770 | #else | |
17771 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
17772 | #endif | |
17773 | } | |
17774 | return pyobj; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17779 | PyObject *resultobj; | |
17780 | wxPrintData *result; | |
17781 | char *kwnames[] = { | |
17782 | NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
17786 | { | |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | result = (wxPrintData *)new wxPrintData(); | |
17789 | ||
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
17794 | return resultobj; | |
17795 | fail: | |
17796 | return NULL; | |
17797 | } | |
17798 | ||
17799 | ||
17800 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17801 | PyObject *resultobj; | |
17802 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17803 | PyObject * obj0 = 0 ; | |
17804 | char *kwnames[] = { | |
17805 | (char *) "self", NULL | |
17806 | }; | |
17807 | ||
17808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
17809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17811 | { | |
17812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17813 | delete arg1; | |
17814 | ||
17815 | wxPyEndAllowThreads(__tstate); | |
17816 | if (PyErr_Occurred()) SWIG_fail; | |
17817 | } | |
17818 | Py_INCREF(Py_None); resultobj = Py_None; | |
17819 | return resultobj; | |
17820 | fail: | |
17821 | return NULL; | |
17822 | } | |
17823 | ||
17824 | ||
17825 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17826 | PyObject *resultobj; | |
17827 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17828 | int result; | |
17829 | PyObject * obj0 = 0 ; | |
17830 | char *kwnames[] = { | |
17831 | (char *) "self", NULL | |
17832 | }; | |
17833 | ||
17834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
17835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17837 | { | |
17838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17839 | result = (int)(arg1)->GetNoCopies(); | |
17840 | ||
17841 | wxPyEndAllowThreads(__tstate); | |
17842 | if (PyErr_Occurred()) SWIG_fail; | |
17843 | } | |
17844 | resultobj = SWIG_FromInt((int)result); | |
17845 | return resultobj; | |
17846 | fail: | |
17847 | return NULL; | |
17848 | } | |
17849 | ||
17850 | ||
17851 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17852 | PyObject *resultobj; | |
17853 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17854 | bool result; | |
17855 | PyObject * obj0 = 0 ; | |
17856 | char *kwnames[] = { | |
17857 | (char *) "self", NULL | |
17858 | }; | |
17859 | ||
17860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
17861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17863 | { | |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | result = (bool)(arg1)->GetCollate(); | |
17866 | ||
17867 | wxPyEndAllowThreads(__tstate); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
17870 | { | |
17871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17872 | } | |
17873 | return resultobj; | |
17874 | fail: | |
17875 | return NULL; | |
17876 | } | |
17877 | ||
17878 | ||
17879 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17880 | PyObject *resultobj; | |
17881 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17882 | int result; | |
17883 | PyObject * obj0 = 0 ; | |
17884 | char *kwnames[] = { | |
17885 | (char *) "self", NULL | |
17886 | }; | |
17887 | ||
17888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
17889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17891 | { | |
17892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17893 | result = (int)(arg1)->GetOrientation(); | |
17894 | ||
17895 | wxPyEndAllowThreads(__tstate); | |
17896 | if (PyErr_Occurred()) SWIG_fail; | |
17897 | } | |
17898 | resultobj = SWIG_FromInt((int)result); | |
17899 | return resultobj; | |
17900 | fail: | |
17901 | return NULL; | |
17902 | } | |
17903 | ||
17904 | ||
17905 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17906 | PyObject *resultobj; | |
17907 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17908 | bool result; | |
17909 | PyObject * obj0 = 0 ; | |
17910 | char *kwnames[] = { | |
17911 | (char *) "self", NULL | |
17912 | }; | |
17913 | ||
17914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
17915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17917 | { | |
17918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17919 | result = (bool)(arg1)->Ok(); | |
17920 | ||
17921 | wxPyEndAllowThreads(__tstate); | |
17922 | if (PyErr_Occurred()) SWIG_fail; | |
17923 | } | |
17924 | { | |
17925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17926 | } | |
17927 | return resultobj; | |
17928 | fail: | |
17929 | return NULL; | |
17930 | } | |
17931 | ||
17932 | ||
17933 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17934 | PyObject *resultobj; | |
17935 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17936 | wxString *result; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | char *kwnames[] = { | |
17939 | (char *) "self", NULL | |
17940 | }; | |
17941 | ||
17942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
17943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17945 | { | |
17946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17947 | { | |
17948 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
17949 | result = (wxString *) &_result_ref; | |
17950 | } | |
17951 | ||
17952 | wxPyEndAllowThreads(__tstate); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | } | |
17955 | { | |
17956 | #if wxUSE_UNICODE | |
17957 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17958 | #else | |
17959 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17960 | #endif | |
17961 | } | |
17962 | return resultobj; | |
17963 | fail: | |
17964 | return NULL; | |
17965 | } | |
17966 | ||
17967 | ||
17968 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17969 | PyObject *resultobj; | |
17970 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17971 | bool result; | |
17972 | PyObject * obj0 = 0 ; | |
17973 | char *kwnames[] = { | |
17974 | (char *) "self", NULL | |
17975 | }; | |
17976 | ||
17977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
17978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
17979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | result = (bool)(arg1)->GetColour(); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
17987 | { | |
17988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17989 | } | |
17990 | return resultobj; | |
17991 | fail: | |
17992 | return NULL; | |
17993 | } | |
17994 | ||
17995 | ||
17996 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17997 | PyObject *resultobj; | |
17998 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17999 | int result; | |
18000 | PyObject * obj0 = 0 ; | |
18001 | char *kwnames[] = { | |
18002 | (char *) "self", NULL | |
18003 | }; | |
18004 | ||
18005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
18006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18008 | { | |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | result = (int)(arg1)->GetDuplex(); | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
18015 | resultobj = SWIG_FromInt((int)result); | |
18016 | return resultobj; | |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18025 | int result; | |
18026 | PyObject * obj0 = 0 ; | |
18027 | char *kwnames[] = { | |
18028 | (char *) "self", NULL | |
18029 | }; | |
18030 | ||
18031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
18032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18034 | { | |
18035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18036 | result = (int)(arg1)->GetPaperId(); | |
18037 | ||
18038 | wxPyEndAllowThreads(__tstate); | |
18039 | if (PyErr_Occurred()) SWIG_fail; | |
18040 | } | |
18041 | resultobj = SWIG_FromInt((int)result); | |
18042 | return resultobj; | |
18043 | fail: | |
18044 | return NULL; | |
18045 | } | |
18046 | ||
18047 | ||
18048 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18049 | PyObject *resultobj; | |
18050 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18051 | wxSize *result; | |
18052 | PyObject * obj0 = 0 ; | |
18053 | char *kwnames[] = { | |
18054 | (char *) "self", NULL | |
18055 | }; | |
18056 | ||
18057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18060 | { | |
18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18062 | { | |
18063 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
18064 | result = (wxSize *) &_result_ref; | |
18065 | } | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
18071 | return resultobj; | |
18072 | fail: | |
18073 | return NULL; | |
18074 | } | |
18075 | ||
18076 | ||
18077 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18078 | PyObject *resultobj; | |
18079 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18080 | int result; | |
18081 | PyObject * obj0 = 0 ; | |
18082 | char *kwnames[] = { | |
18083 | (char *) "self", NULL | |
18084 | }; | |
18085 | ||
18086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
18087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18089 | { | |
18090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18091 | result = (int)(arg1)->GetQuality(); | |
18092 | ||
18093 | wxPyEndAllowThreads(__tstate); | |
18094 | if (PyErr_Occurred()) SWIG_fail; | |
18095 | } | |
18096 | resultobj = SWIG_FromInt((int)result); | |
18097 | return resultobj; | |
18098 | fail: | |
18099 | return NULL; | |
18100 | } | |
18101 | ||
18102 | ||
18103 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18104 | PyObject *resultobj; | |
18105 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18106 | int arg2 ; | |
18107 | PyObject * obj0 = 0 ; | |
18108 | PyObject * obj1 = 0 ; | |
18109 | char *kwnames[] = { | |
18110 | (char *) "self",(char *) "v", NULL | |
18111 | }; | |
18112 | ||
18113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
18114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18116 | arg2 = (int) SWIG_AsInt(obj1); | |
18117 | if (PyErr_Occurred()) SWIG_fail; | |
18118 | { | |
18119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18120 | (arg1)->SetNoCopies(arg2); | |
18121 | ||
18122 | wxPyEndAllowThreads(__tstate); | |
18123 | if (PyErr_Occurred()) SWIG_fail; | |
18124 | } | |
18125 | Py_INCREF(Py_None); resultobj = Py_None; | |
18126 | return resultobj; | |
18127 | fail: | |
18128 | return NULL; | |
18129 | } | |
18130 | ||
18131 | ||
18132 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18133 | PyObject *resultobj; | |
18134 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18135 | bool arg2 ; | |
18136 | PyObject * obj0 = 0 ; | |
18137 | PyObject * obj1 = 0 ; | |
18138 | char *kwnames[] = { | |
18139 | (char *) "self",(char *) "flag", NULL | |
18140 | }; | |
18141 | ||
18142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
18143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18145 | arg2 = (bool) SWIG_AsBool(obj1); | |
18146 | if (PyErr_Occurred()) SWIG_fail; | |
18147 | { | |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | (arg1)->SetCollate(arg2); | |
18150 | ||
18151 | wxPyEndAllowThreads(__tstate); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | Py_INCREF(Py_None); resultobj = Py_None; | |
18155 | return resultobj; | |
18156 | fail: | |
18157 | return NULL; | |
18158 | } | |
18159 | ||
18160 | ||
18161 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18162 | PyObject *resultobj; | |
18163 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18164 | int arg2 ; | |
18165 | PyObject * obj0 = 0 ; | |
18166 | PyObject * obj1 = 0 ; | |
18167 | char *kwnames[] = { | |
18168 | (char *) "self",(char *) "orient", NULL | |
18169 | }; | |
18170 | ||
18171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18174 | arg2 = (int) SWIG_AsInt(obj1); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | { | |
18177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18178 | (arg1)->SetOrientation(arg2); | |
18179 | ||
18180 | wxPyEndAllowThreads(__tstate); | |
18181 | if (PyErr_Occurred()) SWIG_fail; | |
18182 | } | |
18183 | Py_INCREF(Py_None); resultobj = Py_None; | |
18184 | return resultobj; | |
18185 | fail: | |
18186 | return NULL; | |
18187 | } | |
18188 | ||
18189 | ||
18190 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18191 | PyObject *resultobj; | |
18192 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18193 | wxString *arg2 = 0 ; | |
18194 | bool temp2 = False ; | |
18195 | PyObject * obj0 = 0 ; | |
18196 | PyObject * obj1 = 0 ; | |
18197 | char *kwnames[] = { | |
18198 | (char *) "self",(char *) "name", NULL | |
18199 | }; | |
18200 | ||
18201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
18202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18204 | { | |
18205 | arg2 = wxString_in_helper(obj1); | |
18206 | if (arg2 == NULL) SWIG_fail; | |
18207 | temp2 = True; | |
18208 | } | |
18209 | { | |
18210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18211 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
18212 | ||
18213 | wxPyEndAllowThreads(__tstate); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | } | |
18216 | Py_INCREF(Py_None); resultobj = Py_None; | |
18217 | { | |
18218 | if (temp2) | |
18219 | delete arg2; | |
18220 | } | |
18221 | return resultobj; | |
18222 | fail: | |
18223 | { | |
18224 | if (temp2) | |
18225 | delete arg2; | |
18226 | } | |
18227 | return NULL; | |
18228 | } | |
18229 | ||
18230 | ||
18231 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18232 | PyObject *resultobj; | |
18233 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18234 | bool arg2 ; | |
18235 | PyObject * obj0 = 0 ; | |
18236 | PyObject * obj1 = 0 ; | |
18237 | char *kwnames[] = { | |
18238 | (char *) "self",(char *) "colour", NULL | |
18239 | }; | |
18240 | ||
18241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
18242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18244 | arg2 = (bool) SWIG_AsBool(obj1); | |
18245 | if (PyErr_Occurred()) SWIG_fail; | |
18246 | { | |
18247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18248 | (arg1)->SetColour(arg2); | |
18249 | ||
18250 | wxPyEndAllowThreads(__tstate); | |
18251 | if (PyErr_Occurred()) SWIG_fail; | |
18252 | } | |
18253 | Py_INCREF(Py_None); resultobj = Py_None; | |
18254 | return resultobj; | |
18255 | fail: | |
18256 | return NULL; | |
18257 | } | |
18258 | ||
18259 | ||
18260 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18261 | PyObject *resultobj; | |
18262 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18263 | int arg2 ; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | PyObject * obj1 = 0 ; | |
18266 | char *kwnames[] = { | |
18267 | (char *) "self",(char *) "duplex", NULL | |
18268 | }; | |
18269 | ||
18270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
18271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18273 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
18278 | ||
18279 | wxPyEndAllowThreads(__tstate); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | } | |
18282 | Py_INCREF(Py_None); resultobj = Py_None; | |
18283 | return resultobj; | |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18292 | int arg2 ; | |
18293 | PyObject * obj0 = 0 ; | |
18294 | PyObject * obj1 = 0 ; | |
18295 | char *kwnames[] = { | |
18296 | (char *) "self",(char *) "sizeId", NULL | |
18297 | }; | |
18298 | ||
18299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18302 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18303 | if (PyErr_Occurred()) SWIG_fail; | |
18304 | { | |
18305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18306 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18307 | ||
18308 | wxPyEndAllowThreads(__tstate); | |
18309 | if (PyErr_Occurred()) SWIG_fail; | |
18310 | } | |
18311 | Py_INCREF(Py_None); resultobj = Py_None; | |
18312 | return resultobj; | |
18313 | fail: | |
18314 | return NULL; | |
18315 | } | |
18316 | ||
18317 | ||
18318 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18319 | PyObject *resultobj; | |
18320 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18321 | wxSize *arg2 = 0 ; | |
18322 | wxSize temp2 ; | |
18323 | PyObject * obj0 = 0 ; | |
18324 | PyObject * obj1 = 0 ; | |
18325 | char *kwnames[] = { | |
18326 | (char *) "self",(char *) "sz", NULL | |
18327 | }; | |
18328 | ||
18329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18332 | { | |
18333 | arg2 = &temp2; | |
18334 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18335 | } | |
18336 | { | |
18337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18338 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18339 | ||
18340 | wxPyEndAllowThreads(__tstate); | |
18341 | if (PyErr_Occurred()) SWIG_fail; | |
18342 | } | |
18343 | Py_INCREF(Py_None); resultobj = Py_None; | |
18344 | return resultobj; | |
18345 | fail: | |
18346 | return NULL; | |
18347 | } | |
18348 | ||
18349 | ||
18350 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18351 | PyObject *resultobj; | |
18352 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18353 | int arg2 ; | |
18354 | PyObject * obj0 = 0 ; | |
18355 | PyObject * obj1 = 0 ; | |
18356 | char *kwnames[] = { | |
18357 | (char *) "self",(char *) "quality", NULL | |
18358 | }; | |
18359 | ||
18360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
18361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18363 | arg2 = (int) SWIG_AsInt(obj1); | |
18364 | if (PyErr_Occurred()) SWIG_fail; | |
18365 | { | |
18366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18367 | (arg1)->SetQuality(arg2); | |
18368 | ||
18369 | wxPyEndAllowThreads(__tstate); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
18371 | } | |
18372 | Py_INCREF(Py_None); resultobj = Py_None; | |
18373 | return resultobj; | |
18374 | fail: | |
18375 | return NULL; | |
18376 | } | |
18377 | ||
18378 | ||
18379 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18380 | PyObject *resultobj; | |
18381 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18382 | wxString *result; | |
18383 | PyObject * obj0 = 0 ; | |
18384 | char *kwnames[] = { | |
18385 | (char *) "self", NULL | |
18386 | }; | |
18387 | ||
18388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | { | |
18394 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18395 | result = (wxString *) &_result_ref; | |
18396 | } | |
18397 | ||
18398 | wxPyEndAllowThreads(__tstate); | |
18399 | if (PyErr_Occurred()) SWIG_fail; | |
18400 | } | |
18401 | { | |
18402 | #if wxUSE_UNICODE | |
18403 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18404 | #else | |
18405 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18406 | #endif | |
18407 | } | |
18408 | return resultobj; | |
18409 | fail: | |
18410 | return NULL; | |
18411 | } | |
18412 | ||
18413 | ||
18414 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18415 | PyObject *resultobj; | |
18416 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18417 | wxString *result; | |
18418 | PyObject * obj0 = 0 ; | |
18419 | char *kwnames[] = { | |
18420 | (char *) "self", NULL | |
18421 | }; | |
18422 | ||
18423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18426 | { | |
18427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18428 | { | |
18429 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18430 | result = (wxString *) &_result_ref; | |
18431 | } | |
18432 | ||
18433 | wxPyEndAllowThreads(__tstate); | |
18434 | if (PyErr_Occurred()) SWIG_fail; | |
18435 | } | |
18436 | { | |
18437 | #if wxUSE_UNICODE | |
18438 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18439 | #else | |
18440 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18441 | #endif | |
18442 | } | |
18443 | return resultobj; | |
18444 | fail: | |
18445 | return NULL; | |
18446 | } | |
18447 | ||
18448 | ||
18449 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18450 | PyObject *resultobj; | |
18451 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18452 | wxString *result; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | char *kwnames[] = { | |
18455 | (char *) "self", NULL | |
18456 | }; | |
18457 | ||
18458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18461 | { | |
18462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18463 | { | |
18464 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18465 | result = (wxString *) &_result_ref; | |
18466 | } | |
18467 | ||
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | { | |
18472 | #if wxUSE_UNICODE | |
18473 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18474 | #else | |
18475 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18476 | #endif | |
18477 | } | |
18478 | return resultobj; | |
18479 | fail: | |
18480 | return NULL; | |
18481 | } | |
18482 | ||
18483 | ||
18484 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18485 | PyObject *resultobj; | |
18486 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18487 | wxString *result; | |
18488 | PyObject * obj0 = 0 ; | |
18489 | char *kwnames[] = { | |
18490 | (char *) "self", NULL | |
18491 | }; | |
18492 | ||
18493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18496 | { | |
18497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18498 | { | |
18499 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18500 | result = (wxString *) &_result_ref; | |
18501 | } | |
18502 | ||
18503 | wxPyEndAllowThreads(__tstate); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
18505 | } | |
18506 | { | |
18507 | #if wxUSE_UNICODE | |
18508 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18509 | #else | |
18510 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18511 | #endif | |
18512 | } | |
18513 | return resultobj; | |
18514 | fail: | |
18515 | return NULL; | |
18516 | } | |
18517 | ||
18518 | ||
18519 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18520 | PyObject *resultobj; | |
18521 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18522 | wxString *result; | |
18523 | PyObject * obj0 = 0 ; | |
18524 | char *kwnames[] = { | |
18525 | (char *) "self", NULL | |
18526 | }; | |
18527 | ||
18528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
18529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18531 | { | |
18532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18533 | { | |
18534 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
18535 | result = (wxString *) &_result_ref; | |
18536 | } | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | { | |
18542 | #if wxUSE_UNICODE | |
18543 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18544 | #else | |
18545 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18546 | #endif | |
18547 | } | |
18548 | return resultobj; | |
18549 | fail: | |
18550 | return NULL; | |
18551 | } | |
18552 | ||
18553 | ||
18554 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18555 | PyObject *resultobj; | |
18556 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18557 | double result; | |
18558 | PyObject * obj0 = 0 ; | |
18559 | char *kwnames[] = { | |
18560 | (char *) "self", NULL | |
18561 | }; | |
18562 | ||
18563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
18564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18566 | { | |
18567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18568 | result = (double)(arg1)->GetPrinterScaleX(); | |
18569 | ||
18570 | wxPyEndAllowThreads(__tstate); | |
18571 | if (PyErr_Occurred()) SWIG_fail; | |
18572 | } | |
18573 | resultobj = SWIG_FromDouble((double)result); | |
18574 | return resultobj; | |
18575 | fail: | |
18576 | return NULL; | |
18577 | } | |
18578 | ||
18579 | ||
18580 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18581 | PyObject *resultobj; | |
18582 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18583 | double result; | |
18584 | PyObject * obj0 = 0 ; | |
18585 | char *kwnames[] = { | |
18586 | (char *) "self", NULL | |
18587 | }; | |
18588 | ||
18589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
18590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18592 | { | |
18593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18594 | result = (double)(arg1)->GetPrinterScaleY(); | |
18595 | ||
18596 | wxPyEndAllowThreads(__tstate); | |
18597 | if (PyErr_Occurred()) SWIG_fail; | |
18598 | } | |
18599 | resultobj = SWIG_FromDouble((double)result); | |
18600 | return resultobj; | |
18601 | fail: | |
18602 | return NULL; | |
18603 | } | |
18604 | ||
18605 | ||
18606 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18607 | PyObject *resultobj; | |
18608 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18609 | long result; | |
18610 | PyObject * obj0 = 0 ; | |
18611 | char *kwnames[] = { | |
18612 | (char *) "self", NULL | |
18613 | }; | |
18614 | ||
18615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
18616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18618 | { | |
18619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18620 | result = (long)(arg1)->GetPrinterTranslateX(); | |
18621 | ||
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | resultobj = SWIG_FromLong((long)result); | |
18626 | return resultobj; | |
18627 | fail: | |
18628 | return NULL; | |
18629 | } | |
18630 | ||
18631 | ||
18632 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18633 | PyObject *resultobj; | |
18634 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18635 | long result; | |
18636 | PyObject * obj0 = 0 ; | |
18637 | char *kwnames[] = { | |
18638 | (char *) "self", NULL | |
18639 | }; | |
18640 | ||
18641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
18642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18644 | { | |
18645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18646 | result = (long)(arg1)->GetPrinterTranslateY(); | |
18647 | ||
18648 | wxPyEndAllowThreads(__tstate); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
18651 | resultobj = SWIG_FromLong((long)result); | |
18652 | return resultobj; | |
18653 | fail: | |
18654 | return NULL; | |
18655 | } | |
18656 | ||
18657 | ||
18658 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18659 | PyObject *resultobj; | |
18660 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18661 | int result; | |
18662 | PyObject * obj0 = 0 ; | |
18663 | char *kwnames[] = { | |
18664 | (char *) "self", NULL | |
18665 | }; | |
18666 | ||
18667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
18668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18670 | { | |
18671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18672 | result = (int)(arg1)->GetPrintMode(); | |
18673 | ||
18674 | wxPyEndAllowThreads(__tstate); | |
18675 | if (PyErr_Occurred()) SWIG_fail; | |
18676 | } | |
18677 | resultobj = SWIG_FromInt((int)result); | |
18678 | return resultobj; | |
18679 | fail: | |
18680 | return NULL; | |
18681 | } | |
18682 | ||
18683 | ||
18684 | static PyObject *_wrap_PrintData_SetPrinterCommand(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 *) "command", NULL | |
18693 | }; | |
18694 | ||
18695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",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)->SetPrinterCommand((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_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18726 | PyObject *resultobj; | |
18727 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18728 | wxString *arg2 = 0 ; | |
18729 | bool temp2 = False ; | |
18730 | PyObject * obj0 = 0 ; | |
18731 | PyObject * obj1 = 0 ; | |
18732 | char *kwnames[] = { | |
18733 | (char *) "self",(char *) "options", NULL | |
18734 | }; | |
18735 | ||
18736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
18737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18739 | { | |
18740 | arg2 = wxString_in_helper(obj1); | |
18741 | if (arg2 == NULL) SWIG_fail; | |
18742 | temp2 = True; | |
18743 | } | |
18744 | { | |
18745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18746 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
18747 | ||
18748 | wxPyEndAllowThreads(__tstate); | |
18749 | if (PyErr_Occurred()) SWIG_fail; | |
18750 | } | |
18751 | Py_INCREF(Py_None); resultobj = Py_None; | |
18752 | { | |
18753 | if (temp2) | |
18754 | delete arg2; | |
18755 | } | |
18756 | return resultobj; | |
18757 | fail: | |
18758 | { | |
18759 | if (temp2) | |
18760 | delete arg2; | |
18761 | } | |
18762 | return NULL; | |
18763 | } | |
18764 | ||
18765 | ||
18766 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18767 | PyObject *resultobj; | |
18768 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18769 | wxString *arg2 = 0 ; | |
18770 | bool temp2 = False ; | |
18771 | PyObject * obj0 = 0 ; | |
18772 | PyObject * obj1 = 0 ; | |
18773 | char *kwnames[] = { | |
18774 | (char *) "self",(char *) "command", NULL | |
18775 | }; | |
18776 | ||
18777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
18778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18780 | { | |
18781 | arg2 = wxString_in_helper(obj1); | |
18782 | if (arg2 == NULL) SWIG_fail; | |
18783 | temp2 = True; | |
18784 | } | |
18785 | { | |
18786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18787 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
18788 | ||
18789 | wxPyEndAllowThreads(__tstate); | |
18790 | if (PyErr_Occurred()) SWIG_fail; | |
18791 | } | |
18792 | Py_INCREF(Py_None); resultobj = Py_None; | |
18793 | { | |
18794 | if (temp2) | |
18795 | delete arg2; | |
18796 | } | |
18797 | return resultobj; | |
18798 | fail: | |
18799 | { | |
18800 | if (temp2) | |
18801 | delete arg2; | |
18802 | } | |
18803 | return NULL; | |
18804 | } | |
18805 | ||
18806 | ||
18807 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18808 | PyObject *resultobj; | |
18809 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18810 | wxString *arg2 = 0 ; | |
18811 | bool temp2 = False ; | |
18812 | PyObject * obj0 = 0 ; | |
18813 | PyObject * obj1 = 0 ; | |
18814 | char *kwnames[] = { | |
18815 | (char *) "self",(char *) "filename", NULL | |
18816 | }; | |
18817 | ||
18818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
18819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18821 | { | |
18822 | arg2 = wxString_in_helper(obj1); | |
18823 | if (arg2 == NULL) SWIG_fail; | |
18824 | temp2 = True; | |
18825 | } | |
18826 | { | |
18827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18828 | (arg1)->SetFilename((wxString const &)*arg2); | |
18829 | ||
18830 | wxPyEndAllowThreads(__tstate); | |
18831 | if (PyErr_Occurred()) SWIG_fail; | |
18832 | } | |
18833 | Py_INCREF(Py_None); resultobj = Py_None; | |
18834 | { | |
18835 | if (temp2) | |
18836 | delete arg2; | |
18837 | } | |
18838 | return resultobj; | |
18839 | fail: | |
18840 | { | |
18841 | if (temp2) | |
18842 | delete arg2; | |
18843 | } | |
18844 | return NULL; | |
18845 | } | |
18846 | ||
18847 | ||
18848 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18849 | PyObject *resultobj; | |
18850 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18851 | wxString *arg2 = 0 ; | |
18852 | bool temp2 = False ; | |
18853 | PyObject * obj0 = 0 ; | |
18854 | PyObject * obj1 = 0 ; | |
18855 | char *kwnames[] = { | |
18856 | (char *) "self",(char *) "path", NULL | |
18857 | }; | |
18858 | ||
18859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
18860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18862 | { | |
18863 | arg2 = wxString_in_helper(obj1); | |
18864 | if (arg2 == NULL) SWIG_fail; | |
18865 | temp2 = True; | |
18866 | } | |
18867 | { | |
18868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18869 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
18870 | ||
18871 | wxPyEndAllowThreads(__tstate); | |
18872 | if (PyErr_Occurred()) SWIG_fail; | |
18873 | } | |
18874 | Py_INCREF(Py_None); resultobj = Py_None; | |
18875 | { | |
18876 | if (temp2) | |
18877 | delete arg2; | |
18878 | } | |
18879 | return resultobj; | |
18880 | fail: | |
18881 | { | |
18882 | if (temp2) | |
18883 | delete arg2; | |
18884 | } | |
18885 | return NULL; | |
18886 | } | |
18887 | ||
18888 | ||
18889 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18890 | PyObject *resultobj; | |
18891 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18892 | double arg2 ; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | PyObject * obj1 = 0 ; | |
18895 | char *kwnames[] = { | |
18896 | (char *) "self",(char *) "x", NULL | |
18897 | }; | |
18898 | ||
18899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
18900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18902 | arg2 = (double) SWIG_AsDouble(obj1); | |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | { | |
18905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18906 | (arg1)->SetPrinterScaleX(arg2); | |
18907 | ||
18908 | wxPyEndAllowThreads(__tstate); | |
18909 | if (PyErr_Occurred()) SWIG_fail; | |
18910 | } | |
18911 | Py_INCREF(Py_None); resultobj = Py_None; | |
18912 | return resultobj; | |
18913 | fail: | |
18914 | return NULL; | |
18915 | } | |
18916 | ||
18917 | ||
18918 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18919 | PyObject *resultobj; | |
18920 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18921 | double arg2 ; | |
18922 | PyObject * obj0 = 0 ; | |
18923 | PyObject * obj1 = 0 ; | |
18924 | char *kwnames[] = { | |
18925 | (char *) "self",(char *) "y", NULL | |
18926 | }; | |
18927 | ||
18928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
18929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18931 | arg2 = (double) SWIG_AsDouble(obj1); | |
18932 | if (PyErr_Occurred()) SWIG_fail; | |
18933 | { | |
18934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18935 | (arg1)->SetPrinterScaleY(arg2); | |
18936 | ||
18937 | wxPyEndAllowThreads(__tstate); | |
18938 | if (PyErr_Occurred()) SWIG_fail; | |
18939 | } | |
18940 | Py_INCREF(Py_None); resultobj = Py_None; | |
18941 | return resultobj; | |
18942 | fail: | |
18943 | return NULL; | |
18944 | } | |
18945 | ||
18946 | ||
18947 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18948 | PyObject *resultobj; | |
18949 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18950 | double arg2 ; | |
18951 | double arg3 ; | |
18952 | PyObject * obj0 = 0 ; | |
18953 | PyObject * obj1 = 0 ; | |
18954 | PyObject * obj2 = 0 ; | |
18955 | char *kwnames[] = { | |
18956 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18957 | }; | |
18958 | ||
18959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18962 | arg2 = (double) SWIG_AsDouble(obj1); | |
18963 | if (PyErr_Occurred()) SWIG_fail; | |
18964 | arg3 = (double) SWIG_AsDouble(obj2); | |
18965 | if (PyErr_Occurred()) SWIG_fail; | |
18966 | { | |
18967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18968 | (arg1)->SetPrinterScaling(arg2,arg3); | |
18969 | ||
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
18973 | Py_INCREF(Py_None); resultobj = Py_None; | |
18974 | return resultobj; | |
18975 | fail: | |
18976 | return NULL; | |
18977 | } | |
18978 | ||
18979 | ||
18980 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18981 | PyObject *resultobj; | |
18982 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18983 | long arg2 ; | |
18984 | PyObject * obj0 = 0 ; | |
18985 | PyObject * obj1 = 0 ; | |
18986 | char *kwnames[] = { | |
18987 | (char *) "self",(char *) "x", NULL | |
18988 | }; | |
18989 | ||
18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
18991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18993 | arg2 = (long) SWIG_AsLong(obj1); | |
18994 | if (PyErr_Occurred()) SWIG_fail; | |
18995 | { | |
18996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18997 | (arg1)->SetPrinterTranslateX(arg2); | |
18998 | ||
18999 | wxPyEndAllowThreads(__tstate); | |
19000 | if (PyErr_Occurred()) SWIG_fail; | |
19001 | } | |
19002 | Py_INCREF(Py_None); resultobj = Py_None; | |
19003 | return resultobj; | |
19004 | fail: | |
19005 | return NULL; | |
19006 | } | |
19007 | ||
19008 | ||
19009 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19010 | PyObject *resultobj; | |
19011 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19012 | long arg2 ; | |
19013 | PyObject * obj0 = 0 ; | |
19014 | PyObject * obj1 = 0 ; | |
19015 | char *kwnames[] = { | |
19016 | (char *) "self",(char *) "y", NULL | |
19017 | }; | |
19018 | ||
19019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
19020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19022 | arg2 = (long) SWIG_AsLong(obj1); | |
19023 | if (PyErr_Occurred()) SWIG_fail; | |
19024 | { | |
19025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19026 | (arg1)->SetPrinterTranslateY(arg2); | |
19027 | ||
19028 | wxPyEndAllowThreads(__tstate); | |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
19030 | } | |
19031 | Py_INCREF(Py_None); resultobj = Py_None; | |
19032 | return resultobj; | |
19033 | fail: | |
19034 | return NULL; | |
19035 | } | |
19036 | ||
19037 | ||
19038 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19039 | PyObject *resultobj; | |
19040 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19041 | long arg2 ; | |
19042 | long arg3 ; | |
19043 | PyObject * obj0 = 0 ; | |
19044 | PyObject * obj1 = 0 ; | |
19045 | PyObject * obj2 = 0 ; | |
19046 | char *kwnames[] = { | |
19047 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19048 | }; | |
19049 | ||
19050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19053 | arg2 = (long) SWIG_AsLong(obj1); | |
19054 | if (PyErr_Occurred()) SWIG_fail; | |
19055 | arg3 = (long) SWIG_AsLong(obj2); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
19057 | { | |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
19064 | Py_INCREF(Py_None); resultobj = Py_None; | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
19071 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19072 | PyObject *resultobj; | |
19073 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19074 | int arg2 ; | |
19075 | PyObject * obj0 = 0 ; | |
19076 | PyObject * obj1 = 0 ; | |
19077 | char *kwnames[] = { | |
19078 | (char *) "self",(char *) "printMode", NULL | |
19079 | }; | |
19080 | ||
19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
19082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19084 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
19085 | if (PyErr_Occurred()) SWIG_fail; | |
19086 | { | |
19087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19088 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
19089 | ||
19090 | wxPyEndAllowThreads(__tstate); | |
19091 | if (PyErr_Occurred()) SWIG_fail; | |
19092 | } | |
19093 | Py_INCREF(Py_None); resultobj = Py_None; | |
19094 | return resultobj; | |
19095 | fail: | |
19096 | return NULL; | |
19097 | } | |
19098 | ||
19099 | ||
19100 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19101 | PyObject *resultobj; | |
19102 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19103 | wxOutputStream *result; | |
19104 | PyObject * obj0 = 0 ; | |
19105 | char *kwnames[] = { | |
19106 | (char *) "self", NULL | |
19107 | }; | |
19108 | ||
19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
19110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19112 | { | |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
19120 | return resultobj; | |
19121 | fail: | |
19122 | return NULL; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19127 | PyObject *resultobj; | |
19128 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19129 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
19130 | PyObject * obj0 = 0 ; | |
19131 | PyObject * obj1 = 0 ; | |
19132 | char *kwnames[] = { | |
19133 | (char *) "self",(char *) "outputstream", NULL | |
19134 | }; | |
19135 | ||
19136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
19137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
19140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19141 | { | |
19142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19143 | (arg1)->SetOutputStream(arg2); | |
19144 | ||
19145 | wxPyEndAllowThreads(__tstate); | |
19146 | if (PyErr_Occurred()) SWIG_fail; | |
19147 | } | |
19148 | Py_INCREF(Py_None); resultobj = Py_None; | |
19149 | return resultobj; | |
19150 | fail: | |
19151 | return NULL; | |
19152 | } | |
19153 | ||
19154 | ||
19155 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
19156 | PyObject *obj; | |
19157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19158 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
19159 | Py_INCREF(obj); | |
19160 | return Py_BuildValue((char *)""); | |
19161 | } | |
19162 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19163 | PyObject *resultobj; | |
19164 | wxPageSetupDialogData *result; | |
19165 | char *kwnames[] = { | |
19166 | NULL | |
19167 | }; | |
19168 | ||
19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
19173 | ||
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19178 | return resultobj; | |
19179 | fail: | |
19180 | return NULL; | |
19181 | } | |
19182 | ||
19183 | ||
19184 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19185 | PyObject *resultobj; | |
19186 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19187 | PyObject * obj0 = 0 ; | |
19188 | char *kwnames[] = { | |
19189 | (char *) "self", NULL | |
19190 | }; | |
19191 | ||
19192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
19193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19195 | { | |
19196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19197 | delete arg1; | |
19198 | ||
19199 | wxPyEndAllowThreads(__tstate); | |
19200 | if (PyErr_Occurred()) SWIG_fail; | |
19201 | } | |
19202 | Py_INCREF(Py_None); resultobj = Py_None; | |
19203 | return resultobj; | |
19204 | fail: | |
19205 | return NULL; | |
19206 | } | |
19207 | ||
19208 | ||
19209 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19210 | PyObject *resultobj; | |
19211 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19212 | bool arg2 ; | |
19213 | PyObject * obj0 = 0 ; | |
19214 | PyObject * obj1 = 0 ; | |
19215 | char *kwnames[] = { | |
19216 | (char *) "self",(char *) "flag", NULL | |
19217 | }; | |
19218 | ||
19219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19222 | arg2 = (bool) SWIG_AsBool(obj1); | |
19223 | if (PyErr_Occurred()) SWIG_fail; | |
19224 | { | |
19225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19226 | (arg1)->EnableHelp(arg2); | |
19227 | ||
19228 | wxPyEndAllowThreads(__tstate); | |
19229 | if (PyErr_Occurred()) SWIG_fail; | |
19230 | } | |
19231 | Py_INCREF(Py_None); resultobj = Py_None; | |
19232 | return resultobj; | |
19233 | fail: | |
19234 | return NULL; | |
19235 | } | |
19236 | ||
19237 | ||
19238 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19239 | PyObject *resultobj; | |
19240 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19241 | bool arg2 ; | |
19242 | PyObject * obj0 = 0 ; | |
19243 | PyObject * obj1 = 0 ; | |
19244 | char *kwnames[] = { | |
19245 | (char *) "self",(char *) "flag", NULL | |
19246 | }; | |
19247 | ||
19248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
19249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19251 | arg2 = (bool) SWIG_AsBool(obj1); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | { | |
19254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19255 | (arg1)->EnableMargins(arg2); | |
19256 | ||
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | Py_INCREF(Py_None); resultobj = Py_None; | |
19261 | return resultobj; | |
19262 | fail: | |
19263 | return NULL; | |
19264 | } | |
19265 | ||
19266 | ||
19267 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19268 | PyObject *resultobj; | |
19269 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19270 | bool arg2 ; | |
19271 | PyObject * obj0 = 0 ; | |
19272 | PyObject * obj1 = 0 ; | |
19273 | char *kwnames[] = { | |
19274 | (char *) "self",(char *) "flag", NULL | |
19275 | }; | |
19276 | ||
19277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
19278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19280 | arg2 = (bool) SWIG_AsBool(obj1); | |
19281 | if (PyErr_Occurred()) SWIG_fail; | |
19282 | { | |
19283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19284 | (arg1)->EnableOrientation(arg2); | |
19285 | ||
19286 | wxPyEndAllowThreads(__tstate); | |
19287 | if (PyErr_Occurred()) SWIG_fail; | |
19288 | } | |
19289 | Py_INCREF(Py_None); resultobj = Py_None; | |
19290 | return resultobj; | |
19291 | fail: | |
19292 | return NULL; | |
19293 | } | |
19294 | ||
19295 | ||
19296 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19297 | PyObject *resultobj; | |
19298 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19299 | bool arg2 ; | |
19300 | PyObject * obj0 = 0 ; | |
19301 | PyObject * obj1 = 0 ; | |
19302 | char *kwnames[] = { | |
19303 | (char *) "self",(char *) "flag", NULL | |
19304 | }; | |
19305 | ||
19306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
19307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19309 | arg2 = (bool) SWIG_AsBool(obj1); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | { | |
19312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19313 | (arg1)->EnablePaper(arg2); | |
19314 | ||
19315 | wxPyEndAllowThreads(__tstate); | |
19316 | if (PyErr_Occurred()) SWIG_fail; | |
19317 | } | |
19318 | Py_INCREF(Py_None); resultobj = Py_None; | |
19319 | return resultobj; | |
19320 | fail: | |
19321 | return NULL; | |
19322 | } | |
19323 | ||
19324 | ||
19325 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19326 | PyObject *resultobj; | |
19327 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19328 | bool arg2 ; | |
19329 | PyObject * obj0 = 0 ; | |
19330 | PyObject * obj1 = 0 ; | |
19331 | char *kwnames[] = { | |
19332 | (char *) "self",(char *) "flag", NULL | |
19333 | }; | |
19334 | ||
19335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
19336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19338 | arg2 = (bool) SWIG_AsBool(obj1); | |
19339 | if (PyErr_Occurred()) SWIG_fail; | |
19340 | { | |
19341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19342 | (arg1)->EnablePrinter(arg2); | |
19343 | ||
19344 | wxPyEndAllowThreads(__tstate); | |
19345 | if (PyErr_Occurred()) SWIG_fail; | |
19346 | } | |
19347 | Py_INCREF(Py_None); resultobj = Py_None; | |
19348 | return resultobj; | |
19349 | fail: | |
19350 | return NULL; | |
19351 | } | |
19352 | ||
19353 | ||
19354 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19355 | PyObject *resultobj; | |
19356 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19357 | bool result; | |
19358 | PyObject * obj0 = 0 ; | |
19359 | char *kwnames[] = { | |
19360 | (char *) "self", NULL | |
19361 | }; | |
19362 | ||
19363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
19364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19366 | { | |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
19369 | ||
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
19373 | { | |
19374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19375 | } | |
19376 | return resultobj; | |
19377 | fail: | |
19378 | return NULL; | |
19379 | } | |
19380 | ||
19381 | ||
19382 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19383 | PyObject *resultobj; | |
19384 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19385 | bool result; | |
19386 | PyObject * obj0 = 0 ; | |
19387 | char *kwnames[] = { | |
19388 | (char *) "self", NULL | |
19389 | }; | |
19390 | ||
19391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19394 | { | |
19395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19396 | result = (bool)(arg1)->GetEnableMargins(); | |
19397 | ||
19398 | wxPyEndAllowThreads(__tstate); | |
19399 | if (PyErr_Occurred()) SWIG_fail; | |
19400 | } | |
19401 | { | |
19402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19403 | } | |
19404 | return resultobj; | |
19405 | fail: | |
19406 | return NULL; | |
19407 | } | |
19408 | ||
19409 | ||
19410 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19411 | PyObject *resultobj; | |
19412 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19413 | bool result; | |
19414 | PyObject * obj0 = 0 ; | |
19415 | char *kwnames[] = { | |
19416 | (char *) "self", NULL | |
19417 | }; | |
19418 | ||
19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19422 | { | |
19423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19424 | result = (bool)(arg1)->GetEnableOrientation(); | |
19425 | ||
19426 | wxPyEndAllowThreads(__tstate); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
19428 | } | |
19429 | { | |
19430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19431 | } | |
19432 | return resultobj; | |
19433 | fail: | |
19434 | return NULL; | |
19435 | } | |
19436 | ||
19437 | ||
19438 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19439 | PyObject *resultobj; | |
19440 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19441 | bool result; | |
19442 | PyObject * obj0 = 0 ; | |
19443 | char *kwnames[] = { | |
19444 | (char *) "self", NULL | |
19445 | }; | |
19446 | ||
19447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19450 | { | |
19451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19452 | result = (bool)(arg1)->GetEnablePaper(); | |
19453 | ||
19454 | wxPyEndAllowThreads(__tstate); | |
19455 | if (PyErr_Occurred()) SWIG_fail; | |
19456 | } | |
19457 | { | |
19458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19459 | } | |
19460 | return resultobj; | |
19461 | fail: | |
19462 | return NULL; | |
19463 | } | |
19464 | ||
19465 | ||
19466 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19467 | PyObject *resultobj; | |
19468 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19469 | bool result; | |
19470 | PyObject * obj0 = 0 ; | |
19471 | char *kwnames[] = { | |
19472 | (char *) "self", NULL | |
19473 | }; | |
19474 | ||
19475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
19476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19478 | { | |
19479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19480 | result = (bool)(arg1)->GetEnablePrinter(); | |
19481 | ||
19482 | wxPyEndAllowThreads(__tstate); | |
19483 | if (PyErr_Occurred()) SWIG_fail; | |
19484 | } | |
19485 | { | |
19486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19487 | } | |
19488 | return resultobj; | |
19489 | fail: | |
19490 | return NULL; | |
19491 | } | |
19492 | ||
19493 | ||
19494 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19495 | PyObject *resultobj; | |
19496 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19497 | bool result; | |
19498 | PyObject * obj0 = 0 ; | |
19499 | char *kwnames[] = { | |
19500 | (char *) "self", NULL | |
19501 | }; | |
19502 | ||
19503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | result = (bool)(arg1)->GetEnableHelp(); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | { | |
19514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19515 | } | |
19516 | return resultobj; | |
19517 | fail: | |
19518 | return NULL; | |
19519 | } | |
19520 | ||
19521 | ||
19522 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19523 | PyObject *resultobj; | |
19524 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19525 | bool result; | |
19526 | PyObject * obj0 = 0 ; | |
19527 | char *kwnames[] = { | |
19528 | (char *) "self", NULL | |
19529 | }; | |
19530 | ||
19531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
19532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19534 | { | |
19535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19536 | result = (bool)(arg1)->GetDefaultInfo(); | |
19537 | ||
19538 | wxPyEndAllowThreads(__tstate); | |
19539 | if (PyErr_Occurred()) SWIG_fail; | |
19540 | } | |
19541 | { | |
19542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19543 | } | |
19544 | return resultobj; | |
19545 | fail: | |
19546 | return NULL; | |
19547 | } | |
19548 | ||
19549 | ||
19550 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19551 | PyObject *resultobj; | |
19552 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19553 | wxPoint result; | |
19554 | PyObject * obj0 = 0 ; | |
19555 | char *kwnames[] = { | |
19556 | (char *) "self", NULL | |
19557 | }; | |
19558 | ||
19559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
19560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19562 | { | |
19563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19564 | result = (arg1)->GetMarginTopLeft(); | |
19565 | ||
19566 | wxPyEndAllowThreads(__tstate); | |
19567 | if (PyErr_Occurred()) SWIG_fail; | |
19568 | } | |
19569 | { | |
19570 | wxPoint * resultptr; | |
19571 | resultptr = new wxPoint((wxPoint &) result); | |
19572 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19573 | } | |
19574 | return resultobj; | |
19575 | fail: | |
19576 | return NULL; | |
19577 | } | |
19578 | ||
19579 | ||
19580 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19581 | PyObject *resultobj; | |
19582 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19583 | wxPoint result; | |
19584 | PyObject * obj0 = 0 ; | |
19585 | char *kwnames[] = { | |
19586 | (char *) "self", NULL | |
19587 | }; | |
19588 | ||
19589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
19590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19592 | { | |
19593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19594 | result = (arg1)->GetMarginBottomRight(); | |
19595 | ||
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
19599 | { | |
19600 | wxPoint * resultptr; | |
19601 | resultptr = new wxPoint((wxPoint &) result); | |
19602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19603 | } | |
19604 | return resultobj; | |
19605 | fail: | |
19606 | return NULL; | |
19607 | } | |
19608 | ||
19609 | ||
19610 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19611 | PyObject *resultobj; | |
19612 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19613 | wxPoint result; | |
19614 | PyObject * obj0 = 0 ; | |
19615 | char *kwnames[] = { | |
19616 | (char *) "self", NULL | |
19617 | }; | |
19618 | ||
19619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
19620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19622 | { | |
19623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19624 | result = (arg1)->GetMinMarginTopLeft(); | |
19625 | ||
19626 | wxPyEndAllowThreads(__tstate); | |
19627 | if (PyErr_Occurred()) SWIG_fail; | |
19628 | } | |
19629 | { | |
19630 | wxPoint * resultptr; | |
19631 | resultptr = new wxPoint((wxPoint &) result); | |
19632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19633 | } | |
19634 | return resultobj; | |
19635 | fail: | |
19636 | return NULL; | |
19637 | } | |
19638 | ||
19639 | ||
19640 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19641 | PyObject *resultobj; | |
19642 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19643 | wxPoint result; | |
19644 | PyObject * obj0 = 0 ; | |
19645 | char *kwnames[] = { | |
19646 | (char *) "self", NULL | |
19647 | }; | |
19648 | ||
19649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
19650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19652 | { | |
19653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19654 | result = (arg1)->GetMinMarginBottomRight(); | |
19655 | ||
19656 | wxPyEndAllowThreads(__tstate); | |
19657 | if (PyErr_Occurred()) SWIG_fail; | |
19658 | } | |
19659 | { | |
19660 | wxPoint * resultptr; | |
19661 | resultptr = new wxPoint((wxPoint &) result); | |
19662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
19663 | } | |
19664 | return resultobj; | |
19665 | fail: | |
19666 | return NULL; | |
19667 | } | |
19668 | ||
19669 | ||
19670 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19671 | PyObject *resultobj; | |
19672 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19673 | int result; | |
19674 | PyObject * obj0 = 0 ; | |
19675 | char *kwnames[] = { | |
19676 | (char *) "self", NULL | |
19677 | }; | |
19678 | ||
19679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
19680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19682 | { | |
19683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19684 | result = (int)(arg1)->GetPaperId(); | |
19685 | ||
19686 | wxPyEndAllowThreads(__tstate); | |
19687 | if (PyErr_Occurred()) SWIG_fail; | |
19688 | } | |
19689 | resultobj = SWIG_FromInt((int)result); | |
19690 | return resultobj; | |
19691 | fail: | |
19692 | return NULL; | |
19693 | } | |
19694 | ||
19695 | ||
19696 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19697 | PyObject *resultobj; | |
19698 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19699 | wxSize result; | |
19700 | PyObject * obj0 = 0 ; | |
19701 | char *kwnames[] = { | |
19702 | (char *) "self", NULL | |
19703 | }; | |
19704 | ||
19705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
19706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19708 | { | |
19709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19710 | result = (arg1)->GetPaperSize(); | |
19711 | ||
19712 | wxPyEndAllowThreads(__tstate); | |
19713 | if (PyErr_Occurred()) SWIG_fail; | |
19714 | } | |
19715 | { | |
19716 | wxSize * resultptr; | |
19717 | resultptr = new wxSize((wxSize &) result); | |
19718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
19719 | } | |
19720 | return resultobj; | |
19721 | fail: | |
19722 | return NULL; | |
19723 | } | |
19724 | ||
19725 | ||
19726 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19727 | PyObject *resultobj; | |
19728 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19729 | wxPrintData *result; | |
19730 | PyObject * obj0 = 0 ; | |
19731 | char *kwnames[] = { | |
19732 | (char *) "self", NULL | |
19733 | }; | |
19734 | ||
19735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19738 | { | |
19739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19740 | { | |
19741 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19742 | result = (wxPrintData *) &_result_ref; | |
19743 | } | |
19744 | ||
19745 | wxPyEndAllowThreads(__tstate); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | } | |
19748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
19749 | return resultobj; | |
19750 | fail: | |
19751 | return NULL; | |
19752 | } | |
19753 | ||
19754 | ||
19755 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19756 | PyObject *resultobj; | |
19757 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19758 | bool result; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | char *kwnames[] = { | |
19761 | (char *) "self", NULL | |
19762 | }; | |
19763 | ||
19764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
19765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19767 | { | |
19768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19769 | result = (bool)(arg1)->Ok(); | |
19770 | ||
19771 | wxPyEndAllowThreads(__tstate); | |
19772 | if (PyErr_Occurred()) SWIG_fail; | |
19773 | } | |
19774 | { | |
19775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19776 | } | |
19777 | return resultobj; | |
19778 | fail: | |
19779 | return NULL; | |
19780 | } | |
19781 | ||
19782 | ||
19783 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19784 | PyObject *resultobj; | |
19785 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19786 | bool arg2 ; | |
19787 | PyObject * obj0 = 0 ; | |
19788 | PyObject * obj1 = 0 ; | |
19789 | char *kwnames[] = { | |
19790 | (char *) "self",(char *) "flag", NULL | |
19791 | }; | |
19792 | ||
19793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
19794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19796 | arg2 = (bool) SWIG_AsBool(obj1); | |
19797 | if (PyErr_Occurred()) SWIG_fail; | |
19798 | { | |
19799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19800 | (arg1)->SetDefaultInfo(arg2); | |
19801 | ||
19802 | wxPyEndAllowThreads(__tstate); | |
19803 | if (PyErr_Occurred()) SWIG_fail; | |
19804 | } | |
19805 | Py_INCREF(Py_None); resultobj = Py_None; | |
19806 | return resultobj; | |
19807 | fail: | |
19808 | return NULL; | |
19809 | } | |
19810 | ||
19811 | ||
19812 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19813 | PyObject *resultobj; | |
19814 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19815 | bool arg2 ; | |
19816 | PyObject * obj0 = 0 ; | |
19817 | PyObject * obj1 = 0 ; | |
19818 | char *kwnames[] = { | |
19819 | (char *) "self",(char *) "flag", NULL | |
19820 | }; | |
19821 | ||
19822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
19823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19825 | arg2 = (bool) SWIG_AsBool(obj1); | |
19826 | if (PyErr_Occurred()) SWIG_fail; | |
19827 | { | |
19828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19829 | (arg1)->SetDefaultMinMargins(arg2); | |
19830 | ||
19831 | wxPyEndAllowThreads(__tstate); | |
19832 | if (PyErr_Occurred()) SWIG_fail; | |
19833 | } | |
19834 | Py_INCREF(Py_None); resultobj = Py_None; | |
19835 | return resultobj; | |
19836 | fail: | |
19837 | return NULL; | |
19838 | } | |
19839 | ||
19840 | ||
19841 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19842 | PyObject *resultobj; | |
19843 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19844 | wxPoint *arg2 = 0 ; | |
19845 | wxPoint temp2 ; | |
19846 | PyObject * obj0 = 0 ; | |
19847 | PyObject * obj1 = 0 ; | |
19848 | char *kwnames[] = { | |
19849 | (char *) "self",(char *) "pt", NULL | |
19850 | }; | |
19851 | ||
19852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19855 | { | |
19856 | arg2 = &temp2; | |
19857 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19858 | } | |
19859 | { | |
19860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19861 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
19862 | ||
19863 | wxPyEndAllowThreads(__tstate); | |
19864 | if (PyErr_Occurred()) SWIG_fail; | |
19865 | } | |
19866 | Py_INCREF(Py_None); resultobj = Py_None; | |
19867 | return resultobj; | |
19868 | fail: | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
19873 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19874 | PyObject *resultobj; | |
19875 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19876 | wxPoint *arg2 = 0 ; | |
19877 | wxPoint temp2 ; | |
19878 | PyObject * obj0 = 0 ; | |
19879 | PyObject * obj1 = 0 ; | |
19880 | char *kwnames[] = { | |
19881 | (char *) "self",(char *) "pt", NULL | |
19882 | }; | |
19883 | ||
19884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19887 | { | |
19888 | arg2 = &temp2; | |
19889 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19890 | } | |
19891 | { | |
19892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19893 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
19894 | ||
19895 | wxPyEndAllowThreads(__tstate); | |
19896 | if (PyErr_Occurred()) SWIG_fail; | |
19897 | } | |
19898 | Py_INCREF(Py_None); resultobj = Py_None; | |
19899 | return resultobj; | |
19900 | fail: | |
19901 | return NULL; | |
19902 | } | |
19903 | ||
19904 | ||
19905 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19906 | PyObject *resultobj; | |
19907 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19908 | wxPoint *arg2 = 0 ; | |
19909 | wxPoint temp2 ; | |
19910 | PyObject * obj0 = 0 ; | |
19911 | PyObject * obj1 = 0 ; | |
19912 | char *kwnames[] = { | |
19913 | (char *) "self",(char *) "pt", NULL | |
19914 | }; | |
19915 | ||
19916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
19917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19919 | { | |
19920 | arg2 = &temp2; | |
19921 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19922 | } | |
19923 | { | |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
19926 | ||
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
19930 | Py_INCREF(Py_None); resultobj = Py_None; | |
19931 | return resultobj; | |
19932 | fail: | |
19933 | return NULL; | |
19934 | } | |
19935 | ||
19936 | ||
19937 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19938 | PyObject *resultobj; | |
19939 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19940 | wxPoint *arg2 = 0 ; | |
19941 | wxPoint temp2 ; | |
19942 | PyObject * obj0 = 0 ; | |
19943 | PyObject * obj1 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self",(char *) "pt", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
19949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19951 | { | |
19952 | arg2 = &temp2; | |
19953 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19954 | } | |
19955 | { | |
19956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19957 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
19958 | ||
19959 | wxPyEndAllowThreads(__tstate); | |
19960 | if (PyErr_Occurred()) SWIG_fail; | |
19961 | } | |
19962 | Py_INCREF(Py_None); resultobj = Py_None; | |
19963 | return resultobj; | |
19964 | fail: | |
19965 | return NULL; | |
19966 | } | |
19967 | ||
19968 | ||
19969 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19970 | PyObject *resultobj; | |
19971 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19972 | int arg2 ; | |
19973 | PyObject * obj0 = 0 ; | |
19974 | PyObject * obj1 = 0 ; | |
19975 | char *kwnames[] = { | |
19976 | (char *) "self",(char *) "id", NULL | |
19977 | }; | |
19978 | ||
19979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
19980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19982 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | { | |
19985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19986 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
19987 | ||
19988 | wxPyEndAllowThreads(__tstate); | |
19989 | if (PyErr_Occurred()) SWIG_fail; | |
19990 | } | |
19991 | Py_INCREF(Py_None); resultobj = Py_None; | |
19992 | return resultobj; | |
19993 | fail: | |
19994 | return NULL; | |
19995 | } | |
19996 | ||
19997 | ||
19998 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19999 | PyObject *resultobj; | |
20000 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20001 | wxSize *arg2 = 0 ; | |
20002 | wxSize temp2 ; | |
20003 | PyObject * obj0 = 0 ; | |
20004 | PyObject * obj1 = 0 ; | |
20005 | char *kwnames[] = { | |
20006 | (char *) "self",(char *) "size", NULL | |
20007 | }; | |
20008 | ||
20009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
20010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20012 | { | |
20013 | arg2 = &temp2; | |
20014 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20015 | } | |
20016 | { | |
20017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20018 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
20019 | ||
20020 | wxPyEndAllowThreads(__tstate); | |
20021 | if (PyErr_Occurred()) SWIG_fail; | |
20022 | } | |
20023 | Py_INCREF(Py_None); resultobj = Py_None; | |
20024 | return resultobj; | |
20025 | fail: | |
20026 | return NULL; | |
20027 | } | |
20028 | ||
20029 | ||
20030 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20031 | PyObject *resultobj; | |
20032 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20033 | wxPrintData *arg2 = 0 ; | |
20034 | PyObject * obj0 = 0 ; | |
20035 | PyObject * obj1 = 0 ; | |
20036 | char *kwnames[] = { | |
20037 | (char *) "self",(char *) "printData", NULL | |
20038 | }; | |
20039 | ||
20040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
20041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
20044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20045 | SWIG_fail; | |
20046 | if (arg2 == NULL) { | |
20047 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20048 | SWIG_fail; | |
20049 | } | |
20050 | { | |
20051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20052 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
20053 | ||
20054 | wxPyEndAllowThreads(__tstate); | |
20055 | if (PyErr_Occurred()) SWIG_fail; | |
20056 | } | |
20057 | Py_INCREF(Py_None); resultobj = Py_None; | |
20058 | return resultobj; | |
20059 | fail: | |
20060 | return NULL; | |
20061 | } | |
20062 | ||
20063 | ||
20064 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
20065 | PyObject *obj; | |
20066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20067 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
20068 | Py_INCREF(obj); | |
20069 | return Py_BuildValue((char *)""); | |
20070 | } | |
20071 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20072 | PyObject *resultobj; | |
20073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20074 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
20075 | wxPageSetupDialog *result; | |
20076 | PyObject * obj0 = 0 ; | |
20077 | PyObject * obj1 = 0 ; | |
20078 | char *kwnames[] = { | |
20079 | (char *) "parent",(char *) "data", NULL | |
20080 | }; | |
20081 | ||
20082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20085 | if (obj1) { | |
20086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
20087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20088 | } | |
20089 | { | |
20090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20091 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
20092 | ||
20093 | wxPyEndAllowThreads(__tstate); | |
20094 | if (PyErr_Occurred()) SWIG_fail; | |
20095 | } | |
20096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
20097 | return resultobj; | |
20098 | fail: | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
20103 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20104 | PyObject *resultobj; | |
20105 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20106 | wxPageSetupDialogData *result; | |
20107 | PyObject * obj0 = 0 ; | |
20108 | char *kwnames[] = { | |
20109 | (char *) "self", NULL | |
20110 | }; | |
20111 | ||
20112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
20113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20115 | { | |
20116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20117 | { | |
20118 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
20119 | result = (wxPageSetupDialogData *) &_result_ref; | |
20120 | } | |
20121 | ||
20122 | wxPyEndAllowThreads(__tstate); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | } | |
20125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
20126 | return resultobj; | |
20127 | fail: | |
20128 | return NULL; | |
20129 | } | |
20130 | ||
20131 | ||
20132 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20133 | PyObject *resultobj; | |
20134 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 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:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
20142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20144 | { | |
20145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20146 | result = (int)(arg1)->ShowModal(); | |
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 * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
20159 | PyObject *obj; | |
20160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20161 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
20162 | Py_INCREF(obj); | |
20163 | return Py_BuildValue((char *)""); | |
20164 | } | |
20165 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
20166 | PyObject *resultobj; | |
20167 | wxPrintDialogData *result; | |
20168 | ||
20169 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
20170 | { | |
20171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20172 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
20173 | ||
20174 | wxPyEndAllowThreads(__tstate); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | } | |
20177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20178 | return resultobj; | |
20179 | fail: | |
20180 | return NULL; | |
20181 | } | |
20182 | ||
20183 | ||
20184 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
20185 | PyObject *resultobj; | |
20186 | wxPrintData *arg1 = 0 ; | |
20187 | wxPrintDialogData *result; | |
20188 | PyObject * obj0 = 0 ; | |
20189 | ||
20190 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
20191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
20192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20193 | SWIG_fail; | |
20194 | if (arg1 == NULL) { | |
20195 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20196 | SWIG_fail; | |
20197 | } | |
20198 | { | |
20199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20200 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
20201 | ||
20202 | wxPyEndAllowThreads(__tstate); | |
20203 | if (PyErr_Occurred()) SWIG_fail; | |
20204 | } | |
20205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20206 | return resultobj; | |
20207 | fail: | |
20208 | return NULL; | |
20209 | } | |
20210 | ||
20211 | ||
20212 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
20213 | int argc; | |
20214 | PyObject *argv[2]; | |
20215 | int ii; | |
20216 | ||
20217 | argc = PyObject_Length(args); | |
20218 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
20219 | argv[ii] = PyTuple_GetItem(args,ii); | |
20220 | } | |
20221 | if (argc == 0) { | |
20222 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
20223 | } | |
20224 | if (argc == 1) { | |
20225 | int _v; | |
20226 | { | |
20227 | void *ptr; | |
20228 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
20229 | _v = 0; | |
20230 | PyErr_Clear(); | |
20231 | } else { | |
20232 | _v = 1; | |
20233 | } | |
20234 | } | |
20235 | if (_v) { | |
20236 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
20237 | } | |
20238 | } | |
20239 | ||
20240 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
20245 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20246 | PyObject *resultobj; | |
20247 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20248 | PyObject * obj0 = 0 ; | |
20249 | char *kwnames[] = { | |
20250 | (char *) "self", NULL | |
20251 | }; | |
20252 | ||
20253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
20254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20256 | { | |
20257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20258 | delete arg1; | |
20259 | ||
20260 | wxPyEndAllowThreads(__tstate); | |
20261 | if (PyErr_Occurred()) SWIG_fail; | |
20262 | } | |
20263 | Py_INCREF(Py_None); resultobj = Py_None; | |
20264 | return resultobj; | |
20265 | fail: | |
20266 | return NULL; | |
20267 | } | |
20268 | ||
20269 | ||
20270 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20271 | PyObject *resultobj; | |
20272 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20273 | int result; | |
20274 | PyObject * obj0 = 0 ; | |
20275 | char *kwnames[] = { | |
20276 | (char *) "self", NULL | |
20277 | }; | |
20278 | ||
20279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
20280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20282 | { | |
20283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20284 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
20285 | ||
20286 | wxPyEndAllowThreads(__tstate); | |
20287 | if (PyErr_Occurred()) SWIG_fail; | |
20288 | } | |
20289 | resultobj = SWIG_FromInt((int)result); | |
20290 | return resultobj; | |
20291 | fail: | |
20292 | return NULL; | |
20293 | } | |
20294 | ||
20295 | ||
20296 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20297 | PyObject *resultobj; | |
20298 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20299 | int result; | |
20300 | PyObject * obj0 = 0 ; | |
20301 | char *kwnames[] = { | |
20302 | (char *) "self", NULL | |
20303 | }; | |
20304 | ||
20305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
20306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20308 | { | |
20309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20310 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
20311 | ||
20312 | wxPyEndAllowThreads(__tstate); | |
20313 | if (PyErr_Occurred()) SWIG_fail; | |
20314 | } | |
20315 | resultobj = SWIG_FromInt((int)result); | |
20316 | return resultobj; | |
20317 | fail: | |
20318 | return NULL; | |
20319 | } | |
20320 | ||
20321 | ||
20322 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20323 | PyObject *resultobj; | |
20324 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20325 | int result; | |
20326 | PyObject * obj0 = 0 ; | |
20327 | char *kwnames[] = { | |
20328 | (char *) "self", NULL | |
20329 | }; | |
20330 | ||
20331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
20332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20334 | { | |
20335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20336 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
20337 | ||
20338 | wxPyEndAllowThreads(__tstate); | |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
20340 | } | |
20341 | resultobj = SWIG_FromInt((int)result); | |
20342 | return resultobj; | |
20343 | fail: | |
20344 | return NULL; | |
20345 | } | |
20346 | ||
20347 | ||
20348 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20349 | PyObject *resultobj; | |
20350 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20351 | int result; | |
20352 | PyObject * obj0 = 0 ; | |
20353 | char *kwnames[] = { | |
20354 | (char *) "self", NULL | |
20355 | }; | |
20356 | ||
20357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",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 = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
20363 | ||
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
20367 | resultobj = SWIG_FromInt((int)result); | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
20374 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20375 | PyObject *resultobj; | |
20376 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20377 | int result; | |
20378 | PyObject * obj0 = 0 ; | |
20379 | char *kwnames[] = { | |
20380 | (char *) "self", NULL | |
20381 | }; | |
20382 | ||
20383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20386 | { | |
20387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20388 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20389 | ||
20390 | wxPyEndAllowThreads(__tstate); | |
20391 | if (PyErr_Occurred()) SWIG_fail; | |
20392 | } | |
20393 | resultobj = SWIG_FromInt((int)result); | |
20394 | return resultobj; | |
20395 | fail: | |
20396 | return NULL; | |
20397 | } | |
20398 | ||
20399 | ||
20400 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20401 | PyObject *resultobj; | |
20402 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20403 | bool result; | |
20404 | PyObject * obj0 = 0 ; | |
20405 | char *kwnames[] = { | |
20406 | (char *) "self", NULL | |
20407 | }; | |
20408 | ||
20409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20412 | { | |
20413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20414 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20415 | ||
20416 | wxPyEndAllowThreads(__tstate); | |
20417 | if (PyErr_Occurred()) SWIG_fail; | |
20418 | } | |
20419 | { | |
20420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20421 | } | |
20422 | return resultobj; | |
20423 | fail: | |
20424 | return NULL; | |
20425 | } | |
20426 | ||
20427 | ||
20428 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20429 | PyObject *resultobj; | |
20430 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20431 | bool result; | |
20432 | PyObject * obj0 = 0 ; | |
20433 | char *kwnames[] = { | |
20434 | (char *) "self", NULL | |
20435 | }; | |
20436 | ||
20437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20440 | { | |
20441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20442 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20443 | ||
20444 | wxPyEndAllowThreads(__tstate); | |
20445 | if (PyErr_Occurred()) SWIG_fail; | |
20446 | } | |
20447 | { | |
20448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20449 | } | |
20450 | return resultobj; | |
20451 | fail: | |
20452 | return NULL; | |
20453 | } | |
20454 | ||
20455 | ||
20456 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20457 | PyObject *resultobj; | |
20458 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20459 | bool result; | |
20460 | PyObject * obj0 = 0 ; | |
20461 | char *kwnames[] = { | |
20462 | (char *) "self", NULL | |
20463 | }; | |
20464 | ||
20465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
20466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20468 | { | |
20469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20470 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
20471 | ||
20472 | wxPyEndAllowThreads(__tstate); | |
20473 | if (PyErr_Occurred()) SWIG_fail; | |
20474 | } | |
20475 | { | |
20476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20477 | } | |
20478 | return resultobj; | |
20479 | fail: | |
20480 | return NULL; | |
20481 | } | |
20482 | ||
20483 | ||
20484 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20485 | PyObject *resultobj; | |
20486 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20487 | bool result; | |
20488 | PyObject * obj0 = 0 ; | |
20489 | char *kwnames[] = { | |
20490 | (char *) "self", NULL | |
20491 | }; | |
20492 | ||
20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
20494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20496 | { | |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
20499 | ||
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
20503 | { | |
20504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20505 | } | |
20506 | return resultobj; | |
20507 | fail: | |
20508 | return NULL; | |
20509 | } | |
20510 | ||
20511 | ||
20512 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20513 | PyObject *resultobj; | |
20514 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20515 | bool result; | |
20516 | PyObject * obj0 = 0 ; | |
20517 | char *kwnames[] = { | |
20518 | (char *) "self", NULL | |
20519 | }; | |
20520 | ||
20521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
20522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20524 | { | |
20525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20526 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
20527 | ||
20528 | wxPyEndAllowThreads(__tstate); | |
20529 | if (PyErr_Occurred()) SWIG_fail; | |
20530 | } | |
20531 | { | |
20532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20533 | } | |
20534 | return resultobj; | |
20535 | fail: | |
20536 | return NULL; | |
20537 | } | |
20538 | ||
20539 | ||
20540 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20541 | PyObject *resultobj; | |
20542 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20543 | int arg2 ; | |
20544 | PyObject * obj0 = 0 ; | |
20545 | PyObject * obj1 = 0 ; | |
20546 | char *kwnames[] = { | |
20547 | (char *) "self",(char *) "v", NULL | |
20548 | }; | |
20549 | ||
20550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
20551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20553 | arg2 = (int) SWIG_AsInt(obj1); | |
20554 | if (PyErr_Occurred()) SWIG_fail; | |
20555 | { | |
20556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20557 | (arg1)->SetFromPage(arg2); | |
20558 | ||
20559 | wxPyEndAllowThreads(__tstate); | |
20560 | if (PyErr_Occurred()) SWIG_fail; | |
20561 | } | |
20562 | Py_INCREF(Py_None); resultobj = Py_None; | |
20563 | return resultobj; | |
20564 | fail: | |
20565 | return NULL; | |
20566 | } | |
20567 | ||
20568 | ||
20569 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20570 | PyObject *resultobj; | |
20571 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20572 | int arg2 ; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | PyObject * obj1 = 0 ; | |
20575 | char *kwnames[] = { | |
20576 | (char *) "self",(char *) "v", NULL | |
20577 | }; | |
20578 | ||
20579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
20580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20582 | arg2 = (int) SWIG_AsInt(obj1); | |
20583 | if (PyErr_Occurred()) SWIG_fail; | |
20584 | { | |
20585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20586 | (arg1)->SetToPage(arg2); | |
20587 | ||
20588 | wxPyEndAllowThreads(__tstate); | |
20589 | if (PyErr_Occurred()) SWIG_fail; | |
20590 | } | |
20591 | Py_INCREF(Py_None); resultobj = Py_None; | |
20592 | return resultobj; | |
20593 | fail: | |
20594 | return NULL; | |
20595 | } | |
20596 | ||
20597 | ||
20598 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20599 | PyObject *resultobj; | |
20600 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20601 | int arg2 ; | |
20602 | PyObject * obj0 = 0 ; | |
20603 | PyObject * obj1 = 0 ; | |
20604 | char *kwnames[] = { | |
20605 | (char *) "self",(char *) "v", NULL | |
20606 | }; | |
20607 | ||
20608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
20609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20611 | arg2 = (int) SWIG_AsInt(obj1); | |
20612 | if (PyErr_Occurred()) SWIG_fail; | |
20613 | { | |
20614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20615 | (arg1)->SetMinPage(arg2); | |
20616 | ||
20617 | wxPyEndAllowThreads(__tstate); | |
20618 | if (PyErr_Occurred()) SWIG_fail; | |
20619 | } | |
20620 | Py_INCREF(Py_None); resultobj = Py_None; | |
20621 | return resultobj; | |
20622 | fail: | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
20627 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20628 | PyObject *resultobj; | |
20629 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20630 | int arg2 ; | |
20631 | PyObject * obj0 = 0 ; | |
20632 | PyObject * obj1 = 0 ; | |
20633 | char *kwnames[] = { | |
20634 | (char *) "self",(char *) "v", NULL | |
20635 | }; | |
20636 | ||
20637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
20638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20640 | arg2 = (int) SWIG_AsInt(obj1); | |
20641 | if (PyErr_Occurred()) SWIG_fail; | |
20642 | { | |
20643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20644 | (arg1)->SetMaxPage(arg2); | |
20645 | ||
20646 | wxPyEndAllowThreads(__tstate); | |
20647 | if (PyErr_Occurred()) SWIG_fail; | |
20648 | } | |
20649 | Py_INCREF(Py_None); resultobj = Py_None; | |
20650 | return resultobj; | |
20651 | fail: | |
20652 | return NULL; | |
20653 | } | |
20654 | ||
20655 | ||
20656 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20657 | PyObject *resultobj; | |
20658 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20659 | int arg2 ; | |
20660 | PyObject * obj0 = 0 ; | |
20661 | PyObject * obj1 = 0 ; | |
20662 | char *kwnames[] = { | |
20663 | (char *) "self",(char *) "v", NULL | |
20664 | }; | |
20665 | ||
20666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
20667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20669 | arg2 = (int) SWIG_AsInt(obj1); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | { | |
20672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20673 | (arg1)->SetNoCopies(arg2); | |
20674 | ||
20675 | wxPyEndAllowThreads(__tstate); | |
20676 | if (PyErr_Occurred()) SWIG_fail; | |
20677 | } | |
20678 | Py_INCREF(Py_None); resultobj = Py_None; | |
20679 | return resultobj; | |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
20685 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20686 | PyObject *resultobj; | |
20687 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20688 | bool arg2 ; | |
20689 | PyObject * obj0 = 0 ; | |
20690 | PyObject * obj1 = 0 ; | |
20691 | char *kwnames[] = { | |
20692 | (char *) "self",(char *) "flag", NULL | |
20693 | }; | |
20694 | ||
20695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
20696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20698 | arg2 = (bool) SWIG_AsBool(obj1); | |
20699 | if (PyErr_Occurred()) SWIG_fail; | |
20700 | { | |
20701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20702 | (arg1)->SetAllPages(arg2); | |
20703 | ||
20704 | wxPyEndAllowThreads(__tstate); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
20707 | Py_INCREF(Py_None); resultobj = Py_None; | |
20708 | return resultobj; | |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
20714 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20715 | PyObject *resultobj; | |
20716 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20717 | bool arg2 ; | |
20718 | PyObject * obj0 = 0 ; | |
20719 | PyObject * obj1 = 0 ; | |
20720 | char *kwnames[] = { | |
20721 | (char *) "self",(char *) "flag", NULL | |
20722 | }; | |
20723 | ||
20724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
20725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20727 | arg2 = (bool) SWIG_AsBool(obj1); | |
20728 | if (PyErr_Occurred()) SWIG_fail; | |
20729 | { | |
20730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20731 | (arg1)->SetSelection(arg2); | |
20732 | ||
20733 | wxPyEndAllowThreads(__tstate); | |
20734 | if (PyErr_Occurred()) SWIG_fail; | |
20735 | } | |
20736 | Py_INCREF(Py_None); resultobj = Py_None; | |
20737 | return resultobj; | |
20738 | fail: | |
20739 | return NULL; | |
20740 | } | |
20741 | ||
20742 | ||
20743 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20744 | PyObject *resultobj; | |
20745 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20746 | bool arg2 ; | |
20747 | PyObject * obj0 = 0 ; | |
20748 | PyObject * obj1 = 0 ; | |
20749 | char *kwnames[] = { | |
20750 | (char *) "self",(char *) "flag", NULL | |
20751 | }; | |
20752 | ||
20753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
20754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20756 | arg2 = (bool) SWIG_AsBool(obj1); | |
20757 | if (PyErr_Occurred()) SWIG_fail; | |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | (arg1)->SetCollate(arg2); | |
20761 | ||
20762 | wxPyEndAllowThreads(__tstate); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | } | |
20765 | Py_INCREF(Py_None); resultobj = Py_None; | |
20766 | return resultobj; | |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
20772 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20773 | PyObject *resultobj; | |
20774 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20775 | bool arg2 ; | |
20776 | PyObject * obj0 = 0 ; | |
20777 | PyObject * obj1 = 0 ; | |
20778 | char *kwnames[] = { | |
20779 | (char *) "self",(char *) "flag", NULL | |
20780 | }; | |
20781 | ||
20782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20785 | arg2 = (bool) SWIG_AsBool(obj1); | |
20786 | if (PyErr_Occurred()) SWIG_fail; | |
20787 | { | |
20788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20789 | (arg1)->SetPrintToFile(arg2); | |
20790 | ||
20791 | wxPyEndAllowThreads(__tstate); | |
20792 | if (PyErr_Occurred()) SWIG_fail; | |
20793 | } | |
20794 | Py_INCREF(Py_None); resultobj = Py_None; | |
20795 | return resultobj; | |
20796 | fail: | |
20797 | return NULL; | |
20798 | } | |
20799 | ||
20800 | ||
20801 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20802 | PyObject *resultobj; | |
20803 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20804 | bool arg2 ; | |
20805 | PyObject * obj0 = 0 ; | |
20806 | PyObject * obj1 = 0 ; | |
20807 | char *kwnames[] = { | |
20808 | (char *) "self",(char *) "flag", NULL | |
20809 | }; | |
20810 | ||
20811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20814 | arg2 = (bool) SWIG_AsBool(obj1); | |
20815 | if (PyErr_Occurred()) SWIG_fail; | |
20816 | { | |
20817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20818 | (arg1)->SetSetupDialog(arg2); | |
20819 | ||
20820 | wxPyEndAllowThreads(__tstate); | |
20821 | if (PyErr_Occurred()) SWIG_fail; | |
20822 | } | |
20823 | Py_INCREF(Py_None); resultobj = Py_None; | |
20824 | return resultobj; | |
20825 | fail: | |
20826 | return NULL; | |
20827 | } | |
20828 | ||
20829 | ||
20830 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20831 | PyObject *resultobj; | |
20832 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20833 | bool arg2 ; | |
20834 | PyObject * obj0 = 0 ; | |
20835 | PyObject * obj1 = 0 ; | |
20836 | char *kwnames[] = { | |
20837 | (char *) "self",(char *) "flag", NULL | |
20838 | }; | |
20839 | ||
20840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
20841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20843 | arg2 = (bool) SWIG_AsBool(obj1); | |
20844 | if (PyErr_Occurred()) SWIG_fail; | |
20845 | { | |
20846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20847 | (arg1)->EnablePrintToFile(arg2); | |
20848 | ||
20849 | wxPyEndAllowThreads(__tstate); | |
20850 | if (PyErr_Occurred()) SWIG_fail; | |
20851 | } | |
20852 | Py_INCREF(Py_None); resultobj = Py_None; | |
20853 | return resultobj; | |
20854 | fail: | |
20855 | return NULL; | |
20856 | } | |
20857 | ||
20858 | ||
20859 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20860 | PyObject *resultobj; | |
20861 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20862 | bool arg2 ; | |
20863 | PyObject * obj0 = 0 ; | |
20864 | PyObject * obj1 = 0 ; | |
20865 | char *kwnames[] = { | |
20866 | (char *) "self",(char *) "flag", NULL | |
20867 | }; | |
20868 | ||
20869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
20870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20872 | arg2 = (bool) SWIG_AsBool(obj1); | |
20873 | if (PyErr_Occurred()) SWIG_fail; | |
20874 | { | |
20875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20876 | (arg1)->EnableSelection(arg2); | |
20877 | ||
20878 | wxPyEndAllowThreads(__tstate); | |
20879 | if (PyErr_Occurred()) SWIG_fail; | |
20880 | } | |
20881 | Py_INCREF(Py_None); resultobj = Py_None; | |
20882 | return resultobj; | |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
20888 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj; | |
20890 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20891 | bool arg2 ; | |
20892 | PyObject * obj0 = 0 ; | |
20893 | PyObject * obj1 = 0 ; | |
20894 | char *kwnames[] = { | |
20895 | (char *) "self",(char *) "flag", NULL | |
20896 | }; | |
20897 | ||
20898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
20899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20901 | arg2 = (bool) SWIG_AsBool(obj1); | |
20902 | if (PyErr_Occurred()) SWIG_fail; | |
20903 | { | |
20904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20905 | (arg1)->EnablePageNumbers(arg2); | |
20906 | ||
20907 | wxPyEndAllowThreads(__tstate); | |
20908 | if (PyErr_Occurred()) SWIG_fail; | |
20909 | } | |
20910 | Py_INCREF(Py_None); resultobj = Py_None; | |
20911 | return resultobj; | |
20912 | fail: | |
20913 | return NULL; | |
20914 | } | |
20915 | ||
20916 | ||
20917 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20918 | PyObject *resultobj; | |
20919 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20920 | bool arg2 ; | |
20921 | PyObject * obj0 = 0 ; | |
20922 | PyObject * obj1 = 0 ; | |
20923 | char *kwnames[] = { | |
20924 | (char *) "self",(char *) "flag", NULL | |
20925 | }; | |
20926 | ||
20927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
20928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20930 | arg2 = (bool) SWIG_AsBool(obj1); | |
20931 | if (PyErr_Occurred()) SWIG_fail; | |
20932 | { | |
20933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20934 | (arg1)->EnableHelp(arg2); | |
20935 | ||
20936 | wxPyEndAllowThreads(__tstate); | |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
20938 | } | |
20939 | Py_INCREF(Py_None); resultobj = Py_None; | |
20940 | return resultobj; | |
20941 | fail: | |
20942 | return NULL; | |
20943 | } | |
20944 | ||
20945 | ||
20946 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20947 | PyObject *resultobj; | |
20948 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20949 | bool result; | |
20950 | PyObject * obj0 = 0 ; | |
20951 | char *kwnames[] = { | |
20952 | (char *) "self", NULL | |
20953 | }; | |
20954 | ||
20955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
20956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
20961 | ||
20962 | wxPyEndAllowThreads(__tstate); | |
20963 | if (PyErr_Occurred()) SWIG_fail; | |
20964 | } | |
20965 | { | |
20966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20967 | } | |
20968 | return resultobj; | |
20969 | fail: | |
20970 | return NULL; | |
20971 | } | |
20972 | ||
20973 | ||
20974 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20975 | PyObject *resultobj; | |
20976 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20977 | bool result; | |
20978 | PyObject * obj0 = 0 ; | |
20979 | char *kwnames[] = { | |
20980 | (char *) "self", NULL | |
20981 | }; | |
20982 | ||
20983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
20984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
20989 | ||
20990 | wxPyEndAllowThreads(__tstate); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
20993 | { | |
20994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20995 | } | |
20996 | return resultobj; | |
20997 | fail: | |
20998 | return NULL; | |
20999 | } | |
21000 | ||
21001 | ||
21002 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21003 | PyObject *resultobj; | |
21004 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21005 | bool result; | |
21006 | PyObject * obj0 = 0 ; | |
21007 | char *kwnames[] = { | |
21008 | (char *) "self", NULL | |
21009 | }; | |
21010 | ||
21011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
21012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21014 | { | |
21015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21016 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
21017 | ||
21018 | wxPyEndAllowThreads(__tstate); | |
21019 | if (PyErr_Occurred()) SWIG_fail; | |
21020 | } | |
21021 | { | |
21022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21023 | } | |
21024 | return resultobj; | |
21025 | fail: | |
21026 | return NULL; | |
21027 | } | |
21028 | ||
21029 | ||
21030 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21031 | PyObject *resultobj; | |
21032 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21033 | bool result; | |
21034 | PyObject * obj0 = 0 ; | |
21035 | char *kwnames[] = { | |
21036 | (char *) "self", NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
21040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21042 | { | |
21043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21044 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
21045 | ||
21046 | wxPyEndAllowThreads(__tstate); | |
21047 | if (PyErr_Occurred()) SWIG_fail; | |
21048 | } | |
21049 | { | |
21050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21051 | } | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | return NULL; | |
21055 | } | |
21056 | ||
21057 | ||
21058 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21059 | PyObject *resultobj; | |
21060 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21061 | bool result; | |
21062 | PyObject * obj0 = 0 ; | |
21063 | char *kwnames[] = { | |
21064 | (char *) "self", NULL | |
21065 | }; | |
21066 | ||
21067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
21068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21070 | { | |
21071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21072 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
21073 | ||
21074 | wxPyEndAllowThreads(__tstate); | |
21075 | if (PyErr_Occurred()) SWIG_fail; | |
21076 | } | |
21077 | { | |
21078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21079 | } | |
21080 | return resultobj; | |
21081 | fail: | |
21082 | return NULL; | |
21083 | } | |
21084 | ||
21085 | ||
21086 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21087 | PyObject *resultobj; | |
21088 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21089 | wxPrintData *result; | |
21090 | PyObject * obj0 = 0 ; | |
21091 | char *kwnames[] = { | |
21092 | (char *) "self", NULL | |
21093 | }; | |
21094 | ||
21095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
21096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21098 | { | |
21099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21100 | { | |
21101 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
21102 | result = (wxPrintData *) &_result_ref; | |
21103 | } | |
21104 | ||
21105 | wxPyEndAllowThreads(__tstate); | |
21106 | if (PyErr_Occurred()) SWIG_fail; | |
21107 | } | |
21108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
21109 | return resultobj; | |
21110 | fail: | |
21111 | return NULL; | |
21112 | } | |
21113 | ||
21114 | ||
21115 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21116 | PyObject *resultobj; | |
21117 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21118 | wxPrintData *arg2 = 0 ; | |
21119 | PyObject * obj0 = 0 ; | |
21120 | PyObject * obj1 = 0 ; | |
21121 | char *kwnames[] = { | |
21122 | (char *) "self",(char *) "printData", NULL | |
21123 | }; | |
21124 | ||
21125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
21126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21128 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
21129 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21130 | SWIG_fail; | |
21131 | if (arg2 == NULL) { | |
21132 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21133 | SWIG_fail; | |
21134 | } | |
21135 | { | |
21136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21137 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21138 | ||
21139 | wxPyEndAllowThreads(__tstate); | |
21140 | if (PyErr_Occurred()) SWIG_fail; | |
21141 | } | |
21142 | Py_INCREF(Py_None); resultobj = Py_None; | |
21143 | return resultobj; | |
21144 | fail: | |
21145 | return NULL; | |
21146 | } | |
21147 | ||
21148 | ||
21149 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
21150 | PyObject *obj; | |
21151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21152 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
21153 | Py_INCREF(obj); | |
21154 | return Py_BuildValue((char *)""); | |
21155 | } | |
21156 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21157 | PyObject *resultobj; | |
21158 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21159 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
21160 | wxPrintDialog *result; | |
21161 | PyObject * obj0 = 0 ; | |
21162 | PyObject * obj1 = 0 ; | |
21163 | char *kwnames[] = { | |
21164 | (char *) "parent",(char *) "data", NULL | |
21165 | }; | |
21166 | ||
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21170 | if (obj1) { | |
21171 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
21172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21173 | } | |
21174 | { | |
21175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21176 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
21177 | ||
21178 | wxPyEndAllowThreads(__tstate); | |
21179 | if (PyErr_Occurred()) SWIG_fail; | |
21180 | } | |
21181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
21182 | return resultobj; | |
21183 | fail: | |
21184 | return NULL; | |
21185 | } | |
21186 | ||
21187 | ||
21188 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21189 | PyObject *resultobj; | |
21190 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21191 | wxPrintDialogData *result; | |
21192 | PyObject * obj0 = 0 ; | |
21193 | char *kwnames[] = { | |
21194 | (char *) "self", NULL | |
21195 | }; | |
21196 | ||
21197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21200 | { | |
21201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21202 | { | |
21203 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21204 | result = (wxPrintDialogData *) &_result_ref; | |
21205 | } | |
21206 | ||
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21211 | return resultobj; | |
21212 | fail: | |
21213 | return NULL; | |
21214 | } | |
21215 | ||
21216 | ||
21217 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21218 | PyObject *resultobj; | |
21219 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21220 | wxDC *result; | |
21221 | PyObject * obj0 = 0 ; | |
21222 | char *kwnames[] = { | |
21223 | (char *) "self", NULL | |
21224 | }; | |
21225 | ||
21226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
21227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21229 | { | |
21230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21231 | result = (wxDC *)(arg1)->GetPrintDC(); | |
21232 | ||
21233 | wxPyEndAllowThreads(__tstate); | |
21234 | if (PyErr_Occurred()) SWIG_fail; | |
21235 | } | |
21236 | { | |
21237 | resultobj = wxPyMake_wxObject(result); | |
21238 | } | |
21239 | return resultobj; | |
21240 | fail: | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
21245 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21246 | PyObject *resultobj; | |
21247 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21248 | int result; | |
21249 | PyObject * obj0 = 0 ; | |
21250 | char *kwnames[] = { | |
21251 | (char *) "self", NULL | |
21252 | }; | |
21253 | ||
21254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
21255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21257 | { | |
21258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21259 | result = (int)(arg1)->ShowModal(); | |
21260 | ||
21261 | wxPyEndAllowThreads(__tstate); | |
21262 | if (PyErr_Occurred()) SWIG_fail; | |
21263 | } | |
21264 | resultobj = SWIG_FromInt((int)result); | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
21272 | PyObject *obj; | |
21273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21274 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
21275 | Py_INCREF(obj); | |
21276 | return Py_BuildValue((char *)""); | |
21277 | } | |
21278 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21279 | PyObject *resultobj; | |
21280 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
21281 | wxPrinter *result; | |
21282 | PyObject * obj0 = 0 ; | |
21283 | char *kwnames[] = { | |
21284 | (char *) "data", NULL | |
21285 | }; | |
21286 | ||
21287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
21288 | if (obj0) { | |
21289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21291 | } | |
21292 | { | |
21293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21294 | result = (wxPrinter *)new wxPrinter(arg1); | |
21295 | ||
21296 | wxPyEndAllowThreads(__tstate); | |
21297 | if (PyErr_Occurred()) SWIG_fail; | |
21298 | } | |
21299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
21300 | return resultobj; | |
21301 | fail: | |
21302 | return NULL; | |
21303 | } | |
21304 | ||
21305 | ||
21306 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21307 | PyObject *resultobj; | |
21308 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21309 | PyObject * obj0 = 0 ; | |
21310 | char *kwnames[] = { | |
21311 | (char *) "self", NULL | |
21312 | }; | |
21313 | ||
21314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
21315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21317 | { | |
21318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21319 | delete arg1; | |
21320 | ||
21321 | wxPyEndAllowThreads(__tstate); | |
21322 | if (PyErr_Occurred()) SWIG_fail; | |
21323 | } | |
21324 | Py_INCREF(Py_None); resultobj = Py_None; | |
21325 | return resultobj; | |
21326 | fail: | |
21327 | return NULL; | |
21328 | } | |
21329 | ||
21330 | ||
21331 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21332 | PyObject *resultobj; | |
21333 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21334 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21335 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21336 | PyObject * obj0 = 0 ; | |
21337 | PyObject * obj1 = 0 ; | |
21338 | PyObject * obj2 = 0 ; | |
21339 | char *kwnames[] = { | |
21340 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
21341 | }; | |
21342 | ||
21343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21348 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21350 | { | |
21351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21352 | (arg1)->CreateAbortWindow(arg2,arg3); | |
21353 | ||
21354 | wxPyEndAllowThreads(__tstate); | |
21355 | if (PyErr_Occurred()) SWIG_fail; | |
21356 | } | |
21357 | Py_INCREF(Py_None); resultobj = Py_None; | |
21358 | return resultobj; | |
21359 | fail: | |
21360 | return NULL; | |
21361 | } | |
21362 | ||
21363 | ||
21364 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21365 | PyObject *resultobj; | |
21366 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21367 | wxPrintDialogData *result; | |
21368 | PyObject * obj0 = 0 ; | |
21369 | char *kwnames[] = { | |
21370 | (char *) "self", NULL | |
21371 | }; | |
21372 | ||
21373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21376 | { | |
21377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21378 | { | |
21379 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21380 | result = (wxPrintDialogData *) &_result_ref; | |
21381 | } | |
21382 | ||
21383 | wxPyEndAllowThreads(__tstate); | |
21384 | if (PyErr_Occurred()) SWIG_fail; | |
21385 | } | |
21386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21387 | return resultobj; | |
21388 | fail: | |
21389 | return NULL; | |
21390 | } | |
21391 | ||
21392 | ||
21393 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21394 | PyObject *resultobj; | |
21395 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21396 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21397 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21398 | int arg4 = (int) True ; | |
21399 | bool result; | |
21400 | PyObject * obj0 = 0 ; | |
21401 | PyObject * obj1 = 0 ; | |
21402 | PyObject * obj2 = 0 ; | |
21403 | PyObject * obj3 = 0 ; | |
21404 | char *kwnames[] = { | |
21405 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21406 | }; | |
21407 | ||
21408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21413 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21415 | if (obj3) { | |
21416 | arg4 = (int) SWIG_AsInt(obj3); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
21419 | { | |
21420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21421 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21422 | ||
21423 | wxPyEndAllowThreads(__tstate); | |
21424 | if (PyErr_Occurred()) SWIG_fail; | |
21425 | } | |
21426 | { | |
21427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21428 | } | |
21429 | return resultobj; | |
21430 | fail: | |
21431 | return NULL; | |
21432 | } | |
21433 | ||
21434 | ||
21435 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21436 | PyObject *resultobj; | |
21437 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21438 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21439 | wxDC *result; | |
21440 | PyObject * obj0 = 0 ; | |
21441 | PyObject * obj1 = 0 ; | |
21442 | char *kwnames[] = { | |
21443 | (char *) "self",(char *) "parent", NULL | |
21444 | }; | |
21445 | ||
21446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21451 | { | |
21452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21453 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21454 | ||
21455 | wxPyEndAllowThreads(__tstate); | |
21456 | if (PyErr_Occurred()) SWIG_fail; | |
21457 | } | |
21458 | { | |
21459 | resultobj = wxPyMake_wxObject(result); | |
21460 | } | |
21461 | return resultobj; | |
21462 | fail: | |
21463 | return NULL; | |
21464 | } | |
21465 | ||
21466 | ||
21467 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21468 | PyObject *resultobj; | |
21469 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21470 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21471 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21472 | wxString *arg4 = 0 ; | |
21473 | bool temp4 = False ; | |
21474 | PyObject * obj0 = 0 ; | |
21475 | PyObject * obj1 = 0 ; | |
21476 | PyObject * obj2 = 0 ; | |
21477 | PyObject * obj3 = 0 ; | |
21478 | char *kwnames[] = { | |
21479 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
21480 | }; | |
21481 | ||
21482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21487 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21489 | { | |
21490 | arg4 = wxString_in_helper(obj3); | |
21491 | if (arg4 == NULL) SWIG_fail; | |
21492 | temp4 = True; | |
21493 | } | |
21494 | { | |
21495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21496 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
21497 | ||
21498 | wxPyEndAllowThreads(__tstate); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
21501 | Py_INCREF(Py_None); resultobj = Py_None; | |
21502 | { | |
21503 | if (temp4) | |
21504 | delete arg4; | |
21505 | } | |
21506 | return resultobj; | |
21507 | fail: | |
21508 | { | |
21509 | if (temp4) | |
21510 | delete arg4; | |
21511 | } | |
21512 | return NULL; | |
21513 | } | |
21514 | ||
21515 | ||
21516 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21517 | PyObject *resultobj; | |
21518 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21519 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21520 | bool result; | |
21521 | PyObject * obj0 = 0 ; | |
21522 | PyObject * obj1 = 0 ; | |
21523 | char *kwnames[] = { | |
21524 | (char *) "self",(char *) "parent", NULL | |
21525 | }; | |
21526 | ||
21527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
21528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21532 | { | |
21533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21534 | result = (bool)(arg1)->Setup(arg2); | |
21535 | ||
21536 | wxPyEndAllowThreads(__tstate); | |
21537 | if (PyErr_Occurred()) SWIG_fail; | |
21538 | } | |
21539 | { | |
21540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21541 | } | |
21542 | return resultobj; | |
21543 | fail: | |
21544 | return NULL; | |
21545 | } | |
21546 | ||
21547 | ||
21548 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21549 | PyObject *resultobj; | |
21550 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21551 | bool result; | |
21552 | PyObject * obj0 = 0 ; | |
21553 | char *kwnames[] = { | |
21554 | (char *) "self", NULL | |
21555 | }; | |
21556 | ||
21557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
21558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21560 | { | |
21561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21562 | result = (bool)(arg1)->GetAbort(); | |
21563 | ||
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | { | |
21568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21569 | } | |
21570 | return resultobj; | |
21571 | fail: | |
21572 | return NULL; | |
21573 | } | |
21574 | ||
21575 | ||
21576 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21577 | PyObject *resultobj; | |
21578 | int result; | |
21579 | char *kwnames[] = { | |
21580 | NULL | |
21581 | }; | |
21582 | ||
21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
21584 | { | |
21585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21586 | result = (int)wxPrinter::GetLastError(); | |
21587 | ||
21588 | wxPyEndAllowThreads(__tstate); | |
21589 | if (PyErr_Occurred()) SWIG_fail; | |
21590 | } | |
21591 | resultobj = SWIG_FromInt((int)result); | |
21592 | return resultobj; | |
21593 | fail: | |
21594 | return NULL; | |
21595 | } | |
21596 | ||
21597 | ||
21598 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
21599 | PyObject *obj; | |
21600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21601 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
21602 | Py_INCREF(obj); | |
21603 | return Py_BuildValue((char *)""); | |
21604 | } | |
21605 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21606 | PyObject *resultobj; | |
21607 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
21608 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
21609 | wxPyPrintout *result; | |
21610 | bool temp1 = False ; | |
21611 | PyObject * obj0 = 0 ; | |
21612 | char *kwnames[] = { | |
21613 | (char *) "title", NULL | |
21614 | }; | |
21615 | ||
21616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
21617 | if (obj0) { | |
21618 | { | |
21619 | arg1 = wxString_in_helper(obj0); | |
21620 | if (arg1 == NULL) SWIG_fail; | |
21621 | temp1 = True; | |
21622 | } | |
21623 | } | |
21624 | { | |
21625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21626 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
21627 | ||
21628 | wxPyEndAllowThreads(__tstate); | |
21629 | if (PyErr_Occurred()) SWIG_fail; | |
21630 | } | |
21631 | { | |
21632 | resultobj = wxPyMake_wxObject(result); | |
21633 | } | |
21634 | { | |
21635 | if (temp1) | |
21636 | delete arg1; | |
21637 | } | |
21638 | return resultobj; | |
21639 | fail: | |
21640 | { | |
21641 | if (temp1) | |
21642 | delete arg1; | |
21643 | } | |
21644 | return NULL; | |
21645 | } | |
21646 | ||
21647 | ||
21648 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21649 | PyObject *resultobj; | |
21650 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21651 | PyObject *arg2 = (PyObject *) 0 ; | |
21652 | PyObject *arg3 = (PyObject *) 0 ; | |
21653 | PyObject * obj0 = 0 ; | |
21654 | PyObject * obj1 = 0 ; | |
21655 | PyObject * obj2 = 0 ; | |
21656 | char *kwnames[] = { | |
21657 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21658 | }; | |
21659 | ||
21660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21663 | arg2 = obj1; | |
21664 | arg3 = obj2; | |
21665 | { | |
21666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21667 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21668 | ||
21669 | wxPyEndAllowThreads(__tstate); | |
21670 | if (PyErr_Occurred()) SWIG_fail; | |
21671 | } | |
21672 | Py_INCREF(Py_None); resultobj = Py_None; | |
21673 | return resultobj; | |
21674 | fail: | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
21679 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21680 | PyObject *resultobj; | |
21681 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21682 | wxString result; | |
21683 | PyObject * obj0 = 0 ; | |
21684 | char *kwnames[] = { | |
21685 | (char *) "self", NULL | |
21686 | }; | |
21687 | ||
21688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
21689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21691 | { | |
21692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21693 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
21694 | ||
21695 | wxPyEndAllowThreads(__tstate); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
21698 | { | |
21699 | #if wxUSE_UNICODE | |
21700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21701 | #else | |
21702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21703 | #endif | |
21704 | } | |
21705 | return resultobj; | |
21706 | fail: | |
21707 | return NULL; | |
21708 | } | |
21709 | ||
21710 | ||
21711 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21712 | PyObject *resultobj; | |
21713 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21714 | wxDC *result; | |
21715 | PyObject * obj0 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21723 | { | |
21724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21725 | result = (wxDC *)(arg1)->GetDC(); | |
21726 | ||
21727 | wxPyEndAllowThreads(__tstate); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | } | |
21730 | { | |
21731 | resultobj = wxPyMake_wxObject(result); | |
21732 | } | |
21733 | return resultobj; | |
21734 | fail: | |
21735 | return NULL; | |
21736 | } | |
21737 | ||
21738 | ||
21739 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21740 | PyObject *resultobj; | |
21741 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21742 | wxDC *arg2 = (wxDC *) 0 ; | |
21743 | PyObject * obj0 = 0 ; | |
21744 | PyObject * obj1 = 0 ; | |
21745 | char *kwnames[] = { | |
21746 | (char *) "self",(char *) "dc", NULL | |
21747 | }; | |
21748 | ||
21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
21750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21752 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
21753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21754 | { | |
21755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21756 | (arg1)->SetDC(arg2); | |
21757 | ||
21758 | wxPyEndAllowThreads(__tstate); | |
21759 | if (PyErr_Occurred()) SWIG_fail; | |
21760 | } | |
21761 | Py_INCREF(Py_None); resultobj = Py_None; | |
21762 | return resultobj; | |
21763 | fail: | |
21764 | return NULL; | |
21765 | } | |
21766 | ||
21767 | ||
21768 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21769 | PyObject *resultobj; | |
21770 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21771 | int arg2 ; | |
21772 | int arg3 ; | |
21773 | PyObject * obj0 = 0 ; | |
21774 | PyObject * obj1 = 0 ; | |
21775 | PyObject * obj2 = 0 ; | |
21776 | char *kwnames[] = { | |
21777 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21778 | }; | |
21779 | ||
21780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21783 | arg2 = (int) SWIG_AsInt(obj1); | |
21784 | if (PyErr_Occurred()) SWIG_fail; | |
21785 | arg3 = (int) SWIG_AsInt(obj2); | |
21786 | if (PyErr_Occurred()) SWIG_fail; | |
21787 | { | |
21788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21789 | (arg1)->SetPageSizePixels(arg2,arg3); | |
21790 | ||
21791 | wxPyEndAllowThreads(__tstate); | |
21792 | if (PyErr_Occurred()) SWIG_fail; | |
21793 | } | |
21794 | Py_INCREF(Py_None); resultobj = Py_None; | |
21795 | return resultobj; | |
21796 | fail: | |
21797 | return NULL; | |
21798 | } | |
21799 | ||
21800 | ||
21801 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21802 | PyObject *resultobj; | |
21803 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21804 | int *arg2 = (int *) 0 ; | |
21805 | int *arg3 = (int *) 0 ; | |
21806 | int temp2 ; | |
21807 | int temp3 ; | |
21808 | PyObject * obj0 = 0 ; | |
21809 | char *kwnames[] = { | |
21810 | (char *) "self", NULL | |
21811 | }; | |
21812 | ||
21813 | arg2 = &temp2; | |
21814 | arg3 = &temp3; | |
21815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
21816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21818 | { | |
21819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21820 | (arg1)->GetPageSizePixels(arg2,arg3); | |
21821 | ||
21822 | wxPyEndAllowThreads(__tstate); | |
21823 | if (PyErr_Occurred()) SWIG_fail; | |
21824 | } | |
21825 | Py_INCREF(Py_None); resultobj = Py_None; | |
21826 | { | |
21827 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21828 | resultobj = t_output_helper(resultobj,o); | |
21829 | } | |
21830 | { | |
21831 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21832 | resultobj = t_output_helper(resultobj,o); | |
21833 | } | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21841 | PyObject *resultobj; | |
21842 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21843 | int arg2 ; | |
21844 | int arg3 ; | |
21845 | PyObject * obj0 = 0 ; | |
21846 | PyObject * obj1 = 0 ; | |
21847 | PyObject * obj2 = 0 ; | |
21848 | char *kwnames[] = { | |
21849 | (char *) "self",(char *) "w",(char *) "h", NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21855 | arg2 = (int) SWIG_AsInt(obj1); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | arg3 = (int) SWIG_AsInt(obj2); | |
21858 | if (PyErr_Occurred()) SWIG_fail; | |
21859 | { | |
21860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21861 | (arg1)->SetPageSizeMM(arg2,arg3); | |
21862 | ||
21863 | wxPyEndAllowThreads(__tstate); | |
21864 | if (PyErr_Occurred()) SWIG_fail; | |
21865 | } | |
21866 | Py_INCREF(Py_None); resultobj = Py_None; | |
21867 | return resultobj; | |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21876 | int *arg2 = (int *) 0 ; | |
21877 | int *arg3 = (int *) 0 ; | |
21878 | int temp2 ; | |
21879 | int temp3 ; | |
21880 | PyObject * obj0 = 0 ; | |
21881 | char *kwnames[] = { | |
21882 | (char *) "self", NULL | |
21883 | }; | |
21884 | ||
21885 | arg2 = &temp2; | |
21886 | arg3 = &temp3; | |
21887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
21888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21890 | { | |
21891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21892 | (arg1)->GetPageSizeMM(arg2,arg3); | |
21893 | ||
21894 | wxPyEndAllowThreads(__tstate); | |
21895 | if (PyErr_Occurred()) SWIG_fail; | |
21896 | } | |
21897 | Py_INCREF(Py_None); resultobj = Py_None; | |
21898 | { | |
21899 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21900 | resultobj = t_output_helper(resultobj,o); | |
21901 | } | |
21902 | { | |
21903 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21904 | resultobj = t_output_helper(resultobj,o); | |
21905 | } | |
21906 | return resultobj; | |
21907 | fail: | |
21908 | return NULL; | |
21909 | } | |
21910 | ||
21911 | ||
21912 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21913 | PyObject *resultobj; | |
21914 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21915 | int arg2 ; | |
21916 | int arg3 ; | |
21917 | PyObject * obj0 = 0 ; | |
21918 | PyObject * obj1 = 0 ; | |
21919 | PyObject * obj2 = 0 ; | |
21920 | char *kwnames[] = { | |
21921 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21922 | }; | |
21923 | ||
21924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21927 | arg2 = (int) SWIG_AsInt(obj1); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | arg3 = (int) SWIG_AsInt(obj2); | |
21930 | if (PyErr_Occurred()) SWIG_fail; | |
21931 | { | |
21932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21933 | (arg1)->SetPPIScreen(arg2,arg3); | |
21934 | ||
21935 | wxPyEndAllowThreads(__tstate); | |
21936 | if (PyErr_Occurred()) SWIG_fail; | |
21937 | } | |
21938 | Py_INCREF(Py_None); resultobj = Py_None; | |
21939 | return resultobj; | |
21940 | fail: | |
21941 | return NULL; | |
21942 | } | |
21943 | ||
21944 | ||
21945 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21946 | PyObject *resultobj; | |
21947 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21948 | int *arg2 = (int *) 0 ; | |
21949 | int *arg3 = (int *) 0 ; | |
21950 | int temp2 ; | |
21951 | int temp3 ; | |
21952 | PyObject * obj0 = 0 ; | |
21953 | char *kwnames[] = { | |
21954 | (char *) "self", NULL | |
21955 | }; | |
21956 | ||
21957 | arg2 = &temp2; | |
21958 | arg3 = &temp3; | |
21959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
21960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21962 | { | |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | (arg1)->GetPPIScreen(arg2,arg3); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
21969 | Py_INCREF(Py_None); resultobj = Py_None; | |
21970 | { | |
21971 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21972 | resultobj = t_output_helper(resultobj,o); | |
21973 | } | |
21974 | { | |
21975 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21976 | resultobj = t_output_helper(resultobj,o); | |
21977 | } | |
21978 | return resultobj; | |
21979 | fail: | |
21980 | return NULL; | |
21981 | } | |
21982 | ||
21983 | ||
21984 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21985 | PyObject *resultobj; | |
21986 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21987 | int arg2 ; | |
21988 | int arg3 ; | |
21989 | PyObject * obj0 = 0 ; | |
21990 | PyObject * obj1 = 0 ; | |
21991 | PyObject * obj2 = 0 ; | |
21992 | char *kwnames[] = { | |
21993 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21994 | }; | |
21995 | ||
21996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
21998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21999 | arg2 = (int) SWIG_AsInt(obj1); | |
22000 | if (PyErr_Occurred()) SWIG_fail; | |
22001 | arg3 = (int) SWIG_AsInt(obj2); | |
22002 | if (PyErr_Occurred()) SWIG_fail; | |
22003 | { | |
22004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22005 | (arg1)->SetPPIPrinter(arg2,arg3); | |
22006 | ||
22007 | wxPyEndAllowThreads(__tstate); | |
22008 | if (PyErr_Occurred()) SWIG_fail; | |
22009 | } | |
22010 | Py_INCREF(Py_None); resultobj = Py_None; | |
22011 | return resultobj; | |
22012 | fail: | |
22013 | return NULL; | |
22014 | } | |
22015 | ||
22016 | ||
22017 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22018 | PyObject *resultobj; | |
22019 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22020 | int *arg2 = (int *) 0 ; | |
22021 | int *arg3 = (int *) 0 ; | |
22022 | int temp2 ; | |
22023 | int temp3 ; | |
22024 | PyObject * obj0 = 0 ; | |
22025 | char *kwnames[] = { | |
22026 | (char *) "self", NULL | |
22027 | }; | |
22028 | ||
22029 | arg2 = &temp2; | |
22030 | arg3 = &temp3; | |
22031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
22032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22034 | { | |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22036 | (arg1)->GetPPIPrinter(arg2,arg3); | |
22037 | ||
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
22041 | Py_INCREF(Py_None); resultobj = Py_None; | |
22042 | { | |
22043 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22044 | resultobj = t_output_helper(resultobj,o); | |
22045 | } | |
22046 | { | |
22047 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22048 | resultobj = t_output_helper(resultobj,o); | |
22049 | } | |
22050 | return resultobj; | |
22051 | fail: | |
22052 | return NULL; | |
22053 | } | |
22054 | ||
22055 | ||
22056 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22057 | PyObject *resultobj; | |
22058 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22059 | bool result; | |
22060 | PyObject * obj0 = 0 ; | |
22061 | char *kwnames[] = { | |
22062 | (char *) "self", NULL | |
22063 | }; | |
22064 | ||
22065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
22066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22068 | { | |
22069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22070 | result = (bool)(arg1)->IsPreview(); | |
22071 | ||
22072 | wxPyEndAllowThreads(__tstate); | |
22073 | if (PyErr_Occurred()) SWIG_fail; | |
22074 | } | |
22075 | { | |
22076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22077 | } | |
22078 | return resultobj; | |
22079 | fail: | |
22080 | return NULL; | |
22081 | } | |
22082 | ||
22083 | ||
22084 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22085 | PyObject *resultobj; | |
22086 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22087 | bool arg2 ; | |
22088 | PyObject * obj0 = 0 ; | |
22089 | PyObject * obj1 = 0 ; | |
22090 | char *kwnames[] = { | |
22091 | (char *) "self",(char *) "p", NULL | |
22092 | }; | |
22093 | ||
22094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
22095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22097 | arg2 = (bool) SWIG_AsBool(obj1); | |
22098 | if (PyErr_Occurred()) SWIG_fail; | |
22099 | { | |
22100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22101 | (arg1)->SetIsPreview(arg2); | |
22102 | ||
22103 | wxPyEndAllowThreads(__tstate); | |
22104 | if (PyErr_Occurred()) SWIG_fail; | |
22105 | } | |
22106 | Py_INCREF(Py_None); resultobj = Py_None; | |
22107 | return resultobj; | |
22108 | fail: | |
22109 | return NULL; | |
22110 | } | |
22111 | ||
22112 | ||
22113 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22114 | PyObject *resultobj; | |
22115 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22116 | int arg2 ; | |
22117 | int arg3 ; | |
22118 | bool result; | |
22119 | PyObject * obj0 = 0 ; | |
22120 | PyObject * obj1 = 0 ; | |
22121 | PyObject * obj2 = 0 ; | |
22122 | char *kwnames[] = { | |
22123 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
22124 | }; | |
22125 | ||
22126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22129 | arg2 = (int) SWIG_AsInt(obj1); | |
22130 | if (PyErr_Occurred()) SWIG_fail; | |
22131 | arg3 = (int) SWIG_AsInt(obj2); | |
22132 | if (PyErr_Occurred()) SWIG_fail; | |
22133 | { | |
22134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22135 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
22136 | ||
22137 | wxPyEndAllowThreads(__tstate); | |
22138 | if (PyErr_Occurred()) SWIG_fail; | |
22139 | } | |
22140 | { | |
22141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22142 | } | |
22143 | return resultobj; | |
22144 | fail: | |
22145 | return NULL; | |
22146 | } | |
22147 | ||
22148 | ||
22149 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22150 | PyObject *resultobj; | |
22151 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22152 | PyObject * obj0 = 0 ; | |
22153 | char *kwnames[] = { | |
22154 | (char *) "self", NULL | |
22155 | }; | |
22156 | ||
22157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
22158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22160 | { | |
22161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22162 | (arg1)->base_OnEndDocument(); | |
22163 | ||
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | Py_INCREF(Py_None); resultobj = Py_None; | |
22168 | return resultobj; | |
22169 | fail: | |
22170 | return NULL; | |
22171 | } | |
22172 | ||
22173 | ||
22174 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22175 | PyObject *resultobj; | |
22176 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22177 | PyObject * obj0 = 0 ; | |
22178 | char *kwnames[] = { | |
22179 | (char *) "self", NULL | |
22180 | }; | |
22181 | ||
22182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
22183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22185 | { | |
22186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22187 | (arg1)->base_OnBeginPrinting(); | |
22188 | ||
22189 | wxPyEndAllowThreads(__tstate); | |
22190 | if (PyErr_Occurred()) SWIG_fail; | |
22191 | } | |
22192 | Py_INCREF(Py_None); resultobj = Py_None; | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | return NULL; | |
22196 | } | |
22197 | ||
22198 | ||
22199 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22200 | PyObject *resultobj; | |
22201 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22202 | PyObject * obj0 = 0 ; | |
22203 | char *kwnames[] = { | |
22204 | (char *) "self", NULL | |
22205 | }; | |
22206 | ||
22207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
22208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22210 | { | |
22211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22212 | (arg1)->base_OnEndPrinting(); | |
22213 | ||
22214 | wxPyEndAllowThreads(__tstate); | |
22215 | if (PyErr_Occurred()) SWIG_fail; | |
22216 | } | |
22217 | Py_INCREF(Py_None); resultobj = Py_None; | |
22218 | return resultobj; | |
22219 | fail: | |
22220 | return NULL; | |
22221 | } | |
22222 | ||
22223 | ||
22224 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22225 | PyObject *resultobj; | |
22226 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22227 | PyObject * obj0 = 0 ; | |
22228 | char *kwnames[] = { | |
22229 | (char *) "self", NULL | |
22230 | }; | |
22231 | ||
22232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
22233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22235 | { | |
22236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22237 | (arg1)->base_OnPreparePrinting(); | |
22238 | ||
22239 | wxPyEndAllowThreads(__tstate); | |
22240 | if (PyErr_Occurred()) SWIG_fail; | |
22241 | } | |
22242 | Py_INCREF(Py_None); resultobj = Py_None; | |
22243 | return resultobj; | |
22244 | fail: | |
22245 | return NULL; | |
22246 | } | |
22247 | ||
22248 | ||
22249 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22250 | PyObject *resultobj; | |
22251 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22252 | int arg2 ; | |
22253 | bool result; | |
22254 | PyObject * obj0 = 0 ; | |
22255 | PyObject * obj1 = 0 ; | |
22256 | char *kwnames[] = { | |
22257 | (char *) "self",(char *) "page", NULL | |
22258 | }; | |
22259 | ||
22260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
22261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22263 | arg2 = (int) SWIG_AsInt(obj1); | |
22264 | if (PyErr_Occurred()) SWIG_fail; | |
22265 | { | |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | result = (bool)(arg1)->base_HasPage(arg2); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
22272 | { | |
22273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22274 | } | |
22275 | return resultobj; | |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
22281 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22282 | PyObject *resultobj; | |
22283 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22284 | int *arg2 = (int *) 0 ; | |
22285 | int *arg3 = (int *) 0 ; | |
22286 | int *arg4 = (int *) 0 ; | |
22287 | int *arg5 = (int *) 0 ; | |
22288 | int temp2 ; | |
22289 | int temp3 ; | |
22290 | int temp4 ; | |
22291 | int temp5 ; | |
22292 | PyObject * obj0 = 0 ; | |
22293 | char *kwnames[] = { | |
22294 | (char *) "self", NULL | |
22295 | }; | |
22296 | ||
22297 | arg2 = &temp2; | |
22298 | arg3 = &temp3; | |
22299 | arg4 = &temp4; | |
22300 | arg5 = &temp5; | |
22301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
22302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22304 | { | |
22305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22306 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
22307 | ||
22308 | wxPyEndAllowThreads(__tstate); | |
22309 | if (PyErr_Occurred()) SWIG_fail; | |
22310 | } | |
22311 | Py_INCREF(Py_None); resultobj = Py_None; | |
22312 | { | |
22313 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22314 | resultobj = t_output_helper(resultobj,o); | |
22315 | } | |
22316 | { | |
22317 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22318 | resultobj = t_output_helper(resultobj,o); | |
22319 | } | |
22320 | { | |
22321 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22322 | resultobj = t_output_helper(resultobj,o); | |
22323 | } | |
22324 | { | |
22325 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22326 | resultobj = t_output_helper(resultobj,o); | |
22327 | } | |
22328 | return resultobj; | |
22329 | fail: | |
22330 | return NULL; | |
22331 | } | |
22332 | ||
22333 | ||
22334 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
22335 | PyObject *obj; | |
22336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22337 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
22338 | Py_INCREF(obj); | |
22339 | return Py_BuildValue((char *)""); | |
22340 | } | |
22341 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22342 | PyObject *resultobj; | |
22343 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22344 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22345 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22346 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22347 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22348 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22349 | long arg5 = (long) 0 ; | |
22350 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
22351 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22352 | wxPreviewCanvas *result; | |
22353 | wxPoint temp3 ; | |
22354 | wxSize temp4 ; | |
22355 | bool temp6 = False ; | |
22356 | PyObject * obj0 = 0 ; | |
22357 | PyObject * obj1 = 0 ; | |
22358 | PyObject * obj2 = 0 ; | |
22359 | PyObject * obj3 = 0 ; | |
22360 | PyObject * obj4 = 0 ; | |
22361 | PyObject * obj5 = 0 ; | |
22362 | char *kwnames[] = { | |
22363 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22364 | }; | |
22365 | ||
22366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22369 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22371 | if (obj2) { | |
22372 | { | |
22373 | arg3 = &temp3; | |
22374 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22375 | } | |
22376 | } | |
22377 | if (obj3) { | |
22378 | { | |
22379 | arg4 = &temp4; | |
22380 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22381 | } | |
22382 | } | |
22383 | if (obj4) { | |
22384 | arg5 = (long) SWIG_AsLong(obj4); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | } | |
22387 | if (obj5) { | |
22388 | { | |
22389 | arg6 = wxString_in_helper(obj5); | |
22390 | if (arg6 == NULL) SWIG_fail; | |
22391 | temp6 = True; | |
22392 | } | |
22393 | } | |
22394 | { | |
22395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22396 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22397 | ||
22398 | wxPyEndAllowThreads(__tstate); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | } | |
22401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22402 | { | |
22403 | if (temp6) | |
22404 | delete arg6; | |
22405 | } | |
22406 | return resultobj; | |
22407 | fail: | |
22408 | { | |
22409 | if (temp6) | |
22410 | delete arg6; | |
22411 | } | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
22416 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22417 | PyObject *obj; | |
22418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22419 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22420 | Py_INCREF(obj); | |
22421 | return Py_BuildValue((char *)""); | |
22422 | } | |
22423 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22424 | PyObject *resultobj; | |
22425 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22426 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22427 | wxString *arg3 = 0 ; | |
22428 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22429 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22430 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22431 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22432 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22433 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22434 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22435 | wxPreviewFrame *result; | |
22436 | bool temp3 = False ; | |
22437 | wxPoint temp4 ; | |
22438 | wxSize temp5 ; | |
22439 | bool temp7 = False ; | |
22440 | PyObject * obj0 = 0 ; | |
22441 | PyObject * obj1 = 0 ; | |
22442 | PyObject * obj2 = 0 ; | |
22443 | PyObject * obj3 = 0 ; | |
22444 | PyObject * obj4 = 0 ; | |
22445 | PyObject * obj5 = 0 ; | |
22446 | PyObject * obj6 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22456 | { | |
22457 | arg3 = wxString_in_helper(obj2); | |
22458 | if (arg3 == NULL) SWIG_fail; | |
22459 | temp3 = True; | |
22460 | } | |
22461 | if (obj3) { | |
22462 | { | |
22463 | arg4 = &temp4; | |
22464 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22465 | } | |
22466 | } | |
22467 | if (obj4) { | |
22468 | { | |
22469 | arg5 = &temp5; | |
22470 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22471 | } | |
22472 | } | |
22473 | if (obj5) { | |
22474 | arg6 = (long) SWIG_AsLong(obj5); | |
22475 | if (PyErr_Occurred()) SWIG_fail; | |
22476 | } | |
22477 | if (obj6) { | |
22478 | { | |
22479 | arg7 = wxString_in_helper(obj6); | |
22480 | if (arg7 == NULL) SWIG_fail; | |
22481 | temp7 = True; | |
22482 | } | |
22483 | } | |
22484 | { | |
22485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22486 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22487 | ||
22488 | wxPyEndAllowThreads(__tstate); | |
22489 | if (PyErr_Occurred()) SWIG_fail; | |
22490 | } | |
22491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
22492 | { | |
22493 | if (temp3) | |
22494 | delete arg3; | |
22495 | } | |
22496 | { | |
22497 | if (temp7) | |
22498 | delete arg7; | |
22499 | } | |
22500 | return resultobj; | |
22501 | fail: | |
22502 | { | |
22503 | if (temp3) | |
22504 | delete arg3; | |
22505 | } | |
22506 | { | |
22507 | if (temp7) | |
22508 | delete arg7; | |
22509 | } | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22515 | PyObject *resultobj; | |
22516 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22517 | PyObject * obj0 = 0 ; | |
22518 | char *kwnames[] = { | |
22519 | (char *) "self", NULL | |
22520 | }; | |
22521 | ||
22522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
22523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22525 | { | |
22526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22527 | (arg1)->Initialize(); | |
22528 | ||
22529 | wxPyEndAllowThreads(__tstate); | |
22530 | if (PyErr_Occurred()) SWIG_fail; | |
22531 | } | |
22532 | Py_INCREF(Py_None); resultobj = Py_None; | |
22533 | return resultobj; | |
22534 | fail: | |
22535 | return NULL; | |
22536 | } | |
22537 | ||
22538 | ||
22539 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22540 | PyObject *resultobj; | |
22541 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22542 | PyObject * obj0 = 0 ; | |
22543 | char *kwnames[] = { | |
22544 | (char *) "self", NULL | |
22545 | }; | |
22546 | ||
22547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
22548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22550 | { | |
22551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22552 | (arg1)->CreateControlBar(); | |
22553 | ||
22554 | wxPyEndAllowThreads(__tstate); | |
22555 | if (PyErr_Occurred()) SWIG_fail; | |
22556 | } | |
22557 | Py_INCREF(Py_None); resultobj = Py_None; | |
22558 | return resultobj; | |
22559 | fail: | |
22560 | return NULL; | |
22561 | } | |
22562 | ||
22563 | ||
22564 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22565 | PyObject *resultobj; | |
22566 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22567 | PyObject * obj0 = 0 ; | |
22568 | char *kwnames[] = { | |
22569 | (char *) "self", NULL | |
22570 | }; | |
22571 | ||
22572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
22573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22575 | { | |
22576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22577 | (arg1)->CreateCanvas(); | |
22578 | ||
22579 | wxPyEndAllowThreads(__tstate); | |
22580 | if (PyErr_Occurred()) SWIG_fail; | |
22581 | } | |
22582 | Py_INCREF(Py_None); resultobj = Py_None; | |
22583 | return resultobj; | |
22584 | fail: | |
22585 | return NULL; | |
22586 | } | |
22587 | ||
22588 | ||
22589 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22590 | PyObject *resultobj; | |
22591 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22592 | wxPreviewControlBar *result; | |
22593 | PyObject * obj0 = 0 ; | |
22594 | char *kwnames[] = { | |
22595 | (char *) "self", NULL | |
22596 | }; | |
22597 | ||
22598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
22599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22601 | { | |
22602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22603 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
22604 | ||
22605 | wxPyEndAllowThreads(__tstate); | |
22606 | if (PyErr_Occurred()) SWIG_fail; | |
22607 | } | |
22608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
22609 | return resultobj; | |
22610 | fail: | |
22611 | return NULL; | |
22612 | } | |
22613 | ||
22614 | ||
22615 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
22616 | PyObject *obj; | |
22617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22618 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
22619 | Py_INCREF(obj); | |
22620 | return Py_BuildValue((char *)""); | |
22621 | } | |
22622 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22623 | PyObject *resultobj; | |
22624 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22625 | long arg2 ; | |
22626 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22627 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22628 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22629 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22630 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22631 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
22632 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22633 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22634 | wxPreviewControlBar *result; | |
22635 | wxPoint temp4 ; | |
22636 | wxSize temp5 ; | |
22637 | bool temp7 = False ; | |
22638 | PyObject * obj0 = 0 ; | |
22639 | PyObject * obj1 = 0 ; | |
22640 | PyObject * obj2 = 0 ; | |
22641 | PyObject * obj3 = 0 ; | |
22642 | PyObject * obj4 = 0 ; | |
22643 | PyObject * obj5 = 0 ; | |
22644 | PyObject * obj6 = 0 ; | |
22645 | char *kwnames[] = { | |
22646 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22647 | }; | |
22648 | ||
22649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22652 | arg2 = (long) SWIG_AsLong(obj1); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
22655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22656 | if (obj3) { | |
22657 | { | |
22658 | arg4 = &temp4; | |
22659 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22660 | } | |
22661 | } | |
22662 | if (obj4) { | |
22663 | { | |
22664 | arg5 = &temp5; | |
22665 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22666 | } | |
22667 | } | |
22668 | if (obj5) { | |
22669 | arg6 = (long) SWIG_AsLong(obj5); | |
22670 | if (PyErr_Occurred()) SWIG_fail; | |
22671 | } | |
22672 | if (obj6) { | |
22673 | { | |
22674 | arg7 = wxString_in_helper(obj6); | |
22675 | if (arg7 == NULL) SWIG_fail; | |
22676 | temp7 = True; | |
22677 | } | |
22678 | } | |
22679 | { | |
22680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22681 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22682 | ||
22683 | wxPyEndAllowThreads(__tstate); | |
22684 | if (PyErr_Occurred()) SWIG_fail; | |
22685 | } | |
22686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
22687 | { | |
22688 | if (temp7) | |
22689 | delete arg7; | |
22690 | } | |
22691 | return resultobj; | |
22692 | fail: | |
22693 | { | |
22694 | if (temp7) | |
22695 | delete arg7; | |
22696 | } | |
22697 | return NULL; | |
22698 | } | |
22699 | ||
22700 | ||
22701 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22702 | PyObject *resultobj; | |
22703 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22704 | int result; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | char *kwnames[] = { | |
22707 | (char *) "self", NULL | |
22708 | }; | |
22709 | ||
22710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
22711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22713 | { | |
22714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22715 | result = (int)(arg1)->GetZoomControl(); | |
22716 | ||
22717 | wxPyEndAllowThreads(__tstate); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
22720 | resultobj = SWIG_FromInt((int)result); | |
22721 | return resultobj; | |
22722 | fail: | |
22723 | return NULL; | |
22724 | } | |
22725 | ||
22726 | ||
22727 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22728 | PyObject *resultobj; | |
22729 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22730 | int arg2 ; | |
22731 | PyObject * obj0 = 0 ; | |
22732 | PyObject * obj1 = 0 ; | |
22733 | char *kwnames[] = { | |
22734 | (char *) "self",(char *) "zoom", NULL | |
22735 | }; | |
22736 | ||
22737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
22738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22740 | arg2 = (int) SWIG_AsInt(obj1); | |
22741 | if (PyErr_Occurred()) SWIG_fail; | |
22742 | { | |
22743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22744 | (arg1)->SetZoomControl(arg2); | |
22745 | ||
22746 | wxPyEndAllowThreads(__tstate); | |
22747 | if (PyErr_Occurred()) SWIG_fail; | |
22748 | } | |
22749 | Py_INCREF(Py_None); resultobj = Py_None; | |
22750 | return resultobj; | |
22751 | fail: | |
22752 | return NULL; | |
22753 | } | |
22754 | ||
22755 | ||
22756 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22757 | PyObject *resultobj; | |
22758 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22759 | wxPrintPreview *result; | |
22760 | PyObject * obj0 = 0 ; | |
22761 | char *kwnames[] = { | |
22762 | (char *) "self", NULL | |
22763 | }; | |
22764 | ||
22765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
22766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | { | |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
22771 | ||
22772 | wxPyEndAllowThreads(__tstate); | |
22773 | if (PyErr_Occurred()) SWIG_fail; | |
22774 | } | |
22775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
22776 | return resultobj; | |
22777 | fail: | |
22778 | return NULL; | |
22779 | } | |
22780 | ||
22781 | ||
22782 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22783 | PyObject *resultobj; | |
22784 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22785 | PyObject * obj0 = 0 ; | |
22786 | char *kwnames[] = { | |
22787 | (char *) "self", NULL | |
22788 | }; | |
22789 | ||
22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
22791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22793 | { | |
22794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22795 | (arg1)->OnNext(); | |
22796 | ||
22797 | wxPyEndAllowThreads(__tstate); | |
22798 | if (PyErr_Occurred()) SWIG_fail; | |
22799 | } | |
22800 | Py_INCREF(Py_None); resultobj = Py_None; | |
22801 | return resultobj; | |
22802 | fail: | |
22803 | return NULL; | |
22804 | } | |
22805 | ||
22806 | ||
22807 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22808 | PyObject *resultobj; | |
22809 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22810 | PyObject * obj0 = 0 ; | |
22811 | char *kwnames[] = { | |
22812 | (char *) "self", NULL | |
22813 | }; | |
22814 | ||
22815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
22816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22818 | { | |
22819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22820 | (arg1)->OnPrevious(); | |
22821 | ||
22822 | wxPyEndAllowThreads(__tstate); | |
22823 | if (PyErr_Occurred()) SWIG_fail; | |
22824 | } | |
22825 | Py_INCREF(Py_None); resultobj = Py_None; | |
22826 | return resultobj; | |
22827 | fail: | |
22828 | return NULL; | |
22829 | } | |
22830 | ||
22831 | ||
22832 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22833 | PyObject *resultobj; | |
22834 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22835 | PyObject * obj0 = 0 ; | |
22836 | char *kwnames[] = { | |
22837 | (char *) "self", NULL | |
22838 | }; | |
22839 | ||
22840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
22841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22843 | { | |
22844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22845 | (arg1)->OnFirst(); | |
22846 | ||
22847 | wxPyEndAllowThreads(__tstate); | |
22848 | if (PyErr_Occurred()) SWIG_fail; | |
22849 | } | |
22850 | Py_INCREF(Py_None); resultobj = Py_None; | |
22851 | return resultobj; | |
22852 | fail: | |
22853 | return NULL; | |
22854 | } | |
22855 | ||
22856 | ||
22857 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22858 | PyObject *resultobj; | |
22859 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22860 | PyObject * obj0 = 0 ; | |
22861 | char *kwnames[] = { | |
22862 | (char *) "self", NULL | |
22863 | }; | |
22864 | ||
22865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
22866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22868 | { | |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | (arg1)->OnLast(); | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | Py_INCREF(Py_None); resultobj = Py_None; | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
22882 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22883 | PyObject *resultobj; | |
22884 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
22885 | PyObject * obj0 = 0 ; | |
22886 | char *kwnames[] = { | |
22887 | (char *) "self", NULL | |
22888 | }; | |
22889 | ||
22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
22891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
22892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22893 | { | |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | (arg1)->OnGoto(); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | Py_INCREF(Py_None); resultobj = Py_None; | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
22907 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
22908 | PyObject *obj; | |
22909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22910 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
22911 | Py_INCREF(obj); | |
22912 | return Py_BuildValue((char *)""); | |
22913 | } | |
22914 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
22915 | PyObject *resultobj; | |
22916 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22917 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22918 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
22919 | wxPrintPreview *result; | |
22920 | PyObject * obj0 = 0 ; | |
22921 | PyObject * obj1 = 0 ; | |
22922 | PyObject * obj2 = 0 ; | |
22923 | ||
22924 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22929 | if (obj2) { | |
22930 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
22931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22932 | } | |
22933 | { | |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22941 | return resultobj; | |
22942 | fail: | |
22943 | return NULL; | |
22944 | } | |
22945 | ||
22946 | ||
22947 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
22948 | PyObject *resultobj; | |
22949 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22950 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22951 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
22952 | wxPrintPreview *result; | |
22953 | PyObject * obj0 = 0 ; | |
22954 | PyObject * obj1 = 0 ; | |
22955 | PyObject * obj2 = 0 ; | |
22956 | ||
22957 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
22958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22962 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
22963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22964 | { | |
22965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22966 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
22967 | ||
22968 | wxPyEndAllowThreads(__tstate); | |
22969 | if (PyErr_Occurred()) SWIG_fail; | |
22970 | } | |
22971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
22972 | return resultobj; | |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
22978 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
22979 | int argc; | |
22980 | PyObject *argv[4]; | |
22981 | int ii; | |
22982 | ||
22983 | argc = PyObject_Length(args); | |
22984 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
22985 | argv[ii] = PyTuple_GetItem(args,ii); | |
22986 | } | |
22987 | if ((argc >= 2) && (argc <= 3)) { | |
22988 | int _v; | |
22989 | { | |
22990 | void *ptr; | |
22991 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
22992 | _v = 0; | |
22993 | PyErr_Clear(); | |
22994 | } else { | |
22995 | _v = 1; | |
22996 | } | |
22997 | } | |
22998 | if (_v) { | |
22999 | { | |
23000 | void *ptr; | |
23001 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23002 | _v = 0; | |
23003 | PyErr_Clear(); | |
23004 | } else { | |
23005 | _v = 1; | |
23006 | } | |
23007 | } | |
23008 | if (_v) { | |
23009 | if (argc <= 2) { | |
23010 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23011 | } | |
23012 | { | |
23013 | void *ptr; | |
23014 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23015 | _v = 0; | |
23016 | PyErr_Clear(); | |
23017 | } else { | |
23018 | _v = 1; | |
23019 | } | |
23020 | } | |
23021 | if (_v) { | |
23022 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23023 | } | |
23024 | } | |
23025 | } | |
23026 | } | |
23027 | if (argc == 3) { | |
23028 | int _v; | |
23029 | { | |
23030 | void *ptr; | |
23031 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23032 | _v = 0; | |
23033 | PyErr_Clear(); | |
23034 | } else { | |
23035 | _v = 1; | |
23036 | } | |
23037 | } | |
23038 | if (_v) { | |
23039 | { | |
23040 | void *ptr; | |
23041 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23042 | _v = 0; | |
23043 | PyErr_Clear(); | |
23044 | } else { | |
23045 | _v = 1; | |
23046 | } | |
23047 | } | |
23048 | if (_v) { | |
23049 | { | |
23050 | void *ptr; | |
23051 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23052 | _v = 0; | |
23053 | PyErr_Clear(); | |
23054 | } else { | |
23055 | _v = 1; | |
23056 | } | |
23057 | } | |
23058 | if (_v) { | |
23059 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
23060 | } | |
23061 | } | |
23062 | } | |
23063 | } | |
23064 | ||
23065 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
23066 | return NULL; | |
23067 | } | |
23068 | ||
23069 | ||
23070 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23071 | PyObject *resultobj; | |
23072 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23073 | int arg2 ; | |
23074 | bool result; | |
23075 | PyObject * obj0 = 0 ; | |
23076 | PyObject * obj1 = 0 ; | |
23077 | char *kwnames[] = { | |
23078 | (char *) "self",(char *) "pageNum", NULL | |
23079 | }; | |
23080 | ||
23081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23084 | arg2 = (int) SWIG_AsInt(obj1); | |
23085 | if (PyErr_Occurred()) SWIG_fail; | |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | { | |
23094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23095 | } | |
23096 | return resultobj; | |
23097 | fail: | |
23098 | return NULL; | |
23099 | } | |
23100 | ||
23101 | ||
23102 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23103 | PyObject *resultobj; | |
23104 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23105 | int result; | |
23106 | PyObject * obj0 = 0 ; | |
23107 | char *kwnames[] = { | |
23108 | (char *) "self", NULL | |
23109 | }; | |
23110 | ||
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
23112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23114 | { | |
23115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23116 | result = (int)(arg1)->GetCurrentPage(); | |
23117 | ||
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
23121 | resultobj = SWIG_FromInt((int)result); | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
23128 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23129 | PyObject *resultobj; | |
23130 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23131 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23132 | PyObject * obj0 = 0 ; | |
23133 | PyObject * obj1 = 0 ; | |
23134 | char *kwnames[] = { | |
23135 | (char *) "self",(char *) "printout", NULL | |
23136 | }; | |
23137 | ||
23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
23139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | (arg1)->SetPrintout(arg2); | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | Py_INCREF(Py_None); resultobj = Py_None; | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
23157 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23158 | PyObject *resultobj; | |
23159 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23160 | wxPyPrintout *result; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | char *kwnames[] = { | |
23163 | (char *) "self", NULL | |
23164 | }; | |
23165 | ||
23166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
23167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23169 | { | |
23170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23171 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
23172 | ||
23173 | wxPyEndAllowThreads(__tstate); | |
23174 | if (PyErr_Occurred()) SWIG_fail; | |
23175 | } | |
23176 | { | |
23177 | resultobj = wxPyMake_wxObject(result); | |
23178 | } | |
23179 | return resultobj; | |
23180 | fail: | |
23181 | return NULL; | |
23182 | } | |
23183 | ||
23184 | ||
23185 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23186 | PyObject *resultobj; | |
23187 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23188 | wxPyPrintout *result; | |
23189 | PyObject * obj0 = 0 ; | |
23190 | char *kwnames[] = { | |
23191 | (char *) "self", NULL | |
23192 | }; | |
23193 | ||
23194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
23195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23197 | { | |
23198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23199 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
23200 | ||
23201 | wxPyEndAllowThreads(__tstate); | |
23202 | if (PyErr_Occurred()) SWIG_fail; | |
23203 | } | |
23204 | { | |
23205 | resultobj = wxPyMake_wxObject(result); | |
23206 | } | |
23207 | return resultobj; | |
23208 | fail: | |
23209 | return NULL; | |
23210 | } | |
23211 | ||
23212 | ||
23213 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23214 | PyObject *resultobj; | |
23215 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23216 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23217 | PyObject * obj0 = 0 ; | |
23218 | PyObject * obj1 = 0 ; | |
23219 | char *kwnames[] = { | |
23220 | (char *) "self",(char *) "frame", NULL | |
23221 | }; | |
23222 | ||
23223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
23224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23226 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23228 | { | |
23229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23230 | (arg1)->SetFrame(arg2); | |
23231 | ||
23232 | wxPyEndAllowThreads(__tstate); | |
23233 | if (PyErr_Occurred()) SWIG_fail; | |
23234 | } | |
23235 | Py_INCREF(Py_None); resultobj = Py_None; | |
23236 | return resultobj; | |
23237 | fail: | |
23238 | return NULL; | |
23239 | } | |
23240 | ||
23241 | ||
23242 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23243 | PyObject *resultobj; | |
23244 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23245 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23246 | PyObject * obj0 = 0 ; | |
23247 | PyObject * obj1 = 0 ; | |
23248 | char *kwnames[] = { | |
23249 | (char *) "self",(char *) "canvas", NULL | |
23250 | }; | |
23251 | ||
23252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23255 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23257 | { | |
23258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23259 | (arg1)->SetCanvas(arg2); | |
23260 | ||
23261 | wxPyEndAllowThreads(__tstate); | |
23262 | if (PyErr_Occurred()) SWIG_fail; | |
23263 | } | |
23264 | Py_INCREF(Py_None); resultobj = Py_None; | |
23265 | return resultobj; | |
23266 | fail: | |
23267 | return NULL; | |
23268 | } | |
23269 | ||
23270 | ||
23271 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23272 | PyObject *resultobj; | |
23273 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23274 | wxFrame *result; | |
23275 | PyObject * obj0 = 0 ; | |
23276 | char *kwnames[] = { | |
23277 | (char *) "self", NULL | |
23278 | }; | |
23279 | ||
23280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
23281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23283 | { | |
23284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23285 | result = (wxFrame *)(arg1)->GetFrame(); | |
23286 | ||
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
23290 | { | |
23291 | resultobj = wxPyMake_wxObject(result); | |
23292 | } | |
23293 | return resultobj; | |
23294 | fail: | |
23295 | return NULL; | |
23296 | } | |
23297 | ||
23298 | ||
23299 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23300 | PyObject *resultobj; | |
23301 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23302 | wxPreviewCanvas *result; | |
23303 | PyObject * obj0 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
23309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23311 | { | |
23312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23313 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
23314 | ||
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj; | |
23327 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23328 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23329 | wxDC *arg3 = 0 ; | |
23330 | bool result; | |
23331 | PyObject * obj0 = 0 ; | |
23332 | PyObject * obj1 = 0 ; | |
23333 | PyObject * obj2 = 0 ; | |
23334 | char *kwnames[] = { | |
23335 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23336 | }; | |
23337 | ||
23338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23343 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23344 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23345 | SWIG_fail; | |
23346 | if (arg3 == NULL) { | |
23347 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23348 | SWIG_fail; | |
23349 | } | |
23350 | { | |
23351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23352 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
23353 | ||
23354 | wxPyEndAllowThreads(__tstate); | |
23355 | if (PyErr_Occurred()) SWIG_fail; | |
23356 | } | |
23357 | { | |
23358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23359 | } | |
23360 | return resultobj; | |
23361 | fail: | |
23362 | return NULL; | |
23363 | } | |
23364 | ||
23365 | ||
23366 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23367 | PyObject *resultobj; | |
23368 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23369 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23370 | wxDC *arg3 = 0 ; | |
23371 | bool result; | |
23372 | PyObject * obj0 = 0 ; | |
23373 | PyObject * obj1 = 0 ; | |
23374 | PyObject * obj2 = 0 ; | |
23375 | char *kwnames[] = { | |
23376 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23377 | }; | |
23378 | ||
23379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23384 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23385 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23386 | SWIG_fail; | |
23387 | if (arg3 == NULL) { | |
23388 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23389 | SWIG_fail; | |
23390 | } | |
23391 | { | |
23392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23393 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23394 | ||
23395 | wxPyEndAllowThreads(__tstate); | |
23396 | if (PyErr_Occurred()) SWIG_fail; | |
23397 | } | |
23398 | { | |
23399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23400 | } | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23410 | int arg2 ; | |
23411 | bool result; | |
23412 | PyObject * obj0 = 0 ; | |
23413 | PyObject * obj1 = 0 ; | |
23414 | char *kwnames[] = { | |
23415 | (char *) "self",(char *) "pageNum", NULL | |
23416 | }; | |
23417 | ||
23418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23421 | arg2 = (int) SWIG_AsInt(obj1); | |
23422 | if (PyErr_Occurred()) SWIG_fail; | |
23423 | { | |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | result = (bool)(arg1)->RenderPage(arg2); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | { | |
23431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23432 | } | |
23433 | return resultobj; | |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23440 | PyObject *resultobj; | |
23441 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23442 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23443 | PyObject * obj0 = 0 ; | |
23444 | PyObject * obj1 = 0 ; | |
23445 | char *kwnames[] = { | |
23446 | (char *) "self",(char *) "canvas", NULL | |
23447 | }; | |
23448 | ||
23449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23452 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23454 | { | |
23455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23456 | (arg1)->AdjustScrollbars(arg2); | |
23457 | ||
23458 | wxPyEndAllowThreads(__tstate); | |
23459 | if (PyErr_Occurred()) SWIG_fail; | |
23460 | } | |
23461 | Py_INCREF(Py_None); resultobj = Py_None; | |
23462 | return resultobj; | |
23463 | fail: | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
23467 | ||
23468 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23469 | PyObject *resultobj; | |
23470 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23471 | wxPrintDialogData *result; | |
23472 | PyObject * obj0 = 0 ; | |
23473 | char *kwnames[] = { | |
23474 | (char *) "self", NULL | |
23475 | }; | |
23476 | ||
23477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
23478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23480 | { | |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | { | |
23483 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
23484 | result = (wxPrintDialogData *) &_result_ref; | |
23485 | } | |
23486 | ||
23487 | wxPyEndAllowThreads(__tstate); | |
23488 | if (PyErr_Occurred()) SWIG_fail; | |
23489 | } | |
23490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
23491 | return resultobj; | |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
23497 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23498 | PyObject *resultobj; | |
23499 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23500 | int arg2 ; | |
23501 | PyObject * obj0 = 0 ; | |
23502 | PyObject * obj1 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self",(char *) "percent", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23510 | arg2 = (int) SWIG_AsInt(obj1); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | { | |
23513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23514 | (arg1)->SetZoom(arg2); | |
23515 | ||
23516 | wxPyEndAllowThreads(__tstate); | |
23517 | if (PyErr_Occurred()) SWIG_fail; | |
23518 | } | |
23519 | Py_INCREF(Py_None); resultobj = Py_None; | |
23520 | return resultobj; | |
23521 | fail: | |
23522 | return NULL; | |
23523 | } | |
23524 | ||
23525 | ||
23526 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23527 | PyObject *resultobj; | |
23528 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23529 | int result; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | char *kwnames[] = { | |
23532 | (char *) "self", NULL | |
23533 | }; | |
23534 | ||
23535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
23536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23538 | { | |
23539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23540 | result = (int)(arg1)->GetZoom(); | |
23541 | ||
23542 | wxPyEndAllowThreads(__tstate); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
23545 | resultobj = SWIG_FromInt((int)result); | |
23546 | return resultobj; | |
23547 | fail: | |
23548 | return NULL; | |
23549 | } | |
23550 | ||
23551 | ||
23552 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23553 | PyObject *resultobj; | |
23554 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23555 | int result; | |
23556 | PyObject * obj0 = 0 ; | |
23557 | char *kwnames[] = { | |
23558 | (char *) "self", NULL | |
23559 | }; | |
23560 | ||
23561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
23562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23564 | { | |
23565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23566 | result = (int)(arg1)->GetMaxPage(); | |
23567 | ||
23568 | wxPyEndAllowThreads(__tstate); | |
23569 | if (PyErr_Occurred()) SWIG_fail; | |
23570 | } | |
23571 | resultobj = SWIG_FromInt((int)result); | |
23572 | return resultobj; | |
23573 | fail: | |
23574 | return NULL; | |
23575 | } | |
23576 | ||
23577 | ||
23578 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23579 | PyObject *resultobj; | |
23580 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23581 | int result; | |
23582 | PyObject * obj0 = 0 ; | |
23583 | char *kwnames[] = { | |
23584 | (char *) "self", NULL | |
23585 | }; | |
23586 | ||
23587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
23588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23590 | { | |
23591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23592 | result = (int)(arg1)->GetMinPage(); | |
23593 | ||
23594 | wxPyEndAllowThreads(__tstate); | |
23595 | if (PyErr_Occurred()) SWIG_fail; | |
23596 | } | |
23597 | resultobj = SWIG_FromInt((int)result); | |
23598 | return resultobj; | |
23599 | fail: | |
23600 | return NULL; | |
23601 | } | |
23602 | ||
23603 | ||
23604 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23605 | PyObject *resultobj; | |
23606 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23607 | bool result; | |
23608 | PyObject * obj0 = 0 ; | |
23609 | char *kwnames[] = { | |
23610 | (char *) "self", NULL | |
23611 | }; | |
23612 | ||
23613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
23614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23616 | { | |
23617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23618 | result = (bool)(arg1)->Ok(); | |
23619 | ||
23620 | wxPyEndAllowThreads(__tstate); | |
23621 | if (PyErr_Occurred()) SWIG_fail; | |
23622 | } | |
23623 | { | |
23624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23625 | } | |
23626 | return resultobj; | |
23627 | fail: | |
23628 | return NULL; | |
23629 | } | |
23630 | ||
23631 | ||
23632 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23633 | PyObject *resultobj; | |
23634 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23635 | bool arg2 ; | |
23636 | PyObject * obj0 = 0 ; | |
23637 | PyObject * obj1 = 0 ; | |
23638 | char *kwnames[] = { | |
23639 | (char *) "self",(char *) "ok", NULL | |
23640 | }; | |
23641 | ||
23642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
23643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23645 | arg2 = (bool) SWIG_AsBool(obj1); | |
23646 | if (PyErr_Occurred()) SWIG_fail; | |
23647 | { | |
23648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23649 | (arg1)->SetOk(arg2); | |
23650 | ||
23651 | wxPyEndAllowThreads(__tstate); | |
23652 | if (PyErr_Occurred()) SWIG_fail; | |
23653 | } | |
23654 | Py_INCREF(Py_None); resultobj = Py_None; | |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23662 | PyObject *resultobj; | |
23663 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23664 | bool arg2 ; | |
23665 | bool result; | |
23666 | PyObject * obj0 = 0 ; | |
23667 | PyObject * obj1 = 0 ; | |
23668 | char *kwnames[] = { | |
23669 | (char *) "self",(char *) "interactive", NULL | |
23670 | }; | |
23671 | ||
23672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
23673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23675 | arg2 = (bool) SWIG_AsBool(obj1); | |
23676 | if (PyErr_Occurred()) SWIG_fail; | |
23677 | { | |
23678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23679 | result = (bool)(arg1)->Print(arg2); | |
23680 | ||
23681 | wxPyEndAllowThreads(__tstate); | |
23682 | if (PyErr_Occurred()) SWIG_fail; | |
23683 | } | |
23684 | { | |
23685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23686 | } | |
23687 | return resultobj; | |
23688 | fail: | |
23689 | return NULL; | |
23690 | } | |
23691 | ||
23692 | ||
23693 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23694 | PyObject *resultobj; | |
23695 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23696 | PyObject * obj0 = 0 ; | |
23697 | char *kwnames[] = { | |
23698 | (char *) "self", NULL | |
23699 | }; | |
23700 | ||
23701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
23702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23704 | { | |
23705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23706 | (arg1)->DetermineScaling(); | |
23707 | ||
23708 | wxPyEndAllowThreads(__tstate); | |
23709 | if (PyErr_Occurred()) SWIG_fail; | |
23710 | } | |
23711 | Py_INCREF(Py_None); resultobj = Py_None; | |
23712 | return resultobj; | |
23713 | fail: | |
23714 | return NULL; | |
23715 | } | |
23716 | ||
23717 | ||
23718 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
23719 | PyObject *obj; | |
23720 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23721 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
23722 | Py_INCREF(obj); | |
23723 | return Py_BuildValue((char *)""); | |
23724 | } | |
23725 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23726 | PyObject *resultobj; | |
23727 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23728 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23729 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23730 | wxPyPrintPreview *result; | |
23731 | PyObject * obj0 = 0 ; | |
23732 | PyObject * obj1 = 0 ; | |
23733 | PyObject * obj2 = 0 ; | |
23734 | ||
23735 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23740 | if (obj2) { | |
23741 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23743 | } | |
23744 | { | |
23745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23746 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23747 | ||
23748 | wxPyEndAllowThreads(__tstate); | |
23749 | if (PyErr_Occurred()) SWIG_fail; | |
23750 | } | |
23751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23752 | return resultobj; | |
23753 | fail: | |
23754 | return NULL; | |
23755 | } | |
23756 | ||
23757 | ||
23758 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23759 | PyObject *resultobj; | |
23760 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23761 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23762 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23763 | wxPyPrintPreview *result; | |
23764 | PyObject * obj0 = 0 ; | |
23765 | PyObject * obj1 = 0 ; | |
23766 | PyObject * obj2 = 0 ; | |
23767 | ||
23768 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23773 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23775 | { | |
23776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23777 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
23778 | ||
23779 | wxPyEndAllowThreads(__tstate); | |
23780 | if (PyErr_Occurred()) SWIG_fail; | |
23781 | } | |
23782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
23783 | return resultobj; | |
23784 | fail: | |
23785 | return NULL; | |
23786 | } | |
23787 | ||
23788 | ||
23789 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
23790 | int argc; | |
23791 | PyObject *argv[4]; | |
23792 | int ii; | |
23793 | ||
23794 | argc = PyObject_Length(args); | |
23795 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23796 | argv[ii] = PyTuple_GetItem(args,ii); | |
23797 | } | |
23798 | if ((argc >= 2) && (argc <= 3)) { | |
23799 | int _v; | |
23800 | { | |
23801 | void *ptr; | |
23802 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23803 | _v = 0; | |
23804 | PyErr_Clear(); | |
23805 | } else { | |
23806 | _v = 1; | |
23807 | } | |
23808 | } | |
23809 | if (_v) { | |
23810 | { | |
23811 | void *ptr; | |
23812 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23813 | _v = 0; | |
23814 | PyErr_Clear(); | |
23815 | } else { | |
23816 | _v = 1; | |
23817 | } | |
23818 | } | |
23819 | if (_v) { | |
23820 | if (argc <= 2) { | |
23821 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23822 | } | |
23823 | { | |
23824 | void *ptr; | |
23825 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23826 | _v = 0; | |
23827 | PyErr_Clear(); | |
23828 | } else { | |
23829 | _v = 1; | |
23830 | } | |
23831 | } | |
23832 | if (_v) { | |
23833 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
23834 | } | |
23835 | } | |
23836 | } | |
23837 | } | |
23838 | if (argc == 3) { | |
23839 | int _v; | |
23840 | { | |
23841 | void *ptr; | |
23842 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23843 | _v = 0; | |
23844 | PyErr_Clear(); | |
23845 | } else { | |
23846 | _v = 1; | |
23847 | } | |
23848 | } | |
23849 | if (_v) { | |
23850 | { | |
23851 | void *ptr; | |
23852 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23853 | _v = 0; | |
23854 | PyErr_Clear(); | |
23855 | } else { | |
23856 | _v = 1; | |
23857 | } | |
23858 | } | |
23859 | if (_v) { | |
23860 | { | |
23861 | void *ptr; | |
23862 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23863 | _v = 0; | |
23864 | PyErr_Clear(); | |
23865 | } else { | |
23866 | _v = 1; | |
23867 | } | |
23868 | } | |
23869 | if (_v) { | |
23870 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
23871 | } | |
23872 | } | |
23873 | } | |
23874 | } | |
23875 | ||
23876 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
23877 | return NULL; | |
23878 | } | |
23879 | ||
23880 | ||
23881 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23882 | PyObject *resultobj; | |
23883 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23884 | PyObject *arg2 = (PyObject *) 0 ; | |
23885 | PyObject *arg3 = (PyObject *) 0 ; | |
23886 | PyObject * obj0 = 0 ; | |
23887 | PyObject * obj1 = 0 ; | |
23888 | PyObject * obj2 = 0 ; | |
23889 | char *kwnames[] = { | |
23890 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23891 | }; | |
23892 | ||
23893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23896 | arg2 = obj1; | |
23897 | arg3 = obj2; | |
23898 | { | |
23899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23900 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23901 | ||
23902 | wxPyEndAllowThreads(__tstate); | |
23903 | if (PyErr_Occurred()) SWIG_fail; | |
23904 | } | |
23905 | Py_INCREF(Py_None); resultobj = Py_None; | |
23906 | return resultobj; | |
23907 | fail: | |
23908 | return NULL; | |
23909 | } | |
23910 | ||
23911 | ||
23912 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23913 | PyObject *resultobj; | |
23914 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23915 | int arg2 ; | |
23916 | bool result; | |
23917 | PyObject * obj0 = 0 ; | |
23918 | PyObject * obj1 = 0 ; | |
23919 | char *kwnames[] = { | |
23920 | (char *) "self",(char *) "pageNum", NULL | |
23921 | }; | |
23922 | ||
23923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23926 | arg2 = (int) SWIG_AsInt(obj1); | |
23927 | if (PyErr_Occurred()) SWIG_fail; | |
23928 | { | |
23929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23930 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
23931 | ||
23932 | wxPyEndAllowThreads(__tstate); | |
23933 | if (PyErr_Occurred()) SWIG_fail; | |
23934 | } | |
23935 | { | |
23936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23937 | } | |
23938 | return resultobj; | |
23939 | fail: | |
23940 | return NULL; | |
23941 | } | |
23942 | ||
23943 | ||
23944 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23945 | PyObject *resultobj; | |
23946 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23947 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23948 | wxDC *arg3 = 0 ; | |
23949 | bool result; | |
23950 | PyObject * obj0 = 0 ; | |
23951 | PyObject * obj1 = 0 ; | |
23952 | PyObject * obj2 = 0 ; | |
23953 | char *kwnames[] = { | |
23954 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23955 | }; | |
23956 | ||
23957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
23959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23962 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23963 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23964 | SWIG_fail; | |
23965 | if (arg3 == NULL) { | |
23966 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23967 | SWIG_fail; | |
23968 | } | |
23969 | { | |
23970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23971 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
23972 | ||
23973 | wxPyEndAllowThreads(__tstate); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | } | |
23976 | { | |
23977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23978 | } | |
23979 | return resultobj; | |
23980 | fail: | |
23981 | return NULL; | |
23982 | } | |
23983 | ||
23984 | ||
23985 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23986 | PyObject *resultobj; | |
23987 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
23988 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23989 | wxDC *arg3 = 0 ; | |
23990 | bool result; | |
23991 | PyObject * obj0 = 0 ; | |
23992 | PyObject * obj1 = 0 ; | |
23993 | PyObject * obj2 = 0 ; | |
23994 | char *kwnames[] = { | |
23995 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23996 | }; | |
23997 | ||
23998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24003 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24005 | SWIG_fail; | |
24006 | if (arg3 == NULL) { | |
24007 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24008 | SWIG_fail; | |
24009 | } | |
24010 | { | |
24011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24012 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
24013 | ||
24014 | wxPyEndAllowThreads(__tstate); | |
24015 | if (PyErr_Occurred()) SWIG_fail; | |
24016 | } | |
24017 | { | |
24018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24019 | } | |
24020 | return resultobj; | |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24027 | PyObject *resultobj; | |
24028 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24029 | int arg2 ; | |
24030 | bool result; | |
24031 | PyObject * obj0 = 0 ; | |
24032 | PyObject * obj1 = 0 ; | |
24033 | char *kwnames[] = { | |
24034 | (char *) "self",(char *) "pageNum", NULL | |
24035 | }; | |
24036 | ||
24037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
24038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24040 | arg2 = (int) SWIG_AsInt(obj1); | |
24041 | if (PyErr_Occurred()) SWIG_fail; | |
24042 | { | |
24043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24044 | result = (bool)(arg1)->base_RenderPage(arg2); | |
24045 | ||
24046 | wxPyEndAllowThreads(__tstate); | |
24047 | if (PyErr_Occurred()) SWIG_fail; | |
24048 | } | |
24049 | { | |
24050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24051 | } | |
24052 | return resultobj; | |
24053 | fail: | |
24054 | return NULL; | |
24055 | } | |
24056 | ||
24057 | ||
24058 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24059 | PyObject *resultobj; | |
24060 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24061 | int arg2 ; | |
24062 | PyObject * obj0 = 0 ; | |
24063 | PyObject * obj1 = 0 ; | |
24064 | char *kwnames[] = { | |
24065 | (char *) "self",(char *) "percent", NULL | |
24066 | }; | |
24067 | ||
24068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
24069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24071 | arg2 = (int) SWIG_AsInt(obj1); | |
24072 | if (PyErr_Occurred()) SWIG_fail; | |
24073 | { | |
24074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24075 | (arg1)->base_SetZoom(arg2); | |
24076 | ||
24077 | wxPyEndAllowThreads(__tstate); | |
24078 | if (PyErr_Occurred()) SWIG_fail; | |
24079 | } | |
24080 | Py_INCREF(Py_None); resultobj = Py_None; | |
24081 | return resultobj; | |
24082 | fail: | |
24083 | return NULL; | |
24084 | } | |
24085 | ||
24086 | ||
24087 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24088 | PyObject *resultobj; | |
24089 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24090 | bool arg2 ; | |
24091 | bool result; | |
24092 | PyObject * obj0 = 0 ; | |
24093 | PyObject * obj1 = 0 ; | |
24094 | char *kwnames[] = { | |
24095 | (char *) "self",(char *) "interactive", NULL | |
24096 | }; | |
24097 | ||
24098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
24099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24101 | arg2 = (bool) SWIG_AsBool(obj1); | |
24102 | if (PyErr_Occurred()) SWIG_fail; | |
24103 | { | |
24104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24105 | result = (bool)(arg1)->base_Print(arg2); | |
24106 | ||
24107 | wxPyEndAllowThreads(__tstate); | |
24108 | if (PyErr_Occurred()) SWIG_fail; | |
24109 | } | |
24110 | { | |
24111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24112 | } | |
24113 | return resultobj; | |
24114 | fail: | |
24115 | return NULL; | |
24116 | } | |
24117 | ||
24118 | ||
24119 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24120 | PyObject *resultobj; | |
24121 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24122 | PyObject * obj0 = 0 ; | |
24123 | char *kwnames[] = { | |
24124 | (char *) "self", NULL | |
24125 | }; | |
24126 | ||
24127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
24128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24130 | { | |
24131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24132 | (arg1)->base_DetermineScaling(); | |
24133 | ||
24134 | wxPyEndAllowThreads(__tstate); | |
24135 | if (PyErr_Occurred()) SWIG_fail; | |
24136 | } | |
24137 | Py_INCREF(Py_None); resultobj = Py_None; | |
24138 | return resultobj; | |
24139 | fail: | |
24140 | return NULL; | |
24141 | } | |
24142 | ||
24143 | ||
24144 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24145 | PyObject *obj; | |
24146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24147 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
24148 | Py_INCREF(obj); | |
24149 | return Py_BuildValue((char *)""); | |
24150 | } | |
24151 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24152 | PyObject *resultobj; | |
24153 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24154 | wxFrame *arg2 = (wxFrame *) 0 ; | |
24155 | wxString *arg3 = 0 ; | |
24156 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24157 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24158 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24159 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24160 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
24161 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
24162 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24163 | wxPyPreviewFrame *result; | |
24164 | bool temp3 = False ; | |
24165 | wxPoint temp4 ; | |
24166 | wxSize temp5 ; | |
24167 | bool temp7 = False ; | |
24168 | PyObject * obj0 = 0 ; | |
24169 | PyObject * obj1 = 0 ; | |
24170 | PyObject * obj2 = 0 ; | |
24171 | PyObject * obj3 = 0 ; | |
24172 | PyObject * obj4 = 0 ; | |
24173 | PyObject * obj5 = 0 ; | |
24174 | PyObject * obj6 = 0 ; | |
24175 | char *kwnames[] = { | |
24176 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24177 | }; | |
24178 | ||
24179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
24183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24184 | { | |
24185 | arg3 = wxString_in_helper(obj2); | |
24186 | if (arg3 == NULL) SWIG_fail; | |
24187 | temp3 = True; | |
24188 | } | |
24189 | if (obj3) { | |
24190 | { | |
24191 | arg4 = &temp4; | |
24192 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24193 | } | |
24194 | } | |
24195 | if (obj4) { | |
24196 | { | |
24197 | arg5 = &temp5; | |
24198 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24199 | } | |
24200 | } | |
24201 | if (obj5) { | |
24202 | arg6 = (long) SWIG_AsLong(obj5); | |
24203 | if (PyErr_Occurred()) SWIG_fail; | |
24204 | } | |
24205 | if (obj6) { | |
24206 | { | |
24207 | arg7 = wxString_in_helper(obj6); | |
24208 | if (arg7 == NULL) SWIG_fail; | |
24209 | temp7 = True; | |
24210 | } | |
24211 | } | |
24212 | { | |
24213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24214 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24215 | ||
24216 | wxPyEndAllowThreads(__tstate); | |
24217 | if (PyErr_Occurred()) SWIG_fail; | |
24218 | } | |
24219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
24220 | { | |
24221 | if (temp3) | |
24222 | delete arg3; | |
24223 | } | |
24224 | { | |
24225 | if (temp7) | |
24226 | delete arg7; | |
24227 | } | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | { | |
24231 | if (temp3) | |
24232 | delete arg3; | |
24233 | } | |
24234 | { | |
24235 | if (temp7) | |
24236 | delete arg7; | |
24237 | } | |
24238 | return NULL; | |
24239 | } | |
24240 | ||
24241 | ||
24242 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24243 | PyObject *resultobj; | |
24244 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24245 | PyObject *arg2 = (PyObject *) 0 ; | |
24246 | PyObject *arg3 = (PyObject *) 0 ; | |
24247 | PyObject * obj0 = 0 ; | |
24248 | PyObject * obj1 = 0 ; | |
24249 | PyObject * obj2 = 0 ; | |
24250 | char *kwnames[] = { | |
24251 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24252 | }; | |
24253 | ||
24254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24257 | arg2 = obj1; | |
24258 | arg3 = obj2; | |
24259 | { | |
24260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24261 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24262 | ||
24263 | wxPyEndAllowThreads(__tstate); | |
24264 | if (PyErr_Occurred()) SWIG_fail; | |
24265 | } | |
24266 | Py_INCREF(Py_None); resultobj = Py_None; | |
24267 | return resultobj; | |
24268 | fail: | |
24269 | return NULL; | |
24270 | } | |
24271 | ||
24272 | ||
24273 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24274 | PyObject *resultobj; | |
24275 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24276 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24277 | PyObject * obj0 = 0 ; | |
24278 | PyObject * obj1 = 0 ; | |
24279 | char *kwnames[] = { | |
24280 | (char *) "self",(char *) "canvas", NULL | |
24281 | }; | |
24282 | ||
24283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
24284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24286 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24288 | { | |
24289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24290 | (arg1)->SetPreviewCanvas(arg2); | |
24291 | ||
24292 | wxPyEndAllowThreads(__tstate); | |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
24294 | } | |
24295 | Py_INCREF(Py_None); resultobj = Py_None; | |
24296 | return resultobj; | |
24297 | fail: | |
24298 | return NULL; | |
24299 | } | |
24300 | ||
24301 | ||
24302 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24303 | PyObject *resultobj; | |
24304 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24305 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
24306 | PyObject * obj0 = 0 ; | |
24307 | PyObject * obj1 = 0 ; | |
24308 | char *kwnames[] = { | |
24309 | (char *) "self",(char *) "bar", NULL | |
24310 | }; | |
24311 | ||
24312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
24313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
24316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24317 | { | |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | (arg1)->SetControlBar(arg2); | |
24320 | ||
24321 | wxPyEndAllowThreads(__tstate); | |
24322 | if (PyErr_Occurred()) SWIG_fail; | |
24323 | } | |
24324 | Py_INCREF(Py_None); resultobj = Py_None; | |
24325 | return resultobj; | |
24326 | fail: | |
24327 | return NULL; | |
24328 | } | |
24329 | ||
24330 | ||
24331 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24332 | PyObject *resultobj; | |
24333 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24334 | PyObject * obj0 = 0 ; | |
24335 | char *kwnames[] = { | |
24336 | (char *) "self", NULL | |
24337 | }; | |
24338 | ||
24339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
24340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24342 | { | |
24343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24344 | (arg1)->base_Initialize(); | |
24345 | ||
24346 | wxPyEndAllowThreads(__tstate); | |
24347 | if (PyErr_Occurred()) SWIG_fail; | |
24348 | } | |
24349 | Py_INCREF(Py_None); resultobj = Py_None; | |
24350 | return resultobj; | |
24351 | fail: | |
24352 | return NULL; | |
24353 | } | |
24354 | ||
24355 | ||
24356 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24357 | PyObject *resultobj; | |
24358 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24359 | PyObject * obj0 = 0 ; | |
24360 | char *kwnames[] = { | |
24361 | (char *) "self", NULL | |
24362 | }; | |
24363 | ||
24364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
24365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24367 | { | |
24368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24369 | (arg1)->base_CreateCanvas(); | |
24370 | ||
24371 | wxPyEndAllowThreads(__tstate); | |
24372 | if (PyErr_Occurred()) SWIG_fail; | |
24373 | } | |
24374 | Py_INCREF(Py_None); resultobj = Py_None; | |
24375 | return resultobj; | |
24376 | fail: | |
24377 | return NULL; | |
24378 | } | |
24379 | ||
24380 | ||
24381 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24382 | PyObject *resultobj; | |
24383 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24384 | PyObject * obj0 = 0 ; | |
24385 | char *kwnames[] = { | |
24386 | (char *) "self", NULL | |
24387 | }; | |
24388 | ||
24389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24392 | { | |
24393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24394 | (arg1)->base_CreateControlBar(); | |
24395 | ||
24396 | wxPyEndAllowThreads(__tstate); | |
24397 | if (PyErr_Occurred()) SWIG_fail; | |
24398 | } | |
24399 | Py_INCREF(Py_None); resultobj = Py_None; | |
24400 | return resultobj; | |
24401 | fail: | |
24402 | return NULL; | |
24403 | } | |
24404 | ||
24405 | ||
24406 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24407 | PyObject *obj; | |
24408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24409 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24410 | Py_INCREF(obj); | |
24411 | return Py_BuildValue((char *)""); | |
24412 | } | |
24413 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24414 | PyObject *resultobj; | |
24415 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24416 | long arg2 ; | |
24417 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24418 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24419 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24420 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24421 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24422 | long arg6 = (long) 0 ; | |
24423 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24424 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24425 | wxPyPreviewControlBar *result; | |
24426 | wxPoint temp4 ; | |
24427 | wxSize temp5 ; | |
24428 | bool temp7 = False ; | |
24429 | PyObject * obj0 = 0 ; | |
24430 | PyObject * obj1 = 0 ; | |
24431 | PyObject * obj2 = 0 ; | |
24432 | PyObject * obj3 = 0 ; | |
24433 | PyObject * obj4 = 0 ; | |
24434 | PyObject * obj5 = 0 ; | |
24435 | PyObject * obj6 = 0 ; | |
24436 | char *kwnames[] = { | |
24437 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24438 | }; | |
24439 | ||
24440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24443 | arg2 = (long) SWIG_AsLong(obj1); | |
24444 | if (PyErr_Occurred()) SWIG_fail; | |
24445 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24447 | if (obj3) { | |
24448 | { | |
24449 | arg4 = &temp4; | |
24450 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24451 | } | |
24452 | } | |
24453 | if (obj4) { | |
24454 | { | |
24455 | arg5 = &temp5; | |
24456 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24457 | } | |
24458 | } | |
24459 | if (obj5) { | |
24460 | arg6 = (long) SWIG_AsLong(obj5); | |
24461 | if (PyErr_Occurred()) SWIG_fail; | |
24462 | } | |
24463 | if (obj6) { | |
24464 | { | |
24465 | arg7 = wxString_in_helper(obj6); | |
24466 | if (arg7 == NULL) SWIG_fail; | |
24467 | temp7 = True; | |
24468 | } | |
24469 | } | |
24470 | { | |
24471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24472 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24473 | ||
24474 | wxPyEndAllowThreads(__tstate); | |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
24476 | } | |
24477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
24478 | { | |
24479 | if (temp7) | |
24480 | delete arg7; | |
24481 | } | |
24482 | return resultobj; | |
24483 | fail: | |
24484 | { | |
24485 | if (temp7) | |
24486 | delete arg7; | |
24487 | } | |
24488 | return NULL; | |
24489 | } | |
24490 | ||
24491 | ||
24492 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24493 | PyObject *resultobj; | |
24494 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24495 | PyObject *arg2 = (PyObject *) 0 ; | |
24496 | PyObject *arg3 = (PyObject *) 0 ; | |
24497 | PyObject * obj0 = 0 ; | |
24498 | PyObject * obj1 = 0 ; | |
24499 | PyObject * obj2 = 0 ; | |
24500 | char *kwnames[] = { | |
24501 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24502 | }; | |
24503 | ||
24504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24507 | arg2 = obj1; | |
24508 | arg3 = obj2; | |
24509 | { | |
24510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24511 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24512 | ||
24513 | wxPyEndAllowThreads(__tstate); | |
24514 | if (PyErr_Occurred()) SWIG_fail; | |
24515 | } | |
24516 | Py_INCREF(Py_None); resultobj = Py_None; | |
24517 | return resultobj; | |
24518 | fail: | |
24519 | return NULL; | |
24520 | } | |
24521 | ||
24522 | ||
24523 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24524 | PyObject *resultobj; | |
24525 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24526 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
24527 | PyObject * obj0 = 0 ; | |
24528 | PyObject * obj1 = 0 ; | |
24529 | char *kwnames[] = { | |
24530 | (char *) "self",(char *) "preview", NULL | |
24531 | }; | |
24532 | ||
24533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
24534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
24537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24538 | { | |
24539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24540 | (arg1)->SetPrintPreview(arg2); | |
24541 | ||
24542 | wxPyEndAllowThreads(__tstate); | |
24543 | if (PyErr_Occurred()) SWIG_fail; | |
24544 | } | |
24545 | Py_INCREF(Py_None); resultobj = Py_None; | |
24546 | return resultobj; | |
24547 | fail: | |
24548 | return NULL; | |
24549 | } | |
24550 | ||
24551 | ||
24552 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24553 | PyObject *resultobj; | |
24554 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24555 | PyObject * obj0 = 0 ; | |
24556 | char *kwnames[] = { | |
24557 | (char *) "self", NULL | |
24558 | }; | |
24559 | ||
24560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
24561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24563 | { | |
24564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24565 | (arg1)->base_CreateButtons(); | |
24566 | ||
24567 | wxPyEndAllowThreads(__tstate); | |
24568 | if (PyErr_Occurred()) SWIG_fail; | |
24569 | } | |
24570 | Py_INCREF(Py_None); resultobj = Py_None; | |
24571 | return resultobj; | |
24572 | fail: | |
24573 | return NULL; | |
24574 | } | |
24575 | ||
24576 | ||
24577 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24578 | PyObject *resultobj; | |
24579 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24580 | int arg2 ; | |
24581 | PyObject * obj0 = 0 ; | |
24582 | PyObject * obj1 = 0 ; | |
24583 | char *kwnames[] = { | |
24584 | (char *) "self",(char *) "zoom", NULL | |
24585 | }; | |
24586 | ||
24587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
24588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24590 | arg2 = (int) SWIG_AsInt(obj1); | |
24591 | if (PyErr_Occurred()) SWIG_fail; | |
24592 | { | |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | (arg1)->base_SetZoomControl(arg2); | |
24595 | ||
24596 | wxPyEndAllowThreads(__tstate); | |
24597 | if (PyErr_Occurred()) SWIG_fail; | |
24598 | } | |
24599 | Py_INCREF(Py_None); resultobj = Py_None; | |
24600 | return resultobj; | |
24601 | fail: | |
24602 | return NULL; | |
24603 | } | |
24604 | ||
24605 | ||
24606 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
24607 | PyObject *obj; | |
24608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24609 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
24610 | Py_INCREF(obj); | |
24611 | return Py_BuildValue((char *)""); | |
24612 | } | |
24613 | static PyMethodDef SwigMethods[] = { | |
24614 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
24615 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24618 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24619 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, |
24620 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24622 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
24627 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
24629 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
24630 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
24633 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
24635 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
24636 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24642 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24643 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, |
24644 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
24658 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24676 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24680 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24681 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, |
24682 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24692 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24693 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, |
24694 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
24698 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
24702 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
24707 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
24716 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24721 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24722 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, |
24723 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
24728 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
24736 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
24737 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
24740 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24747 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 24749 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24750 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, |
24751 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
24758 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
24778 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
24781 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
24784 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
24789 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
24790 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24791 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24794 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24798 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
24801 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
24807 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
24816 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
24822 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
24827 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
24833 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
24837 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
24855 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
24879 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
24881 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 24887 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
24888 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, |
24889 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
24898 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
24900 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
24909 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
24912 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
24919 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
24937 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
24941 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
24946 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
24950 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
24966 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
24969 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
24970 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
24971 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24974 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
24975 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
24976 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
24984 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
24993 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
24999 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"MDIParentFrame_SetToolBar", (PyCFunction) _wrap_MDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
25014 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
25021 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
25025 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25031 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25044 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, | |
25049 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25060 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, | |
25073 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25080 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, | |
25097 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
25143 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25161 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25171 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25172 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25173 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
25175 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
25179 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
25180 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
25213 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
25218 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
25229 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25235 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25236 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25238 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
25246 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
25252 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
25254 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
25260 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25261 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
25267 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
25269 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
25270 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
25271 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25273 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25275 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25276 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25277 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25278 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25279 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25281 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25283 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25285 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25287 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
25292 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
25294 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
25295 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25296 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25297 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25299 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
25302 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
25304 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25305 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25306 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25307 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25310 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
25312 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25313 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25314 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
25316 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25317 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
25318 | { NULL, NULL } | |
25319 | }; | |
25320 | ||
25321 | ||
25322 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25323 | ||
25324 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
25325 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25326 | } | |
25327 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25328 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25329 | } | |
25330 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25331 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25332 | } | |
25333 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25334 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25335 | } | |
25336 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25337 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25338 | } | |
25339 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25340 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25341 | } | |
25342 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25343 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25344 | } | |
25345 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
25346 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25347 | } | |
25348 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25349 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25350 | } | |
25351 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25352 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25353 | } | |
25354 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
25355 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25356 | } | |
25357 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25358 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25359 | } | |
25360 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25361 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25362 | } | |
25363 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
25364 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25365 | } | |
25366 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25367 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25368 | } | |
25369 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25370 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25371 | } | |
25372 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25373 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25374 | } | |
25375 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25376 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25377 | } | |
25378 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25379 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25380 | } | |
25381 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25382 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25383 | } | |
25384 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25385 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25386 | } | |
25387 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25388 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25389 | } | |
25390 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25391 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25392 | } | |
25393 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25394 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25395 | } | |
25396 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25397 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25398 | } | |
25399 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25400 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25401 | } | |
25402 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25403 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25404 | } | |
25405 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25406 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25407 | } | |
25408 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25409 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25410 | } | |
25411 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25412 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25413 | } | |
25414 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25415 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25416 | } | |
25417 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25418 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25419 | } | |
25420 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25421 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25422 | } | |
25423 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25424 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25425 | } | |
25426 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25427 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25428 | } | |
25429 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25430 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25431 | } | |
25432 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25433 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25434 | } | |
25435 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25436 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25437 | } | |
25438 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25439 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25440 | } | |
25441 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25442 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25443 | } | |
25444 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25445 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25446 | } | |
25447 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
25448 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25449 | } | |
25450 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
25451 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25452 | } | |
25453 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
25454 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25455 | } | |
25456 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
25457 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25458 | } | |
25459 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
25460 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25461 | } | |
25462 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25463 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25464 | } | |
25465 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25466 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25467 | } | |
25468 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25469 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25470 | } | |
25471 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25472 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25473 | } | |
25474 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
25475 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25476 | } | |
25477 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25478 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25479 | } | |
25480 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25481 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25482 | } | |
25483 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
25484 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25485 | } | |
25486 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
25487 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25488 | } | |
25489 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
25490 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25491 | } | |
25492 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
25493 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25494 | } | |
25495 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
25496 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
25497 | } | |
25498 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
25499 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
25500 | } | |
25501 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25502 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25503 | } | |
25504 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
25505 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
25506 | } | |
25507 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
25508 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25509 | } | |
25510 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
25511 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
25512 | } | |
25513 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
25514 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25515 | } | |
25516 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
25517 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
25518 | } | |
25519 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
25520 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
25521 | } | |
25522 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
25523 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
25524 | } | |
25525 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25526 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25527 | } | |
25528 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25529 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25530 | } | |
25531 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
25532 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
25533 | } | |
25534 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
25535 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
25536 | } | |
25537 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25538 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25539 | } | |
25540 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25541 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25542 | } | |
25543 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25544 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25545 | } | |
25546 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
25547 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25548 | } | |
25549 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
25550 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25551 | } | |
25552 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25553 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25554 | } | |
25555 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25556 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25557 | } | |
25558 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
25559 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
25560 | } | |
25561 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
25562 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25563 | } | |
25564 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
25565 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25566 | } | |
25567 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
25568 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25569 | } | |
25570 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25571 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25572 | } | |
25573 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
25574 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25575 | } | |
25576 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
25577 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25578 | } | |
25579 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
25580 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25581 | } | |
25582 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
25583 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25584 | } | |
25585 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
25586 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25587 | } | |
25588 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
25589 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25590 | } | |
25591 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
25592 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25593 | } | |
25594 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
25595 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25596 | } | |
25597 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
25598 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25599 | } | |
25600 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
25601 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25602 | } | |
25603 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
25604 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25605 | } | |
25606 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
25607 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
25608 | } | |
25609 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
25610 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
25611 | } | |
25612 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
25613 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
25614 | } | |
25615 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
25616 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25617 | } | |
25618 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
25619 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
25620 | } | |
25621 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
25622 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
25623 | } | |
25624 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
25625 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
25626 | } | |
25627 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25628 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25629 | } | |
25630 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
25631 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25632 | } | |
25633 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
25634 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
25635 | } | |
25636 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
25637 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25638 | } | |
25639 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25640 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25641 | } | |
25642 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25643 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25644 | } | |
25645 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25646 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25647 | } | |
25648 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25649 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25650 | } | |
25651 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25652 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25653 | } | |
25654 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25655 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25656 | } | |
25657 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25658 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25659 | } | |
25660 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25661 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25662 | } | |
25663 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25664 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25665 | } | |
25666 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
25667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25668 | } | |
25669 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25670 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25671 | } | |
25672 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
25673 | return (void *)((wxObject *) ((wxFontData *) x)); | |
25674 | } | |
25675 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
25676 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
25677 | } | |
25678 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25679 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25680 | } | |
25681 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25682 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25683 | } | |
25684 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25685 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25686 | } | |
25687 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
25688 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
25689 | } | |
25690 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
25691 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
25692 | } | |
25693 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
25694 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25695 | } | |
25696 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25697 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25698 | } | |
25699 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25700 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25701 | } | |
25702 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25703 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25704 | } | |
25705 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25706 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25707 | } | |
25708 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25709 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25710 | } | |
25711 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25712 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25713 | } | |
25714 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
25715 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
25716 | } | |
25717 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25719 | } | |
25720 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25721 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25722 | } | |
25723 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
25724 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25725 | } | |
25726 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25727 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25728 | } | |
25729 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
25730 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
25731 | } | |
25732 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25733 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25734 | } | |
25735 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
25736 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
25737 | } | |
25738 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
25739 | return (void *)((wxObject *) ((wxColourData *) x)); | |
25740 | } | |
25741 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25742 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25743 | } | |
25744 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25745 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25746 | } | |
25747 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
25748 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
25749 | } | |
25750 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
25751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25752 | } | |
25753 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
25754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25755 | } | |
25756 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
25757 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25758 | } | |
25759 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
25760 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25761 | } | |
25762 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
25763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25764 | } | |
25765 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
25766 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25767 | } | |
25768 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
25769 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25770 | } | |
25771 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
25772 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25773 | } | |
25774 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25775 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25776 | } | |
25777 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
25778 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
25779 | } | |
25780 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25781 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25782 | } | |
25783 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25784 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25785 | } | |
25786 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25787 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25788 | } | |
25789 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25790 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25791 | } | |
25792 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25793 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25794 | } | |
25795 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25796 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25797 | } | |
25798 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25799 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25800 | } | |
25801 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25802 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25803 | } | |
25804 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25805 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25806 | } | |
25807 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25808 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25809 | } | |
25810 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25811 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25812 | } | |
25813 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25814 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25815 | } | |
25816 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25817 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25818 | } | |
25819 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25820 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25821 | } | |
25822 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25823 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25824 | } | |
25825 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25826 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25827 | } | |
25828 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25829 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25830 | } | |
25831 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25832 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25833 | } | |
25834 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25835 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25836 | } | |
25837 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25838 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25839 | } | |
25840 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25841 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25842 | } | |
25843 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25844 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25845 | } | |
25846 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
25847 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25848 | } | |
25849 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
25850 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
25851 | } | |
25852 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
25853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
25854 | } | |
25855 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
25856 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25857 | } | |
25858 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
25859 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25860 | } | |
25861 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25862 | return (void *)((wxObject *) ((wxImage *) x)); | |
25863 | } | |
25864 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
25865 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
25866 | } | |
25867 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
25868 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
25869 | } | |
25870 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25871 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25872 | } | |
25873 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
25874 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25875 | } | |
25876 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
25877 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
25878 | } | |
25879 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
25880 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
25881 | } | |
25882 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25883 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25884 | } | |
25885 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25886 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25887 | } | |
25888 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25889 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25890 | } | |
25891 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25892 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25893 | } | |
25894 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25895 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25896 | } | |
25897 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25898 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25899 | } | |
25900 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
25901 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
25902 | } | |
25903 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
25904 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
25905 | } | |
25906 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
25907 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
25908 | } | |
25909 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
25910 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
25911 | } | |
25912 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
25913 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
25914 | } | |
25915 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
25916 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
25917 | } | |
25918 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
25919 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
25920 | } | |
25921 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
25922 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25923 | } | |
25924 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
25925 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
25926 | } | |
25927 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
25928 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25929 | } | |
25930 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
25931 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
25932 | } | |
25933 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
25934 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
25935 | } | |
25936 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
25937 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
25938 | } | |
25939 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
25940 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
25941 | } | |
25942 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
25943 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
25944 | } | |
25945 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
25946 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
25947 | } | |
25948 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
25949 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
25950 | } | |
25951 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
25952 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
25953 | } | |
25954 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
25955 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
25956 | } | |
25957 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
25958 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
25959 | } | |
25960 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
25961 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
25962 | } | |
25963 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
25964 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
25965 | } | |
25966 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25967 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25968 | } | |
25969 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25970 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25971 | } | |
25972 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25973 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25974 | } | |
25975 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25976 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25977 | } | |
25978 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25979 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25980 | } | |
25981 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25982 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25983 | } | |
25984 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25985 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25986 | } | |
25987 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25988 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25989 | } | |
25990 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25991 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25992 | } | |
25993 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
25994 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
25995 | } | |
25996 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
25997 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
25998 | } | |
25999 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26000 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26001 | } | |
26002 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26003 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26004 | } | |
26005 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26006 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26007 | } | |
26008 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26009 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26010 | } | |
26011 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
26012 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
26013 | } | |
26014 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
26015 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
26016 | } | |
26017 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26018 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26019 | } | |
26020 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26021 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26022 | } | |
26023 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26024 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26025 | } | |
26026 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26027 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26028 | } | |
26029 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
26030 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26031 | } | |
26032 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
26033 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26034 | } | |
26035 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
26036 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26037 | } | |
26038 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
26039 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26040 | } | |
26041 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
26042 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
26043 | } | |
26044 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
26045 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
26046 | } | |
26047 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
26048 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
26049 | } | |
26050 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
26051 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
26052 | } | |
26053 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
26054 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
26055 | } | |
26056 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
26057 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
26058 | } | |
26059 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
26060 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
26061 | } | |
26062 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
26063 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
26064 | } | |
26065 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
26066 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
26067 | } | |
26068 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
26069 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
26070 | } | |
26071 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
26072 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
26073 | } | |
26074 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
26075 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
26076 | } | |
26077 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
26078 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
26079 | } | |
26080 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
26081 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
26082 | } | |
26083 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
26084 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
26085 | } | |
26086 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26087 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26088 | } | |
26089 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26090 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26091 | } | |
26092 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
26093 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
26094 | } | |
26095 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26096 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
26097 | } | |
26098 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26099 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26100 | } | |
26101 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
26102 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26103 | } | |
26104 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
26105 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26106 | } | |
26107 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
26108 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
26109 | } | |
26110 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26111 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26112 | } | |
26113 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
26114 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26115 | } | |
26116 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
26117 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26118 | } | |
26119 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
26120 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26121 | } | |
26122 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
26123 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26124 | } | |
26125 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
26126 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26127 | } | |
26128 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
26129 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26130 | } | |
26131 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
26132 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26133 | } | |
26134 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
26135 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
26136 | } | |
26137 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
26138 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
26139 | } | |
26140 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
26141 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
26142 | } | |
26143 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
26144 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26145 | } | |
26146 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
26147 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26148 | } | |
26149 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
26150 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26151 | } | |
26152 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
26153 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
26154 | } | |
26155 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
26156 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26157 | } | |
26158 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
26159 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
26160 | } | |
26161 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
26162 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
26163 | } | |
26164 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
26165 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
26166 | } | |
26167 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
26168 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
26169 | } | |
26170 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
26171 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
26172 | } | |
26173 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
26174 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26175 | } | |
26176 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26177 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26178 | } | |
26179 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
26180 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26181 | } | |
26182 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
26183 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26184 | } | |
26185 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
26186 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26187 | } | |
26188 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26189 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26190 | } | |
26191 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
26192 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
26193 | } | |
26194 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
26195 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26196 | } | |
26197 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
26198 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26199 | } | |
26200 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
26201 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26202 | } | |
26203 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
26204 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
26205 | } | |
26206 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
26207 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26208 | } | |
26209 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
26210 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
26211 | } | |
26212 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
26213 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26214 | } | |
26215 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
26216 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26217 | } | |
26218 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
26219 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26220 | } | |
26221 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
26222 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
26223 | } | |
26224 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
26225 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26226 | } | |
26227 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
26228 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26229 | } | |
26230 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
26231 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26232 | } | |
26233 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
26234 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26235 | } | |
26236 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
26237 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26238 | } | |
26239 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
26240 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26241 | } | |
26242 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
26243 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
26244 | } | |
26245 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
26246 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
26247 | } | |
26248 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
26249 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
26250 | } | |
26251 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
26252 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
26253 | } | |
26254 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
26255 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
26256 | } | |
26257 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
26258 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
26259 | } | |
26260 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
26261 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26262 | } | |
26263 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
26264 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26265 | } | |
26266 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
26267 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
26268 | } | |
26269 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
26270 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
26271 | } | |
26272 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
26273 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
26274 | } | |
26275 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
26276 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
26277 | } | |
26278 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
26279 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26280 | } | |
26281 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
26282 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26283 | } | |
26284 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
26285 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26286 | } | |
26287 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
26288 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26289 | } | |
26290 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
26291 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
26292 | } | |
26293 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
26294 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26295 | } | |
26296 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
26297 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
26298 | } | |
26299 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
26300 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26301 | } | |
26302 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
26303 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26304 | } | |
26305 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
26306 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
26307 | } | |
26308 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
26309 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26310 | } | |
26311 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
26312 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26313 | } | |
26314 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
26315 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26316 | } | |
26317 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
26318 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26319 | } | |
26320 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
26321 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26322 | } | |
26323 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
26324 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26325 | } | |
26326 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
26327 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26328 | } | |
26329 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
26330 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26331 | } | |
26332 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
26333 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
26334 | } | |
26335 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
26336 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26337 | } | |
26338 | 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}}; | |
26339 | 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}}; | |
26340 | 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}}; | |
26341 | 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}}; | |
26342 | 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 |
26343 | 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}}; |
26344 | 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 | 26345 | 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 |
26346 | 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}}; |
26347 | 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}}; | |
26348 | 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}}; | |
26349 | 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}}; | |
26350 | 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}}; | |
26351 | 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}}; | |
26352 | 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}}; | |
26353 | 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}}; | |
26354 | 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}}; | |
26355 | 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}}; | |
26356 | 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}}; | |
26357 | 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}}; | |
26358 | 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 | 26359 | 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 |
26360 | 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}}; |
26361 | 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}}; | |
26362 | 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}}; | |
26363 | 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}}; | |
26364 | 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}}; | |
26365 | 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}}; | |
26366 | 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}}; | |
26367 | 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}}; | |
26368 | 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}}; | |
26369 | 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}}; | |
26370 | 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}}; | |
26371 | 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}}; | |
26372 | 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}}; | |
26373 | 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}}; | |
26374 | 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_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_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26375 | 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}}; | |
26376 | 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}}; | |
26377 | 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}}; | |
26378 | 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}}; | |
26379 | 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}}; | |
26380 | 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}}; | |
26381 | 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_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}}; | |
26382 | 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}}; | |
26383 | 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}}; | |
26384 | 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}}; | |
26385 | 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}}; | |
26386 | 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}}; | |
26387 | 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}}; | |
26388 | 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_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_wxTipWindow", _p_wxTipWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPanel", _p_wxPanelTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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}}; | |
26389 | 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}}; | |
26390 | 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}}; | |
26391 | 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}}; | |
26392 | 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}}; | |
26393 | 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}}; | |
26394 | 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}}; | |
26395 | 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}}; | |
f20a2e1f | 26396 | 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}}; |
d55e5bfc RD |
26397 | 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}}; |
26398 | static swig_type_info _swigt__p_wxPyPopupTransientWindow[] = {{"_p_wxPyPopupTransientWindow", 0, "wxPyPopupTransientWindow *", 0, 0, 0, 0},{"_p_wxPyPopupTransientWindow", 0, 0, 0, 0, 0, 0},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPyPopupTransientWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26399 | 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},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPopupWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26400 | 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}}; | |
26401 | 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_wxDirDialog", _p_wxDirDialogTo_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_wxFontDialog", _p_wxFontDialogTo_p_wxTopLevelWindow, 0, 0, 0, 0, 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_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}}; | |
26402 | 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_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_wxTipWindow", _p_wxTipWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
26403 | 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}}; | |
d55e5bfc RD |
26404 | 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}}; |
26405 | 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}}; | |
26406 | 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}}; | |
26407 | 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}}; | |
26408 | 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}}; | |
26409 | 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}}; | |
26410 | 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}}; | |
26411 | 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}}; | |
26412 | 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}}; | |
26413 | 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}}; | |
26414 | 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}}; | |
26415 | 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}}; | |
c24da6d6 | 26416 | 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 |
26417 | 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}}; |
26418 | 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}}; | |
26419 | 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}}; | |
26420 | 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}}; | |
26421 | 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}}; | |
26422 | 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}}; | |
26423 | 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}}; | |
26424 | 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}}; | |
26425 | ||
26426 | static swig_type_info *swig_types_initial[] = { | |
26427 | _swigt__p_wxQueryLayoutInfoEvent, | |
26428 | _swigt__p_wxPreviewFrame, | |
26429 | _swigt__p_wxPyPreviewFrame, | |
26430 | _swigt__p_wxPyPanel, | |
26431 | _swigt__p_wxMenu, | |
d55e5bfc RD |
26432 | _swigt__p_wxFontData, |
26433 | _swigt__p_wxEvent, | |
f20a2e1f | 26434 | _swigt__p_wxPrintData, |
d55e5bfc RD |
26435 | _swigt__p_wxTaskBarIcon, |
26436 | _swigt__p_wxIconBundle, | |
26437 | _swigt__p_wxLayoutAlgorithm, | |
26438 | _swigt__p_wxFindDialogEvent, | |
26439 | _swigt__p_wxPreviewCanvas, | |
26440 | _swigt__p_wxFont, | |
26441 | _swigt__p_wxSplitterEvent, | |
26442 | _swigt__p_wxRegion, | |
26443 | _swigt__p_wxFindReplaceData, | |
26444 | _swigt__p_int, | |
26445 | _swigt__p_wxSize, | |
26446 | _swigt__p_wxDC, | |
26447 | _swigt__p_wxIcon, | |
f20a2e1f | 26448 | _swigt__p_wxVisualAttributes, |
d55e5bfc RD |
26449 | _swigt__p_wxMDIChildFrame, |
26450 | _swigt__p_wxColourData, | |
26451 | _swigt__p_wxNotifyEvent, | |
26452 | _swigt__p_wxPyWindow, | |
26453 | _swigt__p_wxSplashScreen, | |
26454 | _swigt__p_wxFindReplaceDialog, | |
26455 | _swigt__p_wxProgressDialog, | |
26456 | _swigt__p_wxMessageDialog, | |
26457 | _swigt__p_wxTextEntryDialog, | |
26458 | _swigt__p_wxSingleChoiceDialog, | |
26459 | _swigt__p_wxMultiChoiceDialog, | |
26460 | _swigt__p_wxFileDialog, | |
26461 | _swigt__p_wxPrinter, | |
26462 | _swigt__p_wxArrayInt, | |
26463 | _swigt__p_wxEvtHandler, | |
26464 | _swigt__p_wxCalculateLayoutEvent, | |
26465 | _swigt__p_wxPyHtmlListBox, | |
26466 | _swigt__p_wxPyVListBox, | |
26467 | _swigt__p_wxRect, | |
26468 | _swigt__p_char, | |
26469 | _swigt__p_wxMiniFrame, | |
26470 | _swigt__p_wxFrame, | |
26471 | _swigt__p_wxPyPrintout, | |
26472 | _swigt__p_wxTaskBarIconEvent, | |
26473 | _swigt__p_wxScrollWinEvent, | |
26474 | _swigt__p_wxStatusBar, | |
26475 | _swigt__p_wxMDIParentFrame, | |
26476 | _swigt__p_wxPoint, | |
26477 | _swigt__p_wxObject, | |
26478 | _swigt__p_wxOutputStream, | |
26479 | _swigt__p_unsigned_long, | |
26480 | _swigt__p_wxPyScrolledWindow, | |
26481 | _swigt__p_wxMDIClientWindow, | |
26482 | _swigt__p_wxTipWindow, | |
26483 | _swigt__p_wxSashLayoutWindow, | |
26484 | _swigt__p_wxSplitterWindow, | |
f20a2e1f | 26485 | _swigt__p_wxSplashScreenWindow, |
d55e5bfc RD |
26486 | _swigt__p_wxPyVScrolledWindow, |
26487 | _swigt__p_wxPyPopupTransientWindow, | |
26488 | _swigt__p_wxPopupWindow, | |
26489 | _swigt__p_wxSashWindow, | |
26490 | _swigt__p_wxTopLevelWindow, | |
26491 | _swigt__p_wxWindow, | |
26492 | _swigt__p_wxScrolledWindow, | |
d55e5bfc RD |
26493 | _swigt__p_wxMenuBar, |
26494 | _swigt__p_wxPrintPreview, | |
26495 | _swigt__p_wxSashEvent, | |
26496 | _swigt__p_wxString, | |
26497 | _swigt__p_wxPyPrintPreview, | |
26498 | _swigt__p_wxFontDialog, | |
26499 | _swigt__p_wxDirDialog, | |
26500 | _swigt__p_wxColourDialog, | |
26501 | _swigt__p_wxDialog, | |
26502 | _swigt__p_wxPanel, | |
26503 | _swigt__p_wxPageSetupDialog, | |
26504 | _swigt__p_wxPrintDialog, | |
c24da6d6 | 26505 | _swigt__p_wxFileSystem, |
d55e5bfc RD |
26506 | _swigt__p_wxBitmap, |
26507 | _swigt__p_wxCommandEvent, | |
26508 | _swigt__p_wxPreviewControlBar, | |
26509 | _swigt__p_wxPyPreviewControlBar, | |
26510 | _swigt__p_wxColour, | |
26511 | _swigt__p_wxToolBar, | |
26512 | _swigt__p_wxPageSetupDialogData, | |
26513 | _swigt__p_wxPrintDialogData, | |
26514 | 0 | |
26515 | }; | |
26516 | ||
26517 | ||
26518 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26519 | ||
26520 | static swig_const_info swig_const_table[] = { | |
26521 | {0}}; | |
26522 | ||
26523 | #ifdef __cplusplus | |
26524 | } | |
26525 | #endif | |
26526 | ||
26527 | #ifdef __cplusplus | |
26528 | extern "C" | |
26529 | #endif | |
26530 | SWIGEXPORT(void) SWIG_init(void) { | |
26531 | static PyObject *SWIG_globals = 0; | |
26532 | static int typeinit = 0; | |
26533 | PyObject *m, *d; | |
26534 | int i; | |
26535 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26536 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26537 | d = PyModule_GetDict(m); | |
26538 | ||
26539 | if (!typeinit) { | |
26540 | for (i = 0; swig_types_initial[i]; i++) { | |
26541 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26542 | } | |
26543 | typeinit = 1; | |
26544 | } | |
26545 | SWIG_InstallConstants(d,swig_const_table); | |
26546 | ||
26547 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26548 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
26549 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
26550 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
26551 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
26552 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
26553 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
26554 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
26555 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
26556 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
26557 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
26558 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
26559 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
26560 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
26561 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
26562 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
26563 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
26564 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
26565 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
26566 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
26567 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
26568 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
26569 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
26570 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
26571 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
26572 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
26573 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
26574 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
26575 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
26576 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
26577 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
26578 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
26579 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
26580 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
26581 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
26582 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
26583 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
26584 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
26585 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
26586 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
26587 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
26588 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
26589 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
26590 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
26591 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
26592 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
26593 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
26594 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
26595 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
26596 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
26597 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
26598 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
26599 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
26600 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
26601 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
26602 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
26603 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
26604 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
26605 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
26606 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
26607 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
26608 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
26609 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
26610 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
26611 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
26612 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
26613 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
26614 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
26615 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
26616 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
26617 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
26618 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
26619 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
26620 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
26621 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
26622 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
26623 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
26624 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
26625 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
26626 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
26627 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
26628 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
26629 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
26630 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
26631 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
26632 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
26633 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
26634 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
26635 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
26636 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
26637 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
26638 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
26639 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
26640 | ||
26641 | // Map renamed classes back to their common name for OOR | |
26642 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
26643 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
26644 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
26645 | ||
26646 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
26647 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
26648 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
26649 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
26650 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
26651 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
26652 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
26653 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26654 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
26655 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
26656 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26657 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
26658 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
26659 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
26660 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
26661 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
26662 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
26663 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
26664 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
26665 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
26666 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
26667 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
26668 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
26669 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
26670 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
26671 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
26672 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
26673 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
26674 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
26675 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
26676 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
26677 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
26678 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
26679 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
26680 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
26681 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
26682 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
26683 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
26684 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
26685 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
26686 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
26687 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
26688 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
26689 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
26690 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
26691 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
26692 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
26693 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
26694 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
26695 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
26696 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
26697 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
26698 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
26699 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
26700 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
26701 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
26702 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
26703 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
26704 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
26705 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
26706 | ||
26707 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
26708 | ||
26709 | } | |
26710 |