]>
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] | |
f5b96ee1 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] | |
09c21d3b RD |
261 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[52] |
262 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[53] | |
263 | #define SWIGTYPE_p_wxTipWindow swig_types[54] | |
264 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[55] | |
265 | #define SWIGTYPE_p_wxSplitterWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxPopupWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxSashWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxScrolledWindow swig_types[64] | |
274 | #define SWIGTYPE_p_wxMenuBar swig_types[65] | |
275 | #define SWIGTYPE_p_wxPrintPreview swig_types[66] | |
276 | #define SWIGTYPE_p_wxSashEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxString swig_types[68] | |
278 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[69] | |
279 | #define SWIGTYPE_p_wxFontDialog swig_types[70] | |
280 | #define SWIGTYPE_p_wxDirDialog swig_types[71] | |
281 | #define SWIGTYPE_p_wxColourDialog swig_types[72] | |
282 | #define SWIGTYPE_p_wxDialog swig_types[73] | |
283 | #define SWIGTYPE_p_wxPanel swig_types[74] | |
284 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[75] | |
285 | #define SWIGTYPE_p_wxPrintDialog swig_types[76] | |
286 | #define SWIGTYPE_p_wxFileSystem swig_types[77] | |
287 | #define SWIGTYPE_p_wxBitmap swig_types[78] | |
288 | #define SWIGTYPE_p_wxCommandEvent swig_types[79] | |
289 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[80] | |
290 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxColour swig_types[82] | |
292 | #define SWIGTYPE_p_wxToolBar swig_types[83] | |
293 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[84] | |
294 | #define SWIGTYPE_p_wxPrintDialogData swig_types[85] | |
295 | static swig_type_info *swig_types[87]; | |
d55e5bfc RD |
296 | |
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
301 | @(target):= _windows_.so | |
302 | ------------------------------------------------*/ | |
303 | #define SWIG_init init_windows_ | |
304 | ||
305 | #define SWIG_name "_windows_" | |
306 | ||
307 | /* Auxiliar swig macros */ | |
308 | ||
309 | #ifdef __cplusplus | |
310 | #define SWIGSTATICINLINE(a) static inline a | |
311 | #define SWIGSTATIC(a) static a | |
312 | #define swig_new_array(type, size) (new type[(size)]) | |
313 | #define swig_delete_array(cptr) delete[] cptr | |
314 | #define swig_const_cast(type,a) const_cast<type>(a) | |
315 | #define swig_static_cast(type,a) static_cast<type>(a) | |
316 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
317 | ||
318 | #ifdef HAVE_NUMERIC_CAST | |
319 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
320 | #else | |
321 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
322 | #endif | |
323 | ||
324 | #else /* C case */ | |
325 | ||
326 | #define SWIGSTATICINLINE(a) static a | |
327 | #define SWIGSTATIC(a) static a | |
328 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
329 | #define swig_delete_array(cptr) free((char*)cptr) | |
330 | #define swig_const_cast(type,a) (type)(a) | |
331 | #define swig_static_cast(type,a) (type)(a) | |
332 | #define swig_reinterpret_cast(type,a) (type)(a) | |
333 | #define swig_numeric_cast(type,a) (type)(a) | |
334 | ||
335 | #endif /* __cplusplus */ | |
336 | ||
337 | ||
338 | #define SWIG_FromSignedChar PyInt_FromLong | |
339 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
340 | #define SWIG_FromShort PyInt_FromLong | |
341 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
342 | #define SWIG_FromInt PyInt_FromLong | |
343 | #define SWIG_FromLong PyInt_FromLong | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | #define SWIG_FromFloat PyFloat_FromDouble | |
347 | #define SWIG_FromDouble PyFloat_FromDouble | |
348 | ||
349 | ||
350 | #include "wx/wxPython/wxPython.h" | |
351 | #include "wx/wxPython/pyclasses.h" | |
352 | ||
353 | ||
354 | static const wxString wxPyEmptyString(wxEmptyString); | |
355 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
356 | ||
357 | ||
358 | ||
359 | #include <limits.h> | |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
389 | if (PyNumber_Check(obj)) | |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
398 | } | |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
404 | { | |
405 | return swig_numeric_cast(int, | |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
408 | } | |
409 | #else | |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
412 | ||
413 | ||
414 | SWIGSTATICINLINE(int) | |
415 | SWIG_CheckInt(PyObject* obj) | |
416 | { | |
417 | SWIG_AsInt(obj); | |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
424 | } | |
425 | ||
426 | ||
427 | SWIGSTATICINLINE(int) | |
428 | SWIG_CheckLong(PyObject* obj) | |
429 | { | |
430 | SWIG_AsLong(obj); | |
431 | if (PyErr_Occurred()) { | |
432 | PyErr_Clear(); | |
433 | return 0; | |
434 | } else { | |
435 | return 1; | |
436 | } | |
437 | } | |
438 | ||
439 | ||
440 | SWIGSTATICINLINE(bool) | |
441 | SWIG_AsBool(PyObject *obj) | |
442 | { | |
443 | return PyObject_IsTrue(obj) ? true : false; | |
444 | } | |
445 | ||
446 | ||
447 | SWIGSTATICINLINE(int) | |
448 | SWIG_CheckBool(PyObject* obj) | |
449 | { | |
450 | SWIG_AsBool(obj); | |
451 | if (PyErr_Occurred()) { | |
452 | PyErr_Clear(); | |
453 | return 0; | |
454 | } else { | |
455 | return 1; | |
456 | } | |
457 | } | |
458 | ||
459 | ||
460 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
461 | PyObject* o2; | |
462 | PyObject* o3; | |
463 | ||
464 | if (!target) { | |
465 | target = o; | |
466 | } else if (target == Py_None) { | |
467 | Py_DECREF(Py_None); | |
468 | target = o; | |
469 | } else { | |
470 | if (!PyTuple_Check(target)) { | |
471 | o2 = target; | |
472 | target = PyTuple_New(1); | |
473 | PyTuple_SetItem(target, 0, o2); | |
474 | } | |
475 | o3 = PyTuple_New(1); | |
476 | PyTuple_SetItem(o3, 0, o); | |
477 | ||
478 | o2 = target; | |
479 | target = PySequence_Concat(o2, o3); | |
480 | Py_DECREF(o2); | |
481 | Py_DECREF(o3); | |
482 | } | |
483 | return target; | |
484 | } | |
485 | ||
486 | ||
487 | SWIGSTATICINLINE(double) | |
488 | SWIG_AsDouble(PyObject *obj) | |
489 | { | |
490 | if (PyNumber_Check(obj)) | |
491 | return PyFloat_AsDouble(obj); | |
492 | else { | |
493 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
494 | obj->ob_type->tp_name); | |
495 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
496 | Py_DECREF(errmsg); | |
497 | return 0; | |
498 | } | |
499 | } | |
500 | ||
501 | ||
502 | SWIGSTATICINLINE(int) | |
503 | SWIG_CheckDouble(PyObject* obj) | |
504 | { | |
505 | SWIG_AsDouble(obj); | |
506 | if (PyErr_Occurred()) { | |
507 | PyErr_Clear(); | |
508 | return 0; | |
509 | } else { | |
510 | return 1; | |
511 | } | |
512 | } | |
513 | ||
514 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
515 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
516 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
517 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
518 | ||
519 | ||
520 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ | |
521 | wxRect r; | |
522 | self->GetFieldRect(i, r); | |
523 | return r; | |
524 | } | |
525 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
526 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
527 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
528 | ||
529 | #include <wx/popupwin.h> | |
530 | ||
531 | ||
532 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
533 | { | |
534 | public: | |
535 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
536 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
537 | : wxPopupTransientWindow(parent, style) {} | |
538 | ||
539 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
540 | DEC_PYCALLBACK__(OnDismiss); | |
541 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
542 | PYPRIVATE; | |
543 | }; | |
544 | ||
545 | ||
546 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
547 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
548 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
549 | ||
550 | ||
551 | #include <wx/tipwin.h> | |
552 | ||
553 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
554 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
555 | } | |
556 | ||
557 | #include <wx/tipwin.h> | |
558 | ||
559 | ||
560 | #include <wx/vscroll.h> | |
561 | ||
562 | ||
563 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
564 | { | |
565 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
566 | public: | |
567 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
568 | ||
569 | wxPyVScrolledWindow(wxWindow *parent, | |
570 | wxWindowID id = wxID_ANY, | |
571 | const wxPoint& pos = wxDefaultPosition, | |
572 | const wxSize& size = wxDefaultSize, | |
573 | long style = 0, | |
574 | const wxString& name = wxPyPanelNameStr) | |
575 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
576 | {} | |
577 | ||
578 | // Overridable virtuals | |
579 | ||
580 | // this function must be overridden in the derived class and it should | |
581 | // return the height of the given line in pixels | |
582 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
583 | ||
584 | ||
585 | // this function doesn't have to be overridden but it may be useful to do | |
586 | // it if calculating the lines heights is a relatively expensive operation | |
587 | // as it gives the user code a possibility to calculate several of them at | |
588 | // once | |
589 | // | |
590 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
591 | // shouldn't rely on the latter being called for all lines in the interval | |
592 | // specified here. It is also possible that OnGetLineHeight() will be | |
593 | // called for the lines outside of this interval, so this is really just a | |
594 | // hint, not a promise. | |
595 | // | |
596 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
597 | // usual | |
598 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
599 | ||
600 | ||
601 | // when the number of lines changes, we try to estimate the total height | |
602 | // of all lines which is a rather expensive operation in terms of lines | |
603 | // access, so if the user code may estimate the average height | |
604 | // better/faster than we do, it should override this function to implement | |
605 | // its own logic | |
606 | // | |
607 | // this function should return the best guess for the total height it may | |
608 | // make | |
609 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
610 | ||
611 | ||
612 | // Also expose some other interesting protected methods | |
613 | ||
614 | ||
615 | // find the index of the line we need to show at the top of the window such | |
616 | // that the last (fully or partially) visible line is the given one | |
617 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
618 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
619 | ||
620 | // get the total height of the lines between lineMin (inclusive) and | |
621 | // lineMax (exclusive) | |
622 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
623 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
624 | ||
625 | ||
626 | PYPRIVATE; | |
627 | }; | |
628 | ||
629 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
630 | ||
631 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
632 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
633 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
634 | ||
635 | ||
636 | SWIGSTATICINLINE(unsigned long) | |
637 | SWIG_AsUnsignedLong(PyObject * obj) | |
638 | { | |
639 | if (PyLong_Check(obj)) { | |
640 | return PyLong_AsUnsignedLong(obj); | |
641 | } else { | |
642 | long i = SWIG_AsLong(obj); | |
643 | if ( !PyErr_Occurred() && (i < 0)) { | |
644 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
645 | } | |
646 | return i; | |
647 | } | |
648 | } | |
649 | ||
650 | ||
651 | SWIGSTATICINLINE(int) | |
652 | SWIG_CheckUnsignedLong(PyObject* obj) | |
653 | { | |
654 | SWIG_AsUnsignedLong(obj); | |
655 | if (PyErr_Occurred()) { | |
656 | PyErr_Clear(); | |
657 | return 0; | |
658 | } else { | |
659 | return 1; | |
660 | } | |
661 | } | |
662 | ||
663 | ||
664 | SWIGSTATICINLINE(PyObject* ) | |
665 | SWIG_FromUnsignedLong(unsigned long value) | |
666 | { | |
667 | return (value > LONG_MAX) ? | |
668 | PyLong_FromUnsignedLong(value) | |
669 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
670 | } | |
671 | ||
672 | ||
673 | #include <wx/vlbox.h> | |
674 | ||
675 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
676 | ||
677 | class wxPyVListBox : public wxVListBox | |
678 | { | |
679 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
680 | public: | |
681 | wxPyVListBox() : wxVListBox() {} | |
682 | ||
683 | wxPyVListBox(wxWindow *parent, | |
684 | wxWindowID id = wxID_ANY, | |
685 | const wxPoint& pos = wxDefaultPosition, | |
686 | const wxSize& size = wxDefaultSize, | |
687 | long style = 0, | |
688 | const wxString& name = wxPyVListBoxNameStr) | |
689 | : wxVListBox(parent, id, pos, size, style, name) | |
690 | {} | |
691 | ||
692 | // Overridable virtuals | |
693 | ||
694 | // the derived class must implement this function to actually draw the item | |
695 | // with the given index on the provided DC | |
696 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
697 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
698 | ||
699 | ||
700 | // the derived class must implement this method to return the height of the | |
701 | // specified item | |
702 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
703 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
704 | ||
705 | ||
706 | // this method may be used to draw separators between the lines; note that | |
707 | // the rectangle may be modified, typically to deflate it a bit before | |
708 | // passing to OnDrawItem() | |
709 | // | |
710 | // the base class version doesn't do anything | |
711 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
712 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
713 | ||
714 | ||
715 | // this method is used to draw the items background and, maybe, a border | |
716 | // around it | |
717 | // | |
718 | // the base class version implements a reasonable default behaviour which | |
719 | // consists in drawing the selected item with the standard background | |
720 | // colour and drawing a border around the item if it is either selected or | |
721 | // current | |
722 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
723 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
724 | ||
725 | ||
726 | PYPRIVATE; | |
727 | }; | |
728 | ||
729 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
730 | ||
731 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
732 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
733 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
734 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
735 | ||
736 | ||
09c21d3b RD |
737 | PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
738 | unsigned long cookie = 0; | |
739 | int selected = self->GetFirstSelected(cookie); | |
740 | bool blocked = wxPyBeginBlockThreads(); | |
741 | PyObject* tup = PyTuple_New(2); | |
742 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
743 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
744 | wxPyEndBlockThreads(blocked); | |
745 | return tup; | |
746 | } | |
747 | PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ | |
748 | int selected = self->GetNextSelected(cookie); | |
749 | bool blocked = wxPyBeginBlockThreads(); | |
750 | PyObject* tup = PyTuple_New(2); | |
751 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
752 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
753 | wxPyEndBlockThreads(blocked); | |
754 | return tup; | |
755 | } | |
d55e5bfc RD |
756 | |
757 | #include <wx/htmllbox.h> | |
758 | ||
759 | ||
760 | class wxPyHtmlListBox : public wxHtmlListBox | |
761 | { | |
762 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
763 | public: | |
764 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
765 | ||
766 | wxPyHtmlListBox(wxWindow *parent, | |
767 | wxWindowID id = wxID_ANY, | |
768 | const wxPoint& pos = wxDefaultPosition, | |
769 | const wxSize& size = wxDefaultSize, | |
770 | long style = 0, | |
771 | const wxString& name = wxPyVListBoxNameStr) | |
772 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
773 | {} | |
774 | ||
775 | // Overridable virtuals | |
776 | ||
777 | // this method must be implemented in the derived class and should return | |
778 | // the body (i.e. without <html>) of the HTML for the given item | |
779 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
780 | ||
781 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
782 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
783 | ||
784 | // TODO: | |
785 | // // this method allows to customize the selection appearance: it may be used | |
786 | // // to specify the colour of the text which normally has the given colour | |
787 | // // colFg when it is inside the selection | |
788 | // // | |
789 | // // by default, the original colour is not used at all and all text has the | |
790 | // // same (default for this system) colour inside selection | |
791 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
792 | ||
793 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
794 | // // background colour -- this is even more rarely used as you can change it | |
795 | // // globally using SetSelectionBackground() | |
796 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
797 | ||
798 | ||
799 | PYPRIVATE; | |
800 | }; | |
801 | ||
802 | ||
803 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
804 | ||
805 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
806 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
807 | ||
808 | ||
809 | ||
810 | ||
811 | ||
812 | #ifdef __WXMAC__ | |
813 | // implement dummy classes and such for wxMac | |
814 | ||
815 | class wxTaskBarIcon : public wxEvtHandler | |
816 | { | |
817 | public: | |
818 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
819 | }; | |
09c21d3b | 820 | |
d55e5bfc RD |
821 | |
822 | class wxTaskBarIconEvent : public wxEvent | |
823 | { | |
824 | public: | |
825 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
826 | { wxPyRaiseNotImplemented(); } | |
827 | virtual wxEvent* Clone() const { return NULL; } | |
828 | }; | |
829 | ||
830 | enum { | |
831 | wxEVT_TASKBAR_MOVE = 0, | |
832 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
833 | wxEVT_TASKBAR_LEFT_UP = 0, | |
834 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
835 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
836 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
837 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
838 | }; | |
09c21d3b RD |
839 | |
840 | ||
841 | #else | |
842 | // // Otherwise make a class that can virtualize CreatePopupMenu | |
843 | // class wxPyTaskBarIcon : public wxTaskBarIcon | |
844 | // { | |
845 | // DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon); | |
846 | // public: | |
847 | // wxPyTaskBarIcon() : wxTaskBarIcon() | |
848 | // {} | |
849 | ||
850 | // wxMenu* CreatePopupMenu() { | |
851 | // wxMenu *rval = NULL; | |
852 | // bool found; | |
853 | // bool blocked = wxPyBeginBlockThreads(); | |
854 | // if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { | |
855 | // PyObject* ro; | |
856 | // wxMenu* ptr; | |
857 | // ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
858 | // if (ro) { | |
859 | // if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
860 | // rval = ptr; | |
861 | // Py_DECREF(ro); | |
862 | // } | |
863 | // } | |
864 | // wxPyEndBlockThreads(blocked); | |
865 | // if (! found) | |
866 | // rval = wxTaskBarIcon::CreatePopupMenu(); | |
867 | // return rval; | |
868 | // } | |
869 | ||
870 | // PYPRIVATE; | |
871 | // }; | |
872 | ||
873 | // IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); | |
874 | ||
d55e5bfc RD |
875 | #endif |
876 | ||
877 | void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ | |
878 | ||
879 | self->RemoveIcon(); | |
880 | ||
881 | } | |
882 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
883 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
884 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
885 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
886 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
887 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
888 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
889 | wxArrayString arr; | |
890 | self->GetFilenames(arr); | |
891 | return wxArrayString2PyList_helper(arr); | |
892 | } | |
893 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
894 | wxArrayString arr; | |
895 | self->GetPaths(arr); | |
896 | return wxArrayString2PyList_helper(arr); | |
897 | } | |
898 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
899 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
900 | } | |
901 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
902 | return new wxSingleChoiceDialog(parent, message, caption, | |
903 | choices, choices_array, NULL, style, pos); | |
904 | } | |
905 | ||
906 | #include <wx/mdi.h> | |
907 | ||
908 | // C++ version of Python aware wxWindow | |
909 | class wxPyWindow : public wxWindow | |
910 | { | |
911 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
912 | public: | |
913 | wxPyWindow() : wxWindow() {} | |
914 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
915 | const wxPoint& pos = wxDefaultPosition, | |
916 | const wxSize& size = wxDefaultSize, | |
917 | long style = 0, | |
918 | const wxString& name = wxPyPanelNameStr) | |
919 | : wxWindow(parent, id, pos, size, style, name) {} | |
920 | ||
caef1a4d | 921 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc RD |
922 | |
923 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
924 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
925 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
926 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
927 | ||
928 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
929 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
930 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
931 | ||
932 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
933 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
934 | ||
935 | DEC_PYCALLBACK__(InitDialog); | |
936 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
937 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
938 | DEC_PYCALLBACK_BOOL_(Validate); | |
939 | ||
940 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
941 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
942 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
943 | ||
944 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
945 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
946 | ||
caef1a4d | 947 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 948 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 949 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
950 | |
951 | PYPRIVATE; | |
952 | }; | |
953 | ||
954 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
955 | ||
956 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
957 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
958 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
959 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
960 | ||
961 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
962 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
963 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
964 | ||
965 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
966 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
967 | ||
968 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
969 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
970 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
971 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
972 | ||
973 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
974 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
975 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
976 | ||
977 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
978 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
979 | ||
caef1a4d | 980 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
d55e5bfc | 981 | IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); |
caef1a4d | 982 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
d55e5bfc RD |
983 | |
984 | ||
985 | // C++ version of Python aware wxPanel | |
986 | class wxPyPanel : public wxPanel | |
987 | { | |
988 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
989 | public: | |
990 | wxPyPanel() : wxPanel() {} | |
991 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
992 | const wxPoint& pos = wxDefaultPosition, | |
993 | const wxSize& size = wxDefaultSize, | |
994 | long style = 0, | |
995 | const wxString& name = wxPyPanelNameStr) | |
996 | : wxPanel(parent, id, pos, size, style, name) {} | |
997 | ||
caef1a4d RD |
998 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
999 | ||
d55e5bfc RD |
1000 | |
1001 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1002 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1003 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1004 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1005 | ||
1006 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1007 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1008 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1009 | ||
1010 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1011 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1012 | ||
1013 | DEC_PYCALLBACK__(InitDialog); | |
1014 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1015 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1016 | DEC_PYCALLBACK_BOOL_(Validate); | |
1017 | ||
1018 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1019 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1020 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1021 | ||
1022 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1023 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1024 | ||
caef1a4d | 1025 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1026 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 1027 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1028 | |
1029 | PYPRIVATE; | |
1030 | }; | |
1031 | ||
1032 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
1033 | ||
1034 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
1035 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
1036 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
1037 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
1038 | ||
1039 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
1040 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
1041 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
1042 | ||
1043 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
1044 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
1045 | ||
1046 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
1047 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
1048 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
1049 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
1050 | ||
1051 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
1052 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
1053 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
1054 | ||
1055 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
1056 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
1057 | ||
caef1a4d | 1058 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
d55e5bfc | 1059 | IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); |
caef1a4d | 1060 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 1061 | |
caef1a4d | 1062 | |
d55e5bfc RD |
1063 | // C++ version of Python aware wxScrolledWindow |
1064 | class wxPyScrolledWindow : public wxScrolledWindow | |
1065 | { | |
1066 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
1067 | public: | |
1068 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
1069 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
1070 | const wxPoint& pos = wxDefaultPosition, | |
1071 | const wxSize& size = wxDefaultSize, | |
1072 | long style = 0, | |
1073 | const wxString& name = wxPyPanelNameStr) | |
1074 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
1075 | ||
caef1a4d | 1076 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
d55e5bfc RD |
1077 | |
1078 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1079 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1080 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1081 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1082 | ||
1083 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1084 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1085 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1086 | ||
1087 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1088 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1089 | ||
1090 | DEC_PYCALLBACK__(InitDialog); | |
1091 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1092 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1093 | DEC_PYCALLBACK_BOOL_(Validate); | |
1094 | ||
1095 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1096 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1097 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1098 | ||
1099 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1100 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1101 | ||
caef1a4d | 1102 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1103 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 1104 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1105 | |
1106 | PYPRIVATE; | |
1107 | }; | |
1108 | ||
1109 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
1110 | ||
1111 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
1112 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
1113 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
1114 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
1115 | ||
1116 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
1117 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
1118 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
1119 | ||
1120 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
1121 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
1122 | ||
1123 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
1124 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
1125 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
1126 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
1127 | ||
1128 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
1129 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
1130 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
1131 | ||
1132 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
1133 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
1134 | ||
caef1a4d | 1135 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
d55e5bfc | 1136 | IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); |
caef1a4d RD |
1137 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
1138 | ||
d55e5bfc RD |
1139 | |
1140 | ||
1141 | #include "wx/wxPython/printfw.h" | |
1142 | ||
1143 | ||
1144 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
1145 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1146 | ||
1147 | ||
1148 | ||
1149 | // Since this one would be tough and ugly to do with the Macros... | |
1150 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1151 | bool hadErr = False; | |
1152 | bool found; | |
1153 | ||
1154 | bool blocked = wxPyBeginBlockThreads(); | |
1155 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1156 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1157 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1158 | PyObject* val; | |
1159 | ||
1160 | val = PyTuple_GetItem(result, 0); | |
1161 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1162 | else hadErr = True; | |
1163 | ||
1164 | val = PyTuple_GetItem(result, 1); | |
1165 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1166 | else hadErr = True; | |
1167 | ||
1168 | val = PyTuple_GetItem(result, 2); | |
1169 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1170 | else hadErr = True; | |
1171 | ||
1172 | val = PyTuple_GetItem(result, 3); | |
1173 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1174 | else hadErr = True; | |
1175 | } | |
1176 | else | |
1177 | hadErr = True; | |
1178 | ||
1179 | if (hadErr) { | |
1180 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1181 | PyErr_Print(); | |
1182 | } | |
1183 | Py_DECREF(result); | |
1184 | } | |
1185 | wxPyEndBlockThreads(blocked); | |
1186 | if (! found) | |
1187 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1188 | } | |
1189 | ||
1190 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1191 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1192 | } | |
1193 | ||
1194 | ||
1195 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1196 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1197 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1198 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1199 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1200 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1201 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1202 | ||
1203 | ||
1204 | ||
1205 | ||
1206 | ||
1207 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1208 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1209 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1210 | ||
1211 | ||
1212 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1213 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1214 | bool rval=False; \ | |
1215 | bool found; \ | |
1216 | bool blocked = wxPyBeginBlockThreads(); \ | |
1217 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
412d302d RD |
1218 | PyObject* win = wxPyMake_wxObject(a,false); \ |
1219 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
d55e5bfc RD |
1220 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ |
1221 | Py_DECREF(win); \ | |
1222 | Py_DECREF(dc); \ | |
1223 | } \ | |
1224 | wxPyEndBlockThreads(blocked); \ | |
1225 | if (! found) \ | |
1226 | rval = PCLASS::CBNAME(a, b); \ | |
1227 | return rval; \ | |
1228 | } \ | |
1229 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1230 | return PCLASS::CBNAME(a, b); \ | |
1231 | } | |
1232 | ||
1233 | ||
1234 | ||
1235 | ||
1236 | class wxPyPrintPreview : public wxPrintPreview | |
1237 | { | |
1238 | DECLARE_CLASS(wxPyPrintPreview) | |
1239 | public: | |
1240 | wxPyPrintPreview(wxPyPrintout* printout, | |
1241 | wxPyPrintout* printoutForPrinting, | |
1242 | wxPrintDialogData* data=NULL) | |
1243 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1244 | {} | |
1245 | wxPyPrintPreview(wxPyPrintout* printout, | |
1246 | wxPyPrintout* printoutForPrinting, | |
1247 | wxPrintData* data=NULL) | |
1248 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1249 | {} | |
1250 | ||
1251 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1252 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1253 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1254 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1255 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1256 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1257 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1258 | ||
1259 | PYPRIVATE; | |
1260 | }; | |
1261 | ||
1262 | // Stupid renamed classes... Fix this in 2.5... | |
1263 | #if defined(__WXMSW__) | |
1264 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1265 | #elif defined(__WXMAC__) | |
1266 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1267 | #else | |
1268 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1269 | #endif | |
1270 | ||
1271 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1272 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1273 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1274 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1275 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1276 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1277 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1278 | ||
1279 | ||
1280 | class wxPyPreviewFrame : public wxPreviewFrame | |
1281 | { | |
1282 | DECLARE_CLASS(wxPyPreviewFrame); | |
1283 | public: | |
1284 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1285 | const wxString& title, | |
1286 | const wxPoint& pos = wxDefaultPosition, | |
1287 | const wxSize& size = wxDefaultSize, | |
1288 | long style = wxDEFAULT_FRAME_STYLE, | |
1289 | const wxString& name = wxPyFrameNameStr) | |
1290 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1291 | {} | |
1292 | ||
1293 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1294 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1295 | ||
1296 | DEC_PYCALLBACK_VOID_(Initialize); | |
1297 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1298 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1299 | ||
1300 | PYPRIVATE; | |
1301 | }; | |
1302 | ||
1303 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1304 | ||
1305 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1306 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1307 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1308 | ||
1309 | ||
1310 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1311 | { | |
1312 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1313 | public: | |
1314 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1315 | long buttons, | |
1316 | wxWindow *parent, | |
1317 | const wxPoint& pos = wxDefaultPosition, | |
1318 | const wxSize& size = wxDefaultSize, | |
1319 | long style = 0, | |
1320 | const wxString& name = wxPyPanelNameStr) | |
1321 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1322 | {} | |
1323 | ||
1324 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1325 | ||
1326 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1327 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1328 | ||
1329 | PYPRIVATE; | |
1330 | }; | |
1331 | ||
1332 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1333 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1334 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1335 | ||
1336 | #ifdef __cplusplus | |
1337 | extern "C" { | |
1338 | #endif | |
1339 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1340 | PyObject *resultobj; | |
1341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1342 | int arg2 = (int) (int)-1 ; | |
1343 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1344 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1345 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1346 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1347 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1348 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1349 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1350 | wxPanel *result; | |
1351 | wxPoint temp3 ; | |
1352 | wxSize temp4 ; | |
1353 | bool temp6 = False ; | |
1354 | PyObject * obj0 = 0 ; | |
1355 | PyObject * obj1 = 0 ; | |
1356 | PyObject * obj2 = 0 ; | |
1357 | PyObject * obj3 = 0 ; | |
1358 | PyObject * obj4 = 0 ; | |
1359 | PyObject * obj5 = 0 ; | |
1360 | char *kwnames[] = { | |
1361 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1362 | }; | |
1363 | ||
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1367 | if (obj1) { | |
1368 | arg2 = (int const) SWIG_AsInt(obj1); | |
1369 | if (PyErr_Occurred()) SWIG_fail; | |
1370 | } | |
1371 | if (obj2) { | |
1372 | { | |
1373 | arg3 = &temp3; | |
1374 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1375 | } | |
1376 | } | |
1377 | if (obj3) { | |
1378 | { | |
1379 | arg4 = &temp4; | |
1380 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1381 | } | |
1382 | } | |
1383 | if (obj4) { | |
1384 | arg5 = (long) SWIG_AsLong(obj4); | |
1385 | if (PyErr_Occurred()) SWIG_fail; | |
1386 | } | |
1387 | if (obj5) { | |
1388 | { | |
1389 | arg6 = wxString_in_helper(obj5); | |
1390 | if (arg6 == NULL) SWIG_fail; | |
1391 | temp6 = True; | |
1392 | } | |
1393 | } | |
1394 | { | |
0439c23b | 1395 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1397 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1398 | ||
1399 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1400 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1401 | } |
b0f7404b | 1402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); |
d55e5bfc RD |
1403 | { |
1404 | if (temp6) | |
1405 | delete arg6; | |
1406 | } | |
1407 | return resultobj; | |
1408 | fail: | |
1409 | { | |
1410 | if (temp6) | |
1411 | delete arg6; | |
1412 | } | |
1413 | return NULL; | |
1414 | } | |
1415 | ||
1416 | ||
1417 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1418 | PyObject *resultobj; | |
1419 | wxPanel *result; | |
1420 | char *kwnames[] = { | |
1421 | NULL | |
1422 | }; | |
1423 | ||
1424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1425 | { | |
0439c23b | 1426 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1428 | result = (wxPanel *)new wxPanel(); | |
1429 | ||
1430 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1431 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1432 | } |
b0f7404b | 1433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); |
d55e5bfc RD |
1434 | return resultobj; |
1435 | fail: | |
1436 | return NULL; | |
1437 | } | |
1438 | ||
1439 | ||
1440 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject *resultobj; | |
1442 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1443 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1444 | int arg3 = (int) (int)-1 ; | |
1445 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1446 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1447 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1448 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1449 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1450 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1451 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1452 | bool result; | |
1453 | wxPoint temp4 ; | |
1454 | wxSize temp5 ; | |
1455 | bool temp7 = False ; | |
1456 | PyObject * obj0 = 0 ; | |
1457 | PyObject * obj1 = 0 ; | |
1458 | PyObject * obj2 = 0 ; | |
1459 | PyObject * obj3 = 0 ; | |
1460 | PyObject * obj4 = 0 ; | |
1461 | PyObject * obj5 = 0 ; | |
1462 | PyObject * obj6 = 0 ; | |
1463 | char *kwnames[] = { | |
1464 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1465 | }; | |
1466 | ||
1467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1472 | if (obj2) { | |
1473 | arg3 = (int const) SWIG_AsInt(obj2); | |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
1475 | } | |
1476 | if (obj3) { | |
1477 | { | |
1478 | arg4 = &temp4; | |
1479 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1480 | } | |
1481 | } | |
1482 | if (obj4) { | |
1483 | { | |
1484 | arg5 = &temp5; | |
1485 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1486 | } | |
1487 | } | |
1488 | if (obj5) { | |
1489 | arg6 = (long) SWIG_AsLong(obj5); | |
1490 | if (PyErr_Occurred()) SWIG_fail; | |
1491 | } | |
1492 | if (obj6) { | |
1493 | { | |
1494 | arg7 = wxString_in_helper(obj6); | |
1495 | if (arg7 == NULL) SWIG_fail; | |
1496 | temp7 = True; | |
1497 | } | |
1498 | } | |
1499 | { | |
1500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1501 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1502 | ||
1503 | wxPyEndAllowThreads(__tstate); | |
1504 | if (PyErr_Occurred()) SWIG_fail; | |
1505 | } | |
1506 | { | |
1507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1508 | } | |
1509 | { | |
1510 | if (temp7) | |
1511 | delete arg7; | |
1512 | } | |
1513 | return resultobj; | |
1514 | fail: | |
1515 | { | |
1516 | if (temp7) | |
1517 | delete arg7; | |
1518 | } | |
1519 | return NULL; | |
1520 | } | |
1521 | ||
1522 | ||
1523 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1524 | PyObject *resultobj; | |
1525 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1526 | PyObject * obj0 = 0 ; | |
1527 | char *kwnames[] = { | |
1528 | (char *) "self", NULL | |
1529 | }; | |
1530 | ||
1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1534 | { | |
1535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1536 | (arg1)->InitDialog(); | |
1537 | ||
1538 | wxPyEndAllowThreads(__tstate); | |
1539 | if (PyErr_Occurred()) SWIG_fail; | |
1540 | } | |
1541 | Py_INCREF(Py_None); resultobj = Py_None; | |
1542 | return resultobj; | |
1543 | fail: | |
1544 | return NULL; | |
1545 | } | |
1546 | ||
1547 | ||
f20a2e1f RD |
1548 | static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1549 | PyObject *resultobj; | |
1550 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1551 | wxVisualAttributes result; | |
1552 | PyObject * obj0 = 0 ; | |
1553 | char *kwnames[] = { | |
1554 | (char *) "variant", NULL | |
1555 | }; | |
1556 | ||
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1558 | if (obj0) { | |
1559 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
1562 | { | |
0439c23b | 1563 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1565 | result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1566 | ||
1567 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1568 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1569 | } |
1570 | { | |
1571 | wxVisualAttributes * resultptr; | |
1572 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1574 | } | |
1575 | return resultobj; | |
1576 | fail: | |
1577 | return NULL; | |
1578 | } | |
1579 | ||
1580 | ||
d55e5bfc RD |
1581 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { |
1582 | PyObject *obj; | |
1583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1584 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1585 | Py_INCREF(obj); | |
1586 | return Py_BuildValue((char *)""); | |
1587 | } | |
1588 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject *resultobj; | |
1590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1591 | int arg2 = (int) (int)-1 ; | |
1592 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1593 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1594 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1595 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1596 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1597 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1598 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1599 | wxScrolledWindow *result; | |
1600 | wxPoint temp3 ; | |
1601 | wxSize temp4 ; | |
1602 | bool temp6 = False ; | |
1603 | PyObject * obj0 = 0 ; | |
1604 | PyObject * obj1 = 0 ; | |
1605 | PyObject * obj2 = 0 ; | |
1606 | PyObject * obj3 = 0 ; | |
1607 | PyObject * obj4 = 0 ; | |
1608 | PyObject * obj5 = 0 ; | |
1609 | char *kwnames[] = { | |
1610 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1611 | }; | |
1612 | ||
1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1616 | if (obj1) { | |
1617 | arg2 = (int const) SWIG_AsInt(obj1); | |
1618 | if (PyErr_Occurred()) SWIG_fail; | |
1619 | } | |
1620 | if (obj2) { | |
1621 | { | |
1622 | arg3 = &temp3; | |
1623 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1624 | } | |
1625 | } | |
1626 | if (obj3) { | |
1627 | { | |
1628 | arg4 = &temp4; | |
1629 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1630 | } | |
1631 | } | |
1632 | if (obj4) { | |
1633 | arg5 = (long) SWIG_AsLong(obj4); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
1636 | if (obj5) { | |
1637 | { | |
1638 | arg6 = wxString_in_helper(obj5); | |
1639 | if (arg6 == NULL) SWIG_fail; | |
1640 | temp6 = True; | |
1641 | } | |
1642 | } | |
1643 | { | |
0439c23b | 1644 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1646 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1649 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1650 | } |
b0f7404b | 1651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); |
d55e5bfc RD |
1652 | { |
1653 | if (temp6) | |
1654 | delete arg6; | |
1655 | } | |
1656 | return resultobj; | |
1657 | fail: | |
1658 | { | |
1659 | if (temp6) | |
1660 | delete arg6; | |
1661 | } | |
1662 | return NULL; | |
1663 | } | |
1664 | ||
1665 | ||
1666 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject *resultobj; | |
1668 | wxScrolledWindow *result; | |
1669 | char *kwnames[] = { | |
1670 | NULL | |
1671 | }; | |
1672 | ||
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1674 | { | |
0439c23b | 1675 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1677 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1678 | ||
1679 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1680 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1681 | } |
b0f7404b | 1682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); |
d55e5bfc RD |
1683 | return resultobj; |
1684 | fail: | |
1685 | return NULL; | |
1686 | } | |
1687 | ||
1688 | ||
1689 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1690 | PyObject *resultobj; | |
1691 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1692 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1693 | int arg3 = (int) (int)-1 ; | |
1694 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1695 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1696 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1697 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1698 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1699 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1700 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1701 | bool result; | |
1702 | wxPoint temp4 ; | |
1703 | wxSize temp5 ; | |
1704 | bool temp7 = False ; | |
1705 | PyObject * obj0 = 0 ; | |
1706 | PyObject * obj1 = 0 ; | |
1707 | PyObject * obj2 = 0 ; | |
1708 | PyObject * obj3 = 0 ; | |
1709 | PyObject * obj4 = 0 ; | |
1710 | PyObject * obj5 = 0 ; | |
1711 | PyObject * obj6 = 0 ; | |
1712 | char *kwnames[] = { | |
1713 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1714 | }; | |
1715 | ||
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1721 | if (obj2) { | |
1722 | arg3 = (int const) SWIG_AsInt(obj2); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | if (obj3) { | |
1726 | { | |
1727 | arg4 = &temp4; | |
1728 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1729 | } | |
1730 | } | |
1731 | if (obj4) { | |
1732 | { | |
1733 | arg5 = &temp5; | |
1734 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1735 | } | |
1736 | } | |
1737 | if (obj5) { | |
1738 | arg6 = (long) SWIG_AsLong(obj5); | |
1739 | if (PyErr_Occurred()) SWIG_fail; | |
1740 | } | |
1741 | if (obj6) { | |
1742 | { | |
1743 | arg7 = wxString_in_helper(obj6); | |
1744 | if (arg7 == NULL) SWIG_fail; | |
1745 | temp7 = True; | |
1746 | } | |
1747 | } | |
1748 | { | |
1749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1750 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1751 | ||
1752 | wxPyEndAllowThreads(__tstate); | |
1753 | if (PyErr_Occurred()) SWIG_fail; | |
1754 | } | |
1755 | { | |
1756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1757 | } | |
1758 | { | |
1759 | if (temp7) | |
1760 | delete arg7; | |
1761 | } | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | { | |
1765 | if (temp7) | |
1766 | delete arg7; | |
1767 | } | |
1768 | return NULL; | |
1769 | } | |
1770 | ||
1771 | ||
1772 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject *resultobj; | |
1774 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1775 | int arg2 ; | |
1776 | int arg3 ; | |
1777 | int arg4 ; | |
1778 | int arg5 ; | |
1779 | int arg6 = (int) 0 ; | |
1780 | int arg7 = (int) 0 ; | |
1781 | bool arg8 = (bool) False ; | |
1782 | PyObject * obj0 = 0 ; | |
1783 | PyObject * obj1 = 0 ; | |
1784 | PyObject * obj2 = 0 ; | |
1785 | PyObject * obj3 = 0 ; | |
1786 | PyObject * obj4 = 0 ; | |
1787 | PyObject * obj5 = 0 ; | |
1788 | PyObject * obj6 = 0 ; | |
1789 | PyObject * obj7 = 0 ; | |
1790 | char *kwnames[] = { | |
1791 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1792 | }; | |
1793 | ||
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1797 | arg2 = (int) SWIG_AsInt(obj1); | |
1798 | if (PyErr_Occurred()) SWIG_fail; | |
1799 | arg3 = (int) SWIG_AsInt(obj2); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | arg4 = (int) SWIG_AsInt(obj3); | |
1802 | if (PyErr_Occurred()) SWIG_fail; | |
1803 | arg5 = (int) SWIG_AsInt(obj4); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | if (obj5) { | |
1806 | arg6 = (int) SWIG_AsInt(obj5); | |
1807 | if (PyErr_Occurred()) SWIG_fail; | |
1808 | } | |
1809 | if (obj6) { | |
1810 | arg7 = (int) SWIG_AsInt(obj6); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | if (obj7) { | |
1814 | arg8 = (bool) SWIG_AsBool(obj7); | |
1815 | if (PyErr_Occurred()) SWIG_fail; | |
1816 | } | |
1817 | { | |
1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1819 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1820 | ||
1821 | wxPyEndAllowThreads(__tstate); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | Py_INCREF(Py_None); resultobj = Py_None; | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | return NULL; | |
1828 | } | |
1829 | ||
1830 | ||
1831 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1832 | PyObject *resultobj; | |
1833 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1834 | int arg2 ; | |
1835 | int arg3 ; | |
1836 | PyObject * obj0 = 0 ; | |
1837 | PyObject * obj1 = 0 ; | |
1838 | PyObject * obj2 = 0 ; | |
1839 | char *kwnames[] = { | |
1840 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1841 | }; | |
1842 | ||
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1846 | arg2 = (int) SWIG_AsInt(obj1); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | arg3 = (int) SWIG_AsInt(obj2); | |
1849 | if (PyErr_Occurred()) SWIG_fail; | |
1850 | { | |
1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1852 | (arg1)->Scroll(arg2,arg3); | |
1853 | ||
1854 | wxPyEndAllowThreads(__tstate); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
1857 | Py_INCREF(Py_None); resultobj = Py_None; | |
1858 | return resultobj; | |
1859 | fail: | |
1860 | return NULL; | |
1861 | } | |
1862 | ||
1863 | ||
1864 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject *resultobj; | |
1866 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1867 | int arg2 ; | |
1868 | int result; | |
1869 | PyObject * obj0 = 0 ; | |
1870 | PyObject * obj1 = 0 ; | |
1871 | char *kwnames[] = { | |
1872 | (char *) "self",(char *) "orient", NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1878 | arg2 = (int) SWIG_AsInt(obj1); | |
1879 | if (PyErr_Occurred()) SWIG_fail; | |
1880 | { | |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | } | |
1887 | resultobj = SWIG_FromInt((int)result); | |
1888 | return resultobj; | |
1889 | fail: | |
1890 | return NULL; | |
1891 | } | |
1892 | ||
1893 | ||
1894 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject *resultobj; | |
1896 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1897 | int arg2 ; | |
1898 | int arg3 ; | |
1899 | PyObject * obj0 = 0 ; | |
1900 | PyObject * obj1 = 0 ; | |
1901 | PyObject * obj2 = 0 ; | |
1902 | char *kwnames[] = { | |
1903 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1904 | }; | |
1905 | ||
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1909 | arg2 = (int) SWIG_AsInt(obj1); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
1911 | arg3 = (int) SWIG_AsInt(obj2); | |
1912 | if (PyErr_Occurred()) SWIG_fail; | |
1913 | { | |
1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1915 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1916 | ||
1917 | wxPyEndAllowThreads(__tstate); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
1920 | Py_INCREF(Py_None); resultobj = Py_None; | |
1921 | return resultobj; | |
1922 | fail: | |
1923 | return NULL; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject *resultobj; | |
1929 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1930 | int arg2 ; | |
1931 | int arg3 ; | |
1932 | PyObject * obj0 = 0 ; | |
1933 | PyObject * obj1 = 0 ; | |
1934 | PyObject * obj2 = 0 ; | |
1935 | char *kwnames[] = { | |
1936 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1937 | }; | |
1938 | ||
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1942 | arg2 = (int) SWIG_AsInt(obj1); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | arg3 = (int) SWIG_AsInt(obj2); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | { | |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | (arg1)->SetScrollRate(arg2,arg3); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
1952 | } | |
1953 | Py_INCREF(Py_None); resultobj = Py_None; | |
1954 | return resultobj; | |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
1960 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject *resultobj; | |
1962 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1963 | int *arg2 = (int *) 0 ; | |
1964 | int *arg3 = (int *) 0 ; | |
1965 | int temp2 ; | |
1966 | int temp3 ; | |
1967 | PyObject * obj0 = 0 ; | |
1968 | char *kwnames[] = { | |
1969 | (char *) "self", NULL | |
1970 | }; | |
1971 | ||
1972 | arg2 = &temp2; | |
1973 | arg3 = &temp3; | |
1974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1977 | { | |
1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1979 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1980 | ||
1981 | wxPyEndAllowThreads(__tstate); | |
1982 | if (PyErr_Occurred()) SWIG_fail; | |
1983 | } | |
1984 | Py_INCREF(Py_None); resultobj = Py_None; | |
1985 | { | |
1986 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1987 | resultobj = t_output_helper(resultobj,o); | |
1988 | } | |
1989 | { | |
1990 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1991 | resultobj = t_output_helper(resultobj,o); | |
1992 | } | |
1993 | return resultobj; | |
1994 | fail: | |
1995 | return NULL; | |
1996 | } | |
1997 | ||
1998 | ||
1999 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2000 | PyObject *resultobj; | |
2001 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2002 | bool arg2 ; | |
2003 | bool arg3 ; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | PyObject * obj1 = 0 ; | |
2006 | PyObject * obj2 = 0 ; | |
2007 | char *kwnames[] = { | |
2008 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
2009 | }; | |
2010 | ||
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2014 | arg2 = (bool) SWIG_AsBool(obj1); | |
2015 | if (PyErr_Occurred()) SWIG_fail; | |
2016 | arg3 = (bool) SWIG_AsBool(obj2); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | { | |
2019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2020 | (arg1)->EnableScrolling(arg2,arg3); | |
2021 | ||
2022 | wxPyEndAllowThreads(__tstate); | |
2023 | if (PyErr_Occurred()) SWIG_fail; | |
2024 | } | |
2025 | Py_INCREF(Py_None); resultobj = Py_None; | |
2026 | return resultobj; | |
2027 | fail: | |
2028 | return NULL; | |
2029 | } | |
2030 | ||
2031 | ||
2032 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2033 | PyObject *resultobj; | |
2034 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2035 | int *arg2 = (int *) 0 ; | |
2036 | int *arg3 = (int *) 0 ; | |
2037 | int temp2 ; | |
2038 | int temp3 ; | |
2039 | PyObject * obj0 = 0 ; | |
2040 | char *kwnames[] = { | |
2041 | (char *) "self", NULL | |
2042 | }; | |
2043 | ||
2044 | arg2 = &temp2; | |
2045 | arg3 = &temp3; | |
2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
2047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2049 | { | |
2050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2051 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
2052 | ||
2053 | wxPyEndAllowThreads(__tstate); | |
2054 | if (PyErr_Occurred()) SWIG_fail; | |
2055 | } | |
2056 | Py_INCREF(Py_None); resultobj = Py_None; | |
2057 | { | |
2058 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2059 | resultobj = t_output_helper(resultobj,o); | |
2060 | } | |
2061 | { | |
2062 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
2063 | resultobj = t_output_helper(resultobj,o); | |
2064 | } | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2074 | double arg2 ; | |
2075 | double arg3 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | PyObject * obj1 = 0 ; | |
2078 | PyObject * obj2 = 0 ; | |
2079 | char *kwnames[] = { | |
2080 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2086 | arg2 = (double) SWIG_AsDouble(obj1); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | arg3 = (double) SWIG_AsDouble(obj2); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | { | |
2091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2092 | (arg1)->SetScale(arg2,arg3); | |
2093 | ||
2094 | wxPyEndAllowThreads(__tstate); | |
2095 | if (PyErr_Occurred()) SWIG_fail; | |
2096 | } | |
2097 | Py_INCREF(Py_None); resultobj = Py_None; | |
2098 | return resultobj; | |
2099 | fail: | |
2100 | return NULL; | |
2101 | } | |
2102 | ||
2103 | ||
2104 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2105 | PyObject *resultobj; | |
2106 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2107 | double result; | |
2108 | PyObject * obj0 = 0 ; | |
2109 | char *kwnames[] = { | |
2110 | (char *) "self", NULL | |
2111 | }; | |
2112 | ||
2113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
2114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | resultobj = SWIG_FromDouble((double)result); | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2131 | PyObject *resultobj; | |
2132 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2133 | double result; | |
2134 | PyObject * obj0 = 0 ; | |
2135 | char *kwnames[] = { | |
2136 | (char *) "self", NULL | |
2137 | }; | |
2138 | ||
2139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
2140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2142 | { | |
2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2144 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
2145 | ||
2146 | wxPyEndAllowThreads(__tstate); | |
2147 | if (PyErr_Occurred()) SWIG_fail; | |
2148 | } | |
2149 | resultobj = SWIG_FromDouble((double)result); | |
2150 | return resultobj; | |
2151 | fail: | |
2152 | return NULL; | |
2153 | } | |
2154 | ||
2155 | ||
2156 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2157 | PyObject *resultobj; | |
2158 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2159 | wxPoint *arg2 = 0 ; | |
2160 | wxPoint result; | |
2161 | wxPoint temp2 ; | |
2162 | PyObject * obj0 = 0 ; | |
2163 | PyObject * obj1 = 0 ; | |
2164 | ||
2165 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
2166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2168 | { | |
2169 | arg2 = &temp2; | |
2170 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2171 | } | |
2172 | { | |
2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2174 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
2175 | ||
2176 | wxPyEndAllowThreads(__tstate); | |
2177 | if (PyErr_Occurred()) SWIG_fail; | |
2178 | } | |
2179 | { | |
2180 | wxPoint * resultptr; | |
2181 | resultptr = new wxPoint((wxPoint &) result); | |
2182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2183 | } | |
2184 | return resultobj; | |
2185 | fail: | |
2186 | return NULL; | |
2187 | } | |
2188 | ||
2189 | ||
2190 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2191 | PyObject *resultobj; | |
2192 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2193 | int arg2 ; | |
2194 | int arg3 ; | |
2195 | int *arg4 = (int *) 0 ; | |
2196 | int *arg5 = (int *) 0 ; | |
2197 | int temp4 ; | |
2198 | int temp5 ; | |
2199 | PyObject * obj0 = 0 ; | |
2200 | PyObject * obj1 = 0 ; | |
2201 | PyObject * obj2 = 0 ; | |
2202 | ||
2203 | arg4 = &temp4; | |
2204 | arg5 = &temp5; | |
2205 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2208 | arg2 = (int) SWIG_AsInt(obj1); | |
2209 | if (PyErr_Occurred()) SWIG_fail; | |
2210 | arg3 = (int) SWIG_AsInt(obj2); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | { | |
2213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2214 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2215 | ||
2216 | wxPyEndAllowThreads(__tstate); | |
2217 | if (PyErr_Occurred()) SWIG_fail; | |
2218 | } | |
2219 | Py_INCREF(Py_None); resultobj = Py_None; | |
2220 | { | |
2221 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2222 | resultobj = t_output_helper(resultobj,o); | |
2223 | } | |
2224 | { | |
2225 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2226 | resultobj = t_output_helper(resultobj,o); | |
2227 | } | |
2228 | return resultobj; | |
2229 | fail: | |
2230 | return NULL; | |
2231 | } | |
2232 | ||
2233 | ||
2234 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2235 | int argc; | |
2236 | PyObject *argv[4]; | |
2237 | int ii; | |
2238 | ||
2239 | argc = PyObject_Length(args); | |
2240 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2241 | argv[ii] = PyTuple_GetItem(args,ii); | |
2242 | } | |
2243 | if (argc == 2) { | |
2244 | int _v; | |
2245 | { | |
2246 | void *ptr; | |
2247 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2248 | _v = 0; | |
2249 | PyErr_Clear(); | |
2250 | } else { | |
2251 | _v = 1; | |
2252 | } | |
2253 | } | |
2254 | if (_v) { | |
2255 | { | |
2256 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2257 | } | |
2258 | if (_v) { | |
2259 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2260 | } | |
2261 | } | |
2262 | } | |
2263 | if (argc == 3) { | |
2264 | int _v; | |
2265 | { | |
2266 | void *ptr; | |
2267 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2268 | _v = 0; | |
2269 | PyErr_Clear(); | |
2270 | } else { | |
2271 | _v = 1; | |
2272 | } | |
2273 | } | |
2274 | if (_v) { | |
2275 | _v = SWIG_CheckInt(argv[1]); | |
2276 | if (_v) { | |
2277 | _v = SWIG_CheckInt(argv[2]); | |
2278 | if (_v) { | |
2279 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2280 | } | |
2281 | } | |
2282 | } | |
2283 | } | |
2284 | ||
2285 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
2290 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2291 | PyObject *resultobj; | |
2292 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2293 | wxPoint *arg2 = 0 ; | |
2294 | wxPoint result; | |
2295 | wxPoint temp2 ; | |
2296 | PyObject * obj0 = 0 ; | |
2297 | PyObject * obj1 = 0 ; | |
2298 | ||
2299 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2302 | { | |
2303 | arg2 = &temp2; | |
2304 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2305 | } | |
2306 | { | |
2307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2308 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2309 | ||
2310 | wxPyEndAllowThreads(__tstate); | |
2311 | if (PyErr_Occurred()) SWIG_fail; | |
2312 | } | |
2313 | { | |
2314 | wxPoint * resultptr; | |
2315 | resultptr = new wxPoint((wxPoint &) result); | |
2316 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2317 | } | |
2318 | return resultobj; | |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
2324 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2325 | PyObject *resultobj; | |
2326 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2327 | int arg2 ; | |
2328 | int arg3 ; | |
2329 | int *arg4 = (int *) 0 ; | |
2330 | int *arg5 = (int *) 0 ; | |
2331 | int temp4 ; | |
2332 | int temp5 ; | |
2333 | PyObject * obj0 = 0 ; | |
2334 | PyObject * obj1 = 0 ; | |
2335 | PyObject * obj2 = 0 ; | |
2336 | ||
2337 | arg4 = &temp4; | |
2338 | arg5 = &temp5; | |
2339 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2342 | arg2 = (int) SWIG_AsInt(obj1); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | arg3 = (int) SWIG_AsInt(obj2); | |
2345 | if (PyErr_Occurred()) SWIG_fail; | |
2346 | { | |
2347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2348 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2349 | ||
2350 | wxPyEndAllowThreads(__tstate); | |
2351 | if (PyErr_Occurred()) SWIG_fail; | |
2352 | } | |
2353 | Py_INCREF(Py_None); resultobj = Py_None; | |
2354 | { | |
2355 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2356 | resultobj = t_output_helper(resultobj,o); | |
2357 | } | |
2358 | { | |
2359 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2360 | resultobj = t_output_helper(resultobj,o); | |
2361 | } | |
2362 | return resultobj; | |
2363 | fail: | |
2364 | return NULL; | |
2365 | } | |
2366 | ||
2367 | ||
2368 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2369 | int argc; | |
2370 | PyObject *argv[4]; | |
2371 | int ii; | |
2372 | ||
2373 | argc = PyObject_Length(args); | |
2374 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2375 | argv[ii] = PyTuple_GetItem(args,ii); | |
2376 | } | |
2377 | if (argc == 2) { | |
2378 | int _v; | |
2379 | { | |
2380 | void *ptr; | |
2381 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2382 | _v = 0; | |
2383 | PyErr_Clear(); | |
2384 | } else { | |
2385 | _v = 1; | |
2386 | } | |
2387 | } | |
2388 | if (_v) { | |
2389 | { | |
2390 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2391 | } | |
2392 | if (_v) { | |
2393 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2394 | } | |
2395 | } | |
2396 | } | |
2397 | if (argc == 3) { | |
2398 | int _v; | |
2399 | { | |
2400 | void *ptr; | |
2401 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2402 | _v = 0; | |
2403 | PyErr_Clear(); | |
2404 | } else { | |
2405 | _v = 1; | |
2406 | } | |
2407 | } | |
2408 | if (_v) { | |
2409 | _v = SWIG_CheckInt(argv[1]); | |
2410 | if (_v) { | |
2411 | _v = SWIG_CheckInt(argv[2]); | |
2412 | if (_v) { | |
2413 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2414 | } | |
2415 | } | |
2416 | } | |
2417 | } | |
2418 | ||
2419 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
2424 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2425 | PyObject *resultobj; | |
2426 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2427 | PyObject * obj0 = 0 ; | |
2428 | char *kwnames[] = { | |
2429 | (char *) "self", NULL | |
2430 | }; | |
2431 | ||
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | (arg1)->AdjustScrollbars(); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | Py_INCREF(Py_None); resultobj = Py_None; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject *resultobj; | |
2451 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2452 | wxScrollWinEvent *arg2 = 0 ; | |
2453 | int result; | |
2454 | PyObject * obj0 = 0 ; | |
2455 | PyObject * obj1 = 0 ; | |
2456 | char *kwnames[] = { | |
2457 | (char *) "self",(char *) "event", NULL | |
2458 | }; | |
2459 | ||
2460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2465 | SWIG_fail; | |
2466 | if (arg2 == NULL) { | |
2467 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2468 | SWIG_fail; | |
2469 | } | |
2470 | { | |
2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2472 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2473 | ||
2474 | wxPyEndAllowThreads(__tstate); | |
2475 | if (PyErr_Occurred()) SWIG_fail; | |
2476 | } | |
2477 | resultobj = SWIG_FromInt((int)result); | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | return NULL; | |
2481 | } | |
2482 | ||
2483 | ||
2484 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2485 | PyObject *resultobj; | |
2486 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2487 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2488 | PyObject * obj0 = 0 ; | |
2489 | PyObject * obj1 = 0 ; | |
2490 | char *kwnames[] = { | |
2491 | (char *) "self",(char *) "target", NULL | |
2492 | }; | |
2493 | ||
2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | (arg1)->SetTargetWindow(arg2); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2516 | wxWindow *result; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "self", NULL | |
2520 | }; | |
2521 | ||
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2525 | { | |
2526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2527 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2528 | ||
2529 | wxPyEndAllowThreads(__tstate); | |
2530 | if (PyErr_Occurred()) SWIG_fail; | |
2531 | } | |
2532 | { | |
412d302d | 2533 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
2534 | } |
2535 | return resultobj; | |
2536 | fail: | |
2537 | return NULL; | |
2538 | } | |
2539 | ||
2540 | ||
2541 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2542 | PyObject *resultobj; | |
2543 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2544 | wxRect *arg2 = 0 ; | |
2545 | wxRect temp2 ; | |
2546 | PyObject * obj0 = 0 ; | |
2547 | PyObject * obj1 = 0 ; | |
2548 | char *kwnames[] = { | |
2549 | (char *) "self",(char *) "rect", NULL | |
2550 | }; | |
2551 | ||
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2555 | { | |
2556 | arg2 = &temp2; | |
2557 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2558 | } | |
2559 | { | |
2560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2561 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2562 | ||
2563 | wxPyEndAllowThreads(__tstate); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | Py_INCREF(Py_None); resultobj = Py_None; | |
2567 | return resultobj; | |
2568 | fail: | |
2569 | return NULL; | |
2570 | } | |
2571 | ||
2572 | ||
2573 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2574 | PyObject *resultobj; | |
2575 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2576 | wxRect result; | |
2577 | PyObject * obj0 = 0 ; | |
2578 | char *kwnames[] = { | |
2579 | (char *) "self", NULL | |
2580 | }; | |
2581 | ||
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2585 | { | |
2586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2587 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2588 | ||
2589 | wxPyEndAllowThreads(__tstate); | |
2590 | if (PyErr_Occurred()) SWIG_fail; | |
2591 | } | |
2592 | { | |
2593 | wxRect * resultptr; | |
2594 | resultptr = new wxRect((wxRect &) result); | |
2595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2596 | } | |
2597 | return resultobj; | |
2598 | fail: | |
2599 | return NULL; | |
2600 | } | |
2601 | ||
2602 | ||
f5b96ee1 RD |
2603 | static PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
2604 | PyObject *resultobj; | |
2605 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2606 | wxDC *arg2 = 0 ; | |
2607 | PyObject * obj0 = 0 ; | |
2608 | PyObject * obj1 = 0 ; | |
2609 | char *kwnames[] = { | |
2610 | (char *) "self",(char *) "dc", NULL | |
2611 | }; | |
2612 | ||
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
2614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2618 | SWIG_fail; | |
2619 | if (arg2 == NULL) { | |
2620 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2621 | SWIG_fail; | |
2622 | } | |
2623 | { | |
2624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2625 | (arg1)->DoPrepareDC(*arg2); | |
2626 | ||
2627 | wxPyEndAllowThreads(__tstate); | |
2628 | if (PyErr_Occurred()) SWIG_fail; | |
2629 | } | |
2630 | Py_INCREF(Py_None); resultobj = Py_None; | |
2631 | return resultobj; | |
2632 | fail: | |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
f20a2e1f RD |
2637 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2638 | PyObject *resultobj; | |
2639 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2640 | wxVisualAttributes result; | |
2641 | PyObject * obj0 = 0 ; | |
2642 | char *kwnames[] = { | |
2643 | (char *) "variant", NULL | |
2644 | }; | |
2645 | ||
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2647 | if (obj0) { | |
2648 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2649 | if (PyErr_Occurred()) SWIG_fail; | |
2650 | } | |
2651 | { | |
0439c23b | 2652 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2654 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2657 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2658 | } |
2659 | { | |
2660 | wxVisualAttributes * resultptr; | |
2661 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2663 | } | |
2664 | return resultobj; | |
2665 | fail: | |
2666 | return NULL; | |
2667 | } | |
2668 | ||
2669 | ||
d55e5bfc RD |
2670 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
2671 | PyObject *obj; | |
2672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2673 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2674 | Py_INCREF(obj); | |
2675 | return Py_BuildValue((char *)""); | |
2676 | } | |
2677 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2678 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2679 | return 1; | |
2680 | } | |
2681 | ||
2682 | ||
2683 | static PyObject *_wrap_FrameNameStr_get() { | |
2684 | PyObject *pyobj; | |
2685 | ||
2686 | { | |
2687 | #if wxUSE_UNICODE | |
2688 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2689 | #else | |
2690 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2691 | #endif | |
2692 | } | |
2693 | return pyobj; | |
2694 | } | |
2695 | ||
2696 | ||
2697 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2698 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2699 | return 1; | |
2700 | } | |
2701 | ||
2702 | ||
2703 | static PyObject *_wrap_DialogNameStr_get() { | |
2704 | PyObject *pyobj; | |
2705 | ||
2706 | { | |
2707 | #if wxUSE_UNICODE | |
2708 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2709 | #else | |
2710 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2711 | #endif | |
2712 | } | |
2713 | return pyobj; | |
2714 | } | |
2715 | ||
2716 | ||
2717 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2718 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2719 | return 1; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2724 | PyObject *pyobj; | |
2725 | ||
2726 | { | |
2727 | #if wxUSE_UNICODE | |
2728 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2729 | #else | |
2730 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2731 | #endif | |
2732 | } | |
2733 | return pyobj; | |
2734 | } | |
2735 | ||
2736 | ||
2737 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2738 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2739 | return 1; | |
2740 | } | |
2741 | ||
2742 | ||
2743 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2744 | PyObject *pyobj; | |
2745 | ||
2746 | { | |
2747 | #if wxUSE_UNICODE | |
2748 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2749 | #else | |
2750 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2751 | #endif | |
2752 | } | |
2753 | return pyobj; | |
2754 | } | |
2755 | ||
2756 | ||
2757 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2758 | PyObject *resultobj; | |
2759 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2760 | bool arg2 = (bool) True ; | |
2761 | PyObject * obj0 = 0 ; | |
2762 | PyObject * obj1 = 0 ; | |
2763 | char *kwnames[] = { | |
2764 | (char *) "self",(char *) "maximize", NULL | |
2765 | }; | |
2766 | ||
2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2770 | if (obj1) { | |
2771 | arg2 = (bool) SWIG_AsBool(obj1); | |
2772 | if (PyErr_Occurred()) SWIG_fail; | |
2773 | } | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | (arg1)->Maximize(arg2); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | Py_INCREF(Py_None); resultobj = Py_None; | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2791 | PyObject * obj0 = 0 ; | |
2792 | char *kwnames[] = { | |
2793 | (char *) "self", NULL | |
2794 | }; | |
2795 | ||
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | (arg1)->Restore(); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
2813 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject *resultobj; | |
2815 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2816 | bool arg2 = (bool) True ; | |
2817 | PyObject * obj0 = 0 ; | |
2818 | PyObject * obj1 = 0 ; | |
2819 | char *kwnames[] = { | |
2820 | (char *) "self",(char *) "iconize", NULL | |
2821 | }; | |
2822 | ||
2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2826 | if (obj1) { | |
2827 | arg2 = (bool) SWIG_AsBool(obj1); | |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
2829 | } | |
2830 | { | |
2831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2832 | (arg1)->Iconize(arg2); | |
2833 | ||
2834 | wxPyEndAllowThreads(__tstate); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | } | |
2837 | Py_INCREF(Py_None); resultobj = Py_None; | |
2838 | return resultobj; | |
2839 | fail: | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
2844 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject *resultobj; | |
2846 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2847 | bool result; | |
2848 | PyObject * obj0 = 0 ; | |
2849 | char *kwnames[] = { | |
2850 | (char *) "self", NULL | |
2851 | }; | |
2852 | ||
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2856 | { | |
2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2858 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2859 | ||
2860 | wxPyEndAllowThreads(__tstate); | |
2861 | if (PyErr_Occurred()) SWIG_fail; | |
2862 | } | |
2863 | { | |
2864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2865 | } | |
2866 | return resultobj; | |
2867 | fail: | |
2868 | return NULL; | |
2869 | } | |
2870 | ||
2871 | ||
2872 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2873 | PyObject *resultobj; | |
2874 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2875 | bool result; | |
2876 | PyObject * obj0 = 0 ; | |
2877 | char *kwnames[] = { | |
2878 | (char *) "self", NULL | |
2879 | }; | |
2880 | ||
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2884 | { | |
2885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2886 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2887 | ||
2888 | wxPyEndAllowThreads(__tstate); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
2891 | { | |
2892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2893 | } | |
2894 | return resultobj; | |
2895 | fail: | |
2896 | return NULL; | |
2897 | } | |
2898 | ||
2899 | ||
2900 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2901 | PyObject *resultobj; | |
2902 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2903 | wxIcon result; | |
2904 | PyObject * obj0 = 0 ; | |
2905 | char *kwnames[] = { | |
2906 | (char *) "self", NULL | |
2907 | }; | |
2908 | ||
2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2912 | { | |
2913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2914 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2915 | ||
2916 | wxPyEndAllowThreads(__tstate); | |
2917 | if (PyErr_Occurred()) SWIG_fail; | |
2918 | } | |
2919 | { | |
2920 | wxIcon * resultptr; | |
2921 | resultptr = new wxIcon((wxIcon &) result); | |
2922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2923 | } | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2933 | wxIcon *arg2 = 0 ; | |
2934 | PyObject * obj0 = 0 ; | |
2935 | PyObject * obj1 = 0 ; | |
2936 | char *kwnames[] = { | |
2937 | (char *) "self",(char *) "icon", NULL | |
2938 | }; | |
2939 | ||
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2945 | SWIG_fail; | |
2946 | if (arg2 == NULL) { | |
2947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2948 | SWIG_fail; | |
2949 | } | |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | Py_INCREF(Py_None); resultobj = Py_None; | |
2958 | return resultobj; | |
2959 | fail: | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
2964 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject *resultobj; | |
2966 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2967 | wxIconBundle *arg2 = 0 ; | |
2968 | PyObject * obj0 = 0 ; | |
2969 | PyObject * obj1 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "self",(char *) "icons", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2978 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2979 | SWIG_fail; | |
2980 | if (arg2 == NULL) { | |
2981 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2982 | SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
2991 | Py_INCREF(Py_None); resultobj = Py_None; | |
2992 | return resultobj; | |
2993 | fail: | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | ||
2998 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject *resultobj; | |
3000 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3001 | bool arg2 ; | |
3002 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
3003 | bool result; | |
3004 | PyObject * obj0 = 0 ; | |
3005 | PyObject * obj1 = 0 ; | |
3006 | PyObject * obj2 = 0 ; | |
3007 | char *kwnames[] = { | |
3008 | (char *) "self",(char *) "show",(char *) "style", NULL | |
3009 | }; | |
3010 | ||
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3014 | arg2 = (bool) SWIG_AsBool(obj1); | |
3015 | if (PyErr_Occurred()) SWIG_fail; | |
3016 | if (obj2) { | |
3017 | arg3 = (long) SWIG_AsLong(obj2); | |
3018 | if (PyErr_Occurred()) SWIG_fail; | |
3019 | } | |
3020 | { | |
3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3022 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
3023 | ||
3024 | wxPyEndAllowThreads(__tstate); | |
3025 | if (PyErr_Occurred()) SWIG_fail; | |
3026 | } | |
3027 | { | |
3028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3029 | } | |
3030 | return resultobj; | |
3031 | fail: | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
3036 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject *resultobj; | |
3038 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3039 | bool result; | |
3040 | PyObject * obj0 = 0 ; | |
3041 | char *kwnames[] = { | |
3042 | (char *) "self", NULL | |
3043 | }; | |
3044 | ||
3045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
3046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3048 | { | |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3050 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
3051 | ||
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | { | |
3056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3057 | } | |
3058 | return resultobj; | |
3059 | fail: | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | ||
3064 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3065 | PyObject *resultobj; | |
3066 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3067 | wxString *arg2 = 0 ; | |
3068 | bool temp2 = False ; | |
3069 | PyObject * obj0 = 0 ; | |
3070 | PyObject * obj1 = 0 ; | |
3071 | char *kwnames[] = { | |
3072 | (char *) "self",(char *) "title", NULL | |
3073 | }; | |
3074 | ||
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
3076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3078 | { | |
3079 | arg2 = wxString_in_helper(obj1); | |
3080 | if (arg2 == NULL) SWIG_fail; | |
3081 | temp2 = True; | |
3082 | } | |
3083 | { | |
3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3085 | (arg1)->SetTitle((wxString const &)*arg2); | |
3086 | ||
3087 | wxPyEndAllowThreads(__tstate); | |
3088 | if (PyErr_Occurred()) SWIG_fail; | |
3089 | } | |
3090 | Py_INCREF(Py_None); resultobj = Py_None; | |
3091 | { | |
3092 | if (temp2) | |
3093 | delete arg2; | |
3094 | } | |
3095 | return resultobj; | |
3096 | fail: | |
3097 | { | |
3098 | if (temp2) | |
3099 | delete arg2; | |
3100 | } | |
3101 | return NULL; | |
3102 | } | |
3103 | ||
3104 | ||
3105 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3106 | PyObject *resultobj; | |
3107 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3108 | wxString result; | |
3109 | PyObject * obj0 = 0 ; | |
3110 | char *kwnames[] = { | |
3111 | (char *) "self", NULL | |
3112 | }; | |
3113 | ||
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3117 | { | |
3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3119 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3120 | ||
3121 | wxPyEndAllowThreads(__tstate); | |
3122 | if (PyErr_Occurred()) SWIG_fail; | |
3123 | } | |
3124 | { | |
3125 | #if wxUSE_UNICODE | |
3126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3127 | #else | |
3128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3129 | #endif | |
3130 | } | |
3131 | return resultobj; | |
3132 | fail: | |
3133 | return NULL; | |
3134 | } | |
3135 | ||
3136 | ||
3137 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject *resultobj; | |
3139 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3140 | wxRegion *arg2 = 0 ; | |
3141 | bool result; | |
3142 | PyObject * obj0 = 0 ; | |
3143 | PyObject * obj1 = 0 ; | |
3144 | char *kwnames[] = { | |
3145 | (char *) "self",(char *) "region", NULL | |
3146 | }; | |
3147 | ||
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3153 | SWIG_fail; | |
3154 | if (arg2 == NULL) { | |
3155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3156 | SWIG_fail; | |
3157 | } | |
3158 | { | |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | { | |
3166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3167 | } | |
3168 | return resultobj; | |
3169 | fail: | |
3170 | return NULL; | |
3171 | } | |
3172 | ||
3173 | ||
3174 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3175 | PyObject *obj; | |
3176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3177 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3178 | Py_INCREF(obj); | |
3179 | return Py_BuildValue((char *)""); | |
3180 | } | |
3181 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3182 | PyObject *resultobj; | |
3183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3184 | int arg2 = (int) (int)-1 ; |
3185 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3186 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
3187 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3188 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3189 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3190 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3191 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3192 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3193 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3194 | wxFrame *result; | |
3195 | bool temp3 = False ; | |
3196 | wxPoint temp4 ; | |
3197 | wxSize temp5 ; | |
3198 | bool temp7 = False ; | |
3199 | PyObject * obj0 = 0 ; | |
3200 | PyObject * obj1 = 0 ; | |
3201 | PyObject * obj2 = 0 ; | |
3202 | PyObject * obj3 = 0 ; | |
3203 | PyObject * obj4 = 0 ; | |
3204 | PyObject * obj5 = 0 ; | |
3205 | PyObject * obj6 = 0 ; | |
3206 | char *kwnames[] = { | |
3207 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3208 | }; | |
3209 | ||
248ed943 | 3210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
3211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3213 | if (obj1) { |
3214 | arg2 = (int const) SWIG_AsInt(obj1); | |
3215 | if (PyErr_Occurred()) SWIG_fail; | |
3216 | } | |
3217 | if (obj2) { | |
3218 | { | |
3219 | arg3 = wxString_in_helper(obj2); | |
3220 | if (arg3 == NULL) SWIG_fail; | |
3221 | temp3 = True; | |
3222 | } | |
d55e5bfc RD |
3223 | } |
3224 | if (obj3) { | |
3225 | { | |
3226 | arg4 = &temp4; | |
3227 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3228 | } | |
3229 | } | |
3230 | if (obj4) { | |
3231 | { | |
3232 | arg5 = &temp5; | |
3233 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3234 | } | |
3235 | } | |
3236 | if (obj5) { | |
3237 | arg6 = (long) SWIG_AsLong(obj5); | |
3238 | if (PyErr_Occurred()) SWIG_fail; | |
3239 | } | |
3240 | if (obj6) { | |
3241 | { | |
3242 | arg7 = wxString_in_helper(obj6); | |
3243 | if (arg7 == NULL) SWIG_fail; | |
3244 | temp7 = True; | |
3245 | } | |
3246 | } | |
3247 | { | |
0439c23b | 3248 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3250 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3251 | ||
3252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3253 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3254 | } |
b0f7404b | 3255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1); |
d55e5bfc RD |
3256 | { |
3257 | if (temp3) | |
3258 | delete arg3; | |
3259 | } | |
3260 | { | |
3261 | if (temp7) | |
3262 | delete arg7; | |
3263 | } | |
3264 | return resultobj; | |
3265 | fail: | |
3266 | { | |
3267 | if (temp3) | |
3268 | delete arg3; | |
3269 | } | |
3270 | { | |
3271 | if (temp7) | |
3272 | delete arg7; | |
3273 | } | |
3274 | return NULL; | |
3275 | } | |
3276 | ||
3277 | ||
3278 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3279 | PyObject *resultobj; | |
3280 | wxFrame *result; | |
3281 | char *kwnames[] = { | |
3282 | NULL | |
3283 | }; | |
3284 | ||
3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3286 | { | |
0439c23b | 3287 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3289 | result = (wxFrame *)new wxFrame(); | |
3290 | ||
3291 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3292 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3293 | } |
b0f7404b | 3294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1); |
d55e5bfc RD |
3295 | return resultobj; |
3296 | fail: | |
3297 | return NULL; | |
3298 | } | |
3299 | ||
3300 | ||
3301 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3302 | PyObject *resultobj; | |
3303 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3304 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3305 | int arg3 = (int) (int)-1 ; |
3306 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3307 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
3308 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3309 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3310 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3311 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3312 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3313 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3314 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3315 | bool result; | |
3316 | bool temp4 = False ; | |
3317 | wxPoint temp5 ; | |
3318 | wxSize temp6 ; | |
3319 | bool temp8 = False ; | |
3320 | PyObject * obj0 = 0 ; | |
3321 | PyObject * obj1 = 0 ; | |
3322 | PyObject * obj2 = 0 ; | |
3323 | PyObject * obj3 = 0 ; | |
3324 | PyObject * obj4 = 0 ; | |
3325 | PyObject * obj5 = 0 ; | |
3326 | PyObject * obj6 = 0 ; | |
3327 | PyObject * obj7 = 0 ; | |
3328 | char *kwnames[] = { | |
3329 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3330 | }; | |
3331 | ||
248ed943 | 3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
3334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3337 | if (obj2) { |
3338 | arg3 = (int const) SWIG_AsInt(obj2); | |
3339 | if (PyErr_Occurred()) SWIG_fail; | |
3340 | } | |
3341 | if (obj3) { | |
3342 | { | |
3343 | arg4 = wxString_in_helper(obj3); | |
3344 | if (arg4 == NULL) SWIG_fail; | |
3345 | temp4 = True; | |
3346 | } | |
d55e5bfc RD |
3347 | } |
3348 | if (obj4) { | |
3349 | { | |
3350 | arg5 = &temp5; | |
3351 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3352 | } | |
3353 | } | |
3354 | if (obj5) { | |
3355 | { | |
3356 | arg6 = &temp6; | |
3357 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3358 | } | |
3359 | } | |
3360 | if (obj6) { | |
3361 | arg7 = (long) SWIG_AsLong(obj6); | |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
3363 | } | |
3364 | if (obj7) { | |
3365 | { | |
3366 | arg8 = wxString_in_helper(obj7); | |
3367 | if (arg8 == NULL) SWIG_fail; | |
3368 | temp8 = True; | |
3369 | } | |
3370 | } | |
3371 | { | |
3372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3373 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3374 | ||
3375 | wxPyEndAllowThreads(__tstate); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3380 | } | |
3381 | { | |
3382 | if (temp4) | |
3383 | delete arg4; | |
3384 | } | |
3385 | { | |
3386 | if (temp8) | |
3387 | delete arg8; | |
3388 | } | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | { | |
3392 | if (temp4) | |
3393 | delete arg4; | |
3394 | } | |
3395 | { | |
3396 | if (temp8) | |
3397 | delete arg8; | |
3398 | } | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3406 | wxPoint result; | |
3407 | PyObject * obj0 = 0 ; | |
3408 | char *kwnames[] = { | |
3409 | (char *) "self", NULL | |
3410 | }; | |
3411 | ||
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | { | |
3416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3417 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3418 | ||
3419 | wxPyEndAllowThreads(__tstate); | |
3420 | if (PyErr_Occurred()) SWIG_fail; | |
3421 | } | |
3422 | { | |
3423 | wxPoint * resultptr; | |
3424 | resultptr = new wxPoint((wxPoint &) result); | |
3425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3426 | } | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
3433 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3436 | PyObject * obj0 = 0 ; | |
3437 | char *kwnames[] = { | |
3438 | (char *) "self", NULL | |
3439 | }; | |
3440 | ||
3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3444 | { | |
3445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3446 | (arg1)->SendSizeEvent(); | |
3447 | ||
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
3451 | Py_INCREF(Py_None); resultobj = Py_None; | |
3452 | return resultobj; | |
3453 | fail: | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject *resultobj; | |
3460 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3461 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | PyObject * obj1 = 0 ; | |
3464 | char *kwnames[] = { | |
3465 | (char *) "self",(char *) "menubar", NULL | |
3466 | }; | |
3467 | ||
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3473 | { | |
3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3475 | (arg1)->SetMenuBar(arg2); | |
3476 | ||
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | Py_INCREF(Py_None); resultobj = Py_None; | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
3487 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject *resultobj; | |
3489 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3490 | wxMenuBar *result; | |
3491 | PyObject * obj0 = 0 ; | |
3492 | char *kwnames[] = { | |
3493 | (char *) "self", NULL | |
3494 | }; | |
3495 | ||
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
3506 | { | |
412d302d | 3507 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3508 | } |
3509 | return resultobj; | |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
3515 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject *resultobj; | |
3517 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3518 | int arg2 ; | |
3519 | bool result; | |
3520 | PyObject * obj0 = 0 ; | |
3521 | PyObject * obj1 = 0 ; | |
3522 | char *kwnames[] = { | |
3523 | (char *) "self",(char *) "winid", NULL | |
3524 | }; | |
3525 | ||
3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3529 | arg2 = (int) SWIG_AsInt(obj1); | |
3530 | if (PyErr_Occurred()) SWIG_fail; | |
3531 | { | |
3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3533 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3534 | ||
3535 | wxPyEndAllowThreads(__tstate); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
3537 | } | |
3538 | { | |
3539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3540 | } | |
3541 | return resultobj; | |
3542 | fail: | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
3547 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3548 | PyObject *resultobj; | |
3549 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3550 | int arg2 = (int) 1 ; | |
3551 | long arg3 = (long) wxST_SIZEGRIP ; | |
3552 | int arg4 = (int) 0 ; | |
3553 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3554 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3555 | wxStatusBar *result; | |
3556 | bool temp5 = False ; | |
3557 | PyObject * obj0 = 0 ; | |
3558 | PyObject * obj1 = 0 ; | |
3559 | PyObject * obj2 = 0 ; | |
3560 | PyObject * obj3 = 0 ; | |
3561 | PyObject * obj4 = 0 ; | |
3562 | char *kwnames[] = { | |
3563 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3564 | }; | |
3565 | ||
3566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3569 | if (obj1) { | |
3570 | arg2 = (int) SWIG_AsInt(obj1); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | if (obj2) { | |
3574 | arg3 = (long) SWIG_AsLong(obj2); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
3577 | if (obj3) { | |
3578 | arg4 = (int) SWIG_AsInt(obj3); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
3581 | if (obj4) { | |
3582 | { | |
3583 | arg5 = wxString_in_helper(obj4); | |
3584 | if (arg5 == NULL) SWIG_fail; | |
3585 | temp5 = True; | |
3586 | } | |
3587 | } | |
3588 | { | |
3589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3590 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3591 | ||
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) SWIG_fail; | |
3594 | } | |
3595 | { | |
412d302d | 3596 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3597 | } |
3598 | { | |
3599 | if (temp5) | |
3600 | delete arg5; | |
3601 | } | |
3602 | return resultobj; | |
3603 | fail: | |
3604 | { | |
3605 | if (temp5) | |
3606 | delete arg5; | |
3607 | } | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj; | |
3614 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3615 | wxStatusBar *result; | |
3616 | PyObject * obj0 = 0 ; | |
3617 | char *kwnames[] = { | |
3618 | (char *) "self", NULL | |
3619 | }; | |
3620 | ||
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3624 | { | |
3625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3626 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3627 | ||
3628 | wxPyEndAllowThreads(__tstate); | |
3629 | if (PyErr_Occurred()) SWIG_fail; | |
3630 | } | |
3631 | { | |
412d302d | 3632 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3633 | } |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
3640 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject *resultobj; | |
3642 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3643 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3644 | PyObject * obj0 = 0 ; | |
3645 | PyObject * obj1 = 0 ; | |
3646 | char *kwnames[] = { | |
3647 | (char *) "self",(char *) "statBar", NULL | |
3648 | }; | |
3649 | ||
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3653 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3655 | { | |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | (arg1)->SetStatusBar(arg2); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
3662 | Py_INCREF(Py_None); resultobj = Py_None; | |
3663 | return resultobj; | |
3664 | fail: | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3670 | PyObject *resultobj; | |
3671 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3672 | wxString *arg2 = 0 ; | |
3673 | int arg3 = (int) 0 ; | |
3674 | bool temp2 = False ; | |
3675 | PyObject * obj0 = 0 ; | |
3676 | PyObject * obj1 = 0 ; | |
3677 | PyObject * obj2 = 0 ; | |
3678 | char *kwnames[] = { | |
3679 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3680 | }; | |
3681 | ||
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3685 | { | |
3686 | arg2 = wxString_in_helper(obj1); | |
3687 | if (arg2 == NULL) SWIG_fail; | |
3688 | temp2 = True; | |
3689 | } | |
3690 | if (obj2) { | |
3691 | arg3 = (int) SWIG_AsInt(obj2); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | { | |
3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3696 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3697 | ||
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) SWIG_fail; | |
3700 | } | |
3701 | Py_INCREF(Py_None); resultobj = Py_None; | |
3702 | { | |
3703 | if (temp2) | |
3704 | delete arg2; | |
3705 | } | |
3706 | return resultobj; | |
3707 | fail: | |
3708 | { | |
3709 | if (temp2) | |
3710 | delete arg2; | |
3711 | } | |
3712 | return NULL; | |
3713 | } | |
3714 | ||
3715 | ||
3716 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject *resultobj; | |
3718 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3719 | int arg2 ; | |
3720 | int *arg3 = (int *) 0 ; | |
3721 | PyObject * obj0 = 0 ; | |
3722 | PyObject * obj1 = 0 ; | |
3723 | char *kwnames[] = { | |
3724 | (char *) "self",(char *) "widths", NULL | |
3725 | }; | |
3726 | ||
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3730 | { | |
3731 | arg2 = PyList_Size(obj1); | |
3732 | arg3 = int_LIST_helper(obj1); | |
3733 | if (arg3 == NULL) SWIG_fail; | |
3734 | } | |
3735 | { | |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3737 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3738 | ||
3739 | wxPyEndAllowThreads(__tstate); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
3742 | Py_INCREF(Py_None); resultobj = Py_None; | |
3743 | { | |
3744 | if (arg3) delete [] arg3; | |
3745 | } | |
3746 | return resultobj; | |
3747 | fail: | |
3748 | { | |
3749 | if (arg3) delete [] arg3; | |
3750 | } | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
3755 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3756 | PyObject *resultobj; | |
3757 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3758 | wxString *arg2 = 0 ; | |
3759 | int arg3 = (int) 0 ; | |
3760 | bool temp2 = False ; | |
3761 | PyObject * obj0 = 0 ; | |
3762 | PyObject * obj1 = 0 ; | |
3763 | PyObject * obj2 = 0 ; | |
3764 | char *kwnames[] = { | |
3765 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3766 | }; | |
3767 | ||
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3771 | { | |
3772 | arg2 = wxString_in_helper(obj1); | |
3773 | if (arg2 == NULL) SWIG_fail; | |
3774 | temp2 = True; | |
3775 | } | |
3776 | if (obj2) { | |
3777 | arg3 = (int) SWIG_AsInt(obj2); | |
3778 | if (PyErr_Occurred()) SWIG_fail; | |
3779 | } | |
3780 | { | |
3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3782 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3783 | ||
3784 | wxPyEndAllowThreads(__tstate); | |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
3786 | } | |
3787 | Py_INCREF(Py_None); resultobj = Py_None; | |
3788 | { | |
3789 | if (temp2) | |
3790 | delete arg2; | |
3791 | } | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | { | |
3795 | if (temp2) | |
3796 | delete arg2; | |
3797 | } | |
3798 | return NULL; | |
3799 | } | |
3800 | ||
3801 | ||
3802 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3803 | PyObject *resultobj; | |
3804 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3805 | int arg2 = (int) 0 ; | |
3806 | PyObject * obj0 = 0 ; | |
3807 | PyObject * obj1 = 0 ; | |
3808 | char *kwnames[] = { | |
3809 | (char *) "self",(char *) "number", NULL | |
3810 | }; | |
3811 | ||
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3815 | if (obj1) { | |
3816 | arg2 = (int) SWIG_AsInt(obj1); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
3819 | { | |
3820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3821 | (arg1)->PopStatusText(arg2); | |
3822 | ||
3823 | wxPyEndAllowThreads(__tstate); | |
3824 | if (PyErr_Occurred()) SWIG_fail; | |
3825 | } | |
3826 | Py_INCREF(Py_None); resultobj = Py_None; | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
3833 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject *resultobj; | |
3835 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3836 | int arg2 ; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | PyObject * obj1 = 0 ; | |
3839 | char *kwnames[] = { | |
3840 | (char *) "self",(char *) "n", NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3846 | arg2 = (int) SWIG_AsInt(obj1); | |
3847 | if (PyErr_Occurred()) SWIG_fail; | |
3848 | { | |
3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3850 | (arg1)->SetStatusBarPane(arg2); | |
3851 | ||
3852 | wxPyEndAllowThreads(__tstate); | |
3853 | if (PyErr_Occurred()) SWIG_fail; | |
3854 | } | |
3855 | Py_INCREF(Py_None); resultobj = Py_None; | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3863 | PyObject *resultobj; | |
3864 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3865 | int result; | |
3866 | PyObject * obj0 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3874 | { | |
3875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3876 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3877 | ||
3878 | wxPyEndAllowThreads(__tstate); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
3880 | } | |
3881 | resultobj = SWIG_FromInt((int)result); | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | return NULL; | |
3885 | } | |
3886 | ||
3887 | ||
3888 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3889 | PyObject *resultobj; | |
3890 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3891 | long arg2 = (long) -1 ; | |
3892 | int arg3 = (int) -1 ; | |
3893 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3894 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3895 | wxToolBar *result; | |
3896 | bool temp4 = False ; | |
3897 | PyObject * obj0 = 0 ; | |
3898 | PyObject * obj1 = 0 ; | |
3899 | PyObject * obj2 = 0 ; | |
3900 | PyObject * obj3 = 0 ; | |
3901 | char *kwnames[] = { | |
3902 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3903 | }; | |
3904 | ||
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3908 | if (obj1) { | |
3909 | arg2 = (long) SWIG_AsLong(obj1); | |
3910 | if (PyErr_Occurred()) SWIG_fail; | |
3911 | } | |
3912 | if (obj2) { | |
3913 | arg3 = (int) SWIG_AsInt(obj2); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
3916 | if (obj3) { | |
3917 | { | |
3918 | arg4 = wxString_in_helper(obj3); | |
3919 | if (arg4 == NULL) SWIG_fail; | |
3920 | temp4 = True; | |
3921 | } | |
3922 | } | |
3923 | { | |
3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3925 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3926 | ||
3927 | wxPyEndAllowThreads(__tstate); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | } | |
3930 | { | |
412d302d | 3931 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3932 | } |
3933 | { | |
3934 | if (temp4) | |
3935 | delete arg4; | |
3936 | } | |
3937 | return resultobj; | |
3938 | fail: | |
3939 | { | |
3940 | if (temp4) | |
3941 | delete arg4; | |
3942 | } | |
3943 | return NULL; | |
3944 | } | |
3945 | ||
3946 | ||
3947 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3948 | PyObject *resultobj; | |
3949 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3950 | wxToolBar *result; | |
3951 | PyObject * obj0 = 0 ; | |
3952 | char *kwnames[] = { | |
3953 | (char *) "self", NULL | |
3954 | }; | |
3955 | ||
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3959 | { | |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3962 | ||
3963 | wxPyEndAllowThreads(__tstate); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
3966 | { | |
412d302d | 3967 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3968 | } |
3969 | return resultobj; | |
3970 | fail: | |
3971 | return NULL; | |
3972 | } | |
3973 | ||
3974 | ||
3975 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3976 | PyObject *resultobj; | |
3977 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3978 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3979 | PyObject * obj0 = 0 ; | |
3980 | PyObject * obj1 = 0 ; | |
3981 | char *kwnames[] = { | |
3982 | (char *) "self",(char *) "toolbar", NULL | |
3983 | }; | |
3984 | ||
3985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3990 | { | |
3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3992 | (arg1)->SetToolBar(arg2); | |
3993 | ||
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
3997 | Py_INCREF(Py_None); resultobj = Py_None; | |
3998 | return resultobj; | |
3999 | fail: | |
4000 | return NULL; | |
4001 | } | |
4002 | ||
4003 | ||
4004 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4005 | PyObject *resultobj; | |
4006 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4007 | wxString *arg2 = 0 ; | |
4008 | bool arg3 ; | |
4009 | bool temp2 = False ; | |
4010 | PyObject * obj0 = 0 ; | |
4011 | PyObject * obj1 = 0 ; | |
4012 | PyObject * obj2 = 0 ; | |
4013 | char *kwnames[] = { | |
4014 | (char *) "self",(char *) "text",(char *) "show", NULL | |
4015 | }; | |
4016 | ||
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4020 | { | |
4021 | arg2 = wxString_in_helper(obj1); | |
4022 | if (arg2 == NULL) SWIG_fail; | |
4023 | temp2 = True; | |
4024 | } | |
4025 | arg3 = (bool) SWIG_AsBool(obj2); | |
4026 | if (PyErr_Occurred()) SWIG_fail; | |
4027 | { | |
4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4029 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
4030 | ||
4031 | wxPyEndAllowThreads(__tstate); | |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
4034 | Py_INCREF(Py_None); resultobj = Py_None; | |
4035 | { | |
4036 | if (temp2) | |
4037 | delete arg2; | |
4038 | } | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | { | |
4042 | if (temp2) | |
4043 | delete arg2; | |
4044 | } | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
4049 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject *resultobj; | |
4051 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4052 | wxMenu *arg2 = (wxMenu *) NULL ; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | PyObject * obj1 = 0 ; | |
4055 | char *kwnames[] = { | |
4056 | (char *) "self",(char *) "menu", NULL | |
4057 | }; | |
4058 | ||
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
4060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4062 | if (obj1) { | |
4063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
4064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->DoMenuUpdates(arg2); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
f20a2e1f RD |
4080 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4081 | PyObject *resultobj; | |
4082 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4083 | wxVisualAttributes result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "variant", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4090 | if (obj0) { | |
4091 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
4093 | } | |
4094 | { | |
0439c23b | 4095 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4097 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4098 | ||
4099 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4100 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4101 | } |
4102 | { | |
4103 | wxVisualAttributes * resultptr; | |
4104 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4106 | } | |
4107 | return resultobj; | |
4108 | fail: | |
4109 | return NULL; | |
4110 | } | |
4111 | ||
4112 | ||
d55e5bfc RD |
4113 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { |
4114 | PyObject *obj; | |
4115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4116 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4117 | Py_INCREF(obj); | |
4118 | return Py_BuildValue((char *)""); | |
4119 | } | |
4120 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject *resultobj; | |
4122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4123 | int arg2 = (int) (int)-1 ; |
4124 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4125 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4126 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4127 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4128 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4129 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4130 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4131 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4132 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4133 | wxDialog *result; | |
4134 | bool temp3 = False ; | |
4135 | wxPoint temp4 ; | |
4136 | wxSize temp5 ; | |
4137 | bool temp7 = False ; | |
4138 | PyObject * obj0 = 0 ; | |
4139 | PyObject * obj1 = 0 ; | |
4140 | PyObject * obj2 = 0 ; | |
4141 | PyObject * obj3 = 0 ; | |
4142 | PyObject * obj4 = 0 ; | |
4143 | PyObject * obj5 = 0 ; | |
4144 | PyObject * obj6 = 0 ; | |
4145 | char *kwnames[] = { | |
4146 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4147 | }; | |
4148 | ||
248ed943 | 4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4152 | if (obj1) { |
4153 | arg2 = (int const) SWIG_AsInt(obj1); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
4155 | } | |
4156 | if (obj2) { | |
4157 | { | |
4158 | arg3 = wxString_in_helper(obj2); | |
4159 | if (arg3 == NULL) SWIG_fail; | |
4160 | temp3 = True; | |
4161 | } | |
d55e5bfc RD |
4162 | } |
4163 | if (obj3) { | |
4164 | { | |
4165 | arg4 = &temp4; | |
4166 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4167 | } | |
4168 | } | |
4169 | if (obj4) { | |
4170 | { | |
4171 | arg5 = &temp5; | |
4172 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4173 | } | |
4174 | } | |
4175 | if (obj5) { | |
4176 | arg6 = (long) SWIG_AsLong(obj5); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4179 | if (obj6) { | |
4180 | { | |
4181 | arg7 = wxString_in_helper(obj6); | |
4182 | if (arg7 == NULL) SWIG_fail; | |
4183 | temp7 = True; | |
4184 | } | |
4185 | } | |
4186 | { | |
0439c23b | 4187 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4189 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4190 | ||
4191 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4193 | } |
b0f7404b | 4194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); |
d55e5bfc RD |
4195 | { |
4196 | if (temp3) | |
4197 | delete arg3; | |
4198 | } | |
4199 | { | |
4200 | if (temp7) | |
4201 | delete arg7; | |
4202 | } | |
4203 | return resultobj; | |
4204 | fail: | |
4205 | { | |
4206 | if (temp3) | |
4207 | delete arg3; | |
4208 | } | |
4209 | { | |
4210 | if (temp7) | |
4211 | delete arg7; | |
4212 | } | |
4213 | return NULL; | |
4214 | } | |
4215 | ||
4216 | ||
4217 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject *resultobj; | |
4219 | wxDialog *result; | |
4220 | char *kwnames[] = { | |
4221 | NULL | |
4222 | }; | |
4223 | ||
4224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4225 | { | |
0439c23b | 4226 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4228 | result = (wxDialog *)new wxDialog(); | |
4229 | ||
4230 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4231 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4232 | } |
b0f7404b | 4233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); |
d55e5bfc RD |
4234 | return resultobj; |
4235 | fail: | |
4236 | return NULL; | |
4237 | } | |
4238 | ||
4239 | ||
4240 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4241 | PyObject *resultobj; | |
4242 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4243 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4244 | int arg3 = (int) (int)-1 ; |
4245 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4246 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4247 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4248 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4249 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4250 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4251 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4252 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4253 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4254 | bool result; | |
4255 | bool temp4 = False ; | |
4256 | wxPoint temp5 ; | |
4257 | wxSize temp6 ; | |
4258 | bool temp8 = False ; | |
4259 | PyObject * obj0 = 0 ; | |
4260 | PyObject * obj1 = 0 ; | |
4261 | PyObject * obj2 = 0 ; | |
4262 | PyObject * obj3 = 0 ; | |
4263 | PyObject * obj4 = 0 ; | |
4264 | PyObject * obj5 = 0 ; | |
4265 | PyObject * obj6 = 0 ; | |
4266 | PyObject * obj7 = 0 ; | |
4267 | char *kwnames[] = { | |
4268 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4269 | }; | |
4270 | ||
248ed943 | 4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, |
4273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4274 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4276 | if (obj2) { |
4277 | arg3 = (int const) SWIG_AsInt(obj2); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
4280 | if (obj3) { | |
4281 | { | |
4282 | arg4 = wxString_in_helper(obj3); | |
4283 | if (arg4 == NULL) SWIG_fail; | |
4284 | temp4 = True; | |
4285 | } | |
d55e5bfc RD |
4286 | } |
4287 | if (obj4) { | |
4288 | { | |
4289 | arg5 = &temp5; | |
4290 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4291 | } | |
4292 | } | |
4293 | if (obj5) { | |
4294 | { | |
4295 | arg6 = &temp6; | |
4296 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4297 | } | |
4298 | } | |
4299 | if (obj6) { | |
4300 | arg7 = (long) SWIG_AsLong(obj6); | |
4301 | if (PyErr_Occurred()) SWIG_fail; | |
4302 | } | |
4303 | if (obj7) { | |
4304 | { | |
4305 | arg8 = wxString_in_helper(obj7); | |
4306 | if (arg8 == NULL) SWIG_fail; | |
4307 | temp8 = True; | |
4308 | } | |
4309 | } | |
4310 | { | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4317 | { | |
4318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4319 | } | |
4320 | { | |
4321 | if (temp4) | |
4322 | delete arg4; | |
4323 | } | |
4324 | { | |
4325 | if (temp8) | |
4326 | delete arg8; | |
4327 | } | |
4328 | return resultobj; | |
4329 | fail: | |
4330 | { | |
4331 | if (temp4) | |
4332 | delete arg4; | |
4333 | } | |
4334 | { | |
4335 | if (temp8) | |
4336 | delete arg8; | |
4337 | } | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4343 | PyObject *resultobj; | |
4344 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4345 | int arg2 ; | |
4346 | PyObject * obj0 = 0 ; | |
4347 | PyObject * obj1 = 0 ; | |
4348 | char *kwnames[] = { | |
4349 | (char *) "self",(char *) "returnCode", NULL | |
4350 | }; | |
4351 | ||
4352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4355 | arg2 = (int) SWIG_AsInt(obj1); | |
4356 | if (PyErr_Occurred()) SWIG_fail; | |
4357 | { | |
4358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4359 | (arg1)->SetReturnCode(arg2); | |
4360 | ||
4361 | wxPyEndAllowThreads(__tstate); | |
4362 | if (PyErr_Occurred()) SWIG_fail; | |
4363 | } | |
4364 | Py_INCREF(Py_None); resultobj = Py_None; | |
4365 | return resultobj; | |
4366 | fail: | |
4367 | return NULL; | |
4368 | } | |
4369 | ||
4370 | ||
4371 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4372 | PyObject *resultobj; | |
4373 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4374 | int result; | |
4375 | PyObject * obj0 = 0 ; | |
4376 | char *kwnames[] = { | |
4377 | (char *) "self", NULL | |
4378 | }; | |
4379 | ||
4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
4389 | } | |
4390 | resultobj = SWIG_FromInt((int)result); | |
4391 | return resultobj; | |
4392 | fail: | |
4393 | return NULL; | |
4394 | } | |
4395 | ||
4396 | ||
4397 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4398 | PyObject *resultobj; | |
4399 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4400 | wxString *arg2 = 0 ; | |
4401 | wxSizer *result; | |
4402 | bool temp2 = False ; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | PyObject * obj1 = 0 ; | |
4405 | char *kwnames[] = { | |
4406 | (char *) "self",(char *) "message", NULL | |
4407 | }; | |
4408 | ||
4409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4412 | { | |
4413 | arg2 = wxString_in_helper(obj1); | |
4414 | if (arg2 == NULL) SWIG_fail; | |
4415 | temp2 = True; | |
4416 | } | |
4417 | { | |
4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4419 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4420 | ||
4421 | wxPyEndAllowThreads(__tstate); | |
4422 | if (PyErr_Occurred()) SWIG_fail; | |
4423 | } | |
4424 | { | |
412d302d | 4425 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
4426 | } |
4427 | { | |
4428 | if (temp2) | |
4429 | delete arg2; | |
4430 | } | |
4431 | return resultobj; | |
4432 | fail: | |
4433 | { | |
4434 | if (temp2) | |
4435 | delete arg2; | |
4436 | } | |
4437 | return NULL; | |
4438 | } | |
4439 | ||
4440 | ||
4441 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject *resultobj; | |
4443 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4444 | long arg2 ; | |
4445 | wxSizer *result; | |
4446 | PyObject * obj0 = 0 ; | |
4447 | PyObject * obj1 = 0 ; | |
4448 | char *kwnames[] = { | |
4449 | (char *) "self",(char *) "flags", NULL | |
4450 | }; | |
4451 | ||
4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4455 | arg2 = (long) SWIG_AsLong(obj1); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | { | |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4459 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
4462 | if (PyErr_Occurred()) SWIG_fail; | |
4463 | } | |
4464 | { | |
412d302d | 4465 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
4466 | } |
4467 | return resultobj; | |
4468 | fail: | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj; | |
4475 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4476 | bool result; | |
4477 | PyObject * obj0 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4488 | ||
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | { | |
4493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4494 | } | |
4495 | return resultobj; | |
4496 | fail: | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
4501 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject *resultobj; | |
4503 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4504 | int result; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "self", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4513 | { | |
4514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4515 | result = (int)(arg1)->ShowModal(); | |
4516 | ||
4517 | wxPyEndAllowThreads(__tstate); | |
4518 | if (PyErr_Occurred()) SWIG_fail; | |
4519 | } | |
4520 | resultobj = SWIG_FromInt((int)result); | |
4521 | return resultobj; | |
4522 | fail: | |
4523 | return NULL; | |
4524 | } | |
4525 | ||
4526 | ||
4527 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4528 | PyObject *resultobj; | |
4529 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4530 | int arg2 ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "self",(char *) "retCode", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4540 | arg2 = (int) SWIG_AsInt(obj1); | |
4541 | if (PyErr_Occurred()) SWIG_fail; | |
4542 | { | |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | (arg1)->EndModal(arg2); | |
4545 | ||
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4549 | Py_INCREF(Py_None); resultobj = Py_None; | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
f20a2e1f RD |
4556 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4557 | PyObject *resultobj; | |
4558 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4559 | wxVisualAttributes result; | |
4560 | PyObject * obj0 = 0 ; | |
4561 | char *kwnames[] = { | |
4562 | (char *) "variant", NULL | |
4563 | }; | |
4564 | ||
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4566 | if (obj0) { | |
4567 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | { | |
0439c23b | 4571 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4573 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4574 | ||
4575 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4576 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4577 | } |
4578 | { | |
4579 | wxVisualAttributes * resultptr; | |
4580 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4582 | } | |
4583 | return resultobj; | |
4584 | fail: | |
4585 | return NULL; | |
4586 | } | |
4587 | ||
4588 | ||
d55e5bfc RD |
4589 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { |
4590 | PyObject *obj; | |
4591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4592 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4593 | Py_INCREF(obj); | |
4594 | return Py_BuildValue((char *)""); | |
4595 | } | |
4596 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
4598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4599 | int arg2 = (int) (int)-1 ; |
4600 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4601 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4602 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4603 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4604 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4605 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4606 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4607 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4608 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4609 | wxMiniFrame *result; | |
4610 | bool temp3 = False ; | |
4611 | wxPoint temp4 ; | |
4612 | wxSize temp5 ; | |
4613 | bool temp7 = False ; | |
4614 | PyObject * obj0 = 0 ; | |
4615 | PyObject * obj1 = 0 ; | |
4616 | PyObject * obj2 = 0 ; | |
4617 | PyObject * obj3 = 0 ; | |
4618 | PyObject * obj4 = 0 ; | |
4619 | PyObject * obj5 = 0 ; | |
4620 | PyObject * obj6 = 0 ; | |
4621 | char *kwnames[] = { | |
4622 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4623 | }; | |
4624 | ||
248ed943 | 4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4628 | if (obj1) { |
4629 | arg2 = (int const) SWIG_AsInt(obj1); | |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
4631 | } | |
4632 | if (obj2) { | |
4633 | { | |
4634 | arg3 = wxString_in_helper(obj2); | |
4635 | if (arg3 == NULL) SWIG_fail; | |
4636 | temp3 = True; | |
4637 | } | |
d55e5bfc RD |
4638 | } |
4639 | if (obj3) { | |
4640 | { | |
4641 | arg4 = &temp4; | |
4642 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4643 | } | |
4644 | } | |
4645 | if (obj4) { | |
4646 | { | |
4647 | arg5 = &temp5; | |
4648 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4649 | } | |
4650 | } | |
4651 | if (obj5) { | |
4652 | arg6 = (long) SWIG_AsLong(obj5); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | if (obj6) { | |
4656 | { | |
4657 | arg7 = wxString_in_helper(obj6); | |
4658 | if (arg7 == NULL) SWIG_fail; | |
4659 | temp7 = True; | |
4660 | } | |
4661 | } | |
4662 | { | |
0439c23b | 4663 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4665 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4666 | ||
4667 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4668 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4669 | } |
4670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4671 | { | |
4672 | if (temp3) | |
4673 | delete arg3; | |
4674 | } | |
4675 | { | |
4676 | if (temp7) | |
4677 | delete arg7; | |
4678 | } | |
4679 | return resultobj; | |
4680 | fail: | |
4681 | { | |
4682 | if (temp3) | |
4683 | delete arg3; | |
4684 | } | |
4685 | { | |
4686 | if (temp7) | |
4687 | delete arg7; | |
4688 | } | |
4689 | return NULL; | |
4690 | } | |
4691 | ||
4692 | ||
4693 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject *resultobj; | |
4695 | wxMiniFrame *result; | |
4696 | char *kwnames[] = { | |
4697 | NULL | |
4698 | }; | |
4699 | ||
4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4701 | { | |
0439c23b | 4702 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4704 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4705 | ||
4706 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4707 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4708 | } |
4709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4710 | return resultobj; | |
4711 | fail: | |
4712 | return NULL; | |
4713 | } | |
4714 | ||
4715 | ||
4716 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4717 | PyObject *resultobj; | |
4718 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4719 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4720 | int arg3 = (int) (int)-1 ; |
4721 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4722 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4723 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4724 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4725 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4726 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4727 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4728 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4729 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4730 | bool result; | |
4731 | bool temp4 = False ; | |
4732 | wxPoint temp5 ; | |
4733 | wxSize temp6 ; | |
4734 | bool temp8 = False ; | |
4735 | PyObject * obj0 = 0 ; | |
4736 | PyObject * obj1 = 0 ; | |
4737 | PyObject * obj2 = 0 ; | |
4738 | PyObject * obj3 = 0 ; | |
4739 | PyObject * obj4 = 0 ; | |
4740 | PyObject * obj5 = 0 ; | |
4741 | PyObject * obj6 = 0 ; | |
4742 | PyObject * obj7 = 0 ; | |
4743 | char *kwnames[] = { | |
4744 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4745 | }; | |
4746 | ||
248ed943 | 4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, |
4749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4752 | if (obj2) { |
4753 | arg3 = (int const) SWIG_AsInt(obj2); | |
4754 | if (PyErr_Occurred()) SWIG_fail; | |
4755 | } | |
4756 | if (obj3) { | |
4757 | { | |
4758 | arg4 = wxString_in_helper(obj3); | |
4759 | if (arg4 == NULL) SWIG_fail; | |
4760 | temp4 = True; | |
4761 | } | |
d55e5bfc RD |
4762 | } |
4763 | if (obj4) { | |
4764 | { | |
4765 | arg5 = &temp5; | |
4766 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4767 | } | |
4768 | } | |
4769 | if (obj5) { | |
4770 | { | |
4771 | arg6 = &temp6; | |
4772 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4773 | } | |
4774 | } | |
4775 | if (obj6) { | |
4776 | arg7 = (long) SWIG_AsLong(obj6); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | if (obj7) { | |
4780 | { | |
4781 | arg8 = wxString_in_helper(obj7); | |
4782 | if (arg8 == NULL) SWIG_fail; | |
4783 | temp8 = True; | |
4784 | } | |
4785 | } | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4793 | { | |
4794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4795 | } | |
4796 | { | |
4797 | if (temp4) | |
4798 | delete arg4; | |
4799 | } | |
4800 | { | |
4801 | if (temp8) | |
4802 | delete arg8; | |
4803 | } | |
4804 | return resultobj; | |
4805 | fail: | |
4806 | { | |
4807 | if (temp4) | |
4808 | delete arg4; | |
4809 | } | |
4810 | { | |
4811 | if (temp8) | |
4812 | delete arg8; | |
4813 | } | |
4814 | return NULL; | |
4815 | } | |
4816 | ||
4817 | ||
4818 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4819 | PyObject *obj; | |
4820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4821 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4822 | Py_INCREF(obj); | |
4823 | return Py_BuildValue((char *)""); | |
4824 | } | |
4825 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4826 | PyObject *resultobj; | |
4827 | wxBitmap *arg1 = 0 ; | |
4828 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4829 | int arg3 ; | |
4830 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4831 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4832 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4833 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4834 | long arg6 = (long) wxNO_BORDER ; | |
4835 | wxSplashScreenWindow *result; | |
4836 | wxPoint temp4 ; | |
4837 | wxSize temp5 ; | |
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 | char *kwnames[] = { | |
4845 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4846 | }; | |
4847 | ||
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4851 | SWIG_fail; | |
4852 | if (arg1 == NULL) { | |
4853 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4854 | SWIG_fail; | |
4855 | } | |
4856 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4858 | arg3 = (int) SWIG_AsInt(obj2); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | if (obj3) { | |
4861 | { | |
4862 | arg4 = &temp4; | |
4863 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4864 | } | |
4865 | } | |
4866 | if (obj4) { | |
4867 | { | |
4868 | arg5 = &temp5; | |
4869 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4870 | } | |
4871 | } | |
4872 | if (obj5) { | |
4873 | arg6 = (long) SWIG_AsLong(obj5); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | { | |
0439c23b | 4877 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4879 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4880 | ||
4881 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4882 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4883 | } |
4884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4894 | wxBitmap *arg2 = 0 ; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | PyObject * obj1 = 0 ; | |
4897 | char *kwnames[] = { | |
4898 | (char *) "self",(char *) "bitmap", NULL | |
4899 | }; | |
4900 | ||
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4905 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4906 | SWIG_fail; | |
4907 | if (arg2 == NULL) { | |
4908 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4909 | SWIG_fail; | |
4910 | } | |
4911 | { | |
4912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4913 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4914 | ||
4915 | wxPyEndAllowThreads(__tstate); | |
4916 | if (PyErr_Occurred()) SWIG_fail; | |
4917 | } | |
4918 | Py_INCREF(Py_None); resultobj = Py_None; | |
4919 | return resultobj; | |
4920 | fail: | |
4921 | return NULL; | |
4922 | } | |
4923 | ||
4924 | ||
4925 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4926 | PyObject *resultobj; | |
4927 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4928 | wxBitmap *result; | |
4929 | PyObject * obj0 = 0 ; | |
4930 | char *kwnames[] = { | |
4931 | (char *) "self", NULL | |
4932 | }; | |
4933 | ||
4934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4937 | { | |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | { | |
4940 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4941 | result = (wxBitmap *) &_result_ref; | |
4942 | } | |
4943 | ||
4944 | wxPyEndAllowThreads(__tstate); | |
4945 | if (PyErr_Occurred()) SWIG_fail; | |
4946 | } | |
4947 | { | |
4948 | wxBitmap* resultptr = new wxBitmap(*result); | |
4949 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4950 | } | |
4951 | return resultobj; | |
4952 | fail: | |
4953 | return NULL; | |
4954 | } | |
4955 | ||
4956 | ||
4957 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4958 | PyObject *obj; | |
4959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4960 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4961 | Py_INCREF(obj); | |
4962 | return Py_BuildValue((char *)""); | |
4963 | } | |
4964 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4965 | PyObject *resultobj; | |
4966 | wxBitmap *arg1 = 0 ; | |
4967 | long arg2 ; | |
4968 | int arg3 ; | |
4969 | wxWindow *arg4 = (wxWindow *) 0 ; | |
248ed943 | 4970 | int arg5 = (int) -1 ; |
d55e5bfc RD |
4971 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
4972 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4973 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4974 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4975 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4976 | wxSplashScreen *result; | |
4977 | wxPoint temp6 ; | |
4978 | wxSize temp7 ; | |
4979 | PyObject * obj0 = 0 ; | |
4980 | PyObject * obj1 = 0 ; | |
4981 | PyObject * obj2 = 0 ; | |
4982 | PyObject * obj3 = 0 ; | |
4983 | PyObject * obj4 = 0 ; | |
4984 | PyObject * obj5 = 0 ; | |
4985 | PyObject * obj6 = 0 ; | |
4986 | PyObject * obj7 = 0 ; | |
4987 | char *kwnames[] = { | |
4988 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4989 | }; | |
4990 | ||
248ed943 | 4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4994 | SWIG_fail; | |
4995 | if (arg1 == NULL) { | |
4996 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4997 | SWIG_fail; | |
4998 | } | |
4999 | arg2 = (long) SWIG_AsLong(obj1); | |
5000 | if (PyErr_Occurred()) SWIG_fail; | |
5001 | arg3 = (int) SWIG_AsInt(obj2); | |
5002 | if (PyErr_Occurred()) SWIG_fail; | |
5003 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
5004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5005 | if (obj4) { |
5006 | arg5 = (int) SWIG_AsInt(obj4); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
d55e5bfc RD |
5009 | if (obj5) { |
5010 | { | |
5011 | arg6 = &temp6; | |
5012 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
5013 | } | |
5014 | } | |
5015 | if (obj6) { | |
5016 | { | |
5017 | arg7 = &temp7; | |
5018 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
5019 | } | |
5020 | } | |
5021 | if (obj7) { | |
5022 | arg8 = (long) SWIG_AsLong(obj7); | |
5023 | if (PyErr_Occurred()) SWIG_fail; | |
5024 | } | |
5025 | { | |
0439c23b | 5026 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5028 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
5029 | ||
5030 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5031 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5032 | } |
5033 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
5034 | return resultobj; | |
5035 | fail: | |
5036 | return NULL; | |
5037 | } | |
5038 | ||
5039 | ||
5040 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject *resultobj; | |
5042 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5043 | long result; | |
5044 | PyObject * obj0 = 0 ; | |
5045 | char *kwnames[] = { | |
5046 | (char *) "self", NULL | |
5047 | }; | |
5048 | ||
5049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
5050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5052 | { | |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | resultobj = SWIG_FromLong((long)result); | |
5060 | return resultobj; | |
5061 | fail: | |
5062 | return NULL; | |
5063 | } | |
5064 | ||
5065 | ||
5066 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5067 | PyObject *resultobj; | |
5068 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5069 | wxSplashScreenWindow *result; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | char *kwnames[] = { | |
5072 | (char *) "self", NULL | |
5073 | }; | |
5074 | ||
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
5076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5078 | { | |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5080 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
5081 | ||
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
5086 | return resultobj; | |
5087 | fail: | |
5088 | return NULL; | |
5089 | } | |
5090 | ||
5091 | ||
5092 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5093 | PyObject *resultobj; | |
5094 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5095 | int result; | |
5096 | PyObject * obj0 = 0 ; | |
5097 | char *kwnames[] = { | |
5098 | (char *) "self", NULL | |
5099 | }; | |
5100 | ||
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
5102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
5107 | ||
5108 | wxPyEndAllowThreads(__tstate); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | resultobj = SWIG_FromInt((int)result); | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
5115 | } | |
5116 | ||
5117 | ||
5118 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
5119 | PyObject *obj; | |
5120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5121 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
5122 | Py_INCREF(obj); | |
5123 | return Py_BuildValue((char *)""); | |
5124 | } | |
5125 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5126 | PyObject *resultobj; | |
5127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5128 | int arg2 = (int) -1 ; | |
5129 | long arg3 = (long) wxST_SIZEGRIP ; | |
5130 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
5131 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5132 | wxStatusBar *result; | |
5133 | bool temp4 = False ; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | PyObject * obj1 = 0 ; | |
5136 | PyObject * obj2 = 0 ; | |
5137 | PyObject * obj3 = 0 ; | |
5138 | char *kwnames[] = { | |
5139 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5140 | }; | |
5141 | ||
5142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5145 | if (obj1) { | |
5146 | arg2 = (int) SWIG_AsInt(obj1); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | if (obj2) { | |
5150 | arg3 = (long) SWIG_AsLong(obj2); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
5152 | } | |
5153 | if (obj3) { | |
5154 | { | |
5155 | arg4 = wxString_in_helper(obj3); | |
5156 | if (arg4 == NULL) SWIG_fail; | |
5157 | temp4 = True; | |
5158 | } | |
5159 | } | |
5160 | { | |
0439c23b | 5161 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5163 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5166 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5167 | } |
b0f7404b | 5168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1); |
d55e5bfc RD |
5169 | { |
5170 | if (temp4) | |
5171 | delete arg4; | |
5172 | } | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | { | |
5176 | if (temp4) | |
5177 | delete arg4; | |
5178 | } | |
5179 | return NULL; | |
5180 | } | |
5181 | ||
5182 | ||
5183 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5184 | PyObject *resultobj; | |
5185 | wxStatusBar *result; | |
5186 | char *kwnames[] = { | |
5187 | NULL | |
5188 | }; | |
5189 | ||
5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5191 | { | |
0439c23b | 5192 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5194 | result = (wxStatusBar *)new wxStatusBar(); | |
5195 | ||
5196 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5197 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5198 | } |
b0f7404b | 5199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1); |
d55e5bfc RD |
5200 | return resultobj; |
5201 | fail: | |
5202 | return NULL; | |
5203 | } | |
5204 | ||
5205 | ||
5206 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5207 | PyObject *resultobj; | |
5208 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5210 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5211 | long arg4 = (long) wxST_SIZEGRIP ; |
5212 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5213 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5214 | bool result; | |
5215 | bool temp5 = False ; | |
5216 | PyObject * obj0 = 0 ; | |
5217 | PyObject * obj1 = 0 ; | |
5218 | PyObject * obj2 = 0 ; | |
5219 | PyObject * obj3 = 0 ; | |
5220 | PyObject * obj4 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5223 | }; | |
5224 | ||
248ed943 | 5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
5226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, |
5227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5228 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5230 | if (obj2) { |
5231 | arg3 = (int) SWIG_AsInt(obj2); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
d55e5bfc RD |
5234 | if (obj3) { |
5235 | arg4 = (long) SWIG_AsLong(obj3); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
5238 | if (obj4) { | |
5239 | { | |
5240 | arg5 = wxString_in_helper(obj4); | |
5241 | if (arg5 == NULL) SWIG_fail; | |
5242 | temp5 = True; | |
5243 | } | |
5244 | } | |
5245 | { | |
5246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5247 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5248 | ||
5249 | wxPyEndAllowThreads(__tstate); | |
5250 | if (PyErr_Occurred()) SWIG_fail; | |
5251 | } | |
5252 | { | |
5253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5254 | } | |
5255 | { | |
5256 | if (temp5) | |
5257 | delete arg5; | |
5258 | } | |
5259 | return resultobj; | |
5260 | fail: | |
5261 | { | |
5262 | if (temp5) | |
5263 | delete arg5; | |
5264 | } | |
5265 | return NULL; | |
5266 | } | |
5267 | ||
5268 | ||
5269 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5270 | PyObject *resultobj; | |
5271 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5272 | int arg2 = (int) 1 ; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | PyObject * obj1 = 0 ; | |
5275 | char *kwnames[] = { | |
5276 | (char *) "self",(char *) "number", NULL | |
5277 | }; | |
5278 | ||
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5282 | if (obj1) { | |
5283 | arg2 = (int) SWIG_AsInt(obj1); | |
5284 | if (PyErr_Occurred()) SWIG_fail; | |
5285 | } | |
5286 | { | |
5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5288 | (arg1)->SetFieldsCount(arg2); | |
5289 | ||
5290 | wxPyEndAllowThreads(__tstate); | |
5291 | if (PyErr_Occurred()) SWIG_fail; | |
5292 | } | |
5293 | Py_INCREF(Py_None); resultobj = Py_None; | |
5294 | return resultobj; | |
5295 | fail: | |
5296 | return NULL; | |
5297 | } | |
5298 | ||
5299 | ||
5300 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5301 | PyObject *resultobj; | |
5302 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5303 | int result; | |
5304 | PyObject * obj0 = 0 ; | |
5305 | char *kwnames[] = { | |
5306 | (char *) "self", NULL | |
5307 | }; | |
5308 | ||
5309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5312 | { | |
5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5314 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5315 | ||
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | resultobj = SWIG_FromInt((int)result); | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
5326 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5327 | PyObject *resultobj; | |
5328 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5329 | wxString *arg2 = 0 ; | |
5330 | int arg3 = (int) 0 ; | |
5331 | bool temp2 = False ; | |
5332 | PyObject * obj0 = 0 ; | |
5333 | PyObject * obj1 = 0 ; | |
5334 | PyObject * obj2 = 0 ; | |
5335 | char *kwnames[] = { | |
5336 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5337 | }; | |
5338 | ||
5339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5342 | { | |
5343 | arg2 = wxString_in_helper(obj1); | |
5344 | if (arg2 == NULL) SWIG_fail; | |
5345 | temp2 = True; | |
5346 | } | |
5347 | if (obj2) { | |
5348 | arg3 = (int) SWIG_AsInt(obj2); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
5357 | } | |
5358 | Py_INCREF(Py_None); resultobj = Py_None; | |
5359 | { | |
5360 | if (temp2) | |
5361 | delete arg2; | |
5362 | } | |
5363 | return resultobj; | |
5364 | fail: | |
5365 | { | |
5366 | if (temp2) | |
5367 | delete arg2; | |
5368 | } | |
5369 | return NULL; | |
5370 | } | |
5371 | ||
5372 | ||
5373 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5374 | PyObject *resultobj; | |
5375 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5376 | int arg2 = (int) 0 ; | |
5377 | wxString result; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | PyObject * obj1 = 0 ; | |
5380 | char *kwnames[] = { | |
5381 | (char *) "self",(char *) "number", NULL | |
5382 | }; | |
5383 | ||
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5387 | if (obj1) { | |
5388 | arg2 = (int) SWIG_AsInt(obj1); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
5391 | { | |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5393 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5394 | ||
5395 | wxPyEndAllowThreads(__tstate); | |
5396 | if (PyErr_Occurred()) SWIG_fail; | |
5397 | } | |
5398 | { | |
5399 | #if wxUSE_UNICODE | |
5400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5401 | #else | |
5402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5403 | #endif | |
5404 | } | |
5405 | return resultobj; | |
5406 | fail: | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5412 | PyObject *resultobj; | |
5413 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5414 | wxString *arg2 = 0 ; | |
5415 | int arg3 = (int) 0 ; | |
5416 | bool temp2 = False ; | |
5417 | PyObject * obj0 = 0 ; | |
5418 | PyObject * obj1 = 0 ; | |
5419 | PyObject * obj2 = 0 ; | |
5420 | char *kwnames[] = { | |
5421 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5422 | }; | |
5423 | ||
5424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5427 | { | |
5428 | arg2 = wxString_in_helper(obj1); | |
5429 | if (arg2 == NULL) SWIG_fail; | |
5430 | temp2 = True; | |
5431 | } | |
5432 | if (obj2) { | |
5433 | arg3 = (int) SWIG_AsInt(obj2); | |
5434 | if (PyErr_Occurred()) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | { | |
5445 | if (temp2) | |
5446 | delete arg2; | |
5447 | } | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | { | |
5451 | if (temp2) | |
5452 | delete arg2; | |
5453 | } | |
5454 | return NULL; | |
5455 | } | |
5456 | ||
5457 | ||
5458 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject *resultobj; | |
5460 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5461 | int arg2 = (int) 0 ; | |
5462 | PyObject * obj0 = 0 ; | |
5463 | PyObject * obj1 = 0 ; | |
5464 | char *kwnames[] = { | |
5465 | (char *) "self",(char *) "number", NULL | |
5466 | }; | |
5467 | ||
5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5471 | if (obj1) { | |
5472 | arg2 = (int) SWIG_AsInt(obj1); | |
5473 | if (PyErr_Occurred()) SWIG_fail; | |
5474 | } | |
5475 | { | |
5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5477 | (arg1)->PopStatusText(arg2); | |
5478 | ||
5479 | wxPyEndAllowThreads(__tstate); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
5482 | Py_INCREF(Py_None); resultobj = Py_None; | |
5483 | return resultobj; | |
5484 | fail: | |
5485 | return NULL; | |
5486 | } | |
5487 | ||
5488 | ||
5489 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5490 | PyObject *resultobj; | |
5491 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5492 | int arg2 ; | |
5493 | int *arg3 = (int *) 0 ; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "widths", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5503 | { | |
5504 | arg2 = PyList_Size(obj1); | |
5505 | arg3 = int_LIST_helper(obj1); | |
5506 | if (arg3 == NULL) SWIG_fail; | |
5507 | } | |
5508 | { | |
5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5510 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5511 | ||
5512 | wxPyEndAllowThreads(__tstate); | |
5513 | if (PyErr_Occurred()) SWIG_fail; | |
5514 | } | |
5515 | Py_INCREF(Py_None); resultobj = Py_None; | |
5516 | { | |
5517 | if (arg3) delete [] arg3; | |
5518 | } | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | { | |
5522 | if (arg3) delete [] arg3; | |
5523 | } | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
03837c5c RD |
5528 | static PyObject *_wrap_StatusBar_SetStatusStyles(PyObject *self, PyObject *args, PyObject *kwargs) { |
5529 | PyObject *resultobj; | |
5530 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5531 | int arg2 ; | |
5532 | int *arg3 = (int *) 0 ; | |
5533 | PyObject * obj0 = 0 ; | |
5534 | PyObject * obj1 = 0 ; | |
5535 | char *kwnames[] = { | |
5536 | (char *) "self",(char *) "styles", NULL | |
5537 | }; | |
5538 | ||
5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusStyles",kwnames,&obj0,&obj1)) goto fail; | |
5540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5542 | { | |
5543 | arg2 = PyList_Size(obj1); | |
5544 | arg3 = int_LIST_helper(obj1); | |
5545 | if (arg3 == NULL) SWIG_fail; | |
5546 | } | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | (arg1)->SetStatusStyles(arg2,(int const *)arg3); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | Py_INCREF(Py_None); resultobj = Py_None; | |
5555 | { | |
5556 | if (arg3) delete [] arg3; | |
5557 | } | |
5558 | return resultobj; | |
5559 | fail: | |
5560 | { | |
5561 | if (arg3) delete [] arg3; | |
5562 | } | |
5563 | return NULL; | |
5564 | } | |
5565 | ||
5566 | ||
d55e5bfc RD |
5567 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
5568 | PyObject *resultobj; | |
5569 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5570 | int arg2 ; | |
5571 | wxRect result; | |
5572 | PyObject * obj0 = 0 ; | |
5573 | PyObject * obj1 = 0 ; | |
5574 | char *kwnames[] = { | |
5575 | (char *) "self",(char *) "i", NULL | |
5576 | }; | |
5577 | ||
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5581 | arg2 = (int) SWIG_AsInt(obj1); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | { | |
5584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5585 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5586 | ||
5587 | wxPyEndAllowThreads(__tstate); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
5590 | { | |
5591 | wxRect * resultptr; | |
5592 | resultptr = new wxRect((wxRect &) result); | |
5593 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5594 | } | |
5595 | return resultobj; | |
5596 | fail: | |
5597 | return NULL; | |
5598 | } | |
5599 | ||
5600 | ||
5601 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5602 | PyObject *resultobj; | |
5603 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5604 | int arg2 ; | |
5605 | PyObject * obj0 = 0 ; | |
5606 | PyObject * obj1 = 0 ; | |
5607 | char *kwnames[] = { | |
5608 | (char *) "self",(char *) "height", NULL | |
5609 | }; | |
5610 | ||
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5614 | arg2 = (int) SWIG_AsInt(obj1); | |
5615 | if (PyErr_Occurred()) SWIG_fail; | |
5616 | { | |
5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5618 | (arg1)->SetMinHeight(arg2); | |
5619 | ||
5620 | wxPyEndAllowThreads(__tstate); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | } | |
5623 | Py_INCREF(Py_None); resultobj = Py_None; | |
5624 | return resultobj; | |
5625 | fail: | |
5626 | return NULL; | |
5627 | } | |
5628 | ||
5629 | ||
5630 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5631 | PyObject *resultobj; | |
5632 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5633 | int result; | |
5634 | PyObject * obj0 = 0 ; | |
5635 | char *kwnames[] = { | |
5636 | (char *) "self", NULL | |
5637 | }; | |
5638 | ||
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5642 | { | |
5643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5644 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5645 | ||
5646 | wxPyEndAllowThreads(__tstate); | |
5647 | if (PyErr_Occurred()) SWIG_fail; | |
5648 | } | |
5649 | resultobj = SWIG_FromInt((int)result); | |
5650 | return resultobj; | |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
5656 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5657 | PyObject *resultobj; | |
5658 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5659 | int result; | |
5660 | PyObject * obj0 = 0 ; | |
5661 | char *kwnames[] = { | |
5662 | (char *) "self", NULL | |
5663 | }; | |
5664 | ||
5665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5668 | { | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5671 | ||
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) SWIG_fail; | |
5674 | } | |
5675 | resultobj = SWIG_FromInt((int)result); | |
5676 | return resultobj; | |
5677 | fail: | |
5678 | return NULL; | |
5679 | } | |
5680 | ||
5681 | ||
f20a2e1f RD |
5682 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5683 | PyObject *resultobj; | |
5684 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5685 | wxVisualAttributes result; | |
5686 | PyObject * obj0 = 0 ; | |
5687 | char *kwnames[] = { | |
5688 | (char *) "variant", NULL | |
5689 | }; | |
5690 | ||
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5692 | if (obj0) { | |
5693 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5694 | if (PyErr_Occurred()) SWIG_fail; | |
5695 | } | |
5696 | { | |
0439c23b | 5697 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5699 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5702 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5703 | } |
5704 | { | |
5705 | wxVisualAttributes * resultptr; | |
5706 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5707 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5708 | } | |
5709 | return resultobj; | |
5710 | fail: | |
5711 | return NULL; | |
5712 | } | |
5713 | ||
5714 | ||
d55e5bfc RD |
5715 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { |
5716 | PyObject *obj; | |
5717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5718 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5719 | Py_INCREF(obj); | |
5720 | return Py_BuildValue((char *)""); | |
5721 | } | |
5722 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5723 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5724 | return 1; | |
5725 | } | |
5726 | ||
5727 | ||
5728 | static PyObject *_wrap_SplitterNameStr_get() { | |
5729 | PyObject *pyobj; | |
5730 | ||
5731 | { | |
5732 | #if wxUSE_UNICODE | |
5733 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5734 | #else | |
5735 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5736 | #endif | |
5737 | } | |
5738 | return pyobj; | |
5739 | } | |
5740 | ||
5741 | ||
5742 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject *resultobj; | |
5744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5745 | int arg2 = (int) -1 ; | |
5746 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5747 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5748 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5749 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5750 | long arg5 = (long) wxSP_3D ; | |
5751 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5752 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5753 | wxSplitterWindow *result; | |
5754 | wxPoint temp3 ; | |
5755 | wxSize temp4 ; | |
5756 | bool temp6 = False ; | |
5757 | PyObject * obj0 = 0 ; | |
5758 | PyObject * obj1 = 0 ; | |
5759 | PyObject * obj2 = 0 ; | |
5760 | PyObject * obj3 = 0 ; | |
5761 | PyObject * obj4 = 0 ; | |
5762 | PyObject * obj5 = 0 ; | |
5763 | char *kwnames[] = { | |
5764 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5765 | }; | |
5766 | ||
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5770 | if (obj1) { | |
5771 | arg2 = (int) SWIG_AsInt(obj1); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | if (obj2) { | |
5775 | { | |
5776 | arg3 = &temp3; | |
5777 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5778 | } | |
5779 | } | |
5780 | if (obj3) { | |
5781 | { | |
5782 | arg4 = &temp4; | |
5783 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5784 | } | |
5785 | } | |
5786 | if (obj4) { | |
5787 | arg5 = (long) SWIG_AsLong(obj4); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | if (obj5) { | |
5791 | { | |
5792 | arg6 = wxString_in_helper(obj5); | |
5793 | if (arg6 == NULL) SWIG_fail; | |
5794 | temp6 = True; | |
5795 | } | |
5796 | } | |
5797 | { | |
0439c23b | 5798 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5800 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5803 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5804 | } |
5805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5806 | { | |
5807 | if (temp6) | |
5808 | delete arg6; | |
5809 | } | |
5810 | return resultobj; | |
5811 | fail: | |
5812 | { | |
5813 | if (temp6) | |
5814 | delete arg6; | |
5815 | } | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5821 | PyObject *resultobj; | |
5822 | wxSplitterWindow *result; | |
5823 | char *kwnames[] = { | |
5824 | NULL | |
5825 | }; | |
5826 | ||
5827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5828 | { | |
0439c23b | 5829 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5831 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5832 | ||
5833 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5834 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5835 | } |
5836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5837 | return resultobj; | |
5838 | fail: | |
5839 | return NULL; | |
5840 | } | |
5841 | ||
5842 | ||
5843 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject *resultobj; | |
5845 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5846 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5847 | int arg3 = (int) -1 ; | |
5848 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5849 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5850 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5851 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5852 | long arg6 = (long) wxSP_3D ; | |
5853 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5854 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5855 | bool result; | |
5856 | wxPoint temp4 ; | |
5857 | wxSize temp5 ; | |
5858 | bool temp7 = False ; | |
5859 | PyObject * obj0 = 0 ; | |
5860 | PyObject * obj1 = 0 ; | |
5861 | PyObject * obj2 = 0 ; | |
5862 | PyObject * obj3 = 0 ; | |
5863 | PyObject * obj4 = 0 ; | |
5864 | PyObject * obj5 = 0 ; | |
5865 | PyObject * obj6 = 0 ; | |
5866 | char *kwnames[] = { | |
5867 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5868 | }; | |
5869 | ||
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5875 | if (obj2) { | |
5876 | arg3 = (int) SWIG_AsInt(obj2); | |
5877 | if (PyErr_Occurred()) SWIG_fail; | |
5878 | } | |
5879 | if (obj3) { | |
5880 | { | |
5881 | arg4 = &temp4; | |
5882 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5883 | } | |
5884 | } | |
5885 | if (obj4) { | |
5886 | { | |
5887 | arg5 = &temp5; | |
5888 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5889 | } | |
5890 | } | |
5891 | if (obj5) { | |
5892 | arg6 = (long) SWIG_AsLong(obj5); | |
5893 | if (PyErr_Occurred()) SWIG_fail; | |
5894 | } | |
5895 | if (obj6) { | |
5896 | { | |
5897 | arg7 = wxString_in_helper(obj6); | |
5898 | if (arg7 == NULL) SWIG_fail; | |
5899 | temp7 = True; | |
5900 | } | |
5901 | } | |
5902 | { | |
5903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5904 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5905 | ||
5906 | wxPyEndAllowThreads(__tstate); | |
5907 | if (PyErr_Occurred()) SWIG_fail; | |
5908 | } | |
5909 | { | |
5910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5911 | } | |
5912 | { | |
5913 | if (temp7) | |
5914 | delete arg7; | |
5915 | } | |
5916 | return resultobj; | |
5917 | fail: | |
5918 | { | |
5919 | if (temp7) | |
5920 | delete arg7; | |
5921 | } | |
5922 | return NULL; | |
5923 | } | |
5924 | ||
5925 | ||
5926 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5927 | PyObject *resultobj; | |
5928 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5929 | wxWindow *result; | |
5930 | PyObject * obj0 = 0 ; | |
5931 | char *kwnames[] = { | |
5932 | (char *) "self", NULL | |
5933 | }; | |
5934 | ||
5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5938 | { | |
5939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5940 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5941 | ||
5942 | wxPyEndAllowThreads(__tstate); | |
5943 | if (PyErr_Occurred()) SWIG_fail; | |
5944 | } | |
5945 | { | |
412d302d | 5946 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5947 | } |
5948 | return resultobj; | |
5949 | fail: | |
5950 | return NULL; | |
5951 | } | |
5952 | ||
5953 | ||
5954 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5955 | PyObject *resultobj; | |
5956 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5957 | wxWindow *result; | |
5958 | PyObject * obj0 = 0 ; | |
5959 | char *kwnames[] = { | |
5960 | (char *) "self", NULL | |
5961 | }; | |
5962 | ||
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5966 | { | |
5967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5968 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5969 | ||
5970 | wxPyEndAllowThreads(__tstate); | |
5971 | if (PyErr_Occurred()) SWIG_fail; | |
5972 | } | |
5973 | { | |
412d302d | 5974 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5975 | } |
5976 | return resultobj; | |
5977 | fail: | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
5982 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5983 | PyObject *resultobj; | |
5984 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5985 | int arg2 ; | |
5986 | PyObject * obj0 = 0 ; | |
5987 | PyObject * obj1 = 0 ; | |
5988 | char *kwnames[] = { | |
5989 | (char *) "self",(char *) "mode", NULL | |
5990 | }; | |
5991 | ||
5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5995 | arg2 = (int) SWIG_AsInt(obj1); | |
5996 | if (PyErr_Occurred()) SWIG_fail; | |
5997 | { | |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | (arg1)->SetSplitMode(arg2); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
6002 | if (PyErr_Occurred()) SWIG_fail; | |
6003 | } | |
6004 | Py_INCREF(Py_None); resultobj = Py_None; | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6014 | int result; | |
6015 | PyObject * obj0 = 0 ; | |
6016 | char *kwnames[] = { | |
6017 | (char *) "self", NULL | |
6018 | }; | |
6019 | ||
6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
6021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6023 | { | |
6024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6025 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
6026 | ||
6027 | wxPyEndAllowThreads(__tstate); | |
6028 | if (PyErr_Occurred()) SWIG_fail; | |
6029 | } | |
6030 | resultobj = SWIG_FromInt((int)result); | |
6031 | return resultobj; | |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
6037 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject *resultobj; | |
6039 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6040 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | PyObject * obj1 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "window", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
6048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6050 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | (arg1)->Initialize(arg2); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | Py_INCREF(Py_None); resultobj = Py_None; | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject *resultobj; | |
6068 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6069 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6070 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6071 | int arg4 = (int) 0 ; | |
6072 | bool result; | |
6073 | PyObject * obj0 = 0 ; | |
6074 | PyObject * obj1 = 0 ; | |
6075 | PyObject * obj2 = 0 ; | |
6076 | PyObject * obj3 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6086 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6088 | if (obj3) { | |
6089 | arg4 = (int) SWIG_AsInt(obj3); | |
6090 | if (PyErr_Occurred()) SWIG_fail; | |
6091 | } | |
6092 | { | |
6093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6094 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
6095 | ||
6096 | wxPyEndAllowThreads(__tstate); | |
6097 | if (PyErr_Occurred()) SWIG_fail; | |
6098 | } | |
6099 | { | |
6100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6101 | } | |
6102 | return resultobj; | |
6103 | fail: | |
6104 | return NULL; | |
6105 | } | |
6106 | ||
6107 | ||
6108 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6109 | PyObject *resultobj; | |
6110 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6111 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6112 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6113 | int arg4 = (int) 0 ; | |
6114 | bool result; | |
6115 | PyObject * obj0 = 0 ; | |
6116 | PyObject * obj1 = 0 ; | |
6117 | PyObject * obj2 = 0 ; | |
6118 | PyObject * obj3 = 0 ; | |
6119 | char *kwnames[] = { | |
6120 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6121 | }; | |
6122 | ||
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6128 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6130 | if (obj3) { | |
6131 | arg4 = (int) SWIG_AsInt(obj3); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | { | |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | { | |
6142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6143 | } | |
6144 | return resultobj; | |
6145 | fail: | |
6146 | return NULL; | |
6147 | } | |
6148 | ||
6149 | ||
6150 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6151 | PyObject *resultobj; | |
6152 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6153 | wxWindow *arg2 = (wxWindow *) NULL ; | |
6154 | bool result; | |
6155 | PyObject * obj0 = 0 ; | |
6156 | PyObject * obj1 = 0 ; | |
6157 | char *kwnames[] = { | |
6158 | (char *) "self",(char *) "toRemove", NULL | |
6159 | }; | |
6160 | ||
6161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
6162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6164 | if (obj1) { | |
6165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6167 | } | |
6168 | { | |
6169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6170 | result = (bool)(arg1)->Unsplit(arg2); | |
6171 | ||
6172 | wxPyEndAllowThreads(__tstate); | |
6173 | if (PyErr_Occurred()) SWIG_fail; | |
6174 | } | |
6175 | { | |
6176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6177 | } | |
6178 | return resultobj; | |
6179 | fail: | |
6180 | return NULL; | |
6181 | } | |
6182 | ||
6183 | ||
6184 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6185 | PyObject *resultobj; | |
6186 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6187 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6188 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6189 | bool result; | |
6190 | PyObject * obj0 = 0 ; | |
6191 | PyObject * obj1 = 0 ; | |
6192 | PyObject * obj2 = 0 ; | |
6193 | char *kwnames[] = { | |
6194 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6195 | }; | |
6196 | ||
6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6202 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6204 | { | |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6207 | ||
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | { | |
6212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6213 | } | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6221 | PyObject *resultobj; | |
6222 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6223 | PyObject * obj0 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "self", NULL | |
6226 | }; | |
6227 | ||
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6231 | { | |
6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6233 | (arg1)->UpdateSize(); | |
6234 | ||
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
6238 | Py_INCREF(Py_None); resultobj = Py_None; | |
6239 | return resultobj; | |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
6245 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6246 | PyObject *resultobj; | |
6247 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6248 | bool result; | |
6249 | PyObject * obj0 = 0 ; | |
6250 | char *kwnames[] = { | |
6251 | (char *) "self", NULL | |
6252 | }; | |
6253 | ||
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6257 | { | |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6260 | ||
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
6264 | { | |
6265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6266 | } | |
6267 | return resultobj; | |
6268 | fail: | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
6273 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject *resultobj; | |
6275 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6276 | int arg2 ; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | PyObject * obj1 = 0 ; | |
6279 | char *kwnames[] = { | |
6280 | (char *) "self",(char *) "width", NULL | |
6281 | }; | |
6282 | ||
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6286 | arg2 = (int) SWIG_AsInt(obj1); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | { | |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | (arg1)->SetSashSize(arg2); | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
6295 | Py_INCREF(Py_None); resultobj = Py_None; | |
6296 | return resultobj; | |
6297 | fail: | |
6298 | return NULL; | |
6299 | } | |
6300 | ||
6301 | ||
6302 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6303 | PyObject *resultobj; | |
6304 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6305 | int arg2 ; | |
6306 | PyObject * obj0 = 0 ; | |
6307 | PyObject * obj1 = 0 ; | |
6308 | char *kwnames[] = { | |
6309 | (char *) "self",(char *) "width", NULL | |
6310 | }; | |
6311 | ||
6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6315 | arg2 = (int) SWIG_AsInt(obj1); | |
6316 | if (PyErr_Occurred()) SWIG_fail; | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | (arg1)->SetBorderSize(arg2); | |
6320 | ||
6321 | wxPyEndAllowThreads(__tstate); | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | Py_INCREF(Py_None); resultobj = Py_None; | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
6331 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject *resultobj; | |
6333 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6334 | int result; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | resultobj = SWIG_FromInt((int)result); | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6360 | int result; | |
6361 | PyObject * obj0 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "self", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6369 | { | |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6372 | ||
6373 | wxPyEndAllowThreads(__tstate); | |
6374 | if (PyErr_Occurred()) SWIG_fail; | |
6375 | } | |
6376 | resultobj = SWIG_FromInt((int)result); | |
6377 | return resultobj; | |
6378 | fail: | |
6379 | return NULL; | |
6380 | } | |
6381 | ||
6382 | ||
6383 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6384 | PyObject *resultobj; | |
6385 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6386 | int arg2 ; | |
6387 | bool arg3 = (bool) True ; | |
6388 | PyObject * obj0 = 0 ; | |
6389 | PyObject * obj1 = 0 ; | |
6390 | PyObject * obj2 = 0 ; | |
6391 | char *kwnames[] = { | |
6392 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6393 | }; | |
6394 | ||
6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6398 | arg2 = (int) SWIG_AsInt(obj1); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | if (obj2) { | |
6401 | arg3 = (bool) SWIG_AsBool(obj2); | |
6402 | if (PyErr_Occurred()) SWIG_fail; | |
6403 | } | |
6404 | { | |
6405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6406 | (arg1)->SetSashPosition(arg2,arg3); | |
6407 | ||
6408 | wxPyEndAllowThreads(__tstate); | |
6409 | if (PyErr_Occurred()) SWIG_fail; | |
6410 | } | |
6411 | Py_INCREF(Py_None); resultobj = Py_None; | |
6412 | return resultobj; | |
6413 | fail: | |
6414 | return NULL; | |
6415 | } | |
6416 | ||
6417 | ||
6418 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6419 | PyObject *resultobj; | |
6420 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6421 | int result; | |
6422 | PyObject * obj0 = 0 ; | |
6423 | char *kwnames[] = { | |
6424 | (char *) "self", NULL | |
6425 | }; | |
6426 | ||
6427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6430 | { | |
6431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6432 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6433 | ||
6434 | wxPyEndAllowThreads(__tstate); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | } | |
6437 | resultobj = SWIG_FromInt((int)result); | |
6438 | return resultobj; | |
6439 | fail: | |
6440 | return NULL; | |
6441 | } | |
6442 | ||
6443 | ||
6444 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6445 | PyObject *resultobj; | |
6446 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6447 | int arg2 ; | |
6448 | PyObject * obj0 = 0 ; | |
6449 | PyObject * obj1 = 0 ; | |
6450 | char *kwnames[] = { | |
6451 | (char *) "self",(char *) "min", NULL | |
6452 | }; | |
6453 | ||
6454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6457 | arg2 = (int) SWIG_AsInt(obj1); | |
6458 | if (PyErr_Occurred()) SWIG_fail; | |
6459 | { | |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6461 | (arg1)->SetMinimumPaneSize(arg2); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
6466 | Py_INCREF(Py_None); resultobj = Py_None; | |
6467 | return resultobj; | |
6468 | fail: | |
6469 | return NULL; | |
6470 | } | |
6471 | ||
6472 | ||
6473 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6474 | PyObject *resultobj; | |
6475 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6476 | int result; | |
6477 | PyObject * obj0 = 0 ; | |
6478 | char *kwnames[] = { | |
6479 | (char *) "self", NULL | |
6480 | }; | |
6481 | ||
6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6485 | { | |
6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6487 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6488 | ||
6489 | wxPyEndAllowThreads(__tstate); | |
6490 | if (PyErr_Occurred()) SWIG_fail; | |
6491 | } | |
6492 | resultobj = SWIG_FromInt((int)result); | |
6493 | return resultobj; | |
6494 | fail: | |
6495 | return NULL; | |
6496 | } | |
6497 | ||
6498 | ||
6499 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6500 | PyObject *resultobj; | |
6501 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6502 | int arg2 ; | |
6503 | int arg3 ; | |
6504 | int arg4 = (int) 5 ; | |
6505 | bool result; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | PyObject * obj1 = 0 ; | |
6508 | PyObject * obj2 = 0 ; | |
6509 | PyObject * obj3 = 0 ; | |
6510 | char *kwnames[] = { | |
6511 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6512 | }; | |
6513 | ||
6514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6517 | arg2 = (int) SWIG_AsInt(obj1); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | arg3 = (int) SWIG_AsInt(obj2); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | if (obj3) { | |
6522 | arg4 = (int) SWIG_AsInt(obj3); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | { | |
6526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6527 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6528 | ||
6529 | wxPyEndAllowThreads(__tstate); | |
6530 | if (PyErr_Occurred()) SWIG_fail; | |
6531 | } | |
6532 | { | |
6533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6534 | } | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
6541 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6542 | PyObject *resultobj; | |
6543 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6544 | PyObject * obj0 = 0 ; | |
6545 | char *kwnames[] = { | |
6546 | (char *) "self", NULL | |
6547 | }; | |
6548 | ||
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | (arg1)->SizeWindows(); | |
6555 | ||
6556 | wxPyEndAllowThreads(__tstate); | |
6557 | if (PyErr_Occurred()) SWIG_fail; | |
6558 | } | |
6559 | Py_INCREF(Py_None); resultobj = Py_None; | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
6566 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6567 | PyObject *resultobj; | |
6568 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6569 | bool arg2 ; | |
6570 | PyObject * obj0 = 0 ; | |
6571 | PyObject * obj1 = 0 ; | |
6572 | char *kwnames[] = { | |
6573 | (char *) "self",(char *) "needUpdating", NULL | |
6574 | }; | |
6575 | ||
6576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6579 | arg2 = (bool) SWIG_AsBool(obj1); | |
6580 | if (PyErr_Occurred()) SWIG_fail; | |
6581 | { | |
6582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6583 | (arg1)->SetNeedUpdating(arg2); | |
6584 | ||
6585 | wxPyEndAllowThreads(__tstate); | |
6586 | if (PyErr_Occurred()) SWIG_fail; | |
6587 | } | |
6588 | Py_INCREF(Py_None); resultobj = Py_None; | |
6589 | return resultobj; | |
6590 | fail: | |
6591 | return NULL; | |
6592 | } | |
6593 | ||
6594 | ||
6595 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6596 | PyObject *resultobj; | |
6597 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6598 | bool result; | |
6599 | PyObject * obj0 = 0 ; | |
6600 | char *kwnames[] = { | |
6601 | (char *) "self", NULL | |
6602 | }; | |
6603 | ||
6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6607 | { | |
6608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6609 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6610 | ||
6611 | wxPyEndAllowThreads(__tstate); | |
6612 | if (PyErr_Occurred()) SWIG_fail; | |
6613 | } | |
6614 | { | |
6615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6616 | } | |
6617 | return resultobj; | |
6618 | fail: | |
6619 | return NULL; | |
6620 | } | |
6621 | ||
6622 | ||
f20a2e1f RD |
6623 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6624 | PyObject *resultobj; | |
6625 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6626 | wxVisualAttributes result; | |
6627 | PyObject * obj0 = 0 ; | |
6628 | char *kwnames[] = { | |
6629 | (char *) "variant", NULL | |
6630 | }; | |
6631 | ||
6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6633 | if (obj0) { | |
6634 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6635 | if (PyErr_Occurred()) SWIG_fail; | |
6636 | } | |
6637 | { | |
0439c23b | 6638 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6640 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6641 | ||
6642 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6643 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6644 | } |
6645 | { | |
6646 | wxVisualAttributes * resultptr; | |
6647 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6649 | } | |
6650 | return resultobj; | |
6651 | fail: | |
6652 | return NULL; | |
6653 | } | |
6654 | ||
6655 | ||
d55e5bfc RD |
6656 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { |
6657 | PyObject *obj; | |
6658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6659 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6660 | Py_INCREF(obj); | |
6661 | return Py_BuildValue((char *)""); | |
6662 | } | |
6663 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6664 | PyObject *resultobj; | |
6665 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6666 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6667 | wxSplitterEvent *result; | |
6668 | PyObject * obj0 = 0 ; | |
6669 | PyObject * obj1 = 0 ; | |
6670 | char *kwnames[] = { | |
6671 | (char *) "type",(char *) "splitter", NULL | |
6672 | }; | |
6673 | ||
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6675 | if (obj0) { | |
6676 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6677 | if (PyErr_Occurred()) SWIG_fail; | |
6678 | } | |
6679 | if (obj1) { | |
6680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6682 | } | |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject *resultobj; | |
6699 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6700 | int arg2 ; | |
6701 | PyObject * obj0 = 0 ; | |
6702 | PyObject * obj1 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "self",(char *) "pos", NULL | |
6705 | }; | |
6706 | ||
6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6710 | arg2 = (int) SWIG_AsInt(obj1); | |
6711 | if (PyErr_Occurred()) SWIG_fail; | |
6712 | { | |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | (arg1)->SetSashPosition(arg2); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
6719 | Py_INCREF(Py_None); resultobj = Py_None; | |
6720 | return resultobj; | |
6721 | fail: | |
6722 | return NULL; | |
6723 | } | |
6724 | ||
6725 | ||
6726 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6727 | PyObject *resultobj; | |
6728 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6729 | int result; | |
6730 | PyObject * obj0 = 0 ; | |
6731 | char *kwnames[] = { | |
6732 | (char *) "self", NULL | |
6733 | }; | |
6734 | ||
6735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6738 | { | |
6739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6740 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6741 | ||
6742 | wxPyEndAllowThreads(__tstate); | |
6743 | if (PyErr_Occurred()) SWIG_fail; | |
6744 | } | |
6745 | resultobj = SWIG_FromInt((int)result); | |
6746 | return resultobj; | |
6747 | fail: | |
6748 | return NULL; | |
6749 | } | |
6750 | ||
6751 | ||
6752 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6753 | PyObject *resultobj; | |
6754 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6755 | wxWindow *result; | |
6756 | PyObject * obj0 = 0 ; | |
6757 | char *kwnames[] = { | |
6758 | (char *) "self", NULL | |
6759 | }; | |
6760 | ||
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6764 | { | |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6767 | ||
6768 | wxPyEndAllowThreads(__tstate); | |
6769 | if (PyErr_Occurred()) SWIG_fail; | |
6770 | } | |
6771 | { | |
412d302d | 6772 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
6773 | } |
6774 | return resultobj; | |
6775 | fail: | |
6776 | return NULL; | |
6777 | } | |
6778 | ||
6779 | ||
6780 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6781 | PyObject *resultobj; | |
6782 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6783 | int result; | |
6784 | PyObject * obj0 = 0 ; | |
6785 | char *kwnames[] = { | |
6786 | (char *) "self", NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6792 | { | |
6793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6794 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6795 | ||
6796 | wxPyEndAllowThreads(__tstate); | |
6797 | if (PyErr_Occurred()) SWIG_fail; | |
6798 | } | |
6799 | resultobj = SWIG_FromInt((int)result); | |
6800 | return resultobj; | |
6801 | fail: | |
6802 | return NULL; | |
6803 | } | |
6804 | ||
6805 | ||
6806 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6807 | PyObject *resultobj; | |
6808 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6809 | int result; | |
6810 | PyObject * obj0 = 0 ; | |
6811 | char *kwnames[] = { | |
6812 | (char *) "self", NULL | |
6813 | }; | |
6814 | ||
6815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6818 | { | |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6820 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6821 | ||
6822 | wxPyEndAllowThreads(__tstate); | |
6823 | if (PyErr_Occurred()) SWIG_fail; | |
6824 | } | |
6825 | resultobj = SWIG_FromInt((int)result); | |
6826 | return resultobj; | |
6827 | fail: | |
6828 | return NULL; | |
6829 | } | |
6830 | ||
6831 | ||
6832 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6833 | PyObject *obj; | |
6834 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6835 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6836 | Py_INCREF(obj); | |
6837 | return Py_BuildValue((char *)""); | |
6838 | } | |
6839 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6840 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6841 | return 1; | |
6842 | } | |
6843 | ||
6844 | ||
6845 | static PyObject *_wrap_SashNameStr_get() { | |
6846 | PyObject *pyobj; | |
6847 | ||
6848 | { | |
6849 | #if wxUSE_UNICODE | |
6850 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6851 | #else | |
6852 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6853 | #endif | |
6854 | } | |
6855 | return pyobj; | |
6856 | } | |
6857 | ||
6858 | ||
6859 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6860 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6861 | return 1; | |
6862 | } | |
6863 | ||
6864 | ||
6865 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6866 | PyObject *pyobj; | |
6867 | ||
6868 | { | |
6869 | #if wxUSE_UNICODE | |
6870 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6871 | #else | |
6872 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6873 | #endif | |
6874 | } | |
6875 | return pyobj; | |
6876 | } | |
6877 | ||
6878 | ||
6879 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6880 | PyObject *resultobj; | |
6881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6882 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6883 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6884 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6885 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6886 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6887 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6888 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6889 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6890 | wxSashWindow *result; | |
6891 | wxPoint temp3 ; | |
6892 | wxSize temp4 ; | |
6893 | bool temp6 = False ; | |
6894 | PyObject * obj0 = 0 ; | |
6895 | PyObject * obj1 = 0 ; | |
6896 | PyObject * obj2 = 0 ; | |
6897 | PyObject * obj3 = 0 ; | |
6898 | PyObject * obj4 = 0 ; | |
6899 | PyObject * obj5 = 0 ; | |
6900 | char *kwnames[] = { | |
6901 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6902 | }; | |
6903 | ||
248ed943 | 6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
6905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6907 | if (obj1) { |
6908 | arg2 = (int) SWIG_AsInt(obj1); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
d55e5bfc RD |
6911 | if (obj2) { |
6912 | { | |
6913 | arg3 = &temp3; | |
6914 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6915 | } | |
6916 | } | |
6917 | if (obj3) { | |
6918 | { | |
6919 | arg4 = &temp4; | |
6920 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6921 | } | |
6922 | } | |
6923 | if (obj4) { | |
6924 | arg5 = (long) SWIG_AsLong(obj4); | |
6925 | if (PyErr_Occurred()) SWIG_fail; | |
6926 | } | |
6927 | if (obj5) { | |
6928 | { | |
6929 | arg6 = wxString_in_helper(obj5); | |
6930 | if (arg6 == NULL) SWIG_fail; | |
6931 | temp6 = True; | |
6932 | } | |
6933 | } | |
6934 | { | |
0439c23b | 6935 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6937 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6938 | ||
6939 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6940 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6941 | } |
6942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6943 | { | |
6944 | if (temp6) | |
6945 | delete arg6; | |
6946 | } | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | { | |
6950 | if (temp6) | |
6951 | delete arg6; | |
6952 | } | |
6953 | return NULL; | |
6954 | } | |
6955 | ||
6956 | ||
6957 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6958 | PyObject *resultobj; | |
6959 | wxSashWindow *result; | |
6960 | char *kwnames[] = { | |
6961 | NULL | |
6962 | }; | |
6963 | ||
6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6965 | { | |
0439c23b | 6966 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6968 | result = (wxSashWindow *)new wxSashWindow(); | |
6969 | ||
6970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6971 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6972 | } |
6973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6974 | return resultobj; | |
6975 | fail: | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
6980 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6981 | PyObject *resultobj; | |
6982 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6983 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6984 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6985 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6986 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6987 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6988 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6989 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6990 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6991 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6992 | bool result; | |
6993 | wxPoint temp4 ; | |
6994 | wxSize temp5 ; | |
6995 | bool temp7 = False ; | |
6996 | PyObject * obj0 = 0 ; | |
6997 | PyObject * obj1 = 0 ; | |
6998 | PyObject * obj2 = 0 ; | |
6999 | PyObject * obj3 = 0 ; | |
7000 | PyObject * obj4 = 0 ; | |
7001 | PyObject * obj5 = 0 ; | |
7002 | PyObject * obj6 = 0 ; | |
7003 | char *kwnames[] = { | |
7004 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7005 | }; | |
7006 | ||
248ed943 | 7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
7008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, |
7009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
7012 | if (obj2) { |
7013 | arg3 = (int) SWIG_AsInt(obj2); | |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
7015 | } | |
d55e5bfc RD |
7016 | if (obj3) { |
7017 | { | |
7018 | arg4 = &temp4; | |
7019 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7020 | } | |
7021 | } | |
7022 | if (obj4) { | |
7023 | { | |
7024 | arg5 = &temp5; | |
7025 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7026 | } | |
7027 | } | |
7028 | if (obj5) { | |
7029 | arg6 = (long) SWIG_AsLong(obj5); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | if (obj6) { | |
7033 | { | |
7034 | arg7 = wxString_in_helper(obj6); | |
7035 | if (arg7 == NULL) SWIG_fail; | |
7036 | temp7 = True; | |
7037 | } | |
7038 | } | |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7048 | } | |
7049 | { | |
7050 | if (temp7) | |
7051 | delete arg7; | |
7052 | } | |
7053 | return resultobj; | |
7054 | fail: | |
7055 | { | |
7056 | if (temp7) | |
7057 | delete arg7; | |
7058 | } | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
7063 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject *resultobj; | |
7065 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7066 | int arg2 ; | |
7067 | bool arg3 ; | |
7068 | PyObject * obj0 = 0 ; | |
7069 | PyObject * obj1 = 0 ; | |
7070 | PyObject * obj2 = 0 ; | |
7071 | char *kwnames[] = { | |
7072 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
7073 | }; | |
7074 | ||
7075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7078 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | arg3 = (bool) SWIG_AsBool(obj2); | |
7081 | if (PyErr_Occurred()) SWIG_fail; | |
7082 | { | |
7083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7084 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
7085 | ||
7086 | wxPyEndAllowThreads(__tstate); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | } | |
7089 | Py_INCREF(Py_None); resultobj = Py_None; | |
7090 | return resultobj; | |
7091 | fail: | |
7092 | return NULL; | |
7093 | } | |
7094 | ||
7095 | ||
7096 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7097 | PyObject *resultobj; | |
7098 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7099 | int arg2 ; | |
7100 | bool result; | |
7101 | PyObject * obj0 = 0 ; | |
7102 | PyObject * obj1 = 0 ; | |
7103 | char *kwnames[] = { | |
7104 | (char *) "self",(char *) "edge", NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
7108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7110 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
7112 | { | |
7113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7114 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
7115 | ||
7116 | wxPyEndAllowThreads(__tstate); | |
7117 | if (PyErr_Occurred()) SWIG_fail; | |
7118 | } | |
7119 | { | |
7120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7121 | } | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
7128 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject *resultobj; | |
7130 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7131 | int arg2 ; | |
7132 | bool arg3 ; | |
7133 | PyObject * obj0 = 0 ; | |
7134 | PyObject * obj1 = 0 ; | |
7135 | PyObject * obj2 = 0 ; | |
7136 | char *kwnames[] = { | |
7137 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
7138 | }; | |
7139 | ||
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7143 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | arg3 = (bool) SWIG_AsBool(obj2); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | { | |
7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7149 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
7150 | ||
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | Py_INCREF(Py_None); resultobj = Py_None; | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7162 | PyObject *resultobj; | |
7163 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7164 | int arg2 ; | |
7165 | bool result; | |
7166 | PyObject * obj0 = 0 ; | |
7167 | PyObject * obj1 = 0 ; | |
7168 | char *kwnames[] = { | |
7169 | (char *) "self",(char *) "edge", NULL | |
7170 | }; | |
7171 | ||
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
7173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7175 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7176 | if (PyErr_Occurred()) SWIG_fail; | |
7177 | { | |
7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7179 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
7180 | ||
7181 | wxPyEndAllowThreads(__tstate); | |
7182 | if (PyErr_Occurred()) SWIG_fail; | |
7183 | } | |
7184 | { | |
7185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7186 | } | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7194 | PyObject *resultobj; | |
7195 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7196 | int arg2 ; | |
7197 | int result; | |
7198 | PyObject * obj0 = 0 ; | |
7199 | PyObject * obj1 = 0 ; | |
7200 | char *kwnames[] = { | |
7201 | (char *) "self",(char *) "edge", NULL | |
7202 | }; | |
7203 | ||
7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7207 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | { | |
7210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7211 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7212 | ||
7213 | wxPyEndAllowThreads(__tstate); | |
7214 | if (PyErr_Occurred()) SWIG_fail; | |
7215 | } | |
7216 | resultobj = SWIG_FromInt((int)result); | |
7217 | return resultobj; | |
7218 | fail: | |
7219 | return NULL; | |
7220 | } | |
7221 | ||
7222 | ||
7223 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7224 | PyObject *resultobj; | |
7225 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7226 | int arg2 ; | |
7227 | PyObject * obj0 = 0 ; | |
7228 | PyObject * obj1 = 0 ; | |
7229 | char *kwnames[] = { | |
7230 | (char *) "self",(char *) "width", NULL | |
7231 | }; | |
7232 | ||
7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7236 | arg2 = (int) SWIG_AsInt(obj1); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | { | |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7240 | (arg1)->SetDefaultBorderSize(arg2); | |
7241 | ||
7242 | wxPyEndAllowThreads(__tstate); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | Py_INCREF(Py_None); resultobj = Py_None; | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
7252 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7253 | PyObject *resultobj; | |
7254 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7255 | int result; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | char *kwnames[] = { | |
7258 | (char *) "self", NULL | |
7259 | }; | |
7260 | ||
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7264 | { | |
7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7266 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7267 | ||
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
7271 | resultobj = SWIG_FromInt((int)result); | |
7272 | return resultobj; | |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
7278 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject *resultobj; | |
7280 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7281 | int arg2 ; | |
7282 | PyObject * obj0 = 0 ; | |
7283 | PyObject * obj1 = 0 ; | |
7284 | char *kwnames[] = { | |
7285 | (char *) "self",(char *) "width", NULL | |
7286 | }; | |
7287 | ||
7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7291 | arg2 = (int) SWIG_AsInt(obj1); | |
7292 | if (PyErr_Occurred()) SWIG_fail; | |
7293 | { | |
7294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7295 | (arg1)->SetExtraBorderSize(arg2); | |
7296 | ||
7297 | wxPyEndAllowThreads(__tstate); | |
7298 | if (PyErr_Occurred()) SWIG_fail; | |
7299 | } | |
7300 | Py_INCREF(Py_None); resultobj = Py_None; | |
7301 | return resultobj; | |
7302 | fail: | |
7303 | return NULL; | |
7304 | } | |
7305 | ||
7306 | ||
7307 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7308 | PyObject *resultobj; | |
7309 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7310 | int result; | |
7311 | PyObject * obj0 = 0 ; | |
7312 | char *kwnames[] = { | |
7313 | (char *) "self", NULL | |
7314 | }; | |
7315 | ||
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7319 | { | |
7320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7321 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7322 | ||
7323 | wxPyEndAllowThreads(__tstate); | |
7324 | if (PyErr_Occurred()) SWIG_fail; | |
7325 | } | |
7326 | resultobj = SWIG_FromInt((int)result); | |
7327 | return resultobj; | |
7328 | fail: | |
7329 | return NULL; | |
7330 | } | |
7331 | ||
7332 | ||
7333 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7334 | PyObject *resultobj; | |
7335 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7336 | int arg2 ; | |
7337 | PyObject * obj0 = 0 ; | |
7338 | PyObject * obj1 = 0 ; | |
7339 | char *kwnames[] = { | |
7340 | (char *) "self",(char *) "min", NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7346 | arg2 = (int) SWIG_AsInt(obj1); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | { | |
7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7350 | (arg1)->SetMinimumSizeX(arg2); | |
7351 | ||
7352 | wxPyEndAllowThreads(__tstate); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | } | |
7355 | Py_INCREF(Py_None); resultobj = Py_None; | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | return NULL; | |
7359 | } | |
7360 | ||
7361 | ||
7362 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject *resultobj; | |
7364 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7365 | int arg2 ; | |
7366 | PyObject * obj0 = 0 ; | |
7367 | PyObject * obj1 = 0 ; | |
7368 | char *kwnames[] = { | |
7369 | (char *) "self",(char *) "min", NULL | |
7370 | }; | |
7371 | ||
7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7375 | arg2 = (int) SWIG_AsInt(obj1); | |
7376 | if (PyErr_Occurred()) SWIG_fail; | |
7377 | { | |
7378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7379 | (arg1)->SetMinimumSizeY(arg2); | |
7380 | ||
7381 | wxPyEndAllowThreads(__tstate); | |
7382 | if (PyErr_Occurred()) SWIG_fail; | |
7383 | } | |
7384 | Py_INCREF(Py_None); resultobj = Py_None; | |
7385 | return resultobj; | |
7386 | fail: | |
7387 | return NULL; | |
7388 | } | |
7389 | ||
7390 | ||
7391 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7392 | PyObject *resultobj; | |
7393 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7394 | int result; | |
7395 | PyObject * obj0 = 0 ; | |
7396 | char *kwnames[] = { | |
7397 | (char *) "self", NULL | |
7398 | }; | |
7399 | ||
7400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7403 | { | |
7404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7405 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7406 | ||
7407 | wxPyEndAllowThreads(__tstate); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
7410 | resultobj = SWIG_FromInt((int)result); | |
7411 | return resultobj; | |
7412 | fail: | |
7413 | return NULL; | |
7414 | } | |
7415 | ||
7416 | ||
7417 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7418 | PyObject *resultobj; | |
7419 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7420 | int result; | |
7421 | PyObject * obj0 = 0 ; | |
7422 | char *kwnames[] = { | |
7423 | (char *) "self", NULL | |
7424 | }; | |
7425 | ||
7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7429 | { | |
7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7431 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7432 | ||
7433 | wxPyEndAllowThreads(__tstate); | |
7434 | if (PyErr_Occurred()) SWIG_fail; | |
7435 | } | |
7436 | resultobj = SWIG_FromInt((int)result); | |
7437 | return resultobj; | |
7438 | fail: | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
7443 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject *resultobj; | |
7445 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7446 | int arg2 ; | |
7447 | PyObject * obj0 = 0 ; | |
7448 | PyObject * obj1 = 0 ; | |
7449 | char *kwnames[] = { | |
7450 | (char *) "self",(char *) "max", NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7456 | arg2 = (int) SWIG_AsInt(obj1); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | (arg1)->SetMaximumSizeX(arg2); | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | Py_INCREF(Py_None); resultobj = Py_None; | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
7472 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject *resultobj; | |
7474 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7475 | int arg2 ; | |
7476 | PyObject * obj0 = 0 ; | |
7477 | PyObject * obj1 = 0 ; | |
7478 | char *kwnames[] = { | |
7479 | (char *) "self",(char *) "max", NULL | |
7480 | }; | |
7481 | ||
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7485 | arg2 = (int) SWIG_AsInt(obj1); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | { | |
7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7489 | (arg1)->SetMaximumSizeY(arg2); | |
7490 | ||
7491 | wxPyEndAllowThreads(__tstate); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | Py_INCREF(Py_None); resultobj = Py_None; | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7502 | PyObject *resultobj; | |
7503 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7504 | int result; | |
7505 | PyObject * obj0 = 0 ; | |
7506 | char *kwnames[] = { | |
7507 | (char *) "self", NULL | |
7508 | }; | |
7509 | ||
7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7513 | { | |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
7520 | resultobj = SWIG_FromInt((int)result); | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
7527 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7528 | PyObject *resultobj; | |
7529 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7530 | int result; | |
7531 | PyObject * obj0 = 0 ; | |
7532 | char *kwnames[] = { | |
7533 | (char *) "self", NULL | |
7534 | }; | |
7535 | ||
7536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7539 | { | |
7540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7541 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7542 | ||
7543 | wxPyEndAllowThreads(__tstate); | |
7544 | if (PyErr_Occurred()) SWIG_fail; | |
7545 | } | |
7546 | resultobj = SWIG_FromInt((int)result); | |
7547 | return resultobj; | |
7548 | fail: | |
7549 | return NULL; | |
7550 | } | |
7551 | ||
7552 | ||
7553 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7554 | PyObject *resultobj; | |
7555 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7556 | int arg2 ; | |
7557 | int arg3 ; | |
7558 | int arg4 = (int) 2 ; | |
7559 | int result; | |
7560 | PyObject * obj0 = 0 ; | |
7561 | PyObject * obj1 = 0 ; | |
7562 | PyObject * obj2 = 0 ; | |
7563 | PyObject * obj3 = 0 ; | |
7564 | char *kwnames[] = { | |
7565 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7566 | }; | |
7567 | ||
7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7571 | arg2 = (int) SWIG_AsInt(obj1); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | arg3 = (int) SWIG_AsInt(obj2); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | if (obj3) { | |
7576 | arg4 = (int) SWIG_AsInt(obj3); | |
7577 | if (PyErr_Occurred()) SWIG_fail; | |
7578 | } | |
7579 | { | |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | resultobj = SWIG_FromInt((int)result); | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
7593 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7594 | PyObject *resultobj; | |
7595 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7596 | PyObject * obj0 = 0 ; | |
7597 | char *kwnames[] = { | |
7598 | (char *) "self", NULL | |
7599 | }; | |
7600 | ||
7601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | (arg1)->SizeWindows(); | |
7607 | ||
7608 | wxPyEndAllowThreads(__tstate); | |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
7610 | } | |
7611 | Py_INCREF(Py_None); resultobj = Py_None; | |
7612 | return resultobj; | |
7613 | fail: | |
7614 | return NULL; | |
7615 | } | |
7616 | ||
7617 | ||
7618 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7619 | PyObject *obj; | |
7620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7621 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7622 | Py_INCREF(obj); | |
7623 | return Py_BuildValue((char *)""); | |
7624 | } | |
7625 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7626 | PyObject *resultobj; | |
7627 | int arg1 = (int) 0 ; | |
7628 | int arg2 = (int) wxSASH_NONE ; | |
7629 | wxSashEvent *result; | |
7630 | PyObject * obj0 = 0 ; | |
7631 | PyObject * obj1 = 0 ; | |
7632 | char *kwnames[] = { | |
7633 | (char *) "id",(char *) "edge", NULL | |
7634 | }; | |
7635 | ||
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7637 | if (obj0) { | |
7638 | arg1 = (int) SWIG_AsInt(obj0); | |
7639 | if (PyErr_Occurred()) SWIG_fail; | |
7640 | } | |
7641 | if (obj1) { | |
7642 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7643 | if (PyErr_Occurred()) SWIG_fail; | |
7644 | } | |
7645 | { | |
7646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7647 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7648 | ||
7649 | wxPyEndAllowThreads(__tstate); | |
7650 | if (PyErr_Occurred()) SWIG_fail; | |
7651 | } | |
7652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7660 | PyObject *resultobj; | |
7661 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7662 | int arg2 ; | |
7663 | PyObject * obj0 = 0 ; | |
7664 | PyObject * obj1 = 0 ; | |
7665 | char *kwnames[] = { | |
7666 | (char *) "self",(char *) "edge", NULL | |
7667 | }; | |
7668 | ||
7669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7672 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | { | |
7675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7676 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7677 | ||
7678 | wxPyEndAllowThreads(__tstate); | |
7679 | if (PyErr_Occurred()) SWIG_fail; | |
7680 | } | |
7681 | Py_INCREF(Py_None); resultobj = Py_None; | |
7682 | return resultobj; | |
7683 | fail: | |
7684 | return NULL; | |
7685 | } | |
7686 | ||
7687 | ||
7688 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7689 | PyObject *resultobj; | |
7690 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7691 | int result; | |
7692 | PyObject * obj0 = 0 ; | |
7693 | char *kwnames[] = { | |
7694 | (char *) "self", NULL | |
7695 | }; | |
7696 | ||
7697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7700 | { | |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | resultobj = SWIG_FromInt((int)result); | |
7708 | return resultobj; | |
7709 | fail: | |
7710 | return NULL; | |
7711 | } | |
7712 | ||
7713 | ||
7714 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7715 | PyObject *resultobj; | |
7716 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7717 | wxRect *arg2 = 0 ; | |
7718 | wxRect temp2 ; | |
7719 | PyObject * obj0 = 0 ; | |
7720 | PyObject * obj1 = 0 ; | |
7721 | char *kwnames[] = { | |
7722 | (char *) "self",(char *) "rect", NULL | |
7723 | }; | |
7724 | ||
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7728 | { | |
7729 | arg2 = &temp2; | |
7730 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7731 | } | |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7735 | ||
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | Py_INCREF(Py_None); resultobj = Py_None; | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | return NULL; | |
7743 | } | |
7744 | ||
7745 | ||
7746 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7747 | PyObject *resultobj; | |
7748 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7749 | wxRect result; | |
7750 | PyObject * obj0 = 0 ; | |
7751 | char *kwnames[] = { | |
7752 | (char *) "self", NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7758 | { | |
7759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7760 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7761 | ||
7762 | wxPyEndAllowThreads(__tstate); | |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
7764 | } | |
7765 | { | |
7766 | wxRect * resultptr; | |
7767 | resultptr = new wxRect((wxRect &) result); | |
7768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7769 | } | |
7770 | return resultobj; | |
7771 | fail: | |
7772 | return NULL; | |
7773 | } | |
7774 | ||
7775 | ||
7776 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7777 | PyObject *resultobj; | |
7778 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7779 | int arg2 ; | |
7780 | PyObject * obj0 = 0 ; | |
7781 | PyObject * obj1 = 0 ; | |
7782 | char *kwnames[] = { | |
7783 | (char *) "self",(char *) "status", NULL | |
7784 | }; | |
7785 | ||
7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7789 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | { | |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7794 | ||
7795 | wxPyEndAllowThreads(__tstate); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
7797 | } | |
7798 | Py_INCREF(Py_None); resultobj = Py_None; | |
7799 | return resultobj; | |
7800 | fail: | |
7801 | return NULL; | |
7802 | } | |
7803 | ||
7804 | ||
7805 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7806 | PyObject *resultobj; | |
7807 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7808 | int result; | |
7809 | PyObject * obj0 = 0 ; | |
7810 | char *kwnames[] = { | |
7811 | (char *) "self", NULL | |
7812 | }; | |
7813 | ||
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7817 | { | |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7820 | ||
7821 | wxPyEndAllowThreads(__tstate); | |
7822 | if (PyErr_Occurred()) SWIG_fail; | |
7823 | } | |
7824 | resultobj = SWIG_FromInt((int)result); | |
7825 | return resultobj; | |
7826 | fail: | |
7827 | return NULL; | |
7828 | } | |
7829 | ||
7830 | ||
7831 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7832 | PyObject *obj; | |
7833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7834 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7835 | Py_INCREF(obj); | |
7836 | return Py_BuildValue((char *)""); | |
7837 | } | |
7838 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7839 | PyObject *resultobj; | |
7840 | int arg1 = (int) 0 ; | |
7841 | wxQueryLayoutInfoEvent *result; | |
7842 | PyObject * obj0 = 0 ; | |
7843 | char *kwnames[] = { | |
7844 | (char *) "id", NULL | |
7845 | }; | |
7846 | ||
7847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7848 | if (obj0) { | |
7849 | arg1 = (int) SWIG_AsInt(obj0); | |
7850 | if (PyErr_Occurred()) SWIG_fail; | |
7851 | } | |
7852 | { | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7855 | ||
7856 | wxPyEndAllowThreads(__tstate); | |
7857 | if (PyErr_Occurred()) SWIG_fail; | |
7858 | } | |
7859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7860 | return resultobj; | |
7861 | fail: | |
7862 | return NULL; | |
7863 | } | |
7864 | ||
7865 | ||
7866 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject *resultobj; | |
7868 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7869 | int arg2 ; | |
7870 | PyObject * obj0 = 0 ; | |
7871 | PyObject * obj1 = 0 ; | |
7872 | char *kwnames[] = { | |
7873 | (char *) "self",(char *) "length", NULL | |
7874 | }; | |
7875 | ||
7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7879 | arg2 = (int) SWIG_AsInt(obj1); | |
7880 | if (PyErr_Occurred()) SWIG_fail; | |
7881 | { | |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | (arg1)->SetRequestedLength(arg2); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
7888 | Py_INCREF(Py_None); resultobj = Py_None; | |
7889 | return resultobj; | |
7890 | fail: | |
7891 | return NULL; | |
7892 | } | |
7893 | ||
7894 | ||
7895 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7896 | PyObject *resultobj; | |
7897 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7898 | int result; | |
7899 | PyObject * obj0 = 0 ; | |
7900 | char *kwnames[] = { | |
7901 | (char *) "self", NULL | |
7902 | }; | |
7903 | ||
7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7907 | { | |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7910 | ||
7911 | wxPyEndAllowThreads(__tstate); | |
7912 | if (PyErr_Occurred()) SWIG_fail; | |
7913 | } | |
7914 | resultobj = SWIG_FromInt((int)result); | |
7915 | return resultobj; | |
7916 | fail: | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
7921 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7922 | PyObject *resultobj; | |
7923 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7924 | int arg2 ; | |
7925 | PyObject * obj0 = 0 ; | |
7926 | PyObject * obj1 = 0 ; | |
7927 | char *kwnames[] = { | |
7928 | (char *) "self",(char *) "flags", NULL | |
7929 | }; | |
7930 | ||
7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7934 | arg2 = (int) SWIG_AsInt(obj1); | |
7935 | if (PyErr_Occurred()) SWIG_fail; | |
7936 | { | |
7937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7938 | (arg1)->SetFlags(arg2); | |
7939 | ||
7940 | wxPyEndAllowThreads(__tstate); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
7943 | Py_INCREF(Py_None); resultobj = Py_None; | |
7944 | return resultobj; | |
7945 | fail: | |
7946 | return NULL; | |
7947 | } | |
7948 | ||
7949 | ||
7950 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7951 | PyObject *resultobj; | |
7952 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7953 | int result; | |
7954 | PyObject * obj0 = 0 ; | |
7955 | char *kwnames[] = { | |
7956 | (char *) "self", NULL | |
7957 | }; | |
7958 | ||
7959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7962 | { | |
7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7964 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7965 | ||
7966 | wxPyEndAllowThreads(__tstate); | |
7967 | if (PyErr_Occurred()) SWIG_fail; | |
7968 | } | |
7969 | resultobj = SWIG_FromInt((int)result); | |
7970 | return resultobj; | |
7971 | fail: | |
7972 | return NULL; | |
7973 | } | |
7974 | ||
7975 | ||
7976 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7977 | PyObject *resultobj; | |
7978 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7979 | wxSize *arg2 = 0 ; | |
7980 | wxSize temp2 ; | |
7981 | PyObject * obj0 = 0 ; | |
7982 | PyObject * obj1 = 0 ; | |
7983 | char *kwnames[] = { | |
7984 | (char *) "self",(char *) "size", NULL | |
7985 | }; | |
7986 | ||
7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7990 | { | |
7991 | arg2 = &temp2; | |
7992 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7993 | } | |
7994 | { | |
7995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7996 | (arg1)->SetSize((wxSize const &)*arg2); | |
7997 | ||
7998 | wxPyEndAllowThreads(__tstate); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | } | |
8001 | Py_INCREF(Py_None); resultobj = Py_None; | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | return NULL; | |
8005 | } | |
8006 | ||
8007 | ||
8008 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8009 | PyObject *resultobj; | |
8010 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8011 | wxSize result; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "self", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
8018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
8023 | ||
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | { | |
8028 | wxSize * resultptr; | |
8029 | resultptr = new wxSize((wxSize &) result); | |
8030 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
8031 | } | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
8038 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject *resultobj; | |
8040 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8041 | int arg2 ; | |
8042 | PyObject * obj0 = 0 ; | |
8043 | PyObject * obj1 = 0 ; | |
8044 | char *kwnames[] = { | |
8045 | (char *) "self",(char *) "orient", NULL | |
8046 | }; | |
8047 | ||
8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8051 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8052 | if (PyErr_Occurred()) SWIG_fail; | |
8053 | { | |
8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8055 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8056 | ||
8057 | wxPyEndAllowThreads(__tstate); | |
8058 | if (PyErr_Occurred()) SWIG_fail; | |
8059 | } | |
8060 | Py_INCREF(Py_None); resultobj = Py_None; | |
8061 | return resultobj; | |
8062 | fail: | |
8063 | return NULL; | |
8064 | } | |
8065 | ||
8066 | ||
8067 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject *resultobj; | |
8069 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8070 | int result; | |
8071 | PyObject * obj0 = 0 ; | |
8072 | char *kwnames[] = { | |
8073 | (char *) "self", NULL | |
8074 | }; | |
8075 | ||
8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
8077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8079 | { | |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | resultobj = SWIG_FromInt((int)result); | |
8087 | return resultobj; | |
8088 | fail: | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
8093 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8094 | PyObject *resultobj; | |
8095 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8096 | int arg2 ; | |
8097 | PyObject * obj0 = 0 ; | |
8098 | PyObject * obj1 = 0 ; | |
8099 | char *kwnames[] = { | |
8100 | (char *) "self",(char *) "align", NULL | |
8101 | }; | |
8102 | ||
8103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8106 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8107 | if (PyErr_Occurred()) SWIG_fail; | |
8108 | { | |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8110 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
8115 | Py_INCREF(Py_None); resultobj = Py_None; | |
8116 | return resultobj; | |
8117 | fail: | |
8118 | return NULL; | |
8119 | } | |
8120 | ||
8121 | ||
8122 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8123 | PyObject *resultobj; | |
8124 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8125 | int result; | |
8126 | PyObject * obj0 = 0 ; | |
8127 | char *kwnames[] = { | |
8128 | (char *) "self", NULL | |
8129 | }; | |
8130 | ||
8131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
8132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8134 | { | |
8135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8136 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
8137 | ||
8138 | wxPyEndAllowThreads(__tstate); | |
8139 | if (PyErr_Occurred()) SWIG_fail; | |
8140 | } | |
8141 | resultobj = SWIG_FromInt((int)result); | |
8142 | return resultobj; | |
8143 | fail: | |
8144 | return NULL; | |
8145 | } | |
8146 | ||
8147 | ||
8148 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
8149 | PyObject *obj; | |
8150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8151 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
8152 | Py_INCREF(obj); | |
8153 | return Py_BuildValue((char *)""); | |
8154 | } | |
8155 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8156 | PyObject *resultobj; | |
8157 | int arg1 = (int) 0 ; | |
8158 | wxCalculateLayoutEvent *result; | |
8159 | PyObject * obj0 = 0 ; | |
8160 | char *kwnames[] = { | |
8161 | (char *) "id", NULL | |
8162 | }; | |
8163 | ||
8164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
8165 | if (obj0) { | |
8166 | arg1 = (int) SWIG_AsInt(obj0); | |
8167 | if (PyErr_Occurred()) SWIG_fail; | |
8168 | } | |
8169 | { | |
8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8171 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
8172 | ||
8173 | wxPyEndAllowThreads(__tstate); | |
8174 | if (PyErr_Occurred()) SWIG_fail; | |
8175 | } | |
8176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
8177 | return resultobj; | |
8178 | fail: | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
8183 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8184 | PyObject *resultobj; | |
8185 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8186 | int arg2 ; | |
8187 | PyObject * obj0 = 0 ; | |
8188 | PyObject * obj1 = 0 ; | |
8189 | char *kwnames[] = { | |
8190 | (char *) "self",(char *) "flags", NULL | |
8191 | }; | |
8192 | ||
8193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8196 | arg2 = (int) SWIG_AsInt(obj1); | |
8197 | if (PyErr_Occurred()) SWIG_fail; | |
8198 | { | |
8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8200 | (arg1)->SetFlags(arg2); | |
8201 | ||
8202 | wxPyEndAllowThreads(__tstate); | |
8203 | if (PyErr_Occurred()) SWIG_fail; | |
8204 | } | |
8205 | Py_INCREF(Py_None); resultobj = Py_None; | |
8206 | return resultobj; | |
8207 | fail: | |
8208 | return NULL; | |
8209 | } | |
8210 | ||
8211 | ||
8212 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8213 | PyObject *resultobj; | |
8214 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8215 | int result; | |
8216 | PyObject * obj0 = 0 ; | |
8217 | char *kwnames[] = { | |
8218 | (char *) "self", NULL | |
8219 | }; | |
8220 | ||
8221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8224 | { | |
8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8226 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8227 | ||
8228 | wxPyEndAllowThreads(__tstate); | |
8229 | if (PyErr_Occurred()) SWIG_fail; | |
8230 | } | |
8231 | resultobj = SWIG_FromInt((int)result); | |
8232 | return resultobj; | |
8233 | fail: | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
8238 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8239 | PyObject *resultobj; | |
8240 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8241 | wxRect *arg2 = 0 ; | |
8242 | wxRect temp2 ; | |
8243 | PyObject * obj0 = 0 ; | |
8244 | PyObject * obj1 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "self",(char *) "rect", NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8252 | { | |
8253 | arg2 = &temp2; | |
8254 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8255 | } | |
8256 | { | |
8257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8258 | (arg1)->SetRect((wxRect const &)*arg2); | |
8259 | ||
8260 | wxPyEndAllowThreads(__tstate); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | } | |
8263 | Py_INCREF(Py_None); resultobj = Py_None; | |
8264 | return resultobj; | |
8265 | fail: | |
8266 | return NULL; | |
8267 | } | |
8268 | ||
8269 | ||
8270 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8271 | PyObject *resultobj; | |
8272 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8273 | wxRect result; | |
8274 | PyObject * obj0 = 0 ; | |
8275 | char *kwnames[] = { | |
8276 | (char *) "self", NULL | |
8277 | }; | |
8278 | ||
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8282 | { | |
8283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8284 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8285 | ||
8286 | wxPyEndAllowThreads(__tstate); | |
8287 | if (PyErr_Occurred()) SWIG_fail; | |
8288 | } | |
8289 | { | |
8290 | wxRect * resultptr; | |
8291 | resultptr = new wxRect((wxRect &) result); | |
8292 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8293 | } | |
8294 | return resultobj; | |
8295 | fail: | |
8296 | return NULL; | |
8297 | } | |
8298 | ||
8299 | ||
8300 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8301 | PyObject *obj; | |
8302 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8303 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8304 | Py_INCREF(obj); | |
8305 | return Py_BuildValue((char *)""); | |
8306 | } | |
8307 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8308 | PyObject *resultobj; | |
8309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8310 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8311 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8312 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8313 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8314 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8315 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8316 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8317 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8318 | wxSashLayoutWindow *result; | |
8319 | wxPoint temp3 ; | |
8320 | wxSize temp4 ; | |
8321 | bool temp6 = False ; | |
8322 | PyObject * obj0 = 0 ; | |
8323 | PyObject * obj1 = 0 ; | |
8324 | PyObject * obj2 = 0 ; | |
8325 | PyObject * obj3 = 0 ; | |
8326 | PyObject * obj4 = 0 ; | |
8327 | PyObject * obj5 = 0 ; | |
8328 | char *kwnames[] = { | |
8329 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8330 | }; | |
8331 | ||
248ed943 | 8332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
8333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8335 | if (obj1) { |
8336 | arg2 = (int) SWIG_AsInt(obj1); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
d55e5bfc RD |
8339 | if (obj2) { |
8340 | { | |
8341 | arg3 = &temp3; | |
8342 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8343 | } | |
8344 | } | |
8345 | if (obj3) { | |
8346 | { | |
8347 | arg4 = &temp4; | |
8348 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8349 | } | |
8350 | } | |
8351 | if (obj4) { | |
8352 | arg5 = (long) SWIG_AsLong(obj4); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
8355 | if (obj5) { | |
8356 | { | |
8357 | arg6 = wxString_in_helper(obj5); | |
8358 | if (arg6 == NULL) SWIG_fail; | |
8359 | temp6 = True; | |
8360 | } | |
8361 | } | |
8362 | { | |
0439c23b | 8363 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8365 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8366 | ||
8367 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8368 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8369 | } |
8370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8371 | { | |
8372 | if (temp6) | |
8373 | delete arg6; | |
8374 | } | |
8375 | return resultobj; | |
8376 | fail: | |
8377 | { | |
8378 | if (temp6) | |
8379 | delete arg6; | |
8380 | } | |
8381 | return NULL; | |
8382 | } | |
8383 | ||
8384 | ||
8385 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8386 | PyObject *resultobj; | |
8387 | wxSashLayoutWindow *result; | |
8388 | char *kwnames[] = { | |
8389 | NULL | |
8390 | }; | |
8391 | ||
8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8393 | { | |
0439c23b | 8394 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8396 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8397 | ||
8398 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8399 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8400 | } |
8401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8402 | return resultobj; | |
8403 | fail: | |
8404 | return NULL; | |
8405 | } | |
8406 | ||
8407 | ||
8408 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8409 | PyObject *resultobj; | |
8410 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8411 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8412 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8413 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8414 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8415 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8416 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8417 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8418 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8419 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8420 | bool result; | |
8421 | wxPoint temp4 ; | |
8422 | wxSize temp5 ; | |
8423 | bool temp7 = False ; | |
8424 | PyObject * obj0 = 0 ; | |
8425 | PyObject * obj1 = 0 ; | |
8426 | PyObject * obj2 = 0 ; | |
8427 | PyObject * obj3 = 0 ; | |
8428 | PyObject * obj4 = 0 ; | |
8429 | PyObject * obj5 = 0 ; | |
8430 | PyObject * obj6 = 0 ; | |
8431 | char *kwnames[] = { | |
8432 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8433 | }; | |
8434 | ||
248ed943 | 8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
8436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, |
8437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8440 | if (obj2) { |
8441 | arg3 = (int) SWIG_AsInt(obj2); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | } | |
d55e5bfc RD |
8444 | if (obj3) { |
8445 | { | |
8446 | arg4 = &temp4; | |
8447 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8448 | } | |
8449 | } | |
8450 | if (obj4) { | |
8451 | { | |
8452 | arg5 = &temp5; | |
8453 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8454 | } | |
8455 | } | |
8456 | if (obj5) { | |
8457 | arg6 = (long) SWIG_AsLong(obj5); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | } | |
8460 | if (obj6) { | |
8461 | { | |
8462 | arg7 = wxString_in_helper(obj6); | |
8463 | if (arg7 == NULL) SWIG_fail; | |
8464 | temp7 = True; | |
8465 | } | |
8466 | } | |
8467 | { | |
8468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8469 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8470 | ||
8471 | wxPyEndAllowThreads(__tstate); | |
8472 | if (PyErr_Occurred()) SWIG_fail; | |
8473 | } | |
8474 | { | |
8475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8476 | } | |
8477 | { | |
8478 | if (temp7) | |
8479 | delete arg7; | |
8480 | } | |
8481 | return resultobj; | |
8482 | fail: | |
8483 | { | |
8484 | if (temp7) | |
8485 | delete arg7; | |
8486 | } | |
8487 | return NULL; | |
8488 | } | |
8489 | ||
8490 | ||
8491 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject *resultobj; | |
8493 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8494 | int result; | |
8495 | PyObject * obj0 = 0 ; | |
8496 | char *kwnames[] = { | |
8497 | (char *) "self", NULL | |
8498 | }; | |
8499 | ||
8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8503 | { | |
8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8505 | result = (int)(arg1)->GetAlignment(); | |
8506 | ||
8507 | wxPyEndAllowThreads(__tstate); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | resultobj = SWIG_FromInt((int)result); | |
8511 | return resultobj; | |
8512 | fail: | |
8513 | return NULL; | |
8514 | } | |
8515 | ||
8516 | ||
8517 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8518 | PyObject *resultobj; | |
8519 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8520 | int result; | |
8521 | PyObject * obj0 = 0 ; | |
8522 | char *kwnames[] = { | |
8523 | (char *) "self", NULL | |
8524 | }; | |
8525 | ||
8526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8529 | { | |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8531 | result = (int)(arg1)->GetOrientation(); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
8536 | resultobj = SWIG_FromInt((int)result); | |
8537 | return resultobj; | |
8538 | fail: | |
8539 | return NULL; | |
8540 | } | |
8541 | ||
8542 | ||
8543 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8544 | PyObject *resultobj; | |
8545 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8546 | int arg2 ; | |
8547 | PyObject * obj0 = 0 ; | |
8548 | PyObject * obj1 = 0 ; | |
8549 | char *kwnames[] = { | |
8550 | (char *) "self",(char *) "alignment", NULL | |
8551 | }; | |
8552 | ||
8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8556 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | Py_INCREF(Py_None); resultobj = Py_None; | |
8566 | return resultobj; | |
8567 | fail: | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
8572 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8573 | PyObject *resultobj; | |
8574 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8575 | wxSize *arg2 = 0 ; | |
8576 | wxSize temp2 ; | |
8577 | PyObject * obj0 = 0 ; | |
8578 | PyObject * obj1 = 0 ; | |
8579 | char *kwnames[] = { | |
8580 | (char *) "self",(char *) "size", NULL | |
8581 | }; | |
8582 | ||
8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8586 | { | |
8587 | arg2 = &temp2; | |
8588 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8589 | } | |
8590 | { | |
8591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8592 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8593 | ||
8594 | wxPyEndAllowThreads(__tstate); | |
8595 | if (PyErr_Occurred()) SWIG_fail; | |
8596 | } | |
8597 | Py_INCREF(Py_None); resultobj = Py_None; | |
8598 | return resultobj; | |
8599 | fail: | |
8600 | return NULL; | |
8601 | } | |
8602 | ||
8603 | ||
8604 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8605 | PyObject *resultobj; | |
8606 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8607 | int arg2 ; | |
8608 | PyObject * obj0 = 0 ; | |
8609 | PyObject * obj1 = 0 ; | |
8610 | char *kwnames[] = { | |
8611 | (char *) "self",(char *) "orientation", NULL | |
8612 | }; | |
8613 | ||
8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8617 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | { | |
8620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8621 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8622 | ||
8623 | wxPyEndAllowThreads(__tstate); | |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8625 | } | |
8626 | Py_INCREF(Py_None); resultobj = Py_None; | |
8627 | return resultobj; | |
8628 | fail: | |
8629 | return NULL; | |
8630 | } | |
8631 | ||
8632 | ||
8633 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8634 | PyObject *obj; | |
8635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8636 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8637 | Py_INCREF(obj); | |
8638 | return Py_BuildValue((char *)""); | |
8639 | } | |
8640 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8641 | PyObject *resultobj; | |
8642 | wxLayoutAlgorithm *result; | |
8643 | char *kwnames[] = { | |
8644 | NULL | |
8645 | }; | |
8646 | ||
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8648 | { | |
8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8650 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8651 | ||
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8656 | return resultobj; | |
8657 | fail: | |
8658 | return NULL; | |
8659 | } | |
8660 | ||
8661 | ||
8662 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject *resultobj; | |
8664 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8665 | PyObject * obj0 = 0 ; | |
8666 | char *kwnames[] = { | |
8667 | (char *) "self", NULL | |
8668 | }; | |
8669 | ||
8670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8673 | { | |
8674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8675 | delete arg1; | |
8676 | ||
8677 | wxPyEndAllowThreads(__tstate); | |
8678 | if (PyErr_Occurred()) SWIG_fail; | |
8679 | } | |
8680 | Py_INCREF(Py_None); resultobj = Py_None; | |
8681 | return resultobj; | |
8682 | fail: | |
8683 | return NULL; | |
8684 | } | |
8685 | ||
8686 | ||
8687 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8688 | PyObject *resultobj; | |
8689 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8690 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8691 | wxRect *arg3 = (wxRect *) NULL ; | |
8692 | bool result; | |
8693 | PyObject * obj0 = 0 ; | |
8694 | PyObject * obj1 = 0 ; | |
8695 | PyObject * obj2 = 0 ; | |
8696 | char *kwnames[] = { | |
8697 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8698 | }; | |
8699 | ||
8700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8705 | if (obj2) { | |
8706 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8708 | } | |
8709 | { | |
8710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8711 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8712 | ||
8713 | wxPyEndAllowThreads(__tstate); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | } | |
8716 | { | |
8717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8718 | } | |
8719 | return resultobj; | |
8720 | fail: | |
8721 | return NULL; | |
8722 | } | |
8723 | ||
8724 | ||
8725 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj; | |
8727 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8728 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8729 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8730 | bool result; | |
8731 | PyObject * obj0 = 0 ; | |
8732 | PyObject * obj1 = 0 ; | |
8733 | PyObject * obj2 = 0 ; | |
8734 | char *kwnames[] = { | |
8735 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8736 | }; | |
8737 | ||
8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8743 | if (obj2) { | |
8744 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8746 | } | |
8747 | { | |
8748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8749 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8750 | ||
8751 | wxPyEndAllowThreads(__tstate); | |
8752 | if (PyErr_Occurred()) SWIG_fail; | |
8753 | } | |
8754 | { | |
8755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8756 | } | |
8757 | return resultobj; | |
8758 | fail: | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject *resultobj; | |
8765 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8766 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8767 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8768 | bool result; | |
8769 | PyObject * obj0 = 0 ; | |
8770 | PyObject * obj1 = 0 ; | |
8771 | PyObject * obj2 = 0 ; | |
8772 | char *kwnames[] = { | |
8773 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8774 | }; | |
8775 | ||
8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8781 | if (obj2) { | |
8782 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8784 | } | |
8785 | { | |
8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8787 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8788 | ||
8789 | wxPyEndAllowThreads(__tstate); | |
8790 | if (PyErr_Occurred()) SWIG_fail; | |
8791 | } | |
8792 | { | |
8793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8794 | } | |
8795 | return resultobj; | |
8796 | fail: | |
8797 | return NULL; | |
8798 | } | |
8799 | ||
8800 | ||
8801 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8802 | PyObject *obj; | |
8803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8804 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8805 | Py_INCREF(obj); | |
8806 | return Py_BuildValue((char *)""); | |
8807 | } | |
8808 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8809 | PyObject *resultobj; | |
8810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8811 | int arg2 = (int) wxBORDER_NONE ; | |
8812 | wxPopupWindow *result; | |
8813 | PyObject * obj0 = 0 ; | |
8814 | PyObject * obj1 = 0 ; | |
8815 | char *kwnames[] = { | |
8816 | (char *) "parent",(char *) "flags", NULL | |
8817 | }; | |
8818 | ||
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8822 | if (obj1) { | |
8823 | arg2 = (int) SWIG_AsInt(obj1); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
8826 | { | |
0439c23b | 8827 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8829 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8830 | ||
8831 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8832 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8833 | } |
8834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8835 | return resultobj; | |
8836 | fail: | |
8837 | return NULL; | |
8838 | } | |
8839 | ||
8840 | ||
8841 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8842 | PyObject *resultobj; | |
8843 | wxPopupWindow *result; | |
8844 | char *kwnames[] = { | |
8845 | NULL | |
8846 | }; | |
8847 | ||
8848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8849 | { | |
0439c23b | 8850 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8852 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8853 | ||
8854 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8855 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8856 | } |
8857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8858 | return resultobj; | |
8859 | fail: | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
8864 | static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8865 | PyObject *resultobj; | |
8866 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8867 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8868 | int arg3 = (int) wxBORDER_NONE ; | |
8869 | bool result; | |
8870 | PyObject * obj0 = 0 ; | |
8871 | PyObject * obj1 = 0 ; | |
8872 | PyObject * obj2 = 0 ; | |
8873 | char *kwnames[] = { | |
8874 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
8875 | }; | |
8876 | ||
8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8880 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8882 | if (obj2) { | |
8883 | arg3 = (int) SWIG_AsInt(obj2); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | { | |
8887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8888 | result = (bool)(arg1)->Create(arg2,arg3); | |
8889 | ||
8890 | wxPyEndAllowThreads(__tstate); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
8893 | { | |
8894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8895 | } | |
8896 | return resultobj; | |
8897 | fail: | |
8898 | return NULL; | |
8899 | } | |
8900 | ||
8901 | ||
8902 | static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8903 | PyObject *resultobj; | |
8904 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8905 | wxPoint *arg2 = 0 ; | |
8906 | wxSize *arg3 = 0 ; | |
8907 | wxPoint temp2 ; | |
8908 | wxSize temp3 ; | |
8909 | PyObject * obj0 = 0 ; | |
8910 | PyObject * obj1 = 0 ; | |
8911 | PyObject * obj2 = 0 ; | |
8912 | char *kwnames[] = { | |
8913 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
8914 | }; | |
8915 | ||
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8919 | { | |
8920 | arg2 = &temp2; | |
8921 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8922 | } | |
8923 | { | |
8924 | arg3 = &temp3; | |
8925 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
8926 | } | |
8927 | { | |
8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8929 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8930 | ||
8931 | wxPyEndAllowThreads(__tstate); | |
8932 | if (PyErr_Occurred()) SWIG_fail; | |
8933 | } | |
8934 | Py_INCREF(Py_None); resultobj = Py_None; | |
8935 | return resultobj; | |
8936 | fail: | |
8937 | return NULL; | |
8938 | } | |
8939 | ||
8940 | ||
8941 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8942 | PyObject *obj; | |
8943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8944 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8945 | Py_INCREF(obj); | |
8946 | return Py_BuildValue((char *)""); | |
8947 | } | |
8948 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8949 | PyObject *resultobj; | |
8950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8951 | int arg2 = (int) wxBORDER_NONE ; | |
8952 | wxPyPopupTransientWindow *result; | |
8953 | PyObject * obj0 = 0 ; | |
8954 | PyObject * obj1 = 0 ; | |
8955 | char *kwnames[] = { | |
8956 | (char *) "parent",(char *) "style", NULL | |
8957 | }; | |
8958 | ||
8959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8962 | if (obj1) { | |
8963 | arg2 = (int) SWIG_AsInt(obj1); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | { | |
0439c23b | 8967 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8969 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8970 | ||
8971 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8972 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8973 | } |
8974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | return NULL; | |
8978 | } | |
8979 | ||
8980 | ||
8981 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8982 | PyObject *resultobj; | |
8983 | wxPyPopupTransientWindow *result; | |
8984 | char *kwnames[] = { | |
8985 | NULL | |
8986 | }; | |
8987 | ||
8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8989 | { | |
0439c23b | 8990 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8992 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8993 | ||
8994 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8995 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8996 | } |
8997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8998 | return resultobj; | |
8999 | fail: | |
9000 | return NULL; | |
9001 | } | |
9002 | ||
9003 | ||
9004 | static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9005 | PyObject *resultobj; | |
9006 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
9007 | PyObject *arg2 = (PyObject *) 0 ; | |
9008 | PyObject *arg3 = (PyObject *) 0 ; | |
9009 | PyObject * obj0 = 0 ; | |
9010 | PyObject * obj1 = 0 ; | |
9011 | PyObject * obj2 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
9018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9019 | arg2 = obj1; | |
9020 | arg3 = obj2; | |
9021 | { | |
9022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9023 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9024 | ||
9025 | wxPyEndAllowThreads(__tstate); | |
9026 | if (PyErr_Occurred()) SWIG_fail; | |
9027 | } | |
9028 | Py_INCREF(Py_None); resultobj = Py_None; | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9036 | PyObject *resultobj; | |
9037 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
9038 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9039 | PyObject * obj0 = 0 ; | |
9040 | PyObject * obj1 = 0 ; | |
9041 | char *kwnames[] = { | |
9042 | (char *) "self",(char *) "focus", NULL | |
9043 | }; | |
9044 | ||
9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; | |
9046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
9047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9048 | if (obj1) { | |
9049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9051 | } | |
9052 | { | |
9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9054 | (arg1)->Popup(arg2); | |
9055 | ||
9056 | wxPyEndAllowThreads(__tstate); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | } | |
9059 | Py_INCREF(Py_None); resultobj = Py_None; | |
9060 | return resultobj; | |
9061 | fail: | |
9062 | return NULL; | |
9063 | } | |
9064 | ||
9065 | ||
9066 | static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9067 | PyObject *resultobj; | |
9068 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
9069 | PyObject * obj0 = 0 ; | |
9070 | char *kwnames[] = { | |
9071 | (char *) "self", NULL | |
9072 | }; | |
9073 | ||
9074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; | |
9075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
9076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9077 | { | |
9078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9079 | (arg1)->Dismiss(); | |
9080 | ||
9081 | wxPyEndAllowThreads(__tstate); | |
9082 | if (PyErr_Occurred()) SWIG_fail; | |
9083 | } | |
9084 | Py_INCREF(Py_None); resultobj = Py_None; | |
9085 | return resultobj; | |
9086 | fail: | |
9087 | return NULL; | |
9088 | } | |
9089 | ||
9090 | ||
9091 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
9092 | PyObject *obj; | |
9093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9094 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
9095 | Py_INCREF(obj); | |
9096 | return Py_BuildValue((char *)""); | |
9097 | } | |
9098 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9099 | PyObject *resultobj; | |
9100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9101 | wxString *arg2 = 0 ; | |
9102 | int arg3 = (int) 100 ; | |
9103 | wxRect *arg4 = (wxRect *) NULL ; | |
9104 | wxTipWindow *result; | |
9105 | bool temp2 = False ; | |
9106 | PyObject * obj0 = 0 ; | |
9107 | PyObject * obj1 = 0 ; | |
9108 | PyObject * obj2 = 0 ; | |
9109 | PyObject * obj3 = 0 ; | |
9110 | char *kwnames[] = { | |
9111 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
9112 | }; | |
9113 | ||
9114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9117 | { | |
9118 | arg2 = wxString_in_helper(obj1); | |
9119 | if (arg2 == NULL) SWIG_fail; | |
9120 | temp2 = True; | |
9121 | } | |
9122 | if (obj2) { | |
9123 | arg3 = (int) SWIG_AsInt(obj2); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | } | |
9126 | if (obj3) { | |
9127 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
9128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9129 | } | |
9130 | { | |
0439c23b | 9131 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9133 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
9134 | ||
9135 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9136 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9137 | } |
9138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
9139 | { | |
9140 | if (temp2) | |
9141 | delete arg2; | |
9142 | } | |
9143 | return resultobj; | |
9144 | fail: | |
9145 | { | |
9146 | if (temp2) | |
9147 | delete arg2; | |
9148 | } | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
9153 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9154 | PyObject *resultobj; | |
9155 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
9156 | wxRect *arg2 = 0 ; | |
9157 | wxRect temp2 ; | |
9158 | PyObject * obj0 = 0 ; | |
9159 | PyObject * obj1 = 0 ; | |
9160 | char *kwnames[] = { | |
9161 | (char *) "self",(char *) "rectBound", NULL | |
9162 | }; | |
9163 | ||
9164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
9165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
9166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9167 | { | |
9168 | arg2 = &temp2; | |
9169 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9170 | } | |
9171 | { | |
9172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9173 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
9174 | ||
9175 | wxPyEndAllowThreads(__tstate); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
9178 | Py_INCREF(Py_None); resultobj = Py_None; | |
9179 | return resultobj; | |
9180 | fail: | |
9181 | return NULL; | |
9182 | } | |
9183 | ||
9184 | ||
9185 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9186 | PyObject *resultobj; | |
9187 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
9188 | PyObject * obj0 = 0 ; | |
9189 | char *kwnames[] = { | |
9190 | (char *) "self", NULL | |
9191 | }; | |
9192 | ||
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
9194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
9195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9196 | { | |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | (arg1)->Close(); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
9203 | Py_INCREF(Py_None); resultobj = Py_None; | |
9204 | return resultobj; | |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
9210 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
9211 | PyObject *obj; | |
9212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9213 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
9214 | Py_INCREF(obj); | |
9215 | return Py_BuildValue((char *)""); | |
9216 | } | |
9217 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9218 | PyObject *resultobj; | |
9219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9220 | int arg2 = (int) wxID_ANY ; | |
9221 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9222 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9223 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9224 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9225 | long arg5 = (long) 0 ; | |
9226 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
9227 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9228 | wxPyVScrolledWindow *result; | |
9229 | wxPoint temp3 ; | |
9230 | wxSize temp4 ; | |
9231 | bool temp6 = False ; | |
9232 | PyObject * obj0 = 0 ; | |
9233 | PyObject * obj1 = 0 ; | |
9234 | PyObject * obj2 = 0 ; | |
9235 | PyObject * obj3 = 0 ; | |
9236 | PyObject * obj4 = 0 ; | |
9237 | PyObject * obj5 = 0 ; | |
9238 | char *kwnames[] = { | |
9239 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9240 | }; | |
9241 | ||
9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9245 | if (obj1) { | |
9246 | arg2 = (int) SWIG_AsInt(obj1); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
9249 | if (obj2) { | |
9250 | { | |
9251 | arg3 = &temp3; | |
9252 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9253 | } | |
9254 | } | |
9255 | if (obj3) { | |
9256 | { | |
9257 | arg4 = &temp4; | |
9258 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9259 | } | |
9260 | } | |
9261 | if (obj4) { | |
9262 | arg5 = (long) SWIG_AsLong(obj4); | |
9263 | if (PyErr_Occurred()) SWIG_fail; | |
9264 | } | |
9265 | if (obj5) { | |
9266 | { | |
9267 | arg6 = wxString_in_helper(obj5); | |
9268 | if (arg6 == NULL) SWIG_fail; | |
9269 | temp6 = True; | |
9270 | } | |
9271 | } | |
9272 | { | |
0439c23b | 9273 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9275 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9276 | ||
9277 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9278 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9279 | } |
9280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9281 | { | |
9282 | if (temp6) | |
9283 | delete arg6; | |
9284 | } | |
9285 | return resultobj; | |
9286 | fail: | |
9287 | { | |
9288 | if (temp6) | |
9289 | delete arg6; | |
9290 | } | |
9291 | return NULL; | |
9292 | } | |
9293 | ||
9294 | ||
9295 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9296 | PyObject *resultobj; | |
9297 | wxPyVScrolledWindow *result; | |
9298 | char *kwnames[] = { | |
9299 | NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
9303 | { | |
0439c23b | 9304 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9306 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
9307 | ||
9308 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9309 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9310 | } |
9311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9312 | return resultobj; | |
9313 | fail: | |
9314 | return NULL; | |
9315 | } | |
9316 | ||
9317 | ||
9318 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9319 | PyObject *resultobj; | |
9320 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9321 | PyObject *arg2 = (PyObject *) 0 ; | |
9322 | PyObject *arg3 = (PyObject *) 0 ; | |
9323 | PyObject * obj0 = 0 ; | |
9324 | PyObject * obj1 = 0 ; | |
9325 | PyObject * obj2 = 0 ; | |
9326 | char *kwnames[] = { | |
9327 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9328 | }; | |
9329 | ||
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9333 | arg2 = obj1; | |
9334 | arg3 = obj2; | |
9335 | { | |
9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9337 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9338 | ||
9339 | wxPyEndAllowThreads(__tstate); | |
9340 | if (PyErr_Occurred()) SWIG_fail; | |
9341 | } | |
9342 | Py_INCREF(Py_None); resultobj = Py_None; | |
9343 | return resultobj; | |
9344 | fail: | |
9345 | return NULL; | |
9346 | } | |
9347 | ||
9348 | ||
9349 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9350 | PyObject *resultobj; | |
9351 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9352 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9353 | int arg3 = (int) wxID_ANY ; | |
9354 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9355 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9356 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9357 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9358 | long arg6 = (long) 0 ; | |
9359 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9360 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9361 | bool result; | |
9362 | wxPoint temp4 ; | |
9363 | wxSize temp5 ; | |
9364 | bool temp7 = False ; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | PyObject * obj1 = 0 ; | |
9367 | PyObject * obj2 = 0 ; | |
9368 | PyObject * obj3 = 0 ; | |
9369 | PyObject * obj4 = 0 ; | |
9370 | PyObject * obj5 = 0 ; | |
9371 | PyObject * obj6 = 0 ; | |
9372 | char *kwnames[] = { | |
9373 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9374 | }; | |
9375 | ||
9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9381 | if (obj2) { | |
9382 | arg3 = (int) SWIG_AsInt(obj2); | |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
9384 | } | |
9385 | if (obj3) { | |
9386 | { | |
9387 | arg4 = &temp4; | |
9388 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9389 | } | |
9390 | } | |
9391 | if (obj4) { | |
9392 | { | |
9393 | arg5 = &temp5; | |
9394 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9395 | } | |
9396 | } | |
9397 | if (obj5) { | |
9398 | arg6 = (long) SWIG_AsLong(obj5); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | if (obj6) { | |
9402 | { | |
9403 | arg7 = wxString_in_helper(obj6); | |
9404 | if (arg7 == NULL) SWIG_fail; | |
9405 | temp7 = True; | |
9406 | } | |
9407 | } | |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9410 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9411 | ||
9412 | wxPyEndAllowThreads(__tstate); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | } | |
9415 | { | |
9416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9417 | } | |
9418 | { | |
9419 | if (temp7) | |
9420 | delete arg7; | |
9421 | } | |
9422 | return resultobj; | |
9423 | fail: | |
9424 | { | |
9425 | if (temp7) | |
9426 | delete arg7; | |
9427 | } | |
9428 | return NULL; | |
9429 | } | |
9430 | ||
9431 | ||
9432 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9433 | PyObject *resultobj; | |
9434 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9435 | size_t arg2 ; | |
9436 | PyObject * obj0 = 0 ; | |
9437 | PyObject * obj1 = 0 ; | |
9438 | char *kwnames[] = { | |
9439 | (char *) "self",(char *) "count", NULL | |
9440 | }; | |
9441 | ||
9442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9445 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9446 | if (PyErr_Occurred()) SWIG_fail; | |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | (arg1)->SetLineCount(arg2); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | Py_INCREF(Py_None); resultobj = Py_None; | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9462 | PyObject *resultobj; | |
9463 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9464 | size_t arg2 ; | |
9465 | bool result; | |
9466 | PyObject * obj0 = 0 ; | |
9467 | PyObject * obj1 = 0 ; | |
9468 | char *kwnames[] = { | |
9469 | (char *) "self",(char *) "line", NULL | |
9470 | }; | |
9471 | ||
9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9475 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | { | |
9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9479 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9480 | ||
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | { | |
9485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9486 | } | |
9487 | return resultobj; | |
9488 | fail: | |
9489 | return NULL; | |
9490 | } | |
9491 | ||
9492 | ||
9493 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject *resultobj; | |
9495 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9496 | int arg2 ; | |
9497 | bool result; | |
9498 | PyObject * obj0 = 0 ; | |
9499 | PyObject * obj1 = 0 ; | |
9500 | char *kwnames[] = { | |
9501 | (char *) "self",(char *) "lines", NULL | |
9502 | }; | |
9503 | ||
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9507 | arg2 = (int) SWIG_AsInt(obj1); | |
9508 | if (PyErr_Occurred()) SWIG_fail; | |
9509 | { | |
9510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9511 | result = (bool)(arg1)->ScrollLines(arg2); | |
9512 | ||
9513 | wxPyEndAllowThreads(__tstate); | |
9514 | if (PyErr_Occurred()) SWIG_fail; | |
9515 | } | |
9516 | { | |
9517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9518 | } | |
9519 | return resultobj; | |
9520 | fail: | |
9521 | return NULL; | |
9522 | } | |
9523 | ||
9524 | ||
9525 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9526 | PyObject *resultobj; | |
9527 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9528 | int arg2 ; | |
9529 | bool result; | |
9530 | PyObject * obj0 = 0 ; | |
9531 | PyObject * obj1 = 0 ; | |
9532 | char *kwnames[] = { | |
9533 | (char *) "self",(char *) "pages", NULL | |
9534 | }; | |
9535 | ||
9536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9539 | arg2 = (int) SWIG_AsInt(obj1); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | { | |
9542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9543 | result = (bool)(arg1)->ScrollPages(arg2); | |
9544 | ||
9545 | wxPyEndAllowThreads(__tstate); | |
9546 | if (PyErr_Occurred()) SWIG_fail; | |
9547 | } | |
9548 | { | |
9549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9550 | } | |
9551 | return resultobj; | |
9552 | fail: | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
9557 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9558 | PyObject *resultobj; | |
9559 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9560 | size_t arg2 ; | |
9561 | PyObject * obj0 = 0 ; | |
9562 | PyObject * obj1 = 0 ; | |
9563 | char *kwnames[] = { | |
9564 | (char *) "self",(char *) "line", NULL | |
9565 | }; | |
9566 | ||
9567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9570 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | { | |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | (arg1)->RefreshLine(arg2); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
9579 | Py_INCREF(Py_None); resultobj = Py_None; | |
9580 | return resultobj; | |
9581 | fail: | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
9586 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9587 | PyObject *resultobj; | |
9588 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9589 | size_t arg2 ; | |
9590 | size_t arg3 ; | |
9591 | PyObject * obj0 = 0 ; | |
9592 | PyObject * obj1 = 0 ; | |
9593 | PyObject * obj2 = 0 ; | |
9594 | char *kwnames[] = { | |
9595 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9596 | }; | |
9597 | ||
9598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9601 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9604 | if (PyErr_Occurred()) SWIG_fail; | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | (arg1)->RefreshLines(arg2,arg3); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
9612 | Py_INCREF(Py_None); resultobj = Py_None; | |
9613 | return resultobj; | |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
354693ff | 9619 | static PyObject *_wrap_VScrolledWindow_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9620 | PyObject *resultobj; |
9621 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9622 | int arg2 ; | |
9623 | int arg3 ; | |
9624 | int result; | |
9625 | PyObject * obj0 = 0 ; | |
9626 | PyObject * obj1 = 0 ; | |
9627 | PyObject * obj2 = 0 ; | |
9628 | char *kwnames[] = { | |
9629 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9630 | }; | |
9631 | ||
354693ff | 9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
9633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, |
9634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9635 | arg2 = (int) SWIG_AsInt(obj1); | |
9636 | if (PyErr_Occurred()) SWIG_fail; | |
9637 | arg3 = (int) SWIG_AsInt(obj2); | |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | resultobj = SWIG_FromInt((int)result); | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9656 | wxPoint *arg2 = 0 ; | |
9657 | int result; | |
9658 | wxPoint temp2 ; | |
9659 | PyObject * obj0 = 0 ; | |
9660 | PyObject * obj1 = 0 ; | |
9661 | char *kwnames[] = { | |
9662 | (char *) "self",(char *) "pt", NULL | |
9663 | }; | |
9664 | ||
9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9668 | { | |
9669 | arg2 = &temp2; | |
9670 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | resultobj = SWIG_FromInt((int)result); | |
9680 | return resultobj; | |
9681 | fail: | |
9682 | return NULL; | |
9683 | } | |
9684 | ||
9685 | ||
9686 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9687 | PyObject *resultobj; | |
9688 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9689 | PyObject * obj0 = 0 ; | |
9690 | char *kwnames[] = { | |
9691 | (char *) "self", NULL | |
9692 | }; | |
9693 | ||
9694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9697 | { | |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9699 | (arg1)->RefreshAll(); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
9702 | if (PyErr_Occurred()) SWIG_fail; | |
9703 | } | |
9704 | Py_INCREF(Py_None); resultobj = Py_None; | |
9705 | return resultobj; | |
9706 | fail: | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject *resultobj; | |
9713 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9714 | size_t result; | |
9715 | PyObject * obj0 = 0 ; | |
9716 | char *kwnames[] = { | |
9717 | (char *) "self", NULL | |
9718 | }; | |
9719 | ||
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9723 | { | |
9724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9725 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9726 | ||
9727 | wxPyEndAllowThreads(__tstate); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | return NULL; | |
9734 | } | |
9735 | ||
9736 | ||
9737 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject *resultobj; | |
9739 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9740 | size_t result; | |
9741 | PyObject * obj0 = 0 ; | |
9742 | char *kwnames[] = { | |
9743 | (char *) "self", NULL | |
9744 | }; | |
9745 | ||
9746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9752 | ||
9753 | wxPyEndAllowThreads(__tstate); | |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
9755 | } | |
9756 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
9763 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9764 | PyObject *resultobj; | |
9765 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9766 | size_t result; | |
9767 | PyObject * obj0 = 0 ; | |
9768 | char *kwnames[] = { | |
9769 | (char *) "self", NULL | |
9770 | }; | |
9771 | ||
9772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9775 | { | |
9776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9777 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9778 | ||
9779 | wxPyEndAllowThreads(__tstate); | |
9780 | if (PyErr_Occurred()) SWIG_fail; | |
9781 | } | |
9782 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9783 | return resultobj; | |
9784 | fail: | |
9785 | return NULL; | |
9786 | } | |
9787 | ||
9788 | ||
9789 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9790 | PyObject *resultobj; | |
9791 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9792 | size_t arg2 ; | |
9793 | bool result; | |
9794 | PyObject * obj0 = 0 ; | |
9795 | PyObject * obj1 = 0 ; | |
9796 | char *kwnames[] = { | |
9797 | (char *) "self",(char *) "line", NULL | |
9798 | }; | |
9799 | ||
9800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9803 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | { | |
9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9807 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9808 | ||
9809 | wxPyEndAllowThreads(__tstate); | |
9810 | if (PyErr_Occurred()) SWIG_fail; | |
9811 | } | |
9812 | { | |
9813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9814 | } | |
9815 | return resultobj; | |
9816 | fail: | |
9817 | return NULL; | |
9818 | } | |
9819 | ||
9820 | ||
9821 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9822 | PyObject *obj; | |
9823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9824 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9825 | Py_INCREF(obj); | |
9826 | return Py_BuildValue((char *)""); | |
9827 | } | |
9828 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9829 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9830 | return 1; | |
9831 | } | |
9832 | ||
9833 | ||
9834 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9835 | PyObject *pyobj; | |
9836 | ||
9837 | { | |
9838 | #if wxUSE_UNICODE | |
9839 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9840 | #else | |
9841 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9842 | #endif | |
9843 | } | |
9844 | return pyobj; | |
9845 | } | |
9846 | ||
9847 | ||
9848 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9849 | PyObject *resultobj; | |
9850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9851 | int arg2 = (int) wxID_ANY ; | |
9852 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9853 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9854 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9855 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9856 | long arg5 = (long) 0 ; | |
9857 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9858 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9859 | wxPyVListBox *result; | |
9860 | wxPoint temp3 ; | |
9861 | wxSize temp4 ; | |
9862 | bool temp6 = False ; | |
9863 | PyObject * obj0 = 0 ; | |
9864 | PyObject * obj1 = 0 ; | |
9865 | PyObject * obj2 = 0 ; | |
9866 | PyObject * obj3 = 0 ; | |
9867 | PyObject * obj4 = 0 ; | |
9868 | PyObject * obj5 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9876 | if (obj1) { | |
9877 | arg2 = (int) SWIG_AsInt(obj1); | |
9878 | if (PyErr_Occurred()) SWIG_fail; | |
9879 | } | |
9880 | if (obj2) { | |
9881 | { | |
9882 | arg3 = &temp3; | |
9883 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9884 | } | |
9885 | } | |
9886 | if (obj3) { | |
9887 | { | |
9888 | arg4 = &temp4; | |
9889 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9890 | } | |
9891 | } | |
9892 | if (obj4) { | |
9893 | arg5 = (long) SWIG_AsLong(obj4); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
9896 | if (obj5) { | |
9897 | { | |
9898 | arg6 = wxString_in_helper(obj5); | |
9899 | if (arg6 == NULL) SWIG_fail; | |
9900 | temp6 = True; | |
9901 | } | |
9902 | } | |
9903 | { | |
0439c23b | 9904 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9906 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9907 | ||
9908 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9909 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9910 | } |
9911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9912 | { | |
9913 | if (temp6) | |
9914 | delete arg6; | |
9915 | } | |
9916 | return resultobj; | |
9917 | fail: | |
9918 | { | |
9919 | if (temp6) | |
9920 | delete arg6; | |
9921 | } | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9927 | PyObject *resultobj; | |
9928 | wxPyVListBox *result; | |
9929 | char *kwnames[] = { | |
9930 | NULL | |
9931 | }; | |
9932 | ||
9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9934 | { | |
0439c23b | 9935 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9937 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9938 | ||
9939 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9940 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9941 | } |
9942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9943 | return resultobj; | |
9944 | fail: | |
9945 | return NULL; | |
9946 | } | |
9947 | ||
9948 | ||
9949 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9950 | PyObject *resultobj; | |
9951 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9952 | PyObject *arg2 = (PyObject *) 0 ; | |
9953 | PyObject *arg3 = (PyObject *) 0 ; | |
9954 | PyObject * obj0 = 0 ; | |
9955 | PyObject * obj1 = 0 ; | |
9956 | PyObject * obj2 = 0 ; | |
9957 | char *kwnames[] = { | |
9958 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9959 | }; | |
9960 | ||
9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9964 | arg2 = obj1; | |
9965 | arg3 = obj2; | |
9966 | { | |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9968 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9969 | ||
9970 | wxPyEndAllowThreads(__tstate); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | Py_INCREF(Py_None); resultobj = Py_None; | |
9974 | return resultobj; | |
9975 | fail: | |
9976 | return NULL; | |
9977 | } | |
9978 | ||
9979 | ||
9980 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9981 | PyObject *resultobj; | |
9982 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9983 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9984 | int arg3 = (int) wxID_ANY ; | |
9985 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9986 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9987 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9988 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9989 | long arg6 = (long) 0 ; | |
9990 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9991 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9992 | bool result; | |
9993 | wxPoint temp4 ; | |
9994 | wxSize temp5 ; | |
9995 | bool temp7 = False ; | |
9996 | PyObject * obj0 = 0 ; | |
9997 | PyObject * obj1 = 0 ; | |
9998 | PyObject * obj2 = 0 ; | |
9999 | PyObject * obj3 = 0 ; | |
10000 | PyObject * obj4 = 0 ; | |
10001 | PyObject * obj5 = 0 ; | |
10002 | PyObject * obj6 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10012 | if (obj2) { | |
10013 | arg3 = (int) SWIG_AsInt(obj2); | |
10014 | if (PyErr_Occurred()) SWIG_fail; | |
10015 | } | |
10016 | if (obj3) { | |
10017 | { | |
10018 | arg4 = &temp4; | |
10019 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10020 | } | |
10021 | } | |
10022 | if (obj4) { | |
10023 | { | |
10024 | arg5 = &temp5; | |
10025 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10026 | } | |
10027 | } | |
10028 | if (obj5) { | |
10029 | arg6 = (long) SWIG_AsLong(obj5); | |
10030 | if (PyErr_Occurred()) SWIG_fail; | |
10031 | } | |
10032 | if (obj6) { | |
10033 | { | |
10034 | arg7 = wxString_in_helper(obj6); | |
10035 | if (arg7 == NULL) SWIG_fail; | |
10036 | temp7 = True; | |
10037 | } | |
10038 | } | |
10039 | { | |
10040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10041 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10042 | ||
10043 | wxPyEndAllowThreads(__tstate); | |
10044 | if (PyErr_Occurred()) SWIG_fail; | |
10045 | } | |
10046 | { | |
10047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10048 | } | |
10049 | { | |
10050 | if (temp7) | |
10051 | delete arg7; | |
10052 | } | |
10053 | return resultobj; | |
10054 | fail: | |
10055 | { | |
10056 | if (temp7) | |
10057 | delete arg7; | |
10058 | } | |
10059 | return NULL; | |
10060 | } | |
10061 | ||
10062 | ||
10063 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10064 | PyObject *resultobj; | |
10065 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10066 | size_t result; | |
10067 | PyObject * obj0 = 0 ; | |
10068 | char *kwnames[] = { | |
10069 | (char *) "self", NULL | |
10070 | }; | |
10071 | ||
10072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
10073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10075 | { | |
10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10077 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
10078 | ||
10079 | wxPyEndAllowThreads(__tstate); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | } | |
10082 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10083 | return resultobj; | |
10084 | fail: | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
10089 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10090 | PyObject *resultobj; | |
10091 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10092 | bool result; | |
10093 | PyObject * obj0 = 0 ; | |
10094 | char *kwnames[] = { | |
10095 | (char *) "self", NULL | |
10096 | }; | |
10097 | ||
10098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
10099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
10104 | ||
10105 | wxPyEndAllowThreads(__tstate); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | { | |
10109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10110 | } | |
10111 | return resultobj; | |
10112 | fail: | |
10113 | return NULL; | |
10114 | } | |
10115 | ||
10116 | ||
10117 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10118 | PyObject *resultobj; | |
10119 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10120 | int result; | |
10121 | PyObject * obj0 = 0 ; | |
10122 | char *kwnames[] = { | |
10123 | (char *) "self", NULL | |
10124 | }; | |
10125 | ||
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
10127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10129 | { | |
10130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10131 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
10132 | ||
10133 | wxPyEndAllowThreads(__tstate); | |
10134 | if (PyErr_Occurred()) SWIG_fail; | |
10135 | } | |
10136 | resultobj = SWIG_FromInt((int)result); | |
10137 | return resultobj; | |
10138 | fail: | |
10139 | return NULL; | |
10140 | } | |
10141 | ||
10142 | ||
10143 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10144 | PyObject *resultobj; | |
10145 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10146 | size_t arg2 ; | |
10147 | bool result; | |
10148 | PyObject * obj0 = 0 ; | |
10149 | PyObject * obj1 = 0 ; | |
10150 | char *kwnames[] = { | |
10151 | (char *) "self",(char *) "item", NULL | |
10152 | }; | |
10153 | ||
10154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
10155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10157 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10158 | if (PyErr_Occurred()) SWIG_fail; | |
10159 | { | |
10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10161 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
10162 | ||
10163 | wxPyEndAllowThreads(__tstate); | |
10164 | if (PyErr_Occurred()) SWIG_fail; | |
10165 | } | |
10166 | { | |
10167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10168 | } | |
10169 | return resultobj; | |
10170 | fail: | |
10171 | return NULL; | |
10172 | } | |
10173 | ||
10174 | ||
10175 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject *resultobj; | |
10177 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10178 | size_t arg2 ; | |
10179 | bool result; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | PyObject * obj1 = 0 ; | |
10182 | char *kwnames[] = { | |
10183 | (char *) "self",(char *) "item", NULL | |
10184 | }; | |
10185 | ||
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
10187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10189 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10190 | if (PyErr_Occurred()) SWIG_fail; | |
10191 | { | |
10192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10193 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
10194 | ||
10195 | wxPyEndAllowThreads(__tstate); | |
10196 | if (PyErr_Occurred()) SWIG_fail; | |
10197 | } | |
10198 | { | |
10199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10200 | } | |
10201 | return resultobj; | |
10202 | fail: | |
10203 | return NULL; | |
10204 | } | |
10205 | ||
10206 | ||
10207 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10208 | PyObject *resultobj; | |
10209 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10210 | size_t result; | |
10211 | PyObject * obj0 = 0 ; | |
10212 | char *kwnames[] = { | |
10213 | (char *) "self", NULL | |
10214 | }; | |
10215 | ||
10216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
10217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10219 | { | |
10220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10221 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
10222 | ||
10223 | wxPyEndAllowThreads(__tstate); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10227 | return resultobj; | |
10228 | fail: | |
10229 | return NULL; | |
10230 | } | |
10231 | ||
10232 | ||
10233 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject *resultobj; | |
10235 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
09c21d3b | 10236 | PyObject *result; |
d55e5bfc | 10237 | PyObject * obj0 = 0 ; |
d55e5bfc | 10238 | char *kwnames[] = { |
09c21d3b | 10239 | (char *) "self", NULL |
d55e5bfc RD |
10240 | }; |
10241 | ||
09c21d3b | 10242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetFirstSelected",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
10243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, |
10244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
10245 | { |
10246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
09c21d3b | 10247 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); |
d55e5bfc RD |
10248 | |
10249 | wxPyEndAllowThreads(__tstate); | |
10250 | if (PyErr_Occurred()) SWIG_fail; | |
10251 | } | |
09c21d3b | 10252 | resultobj = result; |
d55e5bfc RD |
10253 | return resultobj; |
10254 | fail: | |
10255 | return NULL; | |
10256 | } | |
10257 | ||
10258 | ||
10259 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10260 | PyObject *resultobj; | |
10261 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
09c21d3b RD |
10262 | unsigned long arg2 ; |
10263 | PyObject *result; | |
d55e5bfc RD |
10264 | PyObject * obj0 = 0 ; |
10265 | PyObject * obj1 = 0 ; | |
10266 | char *kwnames[] = { | |
10267 | (char *) "self",(char *) "cookie", NULL | |
10268 | }; | |
10269 | ||
10270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
10271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
09c21d3b RD |
10273 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10274 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
10275 | { |
10276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
09c21d3b | 10277 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); |
d55e5bfc RD |
10278 | |
10279 | wxPyEndAllowThreads(__tstate); | |
10280 | if (PyErr_Occurred()) SWIG_fail; | |
10281 | } | |
09c21d3b | 10282 | resultobj = result; |
d55e5bfc RD |
10283 | return resultobj; |
10284 | fail: | |
10285 | return NULL; | |
10286 | } | |
10287 | ||
10288 | ||
10289 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10290 | PyObject *resultobj; | |
10291 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10292 | wxPoint result; | |
10293 | PyObject * obj0 = 0 ; | |
10294 | char *kwnames[] = { | |
10295 | (char *) "self", NULL | |
10296 | }; | |
10297 | ||
10298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
10299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10301 | { | |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
10304 | ||
10305 | wxPyEndAllowThreads(__tstate); | |
10306 | if (PyErr_Occurred()) SWIG_fail; | |
10307 | } | |
10308 | { | |
10309 | wxPoint * resultptr; | |
10310 | resultptr = new wxPoint((wxPoint &) result); | |
10311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10312 | } | |
10313 | return resultobj; | |
10314 | fail: | |
10315 | return NULL; | |
10316 | } | |
10317 | ||
10318 | ||
10319 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject *resultobj; | |
10321 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10322 | wxColour *result; | |
10323 | PyObject * obj0 = 0 ; | |
10324 | char *kwnames[] = { | |
10325 | (char *) "self", NULL | |
10326 | }; | |
10327 | ||
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10331 | { | |
10332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10333 | { | |
10334 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10335 | result = (wxColour *) &_result_ref; | |
10336 | } | |
10337 | ||
10338 | wxPyEndAllowThreads(__tstate); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
10340 | } | |
10341 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10342 | return resultobj; | |
10343 | fail: | |
10344 | return NULL; | |
10345 | } | |
10346 | ||
10347 | ||
10348 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10349 | PyObject *resultobj; | |
10350 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10351 | size_t arg2 ; | |
10352 | PyObject * obj0 = 0 ; | |
10353 | PyObject * obj1 = 0 ; | |
10354 | char *kwnames[] = { | |
10355 | (char *) "self",(char *) "count", NULL | |
10356 | }; | |
10357 | ||
10358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10361 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10362 | if (PyErr_Occurred()) SWIG_fail; | |
10363 | { | |
10364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10365 | (arg1)->SetItemCount(arg2); | |
10366 | ||
10367 | wxPyEndAllowThreads(__tstate); | |
10368 | if (PyErr_Occurred()) SWIG_fail; | |
10369 | } | |
10370 | Py_INCREF(Py_None); resultobj = Py_None; | |
10371 | return resultobj; | |
10372 | fail: | |
10373 | return NULL; | |
10374 | } | |
10375 | ||
10376 | ||
10377 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10378 | PyObject *resultobj; | |
10379 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10380 | PyObject * obj0 = 0 ; | |
10381 | char *kwnames[] = { | |
10382 | (char *) "self", NULL | |
10383 | }; | |
10384 | ||
10385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10388 | { | |
10389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10390 | (arg1)->Clear(); | |
10391 | ||
10392 | wxPyEndAllowThreads(__tstate); | |
10393 | if (PyErr_Occurred()) SWIG_fail; | |
10394 | } | |
10395 | Py_INCREF(Py_None); resultobj = Py_None; | |
10396 | return resultobj; | |
10397 | fail: | |
10398 | return NULL; | |
10399 | } | |
10400 | ||
10401 | ||
10402 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10403 | PyObject *resultobj; | |
10404 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10405 | int arg2 ; | |
10406 | PyObject * obj0 = 0 ; | |
10407 | PyObject * obj1 = 0 ; | |
10408 | char *kwnames[] = { | |
10409 | (char *) "self",(char *) "selection", NULL | |
10410 | }; | |
10411 | ||
10412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10415 | arg2 = (int) SWIG_AsInt(obj1); | |
10416 | if (PyErr_Occurred()) SWIG_fail; | |
10417 | { | |
10418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10419 | (arg1)->SetSelection(arg2); | |
10420 | ||
10421 | wxPyEndAllowThreads(__tstate); | |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
10423 | } | |
10424 | Py_INCREF(Py_None); resultobj = Py_None; | |
10425 | return resultobj; | |
10426 | fail: | |
10427 | return NULL; | |
10428 | } | |
10429 | ||
10430 | ||
10431 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10432 | PyObject *resultobj; | |
10433 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10434 | size_t arg2 ; | |
10435 | bool arg3 = (bool) True ; | |
10436 | bool result; | |
10437 | PyObject * obj0 = 0 ; | |
10438 | PyObject * obj1 = 0 ; | |
10439 | PyObject * obj2 = 0 ; | |
10440 | char *kwnames[] = { | |
10441 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10442 | }; | |
10443 | ||
10444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10447 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10448 | if (PyErr_Occurred()) SWIG_fail; | |
10449 | if (obj2) { | |
10450 | arg3 = (bool) SWIG_AsBool(obj2); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
10453 | { | |
10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10455 | result = (bool)(arg1)->Select(arg2,arg3); | |
10456 | ||
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | { | |
10461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10462 | } | |
10463 | return resultobj; | |
10464 | fail: | |
10465 | return NULL; | |
10466 | } | |
10467 | ||
10468 | ||
10469 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10470 | PyObject *resultobj; | |
10471 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10472 | size_t arg2 ; | |
10473 | size_t arg3 ; | |
10474 | bool result; | |
10475 | PyObject * obj0 = 0 ; | |
10476 | PyObject * obj1 = 0 ; | |
10477 | PyObject * obj2 = 0 ; | |
10478 | char *kwnames[] = { | |
10479 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10480 | }; | |
10481 | ||
10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10485 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | { | |
10490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10491 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10492 | ||
10493 | wxPyEndAllowThreads(__tstate); | |
10494 | if (PyErr_Occurred()) SWIG_fail; | |
10495 | } | |
10496 | { | |
10497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10498 | } | |
10499 | return resultobj; | |
10500 | fail: | |
10501 | return NULL; | |
10502 | } | |
10503 | ||
10504 | ||
10505 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10506 | PyObject *resultobj; | |
10507 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10508 | size_t arg2 ; | |
10509 | PyObject * obj0 = 0 ; | |
10510 | PyObject * obj1 = 0 ; | |
10511 | char *kwnames[] = { | |
10512 | (char *) "self",(char *) "item", NULL | |
10513 | }; | |
10514 | ||
10515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10518 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | { | |
10521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10522 | (arg1)->Toggle(arg2); | |
10523 | ||
10524 | wxPyEndAllowThreads(__tstate); | |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
10526 | } | |
10527 | Py_INCREF(Py_None); resultobj = Py_None; | |
10528 | return resultobj; | |
10529 | fail: | |
10530 | return NULL; | |
10531 | } | |
10532 | ||
10533 | ||
10534 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10535 | PyObject *resultobj; | |
10536 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10537 | bool result; | |
10538 | PyObject * obj0 = 0 ; | |
10539 | char *kwnames[] = { | |
10540 | (char *) "self", NULL | |
10541 | }; | |
10542 | ||
10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10546 | { | |
10547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10548 | result = (bool)(arg1)->SelectAll(); | |
10549 | ||
10550 | wxPyEndAllowThreads(__tstate); | |
10551 | if (PyErr_Occurred()) SWIG_fail; | |
10552 | } | |
10553 | { | |
10554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10555 | } | |
10556 | return resultobj; | |
10557 | fail: | |
10558 | return NULL; | |
10559 | } | |
10560 | ||
10561 | ||
10562 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject *resultobj; | |
10564 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10565 | bool result; | |
10566 | PyObject * obj0 = 0 ; | |
10567 | char *kwnames[] = { | |
10568 | (char *) "self", NULL | |
10569 | }; | |
10570 | ||
10571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10574 | { | |
10575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10576 | result = (bool)(arg1)->DeselectAll(); | |
10577 | ||
10578 | wxPyEndAllowThreads(__tstate); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
10581 | { | |
10582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10583 | } | |
10584 | return resultobj; | |
10585 | fail: | |
10586 | return NULL; | |
10587 | } | |
10588 | ||
10589 | ||
10590 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10591 | PyObject *resultobj; | |
10592 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10593 | wxPoint *arg2 = 0 ; | |
10594 | wxPoint temp2 ; | |
10595 | PyObject * obj0 = 0 ; | |
10596 | PyObject * obj1 = 0 ; | |
10597 | char *kwnames[] = { | |
10598 | (char *) "self",(char *) "pt", NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10604 | { | |
10605 | arg2 = &temp2; | |
10606 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10607 | } | |
10608 | { | |
10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10610 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10611 | ||
10612 | wxPyEndAllowThreads(__tstate); | |
10613 | if (PyErr_Occurred()) SWIG_fail; | |
10614 | } | |
10615 | Py_INCREF(Py_None); resultobj = Py_None; | |
10616 | return resultobj; | |
10617 | fail: | |
10618 | return NULL; | |
10619 | } | |
10620 | ||
10621 | ||
10622 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10623 | PyObject *resultobj; | |
10624 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10625 | int arg2 ; | |
10626 | int arg3 ; | |
10627 | PyObject * obj0 = 0 ; | |
10628 | PyObject * obj1 = 0 ; | |
10629 | PyObject * obj2 = 0 ; | |
10630 | char *kwnames[] = { | |
10631 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10632 | }; | |
10633 | ||
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10637 | arg2 = (int) SWIG_AsInt(obj1); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | arg3 = (int) SWIG_AsInt(obj2); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | { | |
10642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10643 | (arg1)->SetMargins(arg2,arg3); | |
10644 | ||
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | Py_INCREF(Py_None); resultobj = Py_None; | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10658 | wxColour *arg2 = 0 ; | |
10659 | wxColour temp2 ; | |
10660 | PyObject * obj0 = 0 ; | |
10661 | PyObject * obj1 = 0 ; | |
10662 | char *kwnames[] = { | |
10663 | (char *) "self",(char *) "col", NULL | |
10664 | }; | |
10665 | ||
10666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10669 | { | |
10670 | arg2 = &temp2; | |
10671 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10675 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10676 | ||
10677 | wxPyEndAllowThreads(__tstate); | |
10678 | if (PyErr_Occurred()) SWIG_fail; | |
10679 | } | |
10680 | Py_INCREF(Py_None); resultobj = Py_None; | |
10681 | return resultobj; | |
10682 | fail: | |
10683 | return NULL; | |
10684 | } | |
10685 | ||
10686 | ||
10687 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10688 | PyObject *obj; | |
10689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10690 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10691 | Py_INCREF(obj); | |
10692 | return Py_BuildValue((char *)""); | |
10693 | } | |
10694 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10695 | PyObject *resultobj; | |
10696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10697 | int arg2 = (int) wxID_ANY ; | |
10698 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10699 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10700 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10701 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10702 | long arg5 = (long) 0 ; | |
10703 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10704 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10705 | wxPyHtmlListBox *result; | |
10706 | wxPoint temp3 ; | |
10707 | wxSize temp4 ; | |
10708 | bool temp6 = False ; | |
10709 | PyObject * obj0 = 0 ; | |
10710 | PyObject * obj1 = 0 ; | |
10711 | PyObject * obj2 = 0 ; | |
10712 | PyObject * obj3 = 0 ; | |
10713 | PyObject * obj4 = 0 ; | |
10714 | PyObject * obj5 = 0 ; | |
10715 | char *kwnames[] = { | |
10716 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10717 | }; | |
10718 | ||
10719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10722 | if (obj1) { | |
10723 | arg2 = (int) SWIG_AsInt(obj1); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
10726 | if (obj2) { | |
10727 | { | |
10728 | arg3 = &temp3; | |
10729 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10730 | } | |
10731 | } | |
10732 | if (obj3) { | |
10733 | { | |
10734 | arg4 = &temp4; | |
10735 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10736 | } | |
10737 | } | |
10738 | if (obj4) { | |
10739 | arg5 = (long) SWIG_AsLong(obj4); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | if (obj5) { | |
10743 | { | |
10744 | arg6 = wxString_in_helper(obj5); | |
10745 | if (arg6 == NULL) SWIG_fail; | |
10746 | temp6 = True; | |
10747 | } | |
10748 | } | |
10749 | { | |
0439c23b | 10750 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10752 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10753 | ||
10754 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10755 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10756 | } |
10757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10758 | { | |
10759 | if (temp6) | |
10760 | delete arg6; | |
10761 | } | |
10762 | return resultobj; | |
10763 | fail: | |
10764 | { | |
10765 | if (temp6) | |
10766 | delete arg6; | |
10767 | } | |
10768 | return NULL; | |
10769 | } | |
10770 | ||
10771 | ||
10772 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10773 | PyObject *resultobj; | |
10774 | wxPyHtmlListBox *result; | |
10775 | char *kwnames[] = { | |
10776 | NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10780 | { | |
0439c23b | 10781 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10783 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10786 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10787 | } |
10788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10789 | return resultobj; | |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
10795 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10796 | PyObject *resultobj; | |
10797 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10798 | PyObject *arg2 = (PyObject *) 0 ; | |
10799 | PyObject *arg3 = (PyObject *) 0 ; | |
10800 | PyObject * obj0 = 0 ; | |
10801 | PyObject * obj1 = 0 ; | |
10802 | PyObject * obj2 = 0 ; | |
10803 | char *kwnames[] = { | |
10804 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10805 | }; | |
10806 | ||
10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10810 | arg2 = obj1; | |
10811 | arg3 = obj2; | |
10812 | { | |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
10819 | Py_INCREF(Py_None); resultobj = Py_None; | |
10820 | return resultobj; | |
10821 | fail: | |
10822 | return NULL; | |
10823 | } | |
10824 | ||
10825 | ||
10826 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10827 | PyObject *resultobj; | |
10828 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10829 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10830 | int arg3 = (int) wxID_ANY ; | |
10831 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10832 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10833 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10834 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10835 | long arg6 = (long) 0 ; | |
10836 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10837 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10838 | bool result; | |
10839 | wxPoint temp4 ; | |
10840 | wxSize temp5 ; | |
10841 | bool temp7 = False ; | |
10842 | PyObject * obj0 = 0 ; | |
10843 | PyObject * obj1 = 0 ; | |
10844 | PyObject * obj2 = 0 ; | |
10845 | PyObject * obj3 = 0 ; | |
10846 | PyObject * obj4 = 0 ; | |
10847 | PyObject * obj5 = 0 ; | |
10848 | PyObject * obj6 = 0 ; | |
10849 | char *kwnames[] = { | |
10850 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10851 | }; | |
10852 | ||
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10856 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10858 | if (obj2) { | |
10859 | arg3 = (int) SWIG_AsInt(obj2); | |
10860 | if (PyErr_Occurred()) SWIG_fail; | |
10861 | } | |
10862 | if (obj3) { | |
10863 | { | |
10864 | arg4 = &temp4; | |
10865 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10866 | } | |
10867 | } | |
10868 | if (obj4) { | |
10869 | { | |
10870 | arg5 = &temp5; | |
10871 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10872 | } | |
10873 | } | |
10874 | if (obj5) { | |
10875 | arg6 = (long) SWIG_AsLong(obj5); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | if (obj6) { | |
10879 | { | |
10880 | arg7 = wxString_in_helper(obj6); | |
10881 | if (arg7 == NULL) SWIG_fail; | |
10882 | temp7 = True; | |
10883 | } | |
10884 | } | |
10885 | { | |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10888 | ||
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
10892 | { | |
10893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10894 | } | |
10895 | { | |
10896 | if (temp7) | |
10897 | delete arg7; | |
10898 | } | |
10899 | return resultobj; | |
10900 | fail: | |
10901 | { | |
10902 | if (temp7) | |
10903 | delete arg7; | |
10904 | } | |
10905 | return NULL; | |
10906 | } | |
10907 | ||
10908 | ||
10909 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10910 | PyObject *resultobj; | |
10911 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10912 | PyObject * obj0 = 0 ; | |
10913 | char *kwnames[] = { | |
10914 | (char *) "self", NULL | |
10915 | }; | |
10916 | ||
10917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10920 | { | |
10921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10922 | (arg1)->RefreshAll(); | |
10923 | ||
10924 | wxPyEndAllowThreads(__tstate); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
10926 | } | |
10927 | Py_INCREF(Py_None); resultobj = Py_None; | |
10928 | return resultobj; | |
10929 | fail: | |
10930 | return NULL; | |
10931 | } | |
10932 | ||
10933 | ||
10934 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10935 | PyObject *resultobj; | |
10936 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10937 | size_t arg2 ; | |
10938 | PyObject * obj0 = 0 ; | |
10939 | PyObject * obj1 = 0 ; | |
10940 | char *kwnames[] = { | |
10941 | (char *) "self",(char *) "count", NULL | |
10942 | }; | |
10943 | ||
10944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10947 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | { | |
10950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10951 | (arg1)->SetItemCount(arg2); | |
10952 | ||
10953 | wxPyEndAllowThreads(__tstate); | |
10954 | if (PyErr_Occurred()) SWIG_fail; | |
10955 | } | |
10956 | Py_INCREF(Py_None); resultobj = Py_None; | |
10957 | return resultobj; | |
10958 | fail: | |
10959 | return NULL; | |
10960 | } | |
10961 | ||
10962 | ||
c24da6d6 RD |
10963 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { |
10964 | PyObject *resultobj; | |
10965 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10966 | wxFileSystem *result; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | char *kwnames[] = { | |
10969 | (char *) "self", NULL | |
10970 | }; | |
10971 | ||
10972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10975 | { | |
10976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10977 | { | |
10978 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10979 | result = (wxFileSystem *) &_result_ref; | |
10980 | } | |
10981 | ||
10982 | wxPyEndAllowThreads(__tstate); | |
10983 | if (PyErr_Occurred()) SWIG_fail; | |
10984 | } | |
10985 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10986 | return resultobj; | |
10987 | fail: | |
10988 | return NULL; | |
10989 | } | |
10990 | ||
10991 | ||
d55e5bfc RD |
10992 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { |
10993 | PyObject *obj; | |
10994 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10995 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10996 | Py_INCREF(obj); | |
10997 | return Py_BuildValue((char *)""); | |
10998 | } | |
10999 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11000 | PyObject *resultobj; | |
11001 | wxTaskBarIcon *result; | |
11002 | char *kwnames[] = { | |
11003 | NULL | |
11004 | }; | |
11005 | ||
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
11007 | { | |
0439c23b | 11008 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11010 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
11011 | ||
11012 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11013 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11014 | } |
11015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
11016 | return resultobj; | |
11017 | fail: | |
11018 | return NULL; | |
11019 | } | |
11020 | ||
11021 | ||
11022 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj; | |
11024 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11025 | PyObject * obj0 = 0 ; | |
11026 | char *kwnames[] = { | |
11027 | (char *) "self", NULL | |
11028 | }; | |
11029 | ||
11030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
11031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11033 | { | |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | delete arg1; | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | Py_INCREF(Py_None); resultobj = Py_None; | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
11047 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject *resultobj; | |
11049 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11050 | PyObject * obj0 = 0 ; | |
11051 | char *kwnames[] = { | |
11052 | (char *) "self", NULL | |
11053 | }; | |
11054 | ||
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
11056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11058 | { | |
11059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11060 | wxTaskBarIcon_Destroy(arg1); | |
11061 | ||
11062 | wxPyEndAllowThreads(__tstate); | |
11063 | if (PyErr_Occurred()) SWIG_fail; | |
11064 | } | |
11065 | Py_INCREF(Py_None); resultobj = Py_None; | |
11066 | return resultobj; | |
11067 | fail: | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11075 | bool result; | |
11076 | PyObject * obj0 = 0 ; | |
11077 | char *kwnames[] = { | |
11078 | (char *) "self", NULL | |
11079 | }; | |
11080 | ||
11081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; | |
11082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11084 | { | |
11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11086 | result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); | |
11087 | ||
11088 | wxPyEndAllowThreads(__tstate); | |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
11090 | } | |
11091 | { | |
11092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11093 | } | |
11094 | return resultobj; | |
11095 | fail: | |
11096 | return NULL; | |
11097 | } | |
11098 | ||
11099 | ||
11100 | static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11101 | PyObject *resultobj; | |
11102 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11103 | bool result; | |
11104 | PyObject * obj0 = 0 ; | |
11105 | char *kwnames[] = { | |
11106 | (char *) "self", NULL | |
11107 | }; | |
11108 | ||
11109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; | |
11110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11112 | { | |
11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11114 | result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); | |
11115 | ||
11116 | wxPyEndAllowThreads(__tstate); | |
11117 | if (PyErr_Occurred()) SWIG_fail; | |
11118 | } | |
11119 | { | |
11120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11121 | } | |
11122 | return resultobj; | |
11123 | fail: | |
11124 | return NULL; | |
11125 | } | |
11126 | ||
11127 | ||
11128 | static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11129 | PyObject *resultobj; | |
11130 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11131 | wxIcon *arg2 = 0 ; | |
11132 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11133 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11134 | bool result; | |
11135 | bool temp3 = False ; | |
11136 | PyObject * obj0 = 0 ; | |
11137 | PyObject * obj1 = 0 ; | |
11138 | PyObject * obj2 = 0 ; | |
11139 | char *kwnames[] = { | |
11140 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
11141 | }; | |
11142 | ||
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11147 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11148 | SWIG_fail; | |
11149 | if (arg2 == NULL) { | |
11150 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11151 | SWIG_fail; | |
11152 | } | |
11153 | if (obj2) { | |
11154 | { | |
11155 | arg3 = wxString_in_helper(obj2); | |
11156 | if (arg3 == NULL) SWIG_fail; | |
11157 | temp3 = True; | |
11158 | } | |
11159 | } | |
11160 | { | |
11161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11162 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
11163 | ||
11164 | wxPyEndAllowThreads(__tstate); | |
11165 | if (PyErr_Occurred()) SWIG_fail; | |
11166 | } | |
11167 | { | |
11168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11169 | } | |
11170 | { | |
11171 | if (temp3) | |
11172 | delete arg3; | |
11173 | } | |
11174 | return resultobj; | |
11175 | fail: | |
11176 | { | |
11177 | if (temp3) | |
11178 | delete arg3; | |
11179 | } | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11185 | PyObject *resultobj; | |
11186 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11187 | bool result; | |
11188 | PyObject * obj0 = 0 ; | |
11189 | char *kwnames[] = { | |
11190 | (char *) "self", NULL | |
11191 | }; | |
11192 | ||
11193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; | |
11194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11196 | { | |
11197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11198 | result = (bool)(arg1)->RemoveIcon(); | |
11199 | ||
11200 | wxPyEndAllowThreads(__tstate); | |
11201 | if (PyErr_Occurred()) SWIG_fail; | |
11202 | } | |
11203 | { | |
11204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11205 | } | |
11206 | return resultobj; | |
11207 | fail: | |
11208 | return NULL; | |
11209 | } | |
11210 | ||
11211 | ||
11212 | static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11213 | PyObject *resultobj; | |
11214 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11215 | wxMenu *arg2 = (wxMenu *) 0 ; | |
11216 | bool result; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | PyObject * obj1 = 0 ; | |
11219 | char *kwnames[] = { | |
11220 | (char *) "self",(char *) "menu", NULL | |
11221 | }; | |
11222 | ||
11223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; | |
11224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11226 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
11227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11228 | { | |
11229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11230 | result = (bool)(arg1)->PopupMenu(arg2); | |
11231 | ||
11232 | wxPyEndAllowThreads(__tstate); | |
11233 | if (PyErr_Occurred()) SWIG_fail; | |
11234 | } | |
11235 | { | |
11236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11237 | } | |
11238 | return resultobj; | |
11239 | fail: | |
11240 | return NULL; | |
11241 | } | |
11242 | ||
11243 | ||
11244 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
11245 | PyObject *obj; | |
11246 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11247 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
11248 | Py_INCREF(obj); | |
11249 | return Py_BuildValue((char *)""); | |
11250 | } | |
11251 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11252 | PyObject *resultobj; | |
11253 | wxEventType arg1 ; | |
11254 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
11255 | wxTaskBarIconEvent *result; | |
11256 | PyObject * obj0 = 0 ; | |
11257 | PyObject * obj1 = 0 ; | |
11258 | char *kwnames[] = { | |
11259 | (char *) "evtType",(char *) "tbIcon", NULL | |
11260 | }; | |
11261 | ||
11262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
11263 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11264 | if (PyErr_Occurred()) SWIG_fail; | |
11265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
11266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11267 | { | |
11268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11269 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
11270 | ||
11271 | wxPyEndAllowThreads(__tstate); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
11275 | return resultobj; | |
11276 | fail: | |
11277 | return NULL; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
11282 | PyObject *obj; | |
11283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11284 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
11285 | Py_INCREF(obj); | |
11286 | return Py_BuildValue((char *)""); | |
11287 | } | |
11288 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
11289 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
11290 | return 1; | |
11291 | } | |
11292 | ||
11293 | ||
11294 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
11295 | PyObject *pyobj; | |
11296 | ||
11297 | { | |
11298 | #if wxUSE_UNICODE | |
11299 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11300 | #else | |
11301 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11302 | #endif | |
11303 | } | |
11304 | return pyobj; | |
11305 | } | |
11306 | ||
11307 | ||
11308 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
11309 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
11310 | return 1; | |
11311 | } | |
11312 | ||
11313 | ||
11314 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
11315 | PyObject *pyobj; | |
11316 | ||
11317 | { | |
11318 | #if wxUSE_UNICODE | |
11319 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11320 | #else | |
11321 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11322 | #endif | |
11323 | } | |
11324 | return pyobj; | |
11325 | } | |
11326 | ||
11327 | ||
11328 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
11329 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
11330 | return 1; | |
11331 | } | |
11332 | ||
11333 | ||
11334 | static PyObject *_wrap_DirDialogNameStr_get() { | |
11335 | PyObject *pyobj; | |
11336 | ||
11337 | { | |
11338 | #if wxUSE_UNICODE | |
11339 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11340 | #else | |
11341 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11342 | #endif | |
11343 | } | |
11344 | return pyobj; | |
11345 | } | |
11346 | ||
11347 | ||
11348 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
11349 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
11350 | return 1; | |
11351 | } | |
11352 | ||
11353 | ||
11354 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
11355 | PyObject *pyobj; | |
11356 | ||
11357 | { | |
11358 | #if wxUSE_UNICODE | |
11359 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11360 | #else | |
11361 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11362 | #endif | |
11363 | } | |
11364 | return pyobj; | |
11365 | } | |
11366 | ||
11367 | ||
11368 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
11369 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
11370 | return 1; | |
11371 | } | |
11372 | ||
11373 | ||
11374 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
11375 | PyObject *pyobj; | |
11376 | ||
11377 | { | |
11378 | #if wxUSE_UNICODE | |
11379 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11380 | #else | |
11381 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11382 | #endif | |
11383 | } | |
11384 | return pyobj; | |
11385 | } | |
11386 | ||
11387 | ||
11388 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
11389 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
11390 | return 1; | |
11391 | } | |
11392 | ||
11393 | ||
11394 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
11395 | PyObject *pyobj; | |
11396 | ||
11397 | { | |
11398 | #if wxUSE_UNICODE | |
11399 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11400 | #else | |
11401 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11402 | #endif | |
11403 | } | |
11404 | return pyobj; | |
11405 | } | |
11406 | ||
11407 | ||
11408 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11409 | PyObject *resultobj; | |
11410 | wxColourData *result; | |
11411 | char *kwnames[] = { | |
11412 | NULL | |
11413 | }; | |
11414 | ||
11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
11416 | { | |
11417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11418 | result = (wxColourData *)new wxColourData(); | |
11419 | ||
11420 | wxPyEndAllowThreads(__tstate); | |
11421 | if (PyErr_Occurred()) SWIG_fail; | |
11422 | } | |
11423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
11424 | return resultobj; | |
11425 | fail: | |
11426 | return NULL; | |
11427 | } | |
11428 | ||
11429 | ||
11430 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11431 | PyObject *resultobj; | |
11432 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11433 | PyObject * obj0 = 0 ; | |
11434 | char *kwnames[] = { | |
11435 | (char *) "self", NULL | |
11436 | }; | |
11437 | ||
11438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
11439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11441 | { | |
11442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11443 | delete arg1; | |
11444 | ||
11445 | wxPyEndAllowThreads(__tstate); | |
11446 | if (PyErr_Occurred()) SWIG_fail; | |
11447 | } | |
11448 | Py_INCREF(Py_None); resultobj = Py_None; | |
11449 | return resultobj; | |
11450 | fail: | |
11451 | return NULL; | |
11452 | } | |
11453 | ||
11454 | ||
11455 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11456 | PyObject *resultobj; | |
11457 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11458 | bool result; | |
11459 | PyObject * obj0 = 0 ; | |
11460 | char *kwnames[] = { | |
11461 | (char *) "self", NULL | |
11462 | }; | |
11463 | ||
11464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
11465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11467 | { | |
11468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11469 | result = (bool)(arg1)->GetChooseFull(); | |
11470 | ||
11471 | wxPyEndAllowThreads(__tstate); | |
11472 | if (PyErr_Occurred()) SWIG_fail; | |
11473 | } | |
11474 | { | |
11475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11476 | } | |
11477 | return resultobj; | |
11478 | fail: | |
11479 | return NULL; | |
11480 | } | |
11481 | ||
11482 | ||
11483 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11484 | PyObject *resultobj; | |
11485 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11486 | wxColour result; | |
11487 | PyObject * obj0 = 0 ; | |
11488 | char *kwnames[] = { | |
11489 | (char *) "self", NULL | |
11490 | }; | |
11491 | ||
11492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11495 | { | |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11497 | result = (arg1)->GetColour(); | |
11498 | ||
11499 | wxPyEndAllowThreads(__tstate); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
11501 | } | |
11502 | { | |
11503 | wxColour * resultptr; | |
11504 | resultptr = new wxColour((wxColour &) result); | |
11505 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11506 | } | |
11507 | return resultobj; | |
11508 | fail: | |
11509 | return NULL; | |
11510 | } | |
11511 | ||
11512 | ||
11513 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11514 | PyObject *resultobj; | |
11515 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11516 | int arg2 ; | |
11517 | wxColour result; | |
11518 | PyObject * obj0 = 0 ; | |
11519 | PyObject * obj1 = 0 ; | |
11520 | char *kwnames[] = { | |
11521 | (char *) "self",(char *) "i", NULL | |
11522 | }; | |
11523 | ||
11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11527 | arg2 = (int) SWIG_AsInt(obj1); | |
11528 | if (PyErr_Occurred()) SWIG_fail; | |
11529 | { | |
11530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11531 | result = (arg1)->GetCustomColour(arg2); | |
11532 | ||
11533 | wxPyEndAllowThreads(__tstate); | |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
11535 | } | |
11536 | { | |
11537 | wxColour * resultptr; | |
11538 | resultptr = new wxColour((wxColour &) result); | |
11539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11540 | } | |
11541 | return resultobj; | |
11542 | fail: | |
11543 | return NULL; | |
11544 | } | |
11545 | ||
11546 | ||
11547 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11548 | PyObject *resultobj; | |
11549 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11550 | int arg2 ; | |
11551 | PyObject * obj0 = 0 ; | |
11552 | PyObject * obj1 = 0 ; | |
11553 | char *kwnames[] = { | |
11554 | (char *) "self",(char *) "flag", NULL | |
11555 | }; | |
11556 | ||
11557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11560 | arg2 = (int) SWIG_AsInt(obj1); | |
11561 | if (PyErr_Occurred()) SWIG_fail; | |
11562 | { | |
11563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11564 | (arg1)->SetChooseFull(arg2); | |
11565 | ||
11566 | wxPyEndAllowThreads(__tstate); | |
11567 | if (PyErr_Occurred()) SWIG_fail; | |
11568 | } | |
11569 | Py_INCREF(Py_None); resultobj = Py_None; | |
11570 | return resultobj; | |
11571 | fail: | |
11572 | return NULL; | |
11573 | } | |
11574 | ||
11575 | ||
11576 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11577 | PyObject *resultobj; | |
11578 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11579 | wxColour *arg2 = 0 ; | |
11580 | wxColour temp2 ; | |
11581 | PyObject * obj0 = 0 ; | |
11582 | PyObject * obj1 = 0 ; | |
11583 | char *kwnames[] = { | |
11584 | (char *) "self",(char *) "colour", NULL | |
11585 | }; | |
11586 | ||
11587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11590 | { | |
11591 | arg2 = &temp2; | |
11592 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11593 | } | |
11594 | { | |
11595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11596 | (arg1)->SetColour((wxColour const &)*arg2); | |
11597 | ||
11598 | wxPyEndAllowThreads(__tstate); | |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | } | |
11601 | Py_INCREF(Py_None); resultobj = Py_None; | |
11602 | return resultobj; | |
11603 | fail: | |
11604 | return NULL; | |
11605 | } | |
11606 | ||
11607 | ||
11608 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11609 | PyObject *resultobj; | |
11610 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11611 | int arg2 ; | |
11612 | wxColour *arg3 = 0 ; | |
11613 | wxColour temp3 ; | |
11614 | PyObject * obj0 = 0 ; | |
11615 | PyObject * obj1 = 0 ; | |
11616 | PyObject * obj2 = 0 ; | |
11617 | char *kwnames[] = { | |
11618 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11619 | }; | |
11620 | ||
11621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11624 | arg2 = (int) SWIG_AsInt(obj1); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | { | |
11627 | arg3 = &temp3; | |
11628 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11629 | } | |
11630 | { | |
11631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11632 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11633 | ||
11634 | wxPyEndAllowThreads(__tstate); | |
11635 | if (PyErr_Occurred()) SWIG_fail; | |
11636 | } | |
11637 | Py_INCREF(Py_None); resultobj = Py_None; | |
11638 | return resultobj; | |
11639 | fail: | |
11640 | return NULL; | |
11641 | } | |
11642 | ||
11643 | ||
11644 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11645 | PyObject *obj; | |
11646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11647 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11648 | Py_INCREF(obj); | |
11649 | return Py_BuildValue((char *)""); | |
11650 | } | |
11651 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11652 | PyObject *resultobj; | |
11653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11654 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11655 | wxColourDialog *result; | |
11656 | PyObject * obj0 = 0 ; | |
11657 | PyObject * obj1 = 0 ; | |
11658 | char *kwnames[] = { | |
11659 | (char *) "parent",(char *) "data", NULL | |
11660 | }; | |
11661 | ||
11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11665 | if (obj1) { | |
11666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11668 | } | |
11669 | { | |
0439c23b | 11670 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11672 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11673 | ||
11674 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11675 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11676 | } |
11677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11678 | return resultobj; | |
11679 | fail: | |
11680 | return NULL; | |
11681 | } | |
11682 | ||
11683 | ||
11684 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11685 | PyObject *resultobj; | |
11686 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11687 | wxColourData *result; | |
11688 | PyObject * obj0 = 0 ; | |
11689 | char *kwnames[] = { | |
11690 | (char *) "self", NULL | |
11691 | }; | |
11692 | ||
11693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11696 | { | |
11697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11698 | { | |
11699 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11700 | result = (wxColourData *) &_result_ref; | |
11701 | } | |
11702 | ||
11703 | wxPyEndAllowThreads(__tstate); | |
11704 | if (PyErr_Occurred()) SWIG_fail; | |
11705 | } | |
11706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11707 | return resultobj; | |
11708 | fail: | |
11709 | return NULL; | |
11710 | } | |
11711 | ||
11712 | ||
11713 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11714 | PyObject *obj; | |
11715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11716 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11717 | Py_INCREF(obj); | |
11718 | return Py_BuildValue((char *)""); | |
11719 | } | |
11720 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11721 | PyObject *resultobj; | |
11722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11723 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11724 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11725 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11726 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11727 | long arg4 = (long) 0 ; | |
11728 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11729 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11730 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11731 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11732 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11733 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11734 | wxDirDialog *result; | |
11735 | bool temp2 = False ; | |
11736 | bool temp3 = False ; | |
11737 | wxPoint temp5 ; | |
11738 | wxSize temp6 ; | |
11739 | bool temp7 = False ; | |
11740 | PyObject * obj0 = 0 ; | |
11741 | PyObject * obj1 = 0 ; | |
11742 | PyObject * obj2 = 0 ; | |
11743 | PyObject * obj3 = 0 ; | |
11744 | PyObject * obj4 = 0 ; | |
11745 | PyObject * obj5 = 0 ; | |
11746 | PyObject * obj6 = 0 ; | |
11747 | char *kwnames[] = { | |
11748 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11749 | }; | |
11750 | ||
11751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11754 | if (obj1) { | |
11755 | { | |
11756 | arg2 = wxString_in_helper(obj1); | |
11757 | if (arg2 == NULL) SWIG_fail; | |
11758 | temp2 = True; | |
11759 | } | |
11760 | } | |
11761 | if (obj2) { | |
11762 | { | |
11763 | arg3 = wxString_in_helper(obj2); | |
11764 | if (arg3 == NULL) SWIG_fail; | |
11765 | temp3 = True; | |
11766 | } | |
11767 | } | |
11768 | if (obj3) { | |
11769 | arg4 = (long) SWIG_AsLong(obj3); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | if (obj4) { | |
11773 | { | |
11774 | arg5 = &temp5; | |
11775 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11776 | } | |
11777 | } | |
11778 | if (obj5) { | |
11779 | { | |
11780 | arg6 = &temp6; | |
11781 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11782 | } | |
11783 | } | |
11784 | if (obj6) { | |
11785 | { | |
11786 | arg7 = wxString_in_helper(obj6); | |
11787 | if (arg7 == NULL) SWIG_fail; | |
11788 | temp7 = True; | |
11789 | } | |
11790 | } | |
11791 | { | |
0439c23b | 11792 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11794 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11795 | ||
11796 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11797 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11798 | } |
11799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11800 | { | |
11801 | if (temp2) | |
11802 | delete arg2; | |
11803 | } | |
11804 | { | |
11805 | if (temp3) | |
11806 | delete arg3; | |
11807 | } | |
11808 | { | |
11809 | if (temp7) | |
11810 | delete arg7; | |
11811 | } | |
11812 | return resultobj; | |
11813 | fail: | |
11814 | { | |
11815 | if (temp2) | |
11816 | delete arg2; | |
11817 | } | |
11818 | { | |
11819 | if (temp3) | |
11820 | delete arg3; | |
11821 | } | |
11822 | { | |
11823 | if (temp7) | |
11824 | delete arg7; | |
11825 | } | |
11826 | return NULL; | |
11827 | } | |
11828 | ||
11829 | ||
11830 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11831 | PyObject *resultobj; | |
11832 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11833 | wxString result; | |
11834 | PyObject * obj0 = 0 ; | |
11835 | char *kwnames[] = { | |
11836 | (char *) "self", NULL | |
11837 | }; | |
11838 | ||
11839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11842 | { | |
11843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11844 | result = (arg1)->GetPath(); | |
11845 | ||
11846 | wxPyEndAllowThreads(__tstate); | |
11847 | if (PyErr_Occurred()) SWIG_fail; | |
11848 | } | |
11849 | { | |
11850 | #if wxUSE_UNICODE | |
11851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11852 | #else | |
11853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11854 | #endif | |
11855 | } | |
11856 | return resultobj; | |
11857 | fail: | |
11858 | return NULL; | |
11859 | } | |
11860 | ||
11861 | ||
11862 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11863 | PyObject *resultobj; | |
11864 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11865 | wxString result; | |
11866 | PyObject * obj0 = 0 ; | |
11867 | char *kwnames[] = { | |
11868 | (char *) "self", NULL | |
11869 | }; | |
11870 | ||
11871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11874 | { | |
11875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11876 | result = (arg1)->GetMessage(); | |
11877 | ||
11878 | wxPyEndAllowThreads(__tstate); | |
11879 | if (PyErr_Occurred()) SWIG_fail; | |
11880 | } | |
11881 | { | |
11882 | #if wxUSE_UNICODE | |
11883 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11884 | #else | |
11885 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11886 | #endif | |
11887 | } | |
11888 | return resultobj; | |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
11894 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11895 | PyObject *resultobj; | |
11896 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11897 | long result; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | char *kwnames[] = { | |
11900 | (char *) "self", NULL | |
11901 | }; | |
11902 | ||
11903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11906 | { | |
11907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11908 | result = (long)(arg1)->GetStyle(); | |
11909 | ||
11910 | wxPyEndAllowThreads(__tstate); | |
11911 | if (PyErr_Occurred()) SWIG_fail; | |
11912 | } | |
11913 | resultobj = SWIG_FromLong((long)result); | |
11914 | return resultobj; | |
11915 | fail: | |
11916 | return NULL; | |
11917 | } | |
11918 | ||
11919 | ||
11920 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11921 | PyObject *resultobj; | |
11922 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11923 | wxString *arg2 = 0 ; | |
11924 | bool temp2 = False ; | |
11925 | PyObject * obj0 = 0 ; | |
11926 | PyObject * obj1 = 0 ; | |
11927 | char *kwnames[] = { | |
11928 | (char *) "self",(char *) "message", NULL | |
11929 | }; | |
11930 | ||
11931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11934 | { | |
11935 | arg2 = wxString_in_helper(obj1); | |
11936 | if (arg2 == NULL) SWIG_fail; | |
11937 | temp2 = True; | |
11938 | } | |
11939 | { | |
11940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11941 | (arg1)->SetMessage((wxString const &)*arg2); | |
11942 | ||
11943 | wxPyEndAllowThreads(__tstate); | |
11944 | if (PyErr_Occurred()) SWIG_fail; | |
11945 | } | |
11946 | Py_INCREF(Py_None); resultobj = Py_None; | |
11947 | { | |
11948 | if (temp2) | |
11949 | delete arg2; | |
11950 | } | |
11951 | return resultobj; | |
11952 | fail: | |
11953 | { | |
11954 | if (temp2) | |
11955 | delete arg2; | |
11956 | } | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
11961 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11962 | PyObject *resultobj; | |
11963 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11964 | wxString *arg2 = 0 ; | |
11965 | bool temp2 = False ; | |
11966 | PyObject * obj0 = 0 ; | |
11967 | PyObject * obj1 = 0 ; | |
11968 | char *kwnames[] = { | |
11969 | (char *) "self",(char *) "path", NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11975 | { | |
11976 | arg2 = wxString_in_helper(obj1); | |
11977 | if (arg2 == NULL) SWIG_fail; | |
11978 | temp2 = True; | |
11979 | } | |
11980 | { | |
11981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11982 | (arg1)->SetPath((wxString const &)*arg2); | |
11983 | ||
11984 | wxPyEndAllowThreads(__tstate); | |
11985 | if (PyErr_Occurred()) SWIG_fail; | |
11986 | } | |
11987 | Py_INCREF(Py_None); resultobj = Py_None; | |
11988 | { | |
11989 | if (temp2) | |
11990 | delete arg2; | |
11991 | } | |
11992 | return resultobj; | |
11993 | fail: | |
11994 | { | |
11995 | if (temp2) | |
11996 | delete arg2; | |
11997 | } | |
11998 | return NULL; | |
11999 | } | |
12000 | ||
12001 | ||
12002 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
12003 | PyObject *obj; | |
12004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12005 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
12006 | Py_INCREF(obj); | |
12007 | return Py_BuildValue((char *)""); | |
12008 | } | |
12009 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12010 | PyObject *resultobj; | |
12011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12012 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
12013 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12014 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12015 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12016 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12017 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12018 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
12019 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
12020 | long arg6 = (long) 0 ; | |
12021 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12022 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12023 | wxFileDialog *result; | |
12024 | bool temp2 = False ; | |
12025 | bool temp3 = False ; | |
12026 | bool temp4 = False ; | |
12027 | bool temp5 = False ; | |
12028 | wxPoint temp7 ; | |
12029 | PyObject * obj0 = 0 ; | |
12030 | PyObject * obj1 = 0 ; | |
12031 | PyObject * obj2 = 0 ; | |
12032 | PyObject * obj3 = 0 ; | |
12033 | PyObject * obj4 = 0 ; | |
12034 | PyObject * obj5 = 0 ; | |
12035 | PyObject * obj6 = 0 ; | |
12036 | char *kwnames[] = { | |
12037 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
12038 | }; | |
12039 | ||
12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
12041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12043 | if (obj1) { | |
12044 | { | |
12045 | arg2 = wxString_in_helper(obj1); | |
12046 | if (arg2 == NULL) SWIG_fail; | |
12047 | temp2 = True; | |
12048 | } | |
12049 | } | |
12050 | if (obj2) { | |
12051 | { | |
12052 | arg3 = wxString_in_helper(obj2); | |
12053 | if (arg3 == NULL) SWIG_fail; | |
12054 | temp3 = True; | |
12055 | } | |
12056 | } | |
12057 | if (obj3) { | |
12058 | { | |
12059 | arg4 = wxString_in_helper(obj3); | |
12060 | if (arg4 == NULL) SWIG_fail; | |
12061 | temp4 = True; | |
12062 | } | |
12063 | } | |
12064 | if (obj4) { | |
12065 | { | |
12066 | arg5 = wxString_in_helper(obj4); | |
12067 | if (arg5 == NULL) SWIG_fail; | |
12068 | temp5 = True; | |
12069 | } | |
12070 | } | |
12071 | if (obj5) { | |
12072 | arg6 = (long) SWIG_AsLong(obj5); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | if (obj6) { | |
12076 | { | |
12077 | arg7 = &temp7; | |
12078 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12079 | } | |
12080 | } | |
12081 | { | |
0439c23b | 12082 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12084 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
12085 | ||
12086 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12087 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12088 | } |
12089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
12090 | { | |
12091 | if (temp2) | |
12092 | delete arg2; | |
12093 | } | |
12094 | { | |
12095 | if (temp3) | |
12096 | delete arg3; | |
12097 | } | |
12098 | { | |
12099 | if (temp4) | |
12100 | delete arg4; | |
12101 | } | |
12102 | { | |
12103 | if (temp5) | |
12104 | delete arg5; | |
12105 | } | |
12106 | return resultobj; | |
12107 | fail: | |
12108 | { | |
12109 | if (temp2) | |
12110 | delete arg2; | |
12111 | } | |
12112 | { | |
12113 | if (temp3) | |
12114 | delete arg3; | |
12115 | } | |
12116 | { | |
12117 | if (temp4) | |
12118 | delete arg4; | |
12119 | } | |
12120 | { | |
12121 | if (temp5) | |
12122 | delete arg5; | |
12123 | } | |
12124 | return NULL; | |
12125 | } | |
12126 | ||
12127 | ||
12128 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12129 | PyObject *resultobj; | |
12130 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12131 | wxString *arg2 = 0 ; | |
12132 | bool temp2 = False ; | |
12133 | PyObject * obj0 = 0 ; | |
12134 | PyObject * obj1 = 0 ; | |
12135 | char *kwnames[] = { | |
12136 | (char *) "self",(char *) "message", NULL | |
12137 | }; | |
12138 | ||
12139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
12140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12142 | { | |
12143 | arg2 = wxString_in_helper(obj1); | |
12144 | if (arg2 == NULL) SWIG_fail; | |
12145 | temp2 = True; | |
12146 | } | |
12147 | { | |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | (arg1)->SetMessage((wxString const &)*arg2); | |
12150 | ||
12151 | wxPyEndAllowThreads(__tstate); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | } | |
12154 | Py_INCREF(Py_None); resultobj = Py_None; | |
12155 | { | |
12156 | if (temp2) | |
12157 | delete arg2; | |
12158 | } | |
12159 | return resultobj; | |
12160 | fail: | |
12161 | { | |
12162 | if (temp2) | |
12163 | delete arg2; | |
12164 | } | |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
12169 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12170 | PyObject *resultobj; | |
12171 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12172 | wxString *arg2 = 0 ; | |
12173 | bool temp2 = False ; | |
12174 | PyObject * obj0 = 0 ; | |
12175 | PyObject * obj1 = 0 ; | |
12176 | char *kwnames[] = { | |
12177 | (char *) "self",(char *) "path", NULL | |
12178 | }; | |
12179 | ||
12180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
12181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12183 | { | |
12184 | arg2 = wxString_in_helper(obj1); | |
12185 | if (arg2 == NULL) SWIG_fail; | |
12186 | temp2 = True; | |
12187 | } | |
12188 | { | |
12189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12190 | (arg1)->SetPath((wxString const &)*arg2); | |
12191 | ||
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
12195 | Py_INCREF(Py_None); resultobj = Py_None; | |
12196 | { | |
12197 | if (temp2) | |
12198 | delete arg2; | |
12199 | } | |
12200 | return resultobj; | |
12201 | fail: | |
12202 | { | |
12203 | if (temp2) | |
12204 | delete arg2; | |
12205 | } | |
12206 | return NULL; | |
12207 | } | |
12208 | ||
12209 | ||
12210 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12211 | PyObject *resultobj; | |
12212 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12213 | wxString *arg2 = 0 ; | |
12214 | bool temp2 = False ; | |
12215 | PyObject * obj0 = 0 ; | |
12216 | PyObject * obj1 = 0 ; | |
12217 | char *kwnames[] = { | |
12218 | (char *) "self",(char *) "dir", NULL | |
12219 | }; | |
12220 | ||
12221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
12222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12224 | { | |
12225 | arg2 = wxString_in_helper(obj1); | |
12226 | if (arg2 == NULL) SWIG_fail; | |
12227 | temp2 = True; | |
12228 | } | |
12229 | { | |
12230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12231 | (arg1)->SetDirectory((wxString const &)*arg2); | |
12232 | ||
12233 | wxPyEndAllowThreads(__tstate); | |
12234 | if (PyErr_Occurred()) SWIG_fail; | |
12235 | } | |
12236 | Py_INCREF(Py_None); resultobj = Py_None; | |
12237 | { | |
12238 | if (temp2) | |
12239 | delete arg2; | |
12240 | } | |
12241 | return resultobj; | |
12242 | fail: | |
12243 | { | |
12244 | if (temp2) | |
12245 | delete arg2; | |
12246 | } | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
12251 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12252 | PyObject *resultobj; | |
12253 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12254 | wxString *arg2 = 0 ; | |
12255 | bool temp2 = False ; | |
12256 | PyObject * obj0 = 0 ; | |
12257 | PyObject * obj1 = 0 ; | |
12258 | char *kwnames[] = { | |
12259 | (char *) "self",(char *) "name", NULL | |
12260 | }; | |
12261 | ||
12262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
12263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12265 | { | |
12266 | arg2 = wxString_in_helper(obj1); | |
12267 | if (arg2 == NULL) SWIG_fail; | |
12268 | temp2 = True; | |
12269 | } | |
12270 | { | |
12271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12272 | (arg1)->SetFilename((wxString const &)*arg2); | |
12273 | ||
12274 | wxPyEndAllowThreads(__tstate); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
12276 | } | |
12277 | Py_INCREF(Py_None); resultobj = Py_None; | |
12278 | { | |
12279 | if (temp2) | |
12280 | delete arg2; | |
12281 | } | |
12282 | return resultobj; | |
12283 | fail: | |
12284 | { | |
12285 | if (temp2) | |
12286 | delete arg2; | |
12287 | } | |
12288 | return NULL; | |
12289 | } | |
12290 | ||
12291 | ||
12292 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12293 | PyObject *resultobj; | |
12294 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12295 | wxString *arg2 = 0 ; | |
12296 | bool temp2 = False ; | |
12297 | PyObject * obj0 = 0 ; | |
12298 | PyObject * obj1 = 0 ; | |
12299 | char *kwnames[] = { | |
12300 | (char *) "self",(char *) "wildCard", NULL | |
12301 | }; | |
12302 | ||
12303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
12304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12306 | { | |
12307 | arg2 = wxString_in_helper(obj1); | |
12308 | if (arg2 == NULL) SWIG_fail; | |
12309 | temp2 = True; | |
12310 | } | |
12311 | { | |
12312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12313 | (arg1)->SetWildcard((wxString const &)*arg2); | |
12314 | ||
12315 | wxPyEndAllowThreads(__tstate); | |
12316 | if (PyErr_Occurred()) SWIG_fail; | |
12317 | } | |
12318 | Py_INCREF(Py_None); resultobj = Py_None; | |
12319 | { | |
12320 | if (temp2) | |
12321 | delete arg2; | |
12322 | } | |
12323 | return resultobj; | |
12324 | fail: | |
12325 | { | |
12326 | if (temp2) | |
12327 | delete arg2; | |
12328 | } | |
12329 | return NULL; | |
12330 | } | |
12331 | ||
12332 | ||
12333 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12334 | PyObject *resultobj; | |
12335 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12336 | long arg2 ; | |
12337 | PyObject * obj0 = 0 ; | |
12338 | PyObject * obj1 = 0 ; | |
12339 | char *kwnames[] = { | |
12340 | (char *) "self",(char *) "style", NULL | |
12341 | }; | |
12342 | ||
12343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
12344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12346 | arg2 = (long) SWIG_AsLong(obj1); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | { | |
12349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12350 | (arg1)->SetStyle(arg2); | |
12351 | ||
12352 | wxPyEndAllowThreads(__tstate); | |
12353 | if (PyErr_Occurred()) SWIG_fail; | |
12354 | } | |
12355 | Py_INCREF(Py_None); resultobj = Py_None; | |
12356 | return resultobj; | |
12357 | fail: | |
12358 | return NULL; | |
12359 | } | |
12360 | ||
12361 | ||
12362 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12363 | PyObject *resultobj; | |
12364 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12365 | int arg2 ; | |
12366 | PyObject * obj0 = 0 ; | |
12367 | PyObject * obj1 = 0 ; | |
12368 | char *kwnames[] = { | |
12369 | (char *) "self",(char *) "filterIndex", NULL | |
12370 | }; | |
12371 | ||
12372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
12373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12375 | arg2 = (int) SWIG_AsInt(obj1); | |
12376 | if (PyErr_Occurred()) SWIG_fail; | |
12377 | { | |
12378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12379 | (arg1)->SetFilterIndex(arg2); | |
12380 | ||
12381 | wxPyEndAllowThreads(__tstate); | |
12382 | if (PyErr_Occurred()) SWIG_fail; | |
12383 | } | |
12384 | Py_INCREF(Py_None); resultobj = Py_None; | |
12385 | return resultobj; | |
12386 | fail: | |
12387 | return NULL; | |
12388 | } | |
12389 | ||
12390 | ||
12391 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12392 | PyObject *resultobj; | |
12393 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12394 | wxString result; | |
12395 | PyObject * obj0 = 0 ; | |
12396 | char *kwnames[] = { | |
12397 | (char *) "self", NULL | |
12398 | }; | |
12399 | ||
12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | { | |
12411 | #if wxUSE_UNICODE | |
12412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12413 | #else | |
12414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12415 | #endif | |
12416 | } | |
12417 | return resultobj; | |
12418 | fail: | |
12419 | return NULL; | |
12420 | } | |
12421 | ||
12422 | ||
12423 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12424 | PyObject *resultobj; | |
12425 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12426 | wxString result; | |
12427 | PyObject * obj0 = 0 ; | |
12428 | char *kwnames[] = { | |
12429 | (char *) "self", NULL | |
12430 | }; | |
12431 | ||
12432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
12433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12435 | { | |
12436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12437 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
12438 | ||
12439 | wxPyEndAllowThreads(__tstate); | |
12440 | if (PyErr_Occurred()) SWIG_fail; | |
12441 | } | |
12442 | { | |
12443 | #if wxUSE_UNICODE | |
12444 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12445 | #else | |
12446 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12447 | #endif | |
12448 | } | |
12449 | return resultobj; | |
12450 | fail: | |
12451 | return NULL; | |
12452 | } | |
12453 | ||
12454 | ||
12455 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12456 | PyObject *resultobj; | |
12457 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12458 | wxString result; | |
12459 | PyObject * obj0 = 0 ; | |
12460 | char *kwnames[] = { | |
12461 | (char *) "self", NULL | |
12462 | }; | |
12463 | ||
12464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
12465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12467 | { | |
12468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12469 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
12470 | ||
12471 | wxPyEndAllowThreads(__tstate); | |
12472 | if (PyErr_Occurred()) SWIG_fail; | |
12473 | } | |
12474 | { | |
12475 | #if wxUSE_UNICODE | |
12476 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12477 | #else | |
12478 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12479 | #endif | |
12480 | } | |
12481 | return resultobj; | |
12482 | fail: | |
12483 | return NULL; | |
12484 | } | |
12485 | ||
12486 | ||
12487 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12488 | PyObject *resultobj; | |
12489 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12490 | wxString result; | |
12491 | PyObject * obj0 = 0 ; | |
12492 | char *kwnames[] = { | |
12493 | (char *) "self", NULL | |
12494 | }; | |
12495 | ||
12496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12499 | { | |
12500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12501 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12502 | ||
12503 | wxPyEndAllowThreads(__tstate); | |
12504 | if (PyErr_Occurred()) SWIG_fail; | |
12505 | } | |
12506 | { | |
12507 | #if wxUSE_UNICODE | |
12508 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12509 | #else | |
12510 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12511 | #endif | |
12512 | } | |
12513 | return resultobj; | |
12514 | fail: | |
12515 | return NULL; | |
12516 | } | |
12517 | ||
12518 | ||
12519 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12520 | PyObject *resultobj; | |
12521 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12522 | wxString result; | |
12523 | PyObject * obj0 = 0 ; | |
12524 | char *kwnames[] = { | |
12525 | (char *) "self", NULL | |
12526 | }; | |
12527 | ||
12528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12531 | { | |
12532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12533 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12534 | ||
12535 | wxPyEndAllowThreads(__tstate); | |
12536 | if (PyErr_Occurred()) SWIG_fail; | |
12537 | } | |
12538 | { | |
12539 | #if wxUSE_UNICODE | |
12540 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12541 | #else | |
12542 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12543 | #endif | |
12544 | } | |
12545 | return resultobj; | |
12546 | fail: | |
12547 | return NULL; | |
12548 | } | |
12549 | ||
12550 | ||
12551 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12552 | PyObject *resultobj; | |
12553 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12554 | long result; | |
12555 | PyObject * obj0 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "self", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12563 | { | |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12565 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
12570 | resultobj = SWIG_FromLong((long)result); | |
12571 | return resultobj; | |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12578 | PyObject *resultobj; | |
12579 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12580 | int result; | |
12581 | PyObject * obj0 = 0 ; | |
12582 | char *kwnames[] = { | |
12583 | (char *) "self", NULL | |
12584 | }; | |
12585 | ||
12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12589 | { | |
12590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12591 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12592 | ||
12593 | wxPyEndAllowThreads(__tstate); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | } | |
12596 | resultobj = SWIG_FromInt((int)result); | |
12597 | return resultobj; | |
12598 | fail: | |
12599 | return NULL; | |
12600 | } | |
12601 | ||
12602 | ||
12603 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12604 | PyObject *resultobj; | |
12605 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12606 | PyObject *result; | |
12607 | PyObject * obj0 = 0 ; | |
12608 | char *kwnames[] = { | |
12609 | (char *) "self", NULL | |
12610 | }; | |
12611 | ||
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12615 | { | |
12616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12617 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12618 | ||
12619 | wxPyEndAllowThreads(__tstate); | |
12620 | if (PyErr_Occurred()) SWIG_fail; | |
12621 | } | |
12622 | resultobj = result; | |
12623 | return resultobj; | |
12624 | fail: | |
12625 | return NULL; | |
12626 | } | |
12627 | ||
12628 | ||
12629 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12630 | PyObject *resultobj; | |
12631 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12632 | PyObject *result; | |
12633 | PyObject * obj0 = 0 ; | |
12634 | char *kwnames[] = { | |
12635 | (char *) "self", NULL | |
12636 | }; | |
12637 | ||
12638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12641 | { | |
12642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12643 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12644 | ||
12645 | wxPyEndAllowThreads(__tstate); | |
12646 | if (PyErr_Occurred()) SWIG_fail; | |
12647 | } | |
12648 | resultobj = result; | |
12649 | return resultobj; | |
12650 | fail: | |
12651 | return NULL; | |
12652 | } | |
12653 | ||
12654 | ||
12655 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12656 | PyObject *obj; | |
12657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12658 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12659 | Py_INCREF(obj); | |
12660 | return Py_BuildValue((char *)""); | |
12661 | } | |
12662 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12663 | PyObject *resultobj; | |
12664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12665 | wxString *arg2 = 0 ; | |
12666 | wxString *arg3 = 0 ; | |
12667 | int arg4 = (int) 0 ; | |
248ed943 | 12668 | wxString *arg5 = (wxString *) NULL ; |
d55e5bfc RD |
12669 | long arg6 = (long) wxCHOICEDLG_STYLE ; |
12670 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12671 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12672 | wxMultiChoiceDialog *result; | |
12673 | bool temp2 = False ; | |
12674 | bool temp3 = False ; | |
12675 | wxPoint temp6 ; | |
12676 | PyObject * obj0 = 0 ; | |
12677 | PyObject * obj1 = 0 ; | |
12678 | PyObject * obj2 = 0 ; | |
12679 | PyObject * obj3 = 0 ; | |
12680 | PyObject * obj4 = 0 ; | |
12681 | PyObject * obj5 = 0 ; | |
12682 | char *kwnames[] = { | |
12683 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12684 | }; | |
12685 | ||
12686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12689 | { | |
12690 | arg2 = wxString_in_helper(obj1); | |
12691 | if (arg2 == NULL) SWIG_fail; | |
12692 | temp2 = True; | |
12693 | } | |
12694 | { | |
12695 | arg3 = wxString_in_helper(obj2); | |
12696 | if (arg3 == NULL) SWIG_fail; | |
12697 | temp3 = True; | |
12698 | } | |
12699 | if (obj3) { | |
12700 | { | |
12701 | arg4 = PyList_Size(obj3); | |
12702 | arg5 = wxString_LIST_helper(obj3); | |
12703 | if (arg5 == NULL) SWIG_fail; | |
12704 | } | |
12705 | } | |
12706 | if (obj4) { | |
12707 | arg6 = (long) SWIG_AsLong(obj4); | |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
12709 | } | |
12710 | if (obj5) { | |
12711 | { | |
12712 | arg7 = &temp6; | |
12713 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12714 | } | |
12715 | } | |
12716 | { | |
0439c23b | 12717 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12719 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12722 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12723 | } |
12724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12725 | { | |
12726 | if (temp2) | |
12727 | delete arg2; | |
12728 | } | |
12729 | { | |
12730 | if (temp3) | |
12731 | delete arg3; | |
12732 | } | |
12733 | { | |
12734 | if (arg5) delete [] arg5; | |
12735 | } | |
12736 | return resultobj; | |
12737 | fail: | |
12738 | { | |
12739 | if (temp2) | |
12740 | delete arg2; | |
12741 | } | |
12742 | { | |
12743 | if (temp3) | |
12744 | delete arg3; | |
12745 | } | |
12746 | { | |
12747 | if (arg5) delete [] arg5; | |
12748 | } | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
12753 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12754 | PyObject *resultobj; | |
12755 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12756 | wxArrayInt *arg2 = 0 ; | |
12757 | bool temp2 = False ; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | PyObject * obj1 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self",(char *) "selections", NULL | |
12762 | }; | |
12763 | ||
12764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12767 | { | |
12768 | if (! PySequence_Check(obj1)) { | |
12769 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12770 | SWIG_fail; | |
12771 | } | |
12772 | arg2 = new wxArrayInt; | |
12773 | temp2 = True; | |
12774 | int i, len=PySequence_Length(obj1); | |
12775 | for (i=0; i<len; i++) { | |
12776 | PyObject* item = PySequence_GetItem(obj1, i); | |
12777 | PyObject* number = PyNumber_Int(item); | |
12778 | arg2->Add(PyInt_AS_LONG(number)); | |
12779 | Py_DECREF(item); | |
12780 | Py_DECREF(number); | |
12781 | } | |
12782 | } | |
12783 | { | |
12784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12785 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12786 | ||
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | Py_INCREF(Py_None); resultobj = Py_None; | |
12791 | { | |
12792 | if (temp2) delete arg2; | |
12793 | } | |
12794 | return resultobj; | |
12795 | fail: | |
12796 | { | |
12797 | if (temp2) delete arg2; | |
12798 | } | |
12799 | return NULL; | |
12800 | } | |
12801 | ||
12802 | ||
12803 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12804 | PyObject *resultobj; | |
12805 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12806 | PyObject *result; | |
12807 | PyObject * obj0 = 0 ; | |
12808 | char *kwnames[] = { | |
12809 | (char *) "self", NULL | |
12810 | }; | |
12811 | ||
12812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12818 | ||
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
12822 | resultobj = result; | |
12823 | return resultobj; | |
12824 | fail: | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
12829 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12830 | PyObject *obj; | |
12831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12832 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12833 | Py_INCREF(obj); | |
12834 | return Py_BuildValue((char *)""); | |
12835 | } | |
12836 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12837 | PyObject *resultobj; | |
12838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12839 | wxString *arg2 = 0 ; | |
12840 | wxString *arg3 = 0 ; | |
12841 | int arg4 ; | |
12842 | wxString *arg5 = (wxString *) 0 ; | |
12843 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12844 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12845 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12846 | wxSingleChoiceDialog *result; | |
12847 | bool temp2 = False ; | |
12848 | bool temp3 = False ; | |
12849 | wxPoint temp6 ; | |
12850 | PyObject * obj0 = 0 ; | |
12851 | PyObject * obj1 = 0 ; | |
12852 | PyObject * obj2 = 0 ; | |
12853 | PyObject * obj3 = 0 ; | |
12854 | PyObject * obj4 = 0 ; | |
12855 | PyObject * obj5 = 0 ; | |
12856 | char *kwnames[] = { | |
12857 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12858 | }; | |
12859 | ||
12860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12863 | { | |
12864 | arg2 = wxString_in_helper(obj1); | |
12865 | if (arg2 == NULL) SWIG_fail; | |
12866 | temp2 = True; | |
12867 | } | |
12868 | { | |
12869 | arg3 = wxString_in_helper(obj2); | |
12870 | if (arg3 == NULL) SWIG_fail; | |
12871 | temp3 = True; | |
12872 | } | |
12873 | { | |
12874 | arg4 = PyList_Size(obj3); | |
12875 | arg5 = wxString_LIST_helper(obj3); | |
12876 | if (arg5 == NULL) SWIG_fail; | |
12877 | } | |
12878 | if (obj4) { | |
12879 | arg6 = (long) SWIG_AsLong(obj4); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | } | |
12882 | if (obj5) { | |
12883 | { | |
12884 | arg7 = &temp6; | |
12885 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12886 | } | |
12887 | } | |
12888 | { | |
0439c23b | 12889 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12891 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12892 | ||
12893 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12894 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12895 | } |
12896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12897 | { | |
12898 | if (temp2) | |
12899 | delete arg2; | |
12900 | } | |
12901 | { | |
12902 | if (temp3) | |
12903 | delete arg3; | |
12904 | } | |
12905 | { | |
12906 | if (arg5) delete [] arg5; | |
12907 | } | |
12908 | return resultobj; | |
12909 | fail: | |
12910 | { | |
12911 | if (temp2) | |
12912 | delete arg2; | |
12913 | } | |
12914 | { | |
12915 | if (temp3) | |
12916 | delete arg3; | |
12917 | } | |
12918 | { | |
12919 | if (arg5) delete [] arg5; | |
12920 | } | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
12925 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12926 | PyObject *resultobj; | |
12927 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12928 | int result; | |
12929 | PyObject * obj0 = 0 ; | |
12930 | char *kwnames[] = { | |
12931 | (char *) "self", NULL | |
12932 | }; | |
12933 | ||
12934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12937 | { | |
12938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12939 | result = (int)(arg1)->GetSelection(); | |
12940 | ||
12941 | wxPyEndAllowThreads(__tstate); | |
12942 | if (PyErr_Occurred()) SWIG_fail; | |
12943 | } | |
12944 | resultobj = SWIG_FromInt((int)result); | |
12945 | return resultobj; | |
12946 | fail: | |
12947 | return NULL; | |
12948 | } | |
12949 | ||
12950 | ||
12951 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12952 | PyObject *resultobj; | |
12953 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12954 | wxString result; | |
12955 | PyObject * obj0 = 0 ; | |
12956 | char *kwnames[] = { | |
12957 | (char *) "self", NULL | |
12958 | }; | |
12959 | ||
12960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12963 | { | |
12964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12965 | result = (arg1)->GetStringSelection(); | |
12966 | ||
12967 | wxPyEndAllowThreads(__tstate); | |
12968 | if (PyErr_Occurred()) SWIG_fail; | |
12969 | } | |
12970 | { | |
12971 | #if wxUSE_UNICODE | |
12972 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12973 | #else | |
12974 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12975 | #endif | |
12976 | } | |
12977 | return resultobj; | |
12978 | fail: | |
12979 | return NULL; | |
12980 | } | |
12981 | ||
12982 | ||
12983 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12984 | PyObject *resultobj; | |
12985 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12986 | int arg2 ; | |
12987 | PyObject * obj0 = 0 ; | |
12988 | PyObject * obj1 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self",(char *) "sel", NULL | |
12991 | }; | |
12992 | ||
12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12996 | arg2 = (int) SWIG_AsInt(obj1); | |
12997 | if (PyErr_Occurred()) SWIG_fail; | |
12998 | { | |
12999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13000 | (arg1)->SetSelection(arg2); | |
13001 | ||
13002 | wxPyEndAllowThreads(__tstate); | |
13003 | if (PyErr_Occurred()) SWIG_fail; | |
13004 | } | |
13005 | Py_INCREF(Py_None); resultobj = Py_None; | |
13006 | return resultobj; | |
13007 | fail: | |
13008 | return NULL; | |
13009 | } | |
13010 | ||
13011 | ||
13012 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
13013 | PyObject *obj; | |
13014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13015 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
13016 | Py_INCREF(obj); | |
13017 | return Py_BuildValue((char *)""); | |
13018 | } | |
13019 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13020 | PyObject *resultobj; | |
13021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13022 | wxString *arg2 = 0 ; | |
13023 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
13024 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13025 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13026 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13027 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13028 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
13029 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
13030 | wxTextEntryDialog *result; | |
13031 | bool temp2 = False ; | |
13032 | bool temp3 = False ; | |
13033 | bool temp4 = False ; | |
13034 | wxPoint temp6 ; | |
13035 | PyObject * obj0 = 0 ; | |
13036 | PyObject * obj1 = 0 ; | |
13037 | PyObject * obj2 = 0 ; | |
13038 | PyObject * obj3 = 0 ; | |
13039 | PyObject * obj4 = 0 ; | |
13040 | PyObject * obj5 = 0 ; | |
13041 | char *kwnames[] = { | |
13042 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
13043 | }; | |
13044 | ||
13045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13048 | { | |
13049 | arg2 = wxString_in_helper(obj1); | |
13050 | if (arg2 == NULL) SWIG_fail; | |
13051 | temp2 = True; | |
13052 | } | |
13053 | if (obj2) { | |
13054 | { | |
13055 | arg3 = wxString_in_helper(obj2); | |
13056 | if (arg3 == NULL) SWIG_fail; | |
13057 | temp3 = True; | |
13058 | } | |
13059 | } | |
13060 | if (obj3) { | |
13061 | { | |
13062 | arg4 = wxString_in_helper(obj3); | |
13063 | if (arg4 == NULL) SWIG_fail; | |
13064 | temp4 = True; | |
13065 | } | |
13066 | } | |
13067 | if (obj4) { | |
13068 | arg5 = (long) SWIG_AsLong(obj4); | |
13069 | if (PyErr_Occurred()) SWIG_fail; | |
13070 | } | |
13071 | if (obj5) { | |
13072 | { | |
13073 | arg6 = &temp6; | |
13074 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13075 | } | |
13076 | } | |
13077 | { | |
0439c23b | 13078 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13080 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
13081 | ||
13082 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13083 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13084 | } |
13085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
13086 | { | |
13087 | if (temp2) | |
13088 | delete arg2; | |
13089 | } | |
13090 | { | |
13091 | if (temp3) | |
13092 | delete arg3; | |
13093 | } | |
13094 | { | |
13095 | if (temp4) | |
13096 | delete arg4; | |
13097 | } | |
13098 | return resultobj; | |
13099 | fail: | |
13100 | { | |
13101 | if (temp2) | |
13102 | delete arg2; | |
13103 | } | |
13104 | { | |
13105 | if (temp3) | |
13106 | delete arg3; | |
13107 | } | |
13108 | { | |
13109 | if (temp4) | |
13110 | delete arg4; | |
13111 | } | |
13112 | return NULL; | |
13113 | } | |
13114 | ||
13115 | ||
13116 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13117 | PyObject *resultobj; | |
13118 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
13119 | wxString result; | |
13120 | PyObject * obj0 = 0 ; | |
13121 | char *kwnames[] = { | |
13122 | (char *) "self", NULL | |
13123 | }; | |
13124 | ||
13125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
13126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
13127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | result = (arg1)->GetValue(); | |
13131 | ||
13132 | wxPyEndAllowThreads(__tstate); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | } | |
13135 | { | |
13136 | #if wxUSE_UNICODE | |
13137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13138 | #else | |
13139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13140 | #endif | |
13141 | } | |
13142 | return resultobj; | |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
13148 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13149 | PyObject *resultobj; | |
13150 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
13151 | wxString *arg2 = 0 ; | |
13152 | bool temp2 = False ; | |
13153 | PyObject * obj0 = 0 ; | |
13154 | PyObject * obj1 = 0 ; | |
13155 | char *kwnames[] = { | |
13156 | (char *) "self",(char *) "value", NULL | |
13157 | }; | |
13158 | ||
13159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
13161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13162 | { | |
13163 | arg2 = wxString_in_helper(obj1); | |
13164 | if (arg2 == NULL) SWIG_fail; | |
13165 | temp2 = True; | |
13166 | } | |
13167 | { | |
13168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13169 | (arg1)->SetValue((wxString const &)*arg2); | |
13170 | ||
13171 | wxPyEndAllowThreads(__tstate); | |
13172 | if (PyErr_Occurred()) SWIG_fail; | |
13173 | } | |
13174 | Py_INCREF(Py_None); resultobj = Py_None; | |
13175 | { | |
13176 | if (temp2) | |
13177 | delete arg2; | |
13178 | } | |
13179 | return resultobj; | |
13180 | fail: | |
13181 | { | |
13182 | if (temp2) | |
13183 | delete arg2; | |
13184 | } | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
13189 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
13190 | PyObject *obj; | |
13191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13192 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
13193 | Py_INCREF(obj); | |
13194 | return Py_BuildValue((char *)""); | |
13195 | } | |
13196 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13197 | PyObject *resultobj; | |
13198 | wxFontData *result; | |
13199 | char *kwnames[] = { | |
13200 | NULL | |
13201 | }; | |
13202 | ||
13203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
13204 | { | |
13205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13206 | result = (wxFontData *)new wxFontData(); | |
13207 | ||
13208 | wxPyEndAllowThreads(__tstate); | |
13209 | if (PyErr_Occurred()) SWIG_fail; | |
13210 | } | |
13211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
13212 | return resultobj; | |
13213 | fail: | |
13214 | return NULL; | |
13215 | } | |
13216 | ||
13217 | ||
13218 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13219 | PyObject *resultobj; | |
13220 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13221 | PyObject * obj0 = 0 ; | |
13222 | char *kwnames[] = { | |
13223 | (char *) "self", NULL | |
13224 | }; | |
13225 | ||
13226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
13227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13229 | { | |
13230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13231 | delete arg1; | |
13232 | ||
13233 | wxPyEndAllowThreads(__tstate); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | } | |
13236 | Py_INCREF(Py_None); resultobj = Py_None; | |
13237 | return resultobj; | |
13238 | fail: | |
13239 | return NULL; | |
13240 | } | |
13241 | ||
13242 | ||
13243 | static PyObject *_wrap_FontData_EnableEffects(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 *) "enable", NULL | |
13251 | }; | |
13252 | ||
13253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",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)->EnableEffects(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_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13273 | PyObject *resultobj; | |
13274 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13275 | bool result; | |
13276 | PyObject * obj0 = 0 ; | |
13277 | char *kwnames[] = { | |
13278 | (char *) "self", NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
13282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13284 | { | |
13285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13286 | result = (bool)(arg1)->GetAllowSymbols(); | |
13287 | ||
13288 | wxPyEndAllowThreads(__tstate); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
13291 | { | |
13292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13293 | } | |
13294 | return resultobj; | |
13295 | fail: | |
13296 | return NULL; | |
13297 | } | |
13298 | ||
13299 | ||
13300 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13301 | PyObject *resultobj; | |
13302 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13303 | wxColour result; | |
13304 | PyObject * obj0 = 0 ; | |
13305 | char *kwnames[] = { | |
13306 | (char *) "self", NULL | |
13307 | }; | |
13308 | ||
13309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
13310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13312 | { | |
13313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13314 | result = (arg1)->GetColour(); | |
13315 | ||
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
13319 | { | |
13320 | wxColour * resultptr; | |
13321 | resultptr = new wxColour((wxColour &) result); | |
13322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
13323 | } | |
13324 | return resultobj; | |
13325 | fail: | |
13326 | return NULL; | |
13327 | } | |
13328 | ||
13329 | ||
13330 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13331 | PyObject *resultobj; | |
13332 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13333 | wxFont result; | |
13334 | PyObject * obj0 = 0 ; | |
13335 | char *kwnames[] = { | |
13336 | (char *) "self", NULL | |
13337 | }; | |
13338 | ||
13339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
13340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13342 | { | |
13343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13344 | result = (arg1)->GetChosenFont(); | |
13345 | ||
13346 | wxPyEndAllowThreads(__tstate); | |
13347 | if (PyErr_Occurred()) SWIG_fail; | |
13348 | } | |
13349 | { | |
13350 | wxFont * resultptr; | |
13351 | resultptr = new wxFont((wxFont &) result); | |
13352 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13353 | } | |
13354 | return resultobj; | |
13355 | fail: | |
13356 | return NULL; | |
13357 | } | |
13358 | ||
13359 | ||
13360 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13361 | PyObject *resultobj; | |
13362 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13363 | bool result; | |
13364 | PyObject * obj0 = 0 ; | |
13365 | char *kwnames[] = { | |
13366 | (char *) "self", NULL | |
13367 | }; | |
13368 | ||
13369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
13370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13372 | { | |
13373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13374 | result = (bool)(arg1)->GetEnableEffects(); | |
13375 | ||
13376 | wxPyEndAllowThreads(__tstate); | |
13377 | if (PyErr_Occurred()) SWIG_fail; | |
13378 | } | |
13379 | { | |
13380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13381 | } | |
13382 | return resultobj; | |
13383 | fail: | |
13384 | return NULL; | |
13385 | } | |
13386 | ||
13387 | ||
13388 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13389 | PyObject *resultobj; | |
13390 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13391 | wxFont result; | |
13392 | PyObject * obj0 = 0 ; | |
13393 | char *kwnames[] = { | |
13394 | (char *) "self", NULL | |
13395 | }; | |
13396 | ||
13397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
13398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13400 | { | |
13401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13402 | result = (arg1)->GetInitialFont(); | |
13403 | ||
13404 | wxPyEndAllowThreads(__tstate); | |
13405 | if (PyErr_Occurred()) SWIG_fail; | |
13406 | } | |
13407 | { | |
13408 | wxFont * resultptr; | |
13409 | resultptr = new wxFont((wxFont &) result); | |
13410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13411 | } | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | return NULL; | |
13415 | } | |
13416 | ||
13417 | ||
13418 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13419 | PyObject *resultobj; | |
13420 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13421 | bool result; | |
13422 | PyObject * obj0 = 0 ; | |
13423 | char *kwnames[] = { | |
13424 | (char *) "self", NULL | |
13425 | }; | |
13426 | ||
13427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
13428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13430 | { | |
13431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13432 | result = (bool)(arg1)->GetShowHelp(); | |
13433 | ||
13434 | wxPyEndAllowThreads(__tstate); | |
13435 | if (PyErr_Occurred()) SWIG_fail; | |
13436 | } | |
13437 | { | |
13438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13439 | } | |
13440 | return resultobj; | |
13441 | fail: | |
13442 | return NULL; | |
13443 | } | |
13444 | ||
13445 | ||
13446 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13447 | PyObject *resultobj; | |
13448 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13449 | bool arg2 ; | |
13450 | PyObject * obj0 = 0 ; | |
13451 | PyObject * obj1 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "self",(char *) "allowSymbols", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
13457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13459 | arg2 = (bool) SWIG_AsBool(obj1); | |
13460 | if (PyErr_Occurred()) SWIG_fail; | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | (arg1)->SetAllowSymbols(arg2); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
13468 | Py_INCREF(Py_None); resultobj = Py_None; | |
13469 | return resultobj; | |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
13475 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13476 | PyObject *resultobj; | |
13477 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13478 | wxFont *arg2 = 0 ; | |
13479 | PyObject * obj0 = 0 ; | |
13480 | PyObject * obj1 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self",(char *) "font", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13490 | SWIG_fail; | |
13491 | if (arg2 == NULL) { | |
13492 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13493 | SWIG_fail; | |
13494 | } | |
13495 | { | |
13496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13497 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13498 | ||
13499 | wxPyEndAllowThreads(__tstate); | |
13500 | if (PyErr_Occurred()) SWIG_fail; | |
13501 | } | |
13502 | Py_INCREF(Py_None); resultobj = Py_None; | |
13503 | return resultobj; | |
13504 | fail: | |
13505 | return NULL; | |
13506 | } | |
13507 | ||
13508 | ||
13509 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13510 | PyObject *resultobj; | |
13511 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13512 | wxColour *arg2 = 0 ; | |
13513 | wxColour temp2 ; | |
13514 | PyObject * obj0 = 0 ; | |
13515 | PyObject * obj1 = 0 ; | |
13516 | char *kwnames[] = { | |
13517 | (char *) "self",(char *) "colour", NULL | |
13518 | }; | |
13519 | ||
13520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13523 | { | |
13524 | arg2 = &temp2; | |
13525 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13526 | } | |
13527 | { | |
13528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13529 | (arg1)->SetColour((wxColour const &)*arg2); | |
13530 | ||
13531 | wxPyEndAllowThreads(__tstate); | |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
13533 | } | |
13534 | Py_INCREF(Py_None); resultobj = Py_None; | |
13535 | return resultobj; | |
13536 | fail: | |
13537 | return NULL; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13542 | PyObject *resultobj; | |
13543 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13544 | wxFont *arg2 = 0 ; | |
13545 | PyObject * obj0 = 0 ; | |
13546 | PyObject * obj1 = 0 ; | |
13547 | char *kwnames[] = { | |
13548 | (char *) "self",(char *) "font", NULL | |
13549 | }; | |
13550 | ||
13551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13556 | SWIG_fail; | |
13557 | if (arg2 == NULL) { | |
13558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13559 | SWIG_fail; | |
13560 | } | |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
13568 | Py_INCREF(Py_None); resultobj = Py_None; | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | return NULL; | |
13572 | } | |
13573 | ||
13574 | ||
13575 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13576 | PyObject *resultobj; | |
13577 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13578 | int arg2 ; | |
13579 | int arg3 ; | |
13580 | PyObject * obj0 = 0 ; | |
13581 | PyObject * obj1 = 0 ; | |
13582 | PyObject * obj2 = 0 ; | |
13583 | char *kwnames[] = { | |
13584 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13585 | }; | |
13586 | ||
13587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13590 | arg2 = (int) SWIG_AsInt(obj1); | |
13591 | if (PyErr_Occurred()) SWIG_fail; | |
13592 | arg3 = (int) SWIG_AsInt(obj2); | |
13593 | if (PyErr_Occurred()) SWIG_fail; | |
13594 | { | |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | (arg1)->SetRange(arg2,arg3); | |
13597 | ||
13598 | wxPyEndAllowThreads(__tstate); | |
13599 | if (PyErr_Occurred()) SWIG_fail; | |
13600 | } | |
13601 | Py_INCREF(Py_None); resultobj = Py_None; | |
13602 | return resultobj; | |
13603 | fail: | |
13604 | return NULL; | |
13605 | } | |
13606 | ||
13607 | ||
13608 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13609 | PyObject *resultobj; | |
13610 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13611 | bool arg2 ; | |
13612 | PyObject * obj0 = 0 ; | |
13613 | PyObject * obj1 = 0 ; | |
13614 | char *kwnames[] = { | |
13615 | (char *) "self",(char *) "showHelp", NULL | |
13616 | }; | |
13617 | ||
13618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13621 | arg2 = (bool) SWIG_AsBool(obj1); | |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | { | |
13624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13625 | (arg1)->SetShowHelp(arg2); | |
13626 | ||
13627 | wxPyEndAllowThreads(__tstate); | |
13628 | if (PyErr_Occurred()) SWIG_fail; | |
13629 | } | |
13630 | Py_INCREF(Py_None); resultobj = Py_None; | |
13631 | return resultobj; | |
13632 | fail: | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13638 | PyObject *obj; | |
13639 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13640 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13641 | Py_INCREF(obj); | |
13642 | return Py_BuildValue((char *)""); | |
13643 | } | |
13644 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13645 | PyObject *resultobj; | |
13646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13647 | wxFontData *arg2 = 0 ; | |
13648 | wxFontDialog *result; | |
13649 | PyObject * obj0 = 0 ; | |
13650 | PyObject * obj1 = 0 ; | |
13651 | char *kwnames[] = { | |
13652 | (char *) "parent",(char *) "data", NULL | |
13653 | }; | |
13654 | ||
13655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13660 | SWIG_fail; | |
13661 | if (arg2 == NULL) { | |
13662 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13663 | SWIG_fail; | |
13664 | } | |
13665 | { | |
0439c23b | 13666 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13668 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13669 | ||
13670 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13671 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13672 | } |
13673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | return NULL; | |
13677 | } | |
13678 | ||
13679 | ||
13680 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13681 | PyObject *resultobj; | |
13682 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13683 | wxFontData *result; | |
13684 | PyObject * obj0 = 0 ; | |
13685 | char *kwnames[] = { | |
13686 | (char *) "self", NULL | |
13687 | }; | |
13688 | ||
13689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13692 | { | |
13693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13694 | { | |
13695 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13696 | result = (wxFontData *) &_result_ref; | |
13697 | } | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
13702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13703 | return resultobj; | |
13704 | fail: | |
13705 | return NULL; | |
13706 | } | |
13707 | ||
13708 | ||
13709 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13710 | PyObject *obj; | |
13711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13712 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13713 | Py_INCREF(obj); | |
13714 | return Py_BuildValue((char *)""); | |
13715 | } | |
13716 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13717 | PyObject *resultobj; | |
13718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13719 | wxString *arg2 = 0 ; | |
13720 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13721 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13722 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13723 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13724 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13725 | wxMessageDialog *result; | |
13726 | bool temp2 = False ; | |
13727 | bool temp3 = False ; | |
13728 | wxPoint temp5 ; | |
13729 | PyObject * obj0 = 0 ; | |
13730 | PyObject * obj1 = 0 ; | |
13731 | PyObject * obj2 = 0 ; | |
13732 | PyObject * obj3 = 0 ; | |
13733 | PyObject * obj4 = 0 ; | |
13734 | char *kwnames[] = { | |
13735 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13736 | }; | |
13737 | ||
13738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13741 | { | |
13742 | arg2 = wxString_in_helper(obj1); | |
13743 | if (arg2 == NULL) SWIG_fail; | |
13744 | temp2 = True; | |
13745 | } | |
13746 | if (obj2) { | |
13747 | { | |
13748 | arg3 = wxString_in_helper(obj2); | |
13749 | if (arg3 == NULL) SWIG_fail; | |
13750 | temp3 = True; | |
13751 | } | |
13752 | } | |
13753 | if (obj3) { | |
13754 | arg4 = (long) SWIG_AsLong(obj3); | |
13755 | if (PyErr_Occurred()) SWIG_fail; | |
13756 | } | |
13757 | if (obj4) { | |
13758 | { | |
13759 | arg5 = &temp5; | |
13760 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13761 | } | |
13762 | } | |
13763 | { | |
0439c23b | 13764 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13766 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13769 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13770 | } |
13771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13772 | { | |
13773 | if (temp2) | |
13774 | delete arg2; | |
13775 | } | |
13776 | { | |
13777 | if (temp3) | |
13778 | delete arg3; | |
13779 | } | |
13780 | return resultobj; | |
13781 | fail: | |
13782 | { | |
13783 | if (temp2) | |
13784 | delete arg2; | |
13785 | } | |
13786 | { | |
13787 | if (temp3) | |
13788 | delete arg3; | |
13789 | } | |
13790 | return NULL; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13795 | PyObject *obj; | |
13796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13797 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13798 | Py_INCREF(obj); | |
13799 | return Py_BuildValue((char *)""); | |
13800 | } | |
13801 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13802 | PyObject *resultobj; | |
13803 | wxString *arg1 = 0 ; | |
13804 | wxString *arg2 = 0 ; | |
13805 | int arg3 = (int) 100 ; | |
13806 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13807 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13808 | wxProgressDialog *result; | |
13809 | bool temp1 = False ; | |
13810 | bool temp2 = False ; | |
13811 | PyObject * obj0 = 0 ; | |
13812 | PyObject * obj1 = 0 ; | |
13813 | PyObject * obj2 = 0 ; | |
13814 | PyObject * obj3 = 0 ; | |
13815 | PyObject * obj4 = 0 ; | |
13816 | char *kwnames[] = { | |
13817 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13818 | }; | |
13819 | ||
13820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13821 | { | |
13822 | arg1 = wxString_in_helper(obj0); | |
13823 | if (arg1 == NULL) SWIG_fail; | |
13824 | temp1 = True; | |
13825 | } | |
13826 | { | |
13827 | arg2 = wxString_in_helper(obj1); | |
13828 | if (arg2 == NULL) SWIG_fail; | |
13829 | temp2 = True; | |
13830 | } | |
13831 | if (obj2) { | |
13832 | arg3 = (int) SWIG_AsInt(obj2); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | if (obj3) { | |
13836 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13838 | } | |
13839 | if (obj4) { | |
13840 | arg5 = (int) SWIG_AsInt(obj4); | |
13841 | if (PyErr_Occurred()) SWIG_fail; | |
13842 | } | |
13843 | { | |
0439c23b | 13844 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13846 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13847 | ||
13848 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13849 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13850 | } |
13851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13852 | { | |
13853 | if (temp1) | |
13854 | delete arg1; | |
13855 | } | |
13856 | { | |
13857 | if (temp2) | |
13858 | delete arg2; | |
13859 | } | |
13860 | return resultobj; | |
13861 | fail: | |
13862 | { | |
13863 | if (temp1) | |
13864 | delete arg1; | |
13865 | } | |
13866 | { | |
13867 | if (temp2) | |
13868 | delete arg2; | |
13869 | } | |
13870 | return NULL; | |
13871 | } | |
13872 | ||
13873 | ||
13874 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13875 | PyObject *resultobj; | |
13876 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13877 | int arg2 ; | |
13878 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13879 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13880 | bool result; | |
13881 | bool temp3 = False ; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | PyObject * obj1 = 0 ; | |
13884 | PyObject * obj2 = 0 ; | |
13885 | char *kwnames[] = { | |
13886 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13887 | }; | |
13888 | ||
13889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13892 | arg2 = (int) SWIG_AsInt(obj1); | |
13893 | if (PyErr_Occurred()) SWIG_fail; | |
13894 | if (obj2) { | |
13895 | { | |
13896 | arg3 = wxString_in_helper(obj2); | |
13897 | if (arg3 == NULL) SWIG_fail; | |
13898 | temp3 = True; | |
13899 | } | |
13900 | } | |
13901 | { | |
13902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13903 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13904 | ||
13905 | wxPyEndAllowThreads(__tstate); | |
13906 | if (PyErr_Occurred()) SWIG_fail; | |
13907 | } | |
13908 | { | |
13909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13910 | } | |
13911 | { | |
13912 | if (temp3) | |
13913 | delete arg3; | |
13914 | } | |
13915 | return resultobj; | |
13916 | fail: | |
13917 | { | |
13918 | if (temp3) | |
13919 | delete arg3; | |
13920 | } | |
13921 | return NULL; | |
13922 | } | |
13923 | ||
13924 | ||
13925 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13926 | PyObject *resultobj; | |
13927 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13928 | PyObject * obj0 = 0 ; | |
13929 | char *kwnames[] = { | |
13930 | (char *) "self", NULL | |
13931 | }; | |
13932 | ||
13933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13936 | { | |
13937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13938 | (arg1)->Resume(); | |
13939 | ||
13940 | wxPyEndAllowThreads(__tstate); | |
13941 | if (PyErr_Occurred()) SWIG_fail; | |
13942 | } | |
13943 | Py_INCREF(Py_None); resultobj = Py_None; | |
13944 | return resultobj; | |
13945 | fail: | |
13946 | return NULL; | |
13947 | } | |
13948 | ||
13949 | ||
13950 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13951 | PyObject *obj; | |
13952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13953 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13954 | Py_INCREF(obj); | |
13955 | return Py_BuildValue((char *)""); | |
13956 | } | |
13957 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13958 | PyObject *resultobj; | |
13959 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13960 | int arg2 = (int) 0 ; | |
13961 | wxFindDialogEvent *result; | |
13962 | PyObject * obj0 = 0 ; | |
13963 | PyObject * obj1 = 0 ; | |
13964 | char *kwnames[] = { | |
13965 | (char *) "commandType",(char *) "id", NULL | |
13966 | }; | |
13967 | ||
13968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13969 | if (obj0) { | |
13970 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | if (obj1) { | |
13974 | arg2 = (int) SWIG_AsInt(obj1); | |
13975 | if (PyErr_Occurred()) SWIG_fail; | |
13976 | } | |
13977 | { | |
13978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13979 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13980 | ||
13981 | wxPyEndAllowThreads(__tstate); | |
13982 | if (PyErr_Occurred()) SWIG_fail; | |
13983 | } | |
13984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13985 | return resultobj; | |
13986 | fail: | |
13987 | return NULL; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13992 | PyObject *resultobj; | |
13993 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13994 | int result; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
14001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14003 | { | |
14004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14005 | result = (int)(arg1)->GetFlags(); | |
14006 | ||
14007 | wxPyEndAllowThreads(__tstate); | |
14008 | if (PyErr_Occurred()) SWIG_fail; | |
14009 | } | |
14010 | resultobj = SWIG_FromInt((int)result); | |
14011 | return resultobj; | |
14012 | fail: | |
14013 | return NULL; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14018 | PyObject *resultobj; | |
14019 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14020 | wxString *result; | |
14021 | PyObject * obj0 = 0 ; | |
14022 | char *kwnames[] = { | |
14023 | (char *) "self", NULL | |
14024 | }; | |
14025 | ||
14026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
14027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14029 | { | |
14030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14031 | { | |
14032 | wxString const &_result_ref = (arg1)->GetFindString(); | |
14033 | result = (wxString *) &_result_ref; | |
14034 | } | |
14035 | ||
14036 | wxPyEndAllowThreads(__tstate); | |
14037 | if (PyErr_Occurred()) SWIG_fail; | |
14038 | } | |
14039 | { | |
14040 | #if wxUSE_UNICODE | |
14041 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14042 | #else | |
14043 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14044 | #endif | |
14045 | } | |
14046 | return resultobj; | |
14047 | fail: | |
14048 | return NULL; | |
14049 | } | |
14050 | ||
14051 | ||
14052 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14053 | PyObject *resultobj; | |
14054 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14055 | wxString *result; | |
14056 | PyObject * obj0 = 0 ; | |
14057 | char *kwnames[] = { | |
14058 | (char *) "self", NULL | |
14059 | }; | |
14060 | ||
14061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
14062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14064 | { | |
14065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14066 | { | |
14067 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
14068 | result = (wxString *) &_result_ref; | |
14069 | } | |
14070 | ||
14071 | wxPyEndAllowThreads(__tstate); | |
14072 | if (PyErr_Occurred()) SWIG_fail; | |
14073 | } | |
14074 | { | |
14075 | #if wxUSE_UNICODE | |
14076 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14077 | #else | |
14078 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14079 | #endif | |
14080 | } | |
14081 | return resultobj; | |
14082 | fail: | |
14083 | return NULL; | |
14084 | } | |
14085 | ||
14086 | ||
14087 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14088 | PyObject *resultobj; | |
14089 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14090 | wxFindReplaceDialog *result; | |
14091 | PyObject * obj0 = 0 ; | |
14092 | char *kwnames[] = { | |
14093 | (char *) "self", NULL | |
14094 | }; | |
14095 | ||
14096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
14097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14099 | { | |
14100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14101 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
14102 | ||
14103 | wxPyEndAllowThreads(__tstate); | |
14104 | if (PyErr_Occurred()) SWIG_fail; | |
14105 | } | |
14106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
14107 | return resultobj; | |
14108 | fail: | |
14109 | return NULL; | |
14110 | } | |
14111 | ||
14112 | ||
14113 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14114 | PyObject *resultobj; | |
14115 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14116 | int arg2 ; | |
14117 | PyObject * obj0 = 0 ; | |
14118 | PyObject * obj1 = 0 ; | |
14119 | char *kwnames[] = { | |
14120 | (char *) "self",(char *) "flags", NULL | |
14121 | }; | |
14122 | ||
14123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14126 | arg2 = (int) SWIG_AsInt(obj1); | |
14127 | if (PyErr_Occurred()) SWIG_fail; | |
14128 | { | |
14129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14130 | (arg1)->SetFlags(arg2); | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | Py_INCREF(Py_None); resultobj = Py_None; | |
14136 | return resultobj; | |
14137 | fail: | |
14138 | return NULL; | |
14139 | } | |
14140 | ||
14141 | ||
14142 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14143 | PyObject *resultobj; | |
14144 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14145 | wxString *arg2 = 0 ; | |
14146 | bool temp2 = False ; | |
14147 | PyObject * obj0 = 0 ; | |
14148 | PyObject * obj1 = 0 ; | |
14149 | char *kwnames[] = { | |
14150 | (char *) "self",(char *) "str", NULL | |
14151 | }; | |
14152 | ||
14153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14156 | { | |
14157 | arg2 = wxString_in_helper(obj1); | |
14158 | if (arg2 == NULL) SWIG_fail; | |
14159 | temp2 = True; | |
14160 | } | |
14161 | { | |
14162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14163 | (arg1)->SetFindString((wxString const &)*arg2); | |
14164 | ||
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | Py_INCREF(Py_None); resultobj = Py_None; | |
14169 | { | |
14170 | if (temp2) | |
14171 | delete arg2; | |
14172 | } | |
14173 | return resultobj; | |
14174 | fail: | |
14175 | { | |
14176 | if (temp2) | |
14177 | delete arg2; | |
14178 | } | |
14179 | return NULL; | |
14180 | } | |
14181 | ||
14182 | ||
14183 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14184 | PyObject *resultobj; | |
14185 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14186 | wxString *arg2 = 0 ; | |
14187 | bool temp2 = False ; | |
14188 | PyObject * obj0 = 0 ; | |
14189 | PyObject * obj1 = 0 ; | |
14190 | char *kwnames[] = { | |
14191 | (char *) "self",(char *) "str", NULL | |
14192 | }; | |
14193 | ||
14194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14197 | { | |
14198 | arg2 = wxString_in_helper(obj1); | |
14199 | if (arg2 == NULL) SWIG_fail; | |
14200 | temp2 = True; | |
14201 | } | |
14202 | { | |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14205 | ||
14206 | wxPyEndAllowThreads(__tstate); | |
14207 | if (PyErr_Occurred()) SWIG_fail; | |
14208 | } | |
14209 | Py_INCREF(Py_None); resultobj = Py_None; | |
14210 | { | |
14211 | if (temp2) | |
14212 | delete arg2; | |
14213 | } | |
14214 | return resultobj; | |
14215 | fail: | |
14216 | { | |
14217 | if (temp2) | |
14218 | delete arg2; | |
14219 | } | |
14220 | return NULL; | |
14221 | } | |
14222 | ||
14223 | ||
14224 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
14225 | PyObject *obj; | |
14226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14227 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
14228 | Py_INCREF(obj); | |
14229 | return Py_BuildValue((char *)""); | |
14230 | } | |
14231 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14232 | PyObject *resultobj; | |
14233 | int arg1 = (int) 0 ; | |
14234 | wxFindReplaceData *result; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | char *kwnames[] = { | |
14237 | (char *) "flags", NULL | |
14238 | }; | |
14239 | ||
14240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
14241 | if (obj0) { | |
14242 | arg1 = (int) SWIG_AsInt(obj0); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
14245 | { | |
14246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14247 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
14248 | ||
14249 | wxPyEndAllowThreads(__tstate); | |
14250 | if (PyErr_Occurred()) SWIG_fail; | |
14251 | } | |
14252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
14253 | return resultobj; | |
14254 | fail: | |
14255 | return NULL; | |
14256 | } | |
14257 | ||
14258 | ||
14259 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14260 | PyObject *resultobj; | |
14261 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14262 | PyObject * obj0 = 0 ; | |
14263 | char *kwnames[] = { | |
14264 | (char *) "self", NULL | |
14265 | }; | |
14266 | ||
14267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
14268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14270 | { | |
14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14272 | delete arg1; | |
14273 | ||
14274 | wxPyEndAllowThreads(__tstate); | |
14275 | if (PyErr_Occurred()) SWIG_fail; | |
14276 | } | |
14277 | Py_INCREF(Py_None); resultobj = Py_None; | |
14278 | return resultobj; | |
14279 | fail: | |
14280 | return NULL; | |
14281 | } | |
14282 | ||
14283 | ||
14284 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14285 | PyObject *resultobj; | |
14286 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14287 | wxString *result; | |
14288 | PyObject * obj0 = 0 ; | |
14289 | char *kwnames[] = { | |
14290 | (char *) "self", NULL | |
14291 | }; | |
14292 | ||
14293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
14294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | { | |
14299 | wxString const &_result_ref = (arg1)->GetFindString(); | |
14300 | result = (wxString *) &_result_ref; | |
14301 | } | |
14302 | ||
14303 | wxPyEndAllowThreads(__tstate); | |
14304 | if (PyErr_Occurred()) SWIG_fail; | |
14305 | } | |
14306 | { | |
14307 | #if wxUSE_UNICODE | |
14308 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14309 | #else | |
14310 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14311 | #endif | |
14312 | } | |
14313 | return resultobj; | |
14314 | fail: | |
14315 | return NULL; | |
14316 | } | |
14317 | ||
14318 | ||
14319 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14320 | PyObject *resultobj; | |
14321 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14322 | wxString *result; | |
14323 | PyObject * obj0 = 0 ; | |
14324 | char *kwnames[] = { | |
14325 | (char *) "self", NULL | |
14326 | }; | |
14327 | ||
14328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
14329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14331 | { | |
14332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14333 | { | |
14334 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
14335 | result = (wxString *) &_result_ref; | |
14336 | } | |
14337 | ||
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
14341 | { | |
14342 | #if wxUSE_UNICODE | |
14343 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14344 | #else | |
14345 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14346 | #endif | |
14347 | } | |
14348 | return resultobj; | |
14349 | fail: | |
14350 | return NULL; | |
14351 | } | |
14352 | ||
14353 | ||
14354 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14355 | PyObject *resultobj; | |
14356 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14357 | int result; | |
14358 | PyObject * obj0 = 0 ; | |
14359 | char *kwnames[] = { | |
14360 | (char *) "self", NULL | |
14361 | }; | |
14362 | ||
14363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
14364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14366 | { | |
14367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14368 | result = (int)(arg1)->GetFlags(); | |
14369 | ||
14370 | wxPyEndAllowThreads(__tstate); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
14372 | } | |
14373 | resultobj = SWIG_FromInt((int)result); | |
14374 | return resultobj; | |
14375 | fail: | |
14376 | return NULL; | |
14377 | } | |
14378 | ||
14379 | ||
14380 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14381 | PyObject *resultobj; | |
14382 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14383 | int arg2 ; | |
14384 | PyObject * obj0 = 0 ; | |
14385 | PyObject * obj1 = 0 ; | |
14386 | char *kwnames[] = { | |
14387 | (char *) "self",(char *) "flags", NULL | |
14388 | }; | |
14389 | ||
14390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14393 | arg2 = (int) SWIG_AsInt(obj1); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | { | |
14396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14397 | (arg1)->SetFlags(arg2); | |
14398 | ||
14399 | wxPyEndAllowThreads(__tstate); | |
14400 | if (PyErr_Occurred()) SWIG_fail; | |
14401 | } | |
14402 | Py_INCREF(Py_None); resultobj = Py_None; | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | return NULL; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14410 | PyObject *resultobj; | |
14411 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14412 | wxString *arg2 = 0 ; | |
14413 | bool temp2 = False ; | |
14414 | PyObject * obj0 = 0 ; | |
14415 | PyObject * obj1 = 0 ; | |
14416 | char *kwnames[] = { | |
14417 | (char *) "self",(char *) "str", NULL | |
14418 | }; | |
14419 | ||
14420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14423 | { | |
14424 | arg2 = wxString_in_helper(obj1); | |
14425 | if (arg2 == NULL) SWIG_fail; | |
14426 | temp2 = True; | |
14427 | } | |
14428 | { | |
14429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14430 | (arg1)->SetFindString((wxString const &)*arg2); | |
14431 | ||
14432 | wxPyEndAllowThreads(__tstate); | |
14433 | if (PyErr_Occurred()) SWIG_fail; | |
14434 | } | |
14435 | Py_INCREF(Py_None); resultobj = Py_None; | |
14436 | { | |
14437 | if (temp2) | |
14438 | delete arg2; | |
14439 | } | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | { | |
14443 | if (temp2) | |
14444 | delete arg2; | |
14445 | } | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
14450 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14451 | PyObject *resultobj; | |
14452 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14453 | wxString *arg2 = 0 ; | |
14454 | bool temp2 = False ; | |
14455 | PyObject * obj0 = 0 ; | |
14456 | PyObject * obj1 = 0 ; | |
14457 | char *kwnames[] = { | |
14458 | (char *) "self",(char *) "str", NULL | |
14459 | }; | |
14460 | ||
14461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14464 | { | |
14465 | arg2 = wxString_in_helper(obj1); | |
14466 | if (arg2 == NULL) SWIG_fail; | |
14467 | temp2 = True; | |
14468 | } | |
14469 | { | |
14470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14471 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14472 | ||
14473 | wxPyEndAllowThreads(__tstate); | |
14474 | if (PyErr_Occurred()) SWIG_fail; | |
14475 | } | |
14476 | Py_INCREF(Py_None); resultobj = Py_None; | |
14477 | { | |
14478 | if (temp2) | |
14479 | delete arg2; | |
14480 | } | |
14481 | return resultobj; | |
14482 | fail: | |
14483 | { | |
14484 | if (temp2) | |
14485 | delete arg2; | |
14486 | } | |
14487 | return NULL; | |
14488 | } | |
14489 | ||
14490 | ||
14491 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14492 | PyObject *obj; | |
14493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14494 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14495 | Py_INCREF(obj); | |
14496 | return Py_BuildValue((char *)""); | |
14497 | } | |
14498 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj; | |
14500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14501 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14502 | wxString *arg3 = 0 ; | |
14503 | int arg4 = (int) 0 ; | |
14504 | wxFindReplaceDialog *result; | |
14505 | bool temp3 = False ; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | PyObject * obj1 = 0 ; | |
14508 | PyObject * obj2 = 0 ; | |
14509 | PyObject * obj3 = 0 ; | |
14510 | char *kwnames[] = { | |
14511 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14512 | }; | |
14513 | ||
14514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14517 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14519 | { | |
14520 | arg3 = wxString_in_helper(obj2); | |
14521 | if (arg3 == NULL) SWIG_fail; | |
14522 | temp3 = True; | |
14523 | } | |
14524 | if (obj3) { | |
14525 | arg4 = (int) SWIG_AsInt(obj3); | |
14526 | if (PyErr_Occurred()) SWIG_fail; | |
14527 | } | |
14528 | { | |
0439c23b | 14529 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14531 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14532 | ||
14533 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14534 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14535 | } |
14536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14537 | { | |
14538 | if (temp3) | |
14539 | delete arg3; | |
14540 | } | |
14541 | return resultobj; | |
14542 | fail: | |
14543 | { | |
14544 | if (temp3) | |
14545 | delete arg3; | |
14546 | } | |
14547 | return NULL; | |
14548 | } | |
14549 | ||
14550 | ||
14551 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14552 | PyObject *resultobj; | |
14553 | wxFindReplaceDialog *result; | |
14554 | char *kwnames[] = { | |
14555 | NULL | |
14556 | }; | |
14557 | ||
14558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14559 | { | |
0439c23b | 14560 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14562 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14565 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14566 | } |
14567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14568 | return resultobj; | |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
14574 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14575 | PyObject *resultobj; | |
14576 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14577 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14578 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14579 | wxString *arg4 = 0 ; | |
14580 | int arg5 = (int) 0 ; | |
14581 | bool result; | |
14582 | bool temp4 = False ; | |
14583 | PyObject * obj0 = 0 ; | |
14584 | PyObject * obj1 = 0 ; | |
14585 | PyObject * obj2 = 0 ; | |
14586 | PyObject * obj3 = 0 ; | |
14587 | PyObject * obj4 = 0 ; | |
14588 | char *kwnames[] = { | |
14589 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14590 | }; | |
14591 | ||
14592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14597 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14599 | { | |
14600 | arg4 = wxString_in_helper(obj3); | |
14601 | if (arg4 == NULL) SWIG_fail; | |
14602 | temp4 = True; | |
14603 | } | |
14604 | if (obj4) { | |
14605 | arg5 = (int) SWIG_AsInt(obj4); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | } | |
14608 | { | |
14609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14610 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14611 | ||
14612 | wxPyEndAllowThreads(__tstate); | |
14613 | if (PyErr_Occurred()) SWIG_fail; | |
14614 | } | |
14615 | { | |
14616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14617 | } | |
14618 | { | |
14619 | if (temp4) | |
14620 | delete arg4; | |
14621 | } | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | { | |
14625 | if (temp4) | |
14626 | delete arg4; | |
14627 | } | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj; | |
14634 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14635 | wxFindReplaceData *result; | |
14636 | PyObject * obj0 = 0 ; | |
14637 | char *kwnames[] = { | |
14638 | (char *) "self", NULL | |
14639 | }; | |
14640 | ||
14641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14644 | { | |
14645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14646 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14647 | ||
14648 | wxPyEndAllowThreads(__tstate); | |
14649 | if (PyErr_Occurred()) SWIG_fail; | |
14650 | } | |
14651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14652 | return resultobj; | |
14653 | fail: | |
14654 | return NULL; | |
14655 | } | |
14656 | ||
14657 | ||
14658 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14659 | PyObject *resultobj; | |
14660 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14661 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14662 | PyObject * obj0 = 0 ; | |
14663 | PyObject * obj1 = 0 ; | |
14664 | char *kwnames[] = { | |
14665 | (char *) "self",(char *) "data", NULL | |
14666 | }; | |
14667 | ||
14668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14673 | { | |
14674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14675 | (arg1)->SetData(arg2); | |
14676 | ||
14677 | wxPyEndAllowThreads(__tstate); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | } | |
14680 | Py_INCREF(Py_None); resultobj = Py_None; | |
14681 | return resultobj; | |
14682 | fail: | |
14683 | return NULL; | |
14684 | } | |
14685 | ||
14686 | ||
14687 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14688 | PyObject *obj; | |
14689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14690 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14691 | Py_INCREF(obj); | |
14692 | return Py_BuildValue((char *)""); | |
14693 | } | |
14694 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14695 | PyObject *resultobj; | |
14696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14697 | int arg2 = (int) (int)-1 ; |
14698 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14699 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
14700 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14701 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14702 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14703 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14704 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14705 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14706 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14707 | wxMDIParentFrame *result; | |
14708 | bool temp3 = False ; | |
14709 | wxPoint temp4 ; | |
14710 | wxSize temp5 ; | |
14711 | bool temp7 = False ; | |
14712 | PyObject * obj0 = 0 ; | |
14713 | PyObject * obj1 = 0 ; | |
14714 | PyObject * obj2 = 0 ; | |
14715 | PyObject * obj3 = 0 ; | |
14716 | PyObject * obj4 = 0 ; | |
14717 | PyObject * obj5 = 0 ; | |
14718 | PyObject * obj6 = 0 ; | |
14719 | char *kwnames[] = { | |
14720 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14721 | }; | |
14722 | ||
248ed943 | 14723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
14724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
14726 | if (obj1) { |
14727 | arg2 = (int const) SWIG_AsInt(obj1); | |
14728 | if (PyErr_Occurred()) SWIG_fail; | |
14729 | } | |
14730 | if (obj2) { | |
14731 | { | |
14732 | arg3 = wxString_in_helper(obj2); | |
14733 | if (arg3 == NULL) SWIG_fail; | |
14734 | temp3 = True; | |
14735 | } | |
d55e5bfc RD |
14736 | } |
14737 | if (obj3) { | |
14738 | { | |
14739 | arg4 = &temp4; | |
14740 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14741 | } | |
14742 | } | |
14743 | if (obj4) { | |
14744 | { | |
14745 | arg5 = &temp5; | |
14746 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14747 | } | |
14748 | } | |
14749 | if (obj5) { | |
14750 | arg6 = (long) SWIG_AsLong(obj5); | |
14751 | if (PyErr_Occurred()) SWIG_fail; | |
14752 | } | |
14753 | if (obj6) { | |
14754 | { | |
14755 | arg7 = wxString_in_helper(obj6); | |
14756 | if (arg7 == NULL) SWIG_fail; | |
14757 | temp7 = True; | |
14758 | } | |
14759 | } | |
14760 | { | |
0439c23b | 14761 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14763 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14766 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14767 | } |
14768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14769 | { | |
14770 | if (temp3) | |
14771 | delete arg3; | |
14772 | } | |
14773 | { | |
14774 | if (temp7) | |
14775 | delete arg7; | |
14776 | } | |
14777 | return resultobj; | |
14778 | fail: | |
14779 | { | |
14780 | if (temp3) | |
14781 | delete arg3; | |
14782 | } | |
14783 | { | |
14784 | if (temp7) | |
14785 | delete arg7; | |
14786 | } | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14792 | PyObject *resultobj; | |
14793 | wxMDIParentFrame *result; | |
14794 | char *kwnames[] = { | |
14795 | NULL | |
14796 | }; | |
14797 | ||
14798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14799 | { | |
0439c23b | 14800 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14802 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14803 | ||
14804 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14805 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14806 | } |
14807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
14814 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14815 | PyObject *resultobj; | |
14816 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14817 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14818 | int arg3 = (int) (int)-1 ; |
14819 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14820 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
14821 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14822 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14823 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14824 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14825 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14826 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14827 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14828 | bool result; | |
14829 | bool temp4 = False ; | |
14830 | wxPoint temp5 ; | |
14831 | wxSize temp6 ; | |
14832 | bool temp8 = False ; | |
14833 | PyObject * obj0 = 0 ; | |
14834 | PyObject * obj1 = 0 ; | |
14835 | PyObject * obj2 = 0 ; | |
14836 | PyObject * obj3 = 0 ; | |
14837 | PyObject * obj4 = 0 ; | |
14838 | PyObject * obj5 = 0 ; | |
14839 | PyObject * obj6 = 0 ; | |
14840 | PyObject * obj7 = 0 ; | |
14841 | char *kwnames[] = { | |
14842 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14843 | }; | |
14844 | ||
248ed943 | 14845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
14846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, |
14847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14848 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
14850 | if (obj2) { |
14851 | arg3 = (int const) SWIG_AsInt(obj2); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
14853 | } | |
14854 | if (obj3) { | |
14855 | { | |
14856 | arg4 = wxString_in_helper(obj3); | |
14857 | if (arg4 == NULL) SWIG_fail; | |
14858 | temp4 = True; | |
14859 | } | |
d55e5bfc RD |
14860 | } |
14861 | if (obj4) { | |
14862 | { | |
14863 | arg5 = &temp5; | |
14864 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14865 | } | |
14866 | } | |
14867 | if (obj5) { | |
14868 | { | |
14869 | arg6 = &temp6; | |
14870 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14871 | } | |
14872 | } | |
14873 | if (obj6) { | |
14874 | arg7 = (long) SWIG_AsLong(obj6); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | if (obj7) { | |
14878 | { | |
14879 | arg8 = wxString_in_helper(obj7); | |
14880 | if (arg8 == NULL) SWIG_fail; | |
14881 | temp8 = True; | |
14882 | } | |
14883 | } | |
14884 | { | |
14885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14886 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14887 | ||
14888 | wxPyEndAllowThreads(__tstate); | |
14889 | if (PyErr_Occurred()) SWIG_fail; | |
14890 | } | |
14891 | { | |
14892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14893 | } | |
14894 | { | |
14895 | if (temp4) | |
14896 | delete arg4; | |
14897 | } | |
14898 | { | |
14899 | if (temp8) | |
14900 | delete arg8; | |
14901 | } | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | { | |
14905 | if (temp4) | |
14906 | delete arg4; | |
14907 | } | |
14908 | { | |
14909 | if (temp8) | |
14910 | delete arg8; | |
14911 | } | |
14912 | return NULL; | |
14913 | } | |
14914 | ||
14915 | ||
14916 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14917 | PyObject *resultobj; | |
14918 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14919 | PyObject * obj0 = 0 ; | |
14920 | char *kwnames[] = { | |
14921 | (char *) "self", NULL | |
14922 | }; | |
14923 | ||
14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14927 | { | |
14928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14929 | (arg1)->ActivateNext(); | |
14930 | ||
14931 | wxPyEndAllowThreads(__tstate); | |
14932 | if (PyErr_Occurred()) SWIG_fail; | |
14933 | } | |
14934 | Py_INCREF(Py_None); resultobj = Py_None; | |
14935 | return resultobj; | |
14936 | fail: | |
14937 | return NULL; | |
14938 | } | |
14939 | ||
14940 | ||
14941 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14942 | PyObject *resultobj; | |
14943 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14944 | PyObject * obj0 = 0 ; | |
14945 | char *kwnames[] = { | |
14946 | (char *) "self", NULL | |
14947 | }; | |
14948 | ||
14949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14952 | { | |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14954 | (arg1)->ActivatePrevious(); | |
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_ArrangeIcons(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_ArrangeIcons",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)->ArrangeIcons(); | |
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 *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14992 | PyObject *resultobj; | |
14993 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14994 | PyObject * obj0 = 0 ; | |
14995 | char *kwnames[] = { | |
14996 | (char *) "self", NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15002 | { | |
15003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15004 | (arg1)->Cascade(); | |
15005 | ||
15006 | wxPyEndAllowThreads(__tstate); | |
15007 | if (PyErr_Occurred()) SWIG_fail; | |
15008 | } | |
15009 | Py_INCREF(Py_None); resultobj = Py_None; | |
15010 | return resultobj; | |
15011 | fail: | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
15016 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15017 | PyObject *resultobj; | |
15018 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15019 | wxMDIChildFrame *result; | |
15020 | PyObject * obj0 = 0 ; | |
15021 | char *kwnames[] = { | |
15022 | (char *) "self", NULL | |
15023 | }; | |
15024 | ||
15025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
15026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15035 | { | |
412d302d | 15036 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15037 | } |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15045 | PyObject *resultobj; | |
15046 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15047 | wxMDIClientWindow *result; | |
15048 | PyObject * obj0 = 0 ; | |
15049 | char *kwnames[] = { | |
15050 | (char *) "self", NULL | |
15051 | }; | |
15052 | ||
15053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
15054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15056 | { | |
15057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15058 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
15059 | ||
15060 | wxPyEndAllowThreads(__tstate); | |
15061 | if (PyErr_Occurred()) SWIG_fail; | |
15062 | } | |
15063 | { | |
412d302d | 15064 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15065 | } |
15066 | return resultobj; | |
15067 | fail: | |
15068 | return NULL; | |
15069 | } | |
15070 | ||
15071 | ||
15072 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15073 | PyObject *resultobj; | |
15074 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15075 | wxWindow *result; | |
15076 | PyObject * obj0 = 0 ; | |
15077 | char *kwnames[] = { | |
15078 | (char *) "self", NULL | |
15079 | }; | |
15080 | ||
15081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
15082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15084 | { | |
15085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15086 | result = (wxWindow *)(arg1)->GetToolBar(); | |
15087 | ||
15088 | wxPyEndAllowThreads(__tstate); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
15090 | } | |
15091 | { | |
412d302d | 15092 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15093 | } |
15094 | return resultobj; | |
15095 | fail: | |
15096 | return NULL; | |
15097 | } | |
15098 | ||
15099 | ||
15100 | static PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15101 | PyObject *resultobj; | |
15102 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15103 | wxMenu *result; | |
15104 | PyObject * obj0 = 0 ; | |
15105 | char *kwnames[] = { | |
15106 | (char *) "self", NULL | |
15107 | }; | |
15108 | ||
15109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetWindowMenu",kwnames,&obj0)) goto fail; | |
15110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15112 | { | |
15113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15114 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
15115 | ||
15116 | wxPyEndAllowThreads(__tstate); | |
15117 | if (PyErr_Occurred()) SWIG_fail; | |
15118 | } | |
15119 | { | |
412d302d | 15120 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15121 | } |
15122 | return resultobj; | |
15123 | fail: | |
15124 | return NULL; | |
15125 | } | |
15126 | ||
15127 | ||
15128 | static PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15129 | PyObject *resultobj; | |
15130 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15131 | wxMenu *arg2 = (wxMenu *) 0 ; | |
15132 | PyObject * obj0 = 0 ; | |
15133 | PyObject * obj1 = 0 ; | |
15134 | char *kwnames[] = { | |
15135 | (char *) "self",(char *) "menu", NULL | |
15136 | }; | |
15137 | ||
15138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) goto fail; | |
15139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
15142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15143 | { | |
15144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15145 | (arg1)->SetWindowMenu(arg2); | |
15146 | ||
15147 | wxPyEndAllowThreads(__tstate); | |
15148 | if (PyErr_Occurred()) SWIG_fail; | |
15149 | } | |
15150 | Py_INCREF(Py_None); resultobj = Py_None; | |
15151 | return resultobj; | |
15152 | fail: | |
15153 | return NULL; | |
15154 | } | |
15155 | ||
15156 | ||
15157 | static PyObject *_wrap_MDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15158 | PyObject *resultobj; | |
15159 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15160 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
15161 | PyObject * obj0 = 0 ; | |
15162 | PyObject * obj1 = 0 ; | |
15163 | char *kwnames[] = { | |
15164 | (char *) "self",(char *) "toolbar", NULL | |
15165 | }; | |
15166 | ||
15167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
15168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15170 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
15171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15172 | { | |
15173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15174 | (arg1)->SetToolBar(arg2); | |
15175 | ||
15176 | wxPyEndAllowThreads(__tstate); | |
15177 | if (PyErr_Occurred()) SWIG_fail; | |
15178 | } | |
15179 | Py_INCREF(Py_None); resultobj = Py_None; | |
15180 | return resultobj; | |
15181 | fail: | |
15182 | return NULL; | |
15183 | } | |
15184 | ||
15185 | ||
15186 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15187 | PyObject *resultobj; | |
15188 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15189 | PyObject * obj0 = 0 ; | |
15190 | char *kwnames[] = { | |
15191 | (char *) "self", NULL | |
15192 | }; | |
15193 | ||
15194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
15195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15197 | { | |
15198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15199 | (arg1)->Tile(); | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | Py_INCREF(Py_None); resultobj = Py_None; | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
15211 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
15212 | PyObject *obj; | |
15213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15214 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
15215 | Py_INCREF(obj); | |
15216 | return Py_BuildValue((char *)""); | |
15217 | } | |
15218 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj; | |
15220 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
248ed943 RD |
15221 | int arg2 = (int) (int)-1 ; |
15222 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15223 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
15224 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15225 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15226 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15227 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15228 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
15229 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
15230 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15231 | wxMDIChildFrame *result; | |
15232 | bool temp3 = False ; | |
15233 | wxPoint temp4 ; | |
15234 | wxSize temp5 ; | |
15235 | bool temp7 = False ; | |
15236 | PyObject * obj0 = 0 ; | |
15237 | PyObject * obj1 = 0 ; | |
15238 | PyObject * obj2 = 0 ; | |
15239 | PyObject * obj3 = 0 ; | |
15240 | PyObject * obj4 = 0 ; | |
15241 | PyObject * obj5 = 0 ; | |
15242 | PyObject * obj6 = 0 ; | |
15243 | char *kwnames[] = { | |
15244 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15245 | }; | |
15246 | ||
248ed943 | 15247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, |
15249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15250 | if (obj1) { |
15251 | arg2 = (int const) SWIG_AsInt(obj1); | |
15252 | if (PyErr_Occurred()) SWIG_fail; | |
15253 | } | |
15254 | if (obj2) { | |
15255 | { | |
15256 | arg3 = wxString_in_helper(obj2); | |
15257 | if (arg3 == NULL) SWIG_fail; | |
15258 | temp3 = True; | |
15259 | } | |
d55e5bfc RD |
15260 | } |
15261 | if (obj3) { | |
15262 | { | |
15263 | arg4 = &temp4; | |
15264 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15265 | } | |
15266 | } | |
15267 | if (obj4) { | |
15268 | { | |
15269 | arg5 = &temp5; | |
15270 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15271 | } | |
15272 | } | |
15273 | if (obj5) { | |
15274 | arg6 = (long) SWIG_AsLong(obj5); | |
15275 | if (PyErr_Occurred()) SWIG_fail; | |
15276 | } | |
15277 | if (obj6) { | |
15278 | { | |
15279 | arg7 = wxString_in_helper(obj6); | |
15280 | if (arg7 == NULL) SWIG_fail; | |
15281 | temp7 = True; | |
15282 | } | |
15283 | } | |
15284 | { | |
0439c23b | 15285 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15287 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15290 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15291 | } |
b0f7404b | 15292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIChildFrame, 1); |
d55e5bfc RD |
15293 | { |
15294 | if (temp3) | |
15295 | delete arg3; | |
15296 | } | |
15297 | { | |
15298 | if (temp7) | |
15299 | delete arg7; | |
15300 | } | |
15301 | return resultobj; | |
15302 | fail: | |
15303 | { | |
15304 | if (temp3) | |
15305 | delete arg3; | |
15306 | } | |
15307 | { | |
15308 | if (temp7) | |
15309 | delete arg7; | |
15310 | } | |
15311 | return NULL; | |
15312 | } | |
15313 | ||
15314 | ||
15315 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15316 | PyObject *resultobj; | |
15317 | wxMDIChildFrame *result; | |
15318 | char *kwnames[] = { | |
15319 | NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
15323 | { | |
0439c23b | 15324 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15326 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
15327 | ||
15328 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15329 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15330 | } |
b0f7404b | 15331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIChildFrame, 1); |
d55e5bfc RD |
15332 | return resultobj; |
15333 | fail: | |
15334 | return NULL; | |
15335 | } | |
15336 | ||
15337 | ||
15338 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15339 | PyObject *resultobj; | |
15340 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15341 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
248ed943 RD |
15342 | int arg3 = (int) (int)-1 ; |
15343 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15344 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
15345 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15346 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15347 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15348 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15349 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
15350 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
15351 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15352 | bool result; | |
15353 | bool temp4 = False ; | |
15354 | wxPoint temp5 ; | |
15355 | wxSize temp6 ; | |
15356 | bool temp8 = False ; | |
15357 | PyObject * obj0 = 0 ; | |
15358 | PyObject * obj1 = 0 ; | |
15359 | PyObject * obj2 = 0 ; | |
15360 | PyObject * obj3 = 0 ; | |
15361 | PyObject * obj4 = 0 ; | |
15362 | PyObject * obj5 = 0 ; | |
15363 | PyObject * obj6 = 0 ; | |
15364 | PyObject * obj7 = 0 ; | |
15365 | char *kwnames[] = { | |
15366 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15367 | }; | |
15368 | ||
248ed943 | 15369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
15370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, |
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; | |
248ed943 RD |
15374 | if (obj2) { |
15375 | arg3 = (int const) SWIG_AsInt(obj2); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
15378 | if (obj3) { | |
15379 | { | |
15380 | arg4 = wxString_in_helper(obj3); | |
15381 | if (arg4 == NULL) SWIG_fail; | |
15382 | temp4 = True; | |
15383 | } | |
d55e5bfc RD |
15384 | } |
15385 | if (obj4) { | |
15386 | { | |
15387 | arg5 = &temp5; | |
15388 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15389 | } | |
15390 | } | |
15391 | if (obj5) { | |
15392 | { | |
15393 | arg6 = &temp6; | |
15394 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15395 | } | |
15396 | } | |
15397 | if (obj6) { | |
15398 | arg7 = (long) SWIG_AsLong(obj6); | |
15399 | if (PyErr_Occurred()) SWIG_fail; | |
15400 | } | |
15401 | if (obj7) { | |
15402 | { | |
15403 | arg8 = wxString_in_helper(obj7); | |
15404 | if (arg8 == NULL) SWIG_fail; | |
15405 | temp8 = True; | |
15406 | } | |
15407 | } | |
15408 | { | |
15409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15410 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
15411 | ||
15412 | wxPyEndAllowThreads(__tstate); | |
15413 | if (PyErr_Occurred()) SWIG_fail; | |
15414 | } | |
15415 | { | |
15416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15417 | } | |
15418 | { | |
15419 | if (temp4) | |
15420 | delete arg4; | |
15421 | } | |
15422 | { | |
15423 | if (temp8) | |
15424 | delete arg8; | |
15425 | } | |
15426 | return resultobj; | |
15427 | fail: | |
15428 | { | |
15429 | if (temp4) | |
15430 | delete arg4; | |
15431 | } | |
15432 | { | |
15433 | if (temp8) | |
15434 | delete arg8; | |
15435 | } | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
15440 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15441 | PyObject *resultobj; | |
15442 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15443 | PyObject * obj0 = 0 ; | |
15444 | char *kwnames[] = { | |
15445 | (char *) "self", NULL | |
15446 | }; | |
15447 | ||
15448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
15449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | (arg1)->Activate(); | |
15454 | ||
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | Py_INCREF(Py_None); resultobj = Py_None; | |
15459 | return resultobj; | |
15460 | fail: | |
15461 | return NULL; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15466 | PyObject *resultobj; | |
15467 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15468 | bool arg2 ; | |
15469 | PyObject * obj0 = 0 ; | |
15470 | PyObject * obj1 = 0 ; | |
15471 | char *kwnames[] = { | |
15472 | (char *) "self",(char *) "maximize", NULL | |
15473 | }; | |
15474 | ||
15475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
15476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15478 | arg2 = (bool) SWIG_AsBool(obj1); | |
15479 | if (PyErr_Occurred()) SWIG_fail; | |
15480 | { | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | (arg1)->Maximize(arg2); | |
15483 | ||
15484 | wxPyEndAllowThreads(__tstate); | |
15485 | if (PyErr_Occurred()) SWIG_fail; | |
15486 | } | |
15487 | Py_INCREF(Py_None); resultobj = Py_None; | |
15488 | return resultobj; | |
15489 | fail: | |
15490 | return NULL; | |
15491 | } | |
15492 | ||
15493 | ||
15494 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15495 | PyObject *resultobj; | |
15496 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15505 | { | |
15506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15507 | (arg1)->Restore(); | |
15508 | ||
15509 | wxPyEndAllowThreads(__tstate); | |
15510 | if (PyErr_Occurred()) SWIG_fail; | |
15511 | } | |
15512 | Py_INCREF(Py_None); resultobj = Py_None; | |
15513 | return resultobj; | |
15514 | fail: | |
15515 | return NULL; | |
15516 | } | |
15517 | ||
15518 | ||
15519 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
15520 | PyObject *obj; | |
15521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15522 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
15523 | Py_INCREF(obj); | |
15524 | return Py_BuildValue((char *)""); | |
15525 | } | |
15526 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15527 | PyObject *resultobj; | |
15528 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15529 | long arg2 = (long) 0 ; | |
15530 | wxMDIClientWindow *result; | |
15531 | PyObject * obj0 = 0 ; | |
15532 | PyObject * obj1 = 0 ; | |
15533 | char *kwnames[] = { | |
15534 | (char *) "parent",(char *) "style", NULL | |
15535 | }; | |
15536 | ||
15537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
15538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15540 | if (obj1) { | |
15541 | arg2 = (long) SWIG_AsLong(obj1); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
15544 | { | |
0439c23b | 15545 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15547 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
15548 | ||
15549 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15550 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15551 | } |
b0f7404b | 15552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIClientWindow, 1); |
d55e5bfc RD |
15553 | return resultobj; |
15554 | fail: | |
15555 | return NULL; | |
15556 | } | |
15557 | ||
15558 | ||
15559 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15560 | PyObject *resultobj; | |
15561 | wxMDIClientWindow *result; | |
15562 | char *kwnames[] = { | |
15563 | NULL | |
15564 | }; | |
15565 | ||
15566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
15567 | { | |
0439c23b | 15568 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15570 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
15571 | ||
15572 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15573 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15574 | } |
b0f7404b | 15575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIClientWindow, 1); |
d55e5bfc RD |
15576 | return resultobj; |
15577 | fail: | |
15578 | return NULL; | |
15579 | } | |
15580 | ||
15581 | ||
15582 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15583 | PyObject *resultobj; | |
15584 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
15585 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15586 | long arg3 = (long) 0 ; | |
15587 | bool result; | |
15588 | PyObject * obj0 = 0 ; | |
15589 | PyObject * obj1 = 0 ; | |
15590 | PyObject * obj2 = 0 ; | |
15591 | char *kwnames[] = { | |
15592 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15593 | }; | |
15594 | ||
15595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15600 | if (obj2) { | |
15601 | arg3 = (long) SWIG_AsLong(obj2); | |
15602 | if (PyErr_Occurred()) SWIG_fail; | |
15603 | } | |
15604 | { | |
15605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15606 | result = (bool)(arg1)->Create(arg2,arg3); | |
15607 | ||
15608 | wxPyEndAllowThreads(__tstate); | |
15609 | if (PyErr_Occurred()) SWIG_fail; | |
15610 | } | |
15611 | { | |
15612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15613 | } | |
15614 | return resultobj; | |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15621 | PyObject *obj; | |
15622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15623 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15624 | Py_INCREF(obj); | |
15625 | return Py_BuildValue((char *)""); | |
15626 | } | |
15627 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15628 | PyObject *resultobj; | |
15629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 15630 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
15631 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15632 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15633 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15634 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15635 | long arg5 = (long) 0 ; | |
15636 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15637 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15638 | wxPyWindow *result; | |
15639 | wxPoint temp3 ; | |
15640 | wxSize temp4 ; | |
15641 | bool temp6 = False ; | |
15642 | PyObject * obj0 = 0 ; | |
15643 | PyObject * obj1 = 0 ; | |
15644 | PyObject * obj2 = 0 ; | |
15645 | PyObject * obj3 = 0 ; | |
15646 | PyObject * obj4 = 0 ; | |
15647 | PyObject * obj5 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15650 | }; | |
15651 | ||
248ed943 | 15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
15653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15655 | if (obj1) { |
15656 | arg2 = (int const) SWIG_AsInt(obj1); | |
15657 | if (PyErr_Occurred()) SWIG_fail; | |
15658 | } | |
d55e5bfc RD |
15659 | if (obj2) { |
15660 | { | |
15661 | arg3 = &temp3; | |
15662 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15663 | } | |
15664 | } | |
15665 | if (obj3) { | |
15666 | { | |
15667 | arg4 = &temp4; | |
15668 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15669 | } | |
15670 | } | |
15671 | if (obj4) { | |
15672 | arg5 = (long) SWIG_AsLong(obj4); | |
15673 | if (PyErr_Occurred()) SWIG_fail; | |
15674 | } | |
15675 | if (obj5) { | |
15676 | { | |
15677 | arg6 = wxString_in_helper(obj5); | |
15678 | if (arg6 == NULL) SWIG_fail; | |
15679 | temp6 = True; | |
15680 | } | |
15681 | } | |
15682 | { | |
0439c23b | 15683 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15685 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15686 | ||
15687 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15688 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15689 | } |
15690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15691 | { | |
15692 | if (temp6) | |
15693 | delete arg6; | |
15694 | } | |
15695 | return resultobj; | |
15696 | fail: | |
15697 | { | |
15698 | if (temp6) | |
15699 | delete arg6; | |
15700 | } | |
15701 | return NULL; | |
15702 | } | |
15703 | ||
15704 | ||
15705 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15706 | PyObject *resultobj; | |
15707 | wxPyWindow *result; | |
15708 | char *kwnames[] = { | |
15709 | NULL | |
15710 | }; | |
15711 | ||
15712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15713 | { | |
0439c23b | 15714 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15716 | result = (wxPyWindow *)new wxPyWindow(); | |
15717 | ||
15718 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15719 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15720 | } |
15721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15722 | return resultobj; | |
15723 | fail: | |
15724 | return NULL; | |
15725 | } | |
15726 | ||
15727 | ||
15728 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15729 | PyObject *resultobj; | |
15730 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15731 | PyObject *arg2 = (PyObject *) 0 ; | |
15732 | PyObject *arg3 = (PyObject *) 0 ; | |
15733 | PyObject * obj0 = 0 ; | |
15734 | PyObject * obj1 = 0 ; | |
15735 | PyObject * obj2 = 0 ; | |
15736 | char *kwnames[] = { | |
15737 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15738 | }; | |
15739 | ||
15740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15743 | arg2 = obj1; | |
15744 | arg3 = obj2; | |
15745 | { | |
15746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15747 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15748 | ||
15749 | wxPyEndAllowThreads(__tstate); | |
15750 | if (PyErr_Occurred()) SWIG_fail; | |
15751 | } | |
15752 | Py_INCREF(Py_None); resultobj = Py_None; | |
15753 | return resultobj; | |
15754 | fail: | |
15755 | return NULL; | |
15756 | } | |
15757 | ||
15758 | ||
caef1a4d RD |
15759 | static PyObject *_wrap_PyWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
15760 | PyObject *resultobj; | |
15761 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15762 | wxSize *arg2 = 0 ; | |
15763 | wxSize temp2 ; | |
15764 | PyObject * obj0 = 0 ; | |
15765 | PyObject * obj1 = 0 ; | |
15766 | char *kwnames[] = { | |
15767 | (char *) "self",(char *) "size", NULL | |
15768 | }; | |
15769 | ||
15770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
15771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15773 | { | |
15774 | arg2 = &temp2; | |
15775 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15776 | } | |
15777 | { | |
15778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15779 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
15780 | ||
15781 | wxPyEndAllowThreads(__tstate); | |
15782 | if (PyErr_Occurred()) SWIG_fail; | |
15783 | } | |
15784 | Py_INCREF(Py_None); resultobj = Py_None; | |
15785 | return resultobj; | |
15786 | fail: | |
15787 | return NULL; | |
15788 | } | |
15789 | ||
15790 | ||
d55e5bfc RD |
15791 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
15792 | PyObject *resultobj; | |
15793 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15794 | int arg2 ; | |
15795 | int arg3 ; | |
15796 | int arg4 ; | |
15797 | int arg5 ; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | PyObject * obj1 = 0 ; | |
15800 | PyObject * obj2 = 0 ; | |
15801 | PyObject * obj3 = 0 ; | |
15802 | PyObject * obj4 = 0 ; | |
15803 | char *kwnames[] = { | |
15804 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15810 | arg2 = (int) SWIG_AsInt(obj1); | |
15811 | if (PyErr_Occurred()) SWIG_fail; | |
15812 | arg3 = (int) SWIG_AsInt(obj2); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | arg4 = (int) SWIG_AsInt(obj3); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | arg5 = (int) SWIG_AsInt(obj4); | |
15817 | if (PyErr_Occurred()) SWIG_fail; | |
15818 | { | |
15819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15820 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15821 | ||
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
15825 | Py_INCREF(Py_None); resultobj = Py_None; | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15835 | int arg2 ; | |
15836 | int arg3 ; | |
15837 | int arg4 ; | |
15838 | int arg5 ; | |
15839 | int arg6 = (int) wxSIZE_AUTO ; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | PyObject * obj1 = 0 ; | |
15842 | PyObject * obj2 = 0 ; | |
15843 | PyObject * obj3 = 0 ; | |
15844 | PyObject * obj4 = 0 ; | |
15845 | PyObject * obj5 = 0 ; | |
15846 | char *kwnames[] = { | |
15847 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15848 | }; | |
15849 | ||
15850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15853 | arg2 = (int) SWIG_AsInt(obj1); | |
15854 | if (PyErr_Occurred()) SWIG_fail; | |
15855 | arg3 = (int) SWIG_AsInt(obj2); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | arg4 = (int) SWIG_AsInt(obj3); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | arg5 = (int) SWIG_AsInt(obj4); | |
15860 | if (PyErr_Occurred()) SWIG_fail; | |
15861 | if (obj5) { | |
15862 | arg6 = (int) SWIG_AsInt(obj5); | |
15863 | if (PyErr_Occurred()) SWIG_fail; | |
15864 | } | |
15865 | { | |
15866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15867 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15868 | ||
15869 | wxPyEndAllowThreads(__tstate); | |
15870 | if (PyErr_Occurred()) SWIG_fail; | |
15871 | } | |
15872 | Py_INCREF(Py_None); resultobj = Py_None; | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15880 | PyObject *resultobj; | |
15881 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15882 | int arg2 ; | |
15883 | int arg3 ; | |
15884 | PyObject * obj0 = 0 ; | |
15885 | PyObject * obj1 = 0 ; | |
15886 | PyObject * obj2 = 0 ; | |
15887 | char *kwnames[] = { | |
15888 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15889 | }; | |
15890 | ||
15891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15894 | arg2 = (int) SWIG_AsInt(obj1); | |
15895 | if (PyErr_Occurred()) SWIG_fail; | |
15896 | arg3 = (int) SWIG_AsInt(obj2); | |
15897 | if (PyErr_Occurred()) SWIG_fail; | |
15898 | { | |
15899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15900 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15901 | ||
15902 | wxPyEndAllowThreads(__tstate); | |
15903 | if (PyErr_Occurred()) SWIG_fail; | |
15904 | } | |
15905 | Py_INCREF(Py_None); resultobj = Py_None; | |
15906 | return resultobj; | |
15907 | fail: | |
15908 | return NULL; | |
15909 | } | |
15910 | ||
15911 | ||
15912 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15913 | PyObject *resultobj; | |
15914 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15915 | int arg2 ; | |
15916 | int arg3 ; | |
15917 | PyObject * obj0 = 0 ; | |
15918 | PyObject * obj1 = 0 ; | |
15919 | PyObject * obj2 = 0 ; | |
15920 | char *kwnames[] = { | |
15921 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15922 | }; | |
15923 | ||
15924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15927 | arg2 = (int) SWIG_AsInt(obj1); | |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
15929 | arg3 = (int) SWIG_AsInt(obj2); | |
15930 | if (PyErr_Occurred()) SWIG_fail; | |
15931 | { | |
15932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15933 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15934 | ||
15935 | wxPyEndAllowThreads(__tstate); | |
15936 | if (PyErr_Occurred()) SWIG_fail; | |
15937 | } | |
15938 | Py_INCREF(Py_None); resultobj = Py_None; | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15948 | int *arg2 = (int *) 0 ; | |
15949 | int *arg3 = (int *) 0 ; | |
15950 | int temp2 ; | |
15951 | int temp3 ; | |
15952 | PyObject * obj0 = 0 ; | |
15953 | char *kwnames[] = { | |
15954 | (char *) "self", NULL | |
15955 | }; | |
15956 | ||
15957 | arg2 = &temp2; | |
15958 | arg3 = &temp3; | |
15959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15962 | { | |
15963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15964 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15965 | ||
15966 | wxPyEndAllowThreads(__tstate); | |
15967 | if (PyErr_Occurred()) SWIG_fail; | |
15968 | } | |
15969 | Py_INCREF(Py_None); resultobj = Py_None; | |
15970 | { | |
15971 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15972 | resultobj = t_output_helper(resultobj,o); | |
15973 | } | |
15974 | { | |
15975 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15976 | resultobj = t_output_helper(resultobj,o); | |
15977 | } | |
15978 | return resultobj; | |
15979 | fail: | |
15980 | return NULL; | |
15981 | } | |
15982 | ||
15983 | ||
15984 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15985 | PyObject *resultobj; | |
15986 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15987 | int *arg2 = (int *) 0 ; | |
15988 | int *arg3 = (int *) 0 ; | |
15989 | int temp2 ; | |
15990 | int temp3 ; | |
15991 | PyObject * obj0 = 0 ; | |
15992 | char *kwnames[] = { | |
15993 | (char *) "self", NULL | |
15994 | }; | |
15995 | ||
15996 | arg2 = &temp2; | |
15997 | arg3 = &temp3; | |
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16001 | { | |
16002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16003 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | Py_INCREF(Py_None); resultobj = Py_None; | |
16009 | { | |
16010 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16011 | resultobj = t_output_helper(resultobj,o); | |
16012 | } | |
16013 | { | |
16014 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16015 | resultobj = t_output_helper(resultobj,o); | |
16016 | } | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj; | |
16025 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16026 | int *arg2 = (int *) 0 ; | |
16027 | int *arg3 = (int *) 0 ; | |
16028 | int temp2 ; | |
16029 | int temp3 ; | |
16030 | PyObject * obj0 = 0 ; | |
16031 | char *kwnames[] = { | |
16032 | (char *) "self", NULL | |
16033 | }; | |
16034 | ||
16035 | arg2 = &temp2; | |
16036 | arg3 = &temp3; | |
16037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16040 | { | |
16041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16042 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16043 | ||
16044 | wxPyEndAllowThreads(__tstate); | |
16045 | if (PyErr_Occurred()) SWIG_fail; | |
16046 | } | |
16047 | Py_INCREF(Py_None); resultobj = Py_None; | |
16048 | { | |
16049 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16050 | resultobj = t_output_helper(resultobj,o); | |
16051 | } | |
16052 | { | |
16053 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16054 | resultobj = t_output_helper(resultobj,o); | |
16055 | } | |
16056 | return resultobj; | |
16057 | fail: | |
16058 | return NULL; | |
16059 | } | |
16060 | ||
16061 | ||
16062 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16063 | PyObject *resultobj; | |
16064 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16065 | wxSize result; | |
16066 | PyObject * obj0 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self", NULL | |
16069 | }; | |
16070 | ||
16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16074 | { | |
16075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16076 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
16077 | ||
16078 | wxPyEndAllowThreads(__tstate); | |
16079 | if (PyErr_Occurred()) SWIG_fail; | |
16080 | } | |
16081 | { | |
16082 | wxSize * resultptr; | |
16083 | resultptr = new wxSize((wxSize &) result); | |
16084 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16085 | } | |
16086 | return resultobj; | |
16087 | fail: | |
16088 | return NULL; | |
16089 | } | |
16090 | ||
16091 | ||
16092 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16093 | PyObject *resultobj; | |
16094 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16095 | wxSize result; | |
16096 | PyObject * obj0 = 0 ; | |
16097 | char *kwnames[] = { | |
16098 | (char *) "self", NULL | |
16099 | }; | |
16100 | ||
16101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
16111 | { | |
16112 | wxSize * resultptr; | |
16113 | resultptr = new wxSize((wxSize &) result); | |
16114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16115 | } | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | return NULL; | |
16119 | } | |
16120 | ||
16121 | ||
16122 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16123 | PyObject *resultobj; | |
16124 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16125 | PyObject * obj0 = 0 ; | |
16126 | char *kwnames[] = { | |
16127 | (char *) "self", NULL | |
16128 | }; | |
16129 | ||
16130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
16131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16133 | { | |
16134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16135 | (arg1)->base_InitDialog(); | |
16136 | ||
16137 | wxPyEndAllowThreads(__tstate); | |
16138 | if (PyErr_Occurred()) SWIG_fail; | |
16139 | } | |
16140 | Py_INCREF(Py_None); resultobj = Py_None; | |
16141 | return resultobj; | |
16142 | fail: | |
16143 | return NULL; | |
16144 | } | |
16145 | ||
16146 | ||
16147 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16148 | PyObject *resultobj; | |
16149 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16150 | bool result; | |
16151 | PyObject * obj0 = 0 ; | |
16152 | char *kwnames[] = { | |
16153 | (char *) "self", NULL | |
16154 | }; | |
16155 | ||
16156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16159 | { | |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
16166 | { | |
16167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16168 | } | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
16175 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16176 | PyObject *resultobj; | |
16177 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16178 | bool result; | |
16179 | PyObject * obj0 = 0 ; | |
16180 | char *kwnames[] = { | |
16181 | (char *) "self", NULL | |
16182 | }; | |
16183 | ||
16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16187 | { | |
16188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16189 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16190 | ||
16191 | wxPyEndAllowThreads(__tstate); | |
16192 | if (PyErr_Occurred()) SWIG_fail; | |
16193 | } | |
16194 | { | |
16195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16196 | } | |
16197 | return resultobj; | |
16198 | fail: | |
16199 | return NULL; | |
16200 | } | |
16201 | ||
16202 | ||
16203 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16204 | PyObject *resultobj; | |
16205 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16206 | bool result; | |
16207 | PyObject * obj0 = 0 ; | |
16208 | char *kwnames[] = { | |
16209 | (char *) "self", NULL | |
16210 | }; | |
16211 | ||
16212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
16213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16215 | { | |
16216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16217 | result = (bool)(arg1)->base_Validate(); | |
16218 | ||
16219 | wxPyEndAllowThreads(__tstate); | |
16220 | if (PyErr_Occurred()) SWIG_fail; | |
16221 | } | |
16222 | { | |
16223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16224 | } | |
16225 | return resultobj; | |
16226 | fail: | |
16227 | return NULL; | |
16228 | } | |
16229 | ||
16230 | ||
16231 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16232 | PyObject *resultobj; | |
16233 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16234 | bool result; | |
16235 | PyObject * obj0 = 0 ; | |
16236 | char *kwnames[] = { | |
16237 | (char *) "self", NULL | |
16238 | }; | |
16239 | ||
16240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16243 | { | |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16245 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
16246 | ||
16247 | wxPyEndAllowThreads(__tstate); | |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | { | |
16251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16252 | } | |
16253 | return resultobj; | |
16254 | fail: | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
16259 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16260 | PyObject *resultobj; | |
16261 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16262 | bool result; | |
16263 | PyObject * obj0 = 0 ; | |
16264 | char *kwnames[] = { | |
16265 | (char *) "self", NULL | |
16266 | }; | |
16267 | ||
16268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16271 | { | |
16272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16273 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16274 | ||
16275 | wxPyEndAllowThreads(__tstate); | |
16276 | if (PyErr_Occurred()) SWIG_fail; | |
16277 | } | |
16278 | { | |
16279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16280 | } | |
16281 | return resultobj; | |
16282 | fail: | |
16283 | return NULL; | |
16284 | } | |
16285 | ||
16286 | ||
16287 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16288 | PyObject *resultobj; | |
16289 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16290 | wxSize result; | |
16291 | PyObject * obj0 = 0 ; | |
16292 | char *kwnames[] = { | |
16293 | (char *) "self", NULL | |
16294 | }; | |
16295 | ||
16296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16299 | { | |
16300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16301 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
16302 | ||
16303 | wxPyEndAllowThreads(__tstate); | |
16304 | if (PyErr_Occurred()) SWIG_fail; | |
16305 | } | |
16306 | { | |
16307 | wxSize * resultptr; | |
16308 | resultptr = new wxSize((wxSize &) result); | |
16309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16310 | } | |
16311 | return resultobj; | |
16312 | fail: | |
16313 | return NULL; | |
16314 | } | |
16315 | ||
16316 | ||
16317 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16318 | PyObject *resultobj; | |
16319 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16320 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16321 | PyObject * obj0 = 0 ; | |
16322 | PyObject * obj1 = 0 ; | |
16323 | char *kwnames[] = { | |
16324 | (char *) "self",(char *) "child", NULL | |
16325 | }; | |
16326 | ||
16327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16330 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16332 | { | |
16333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16334 | (arg1)->base_AddChild(arg2); | |
16335 | ||
16336 | wxPyEndAllowThreads(__tstate); | |
16337 | if (PyErr_Occurred()) SWIG_fail; | |
16338 | } | |
16339 | Py_INCREF(Py_None); resultobj = Py_None; | |
16340 | return resultobj; | |
16341 | fail: | |
16342 | return NULL; | |
16343 | } | |
16344 | ||
16345 | ||
16346 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16347 | PyObject *resultobj; | |
16348 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16349 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16350 | PyObject * obj0 = 0 ; | |
16351 | PyObject * obj1 = 0 ; | |
16352 | char *kwnames[] = { | |
16353 | (char *) "self",(char *) "child", NULL | |
16354 | }; | |
16355 | ||
16356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | (arg1)->base_RemoveChild(arg2); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | Py_INCREF(Py_None); resultobj = Py_None; | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
16375 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16376 | PyObject *resultobj; | |
16377 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16378 | bool result; | |
16379 | PyObject * obj0 = 0 ; | |
16380 | char *kwnames[] = { | |
16381 | (char *) "self", NULL | |
16382 | }; | |
16383 | ||
16384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16387 | { | |
16388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 16389 | result = (bool)((wxPyWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
16390 | |
16391 | wxPyEndAllowThreads(__tstate); | |
16392 | if (PyErr_Occurred()) SWIG_fail; | |
16393 | } | |
16394 | { | |
16395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16396 | } | |
16397 | return resultobj; | |
16398 | fail: | |
16399 | return NULL; | |
16400 | } | |
16401 | ||
16402 | ||
16403 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16404 | PyObject *resultobj; | |
16405 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16406 | wxColour *arg2 = 0 ; | |
16407 | wxColour temp2 ; | |
16408 | PyObject * obj0 = 0 ; | |
16409 | PyObject * obj1 = 0 ; | |
16410 | char *kwnames[] = { | |
16411 | (char *) "self",(char *) "c", NULL | |
16412 | }; | |
16413 | ||
16414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16417 | { | |
16418 | arg2 = &temp2; | |
16419 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16420 | } | |
16421 | { | |
16422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16423 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16424 | ||
16425 | wxPyEndAllowThreads(__tstate); | |
16426 | if (PyErr_Occurred()) SWIG_fail; | |
16427 | } | |
16428 | Py_INCREF(Py_None); resultobj = Py_None; | |
16429 | return resultobj; | |
16430 | fail: | |
16431 | return NULL; | |
16432 | } | |
16433 | ||
16434 | ||
caef1a4d RD |
16435 | static PyObject *_wrap_PyWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
16436 | PyObject *resultobj; | |
16437 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16438 | wxVisualAttributes result; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | char *kwnames[] = { | |
16441 | (char *) "self", NULL | |
16442 | }; | |
16443 | ||
16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
16445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16447 | { | |
16448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16449 | result = (arg1)->base_GetDefaultAttributes(); | |
16450 | ||
16451 | wxPyEndAllowThreads(__tstate); | |
16452 | if (PyErr_Occurred()) SWIG_fail; | |
16453 | } | |
16454 | { | |
16455 | wxVisualAttributes * resultptr; | |
16456 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
16457 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16458 | } | |
16459 | return resultobj; | |
16460 | fail: | |
16461 | return NULL; | |
16462 | } | |
16463 | ||
16464 | ||
d55e5bfc RD |
16465 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { |
16466 | PyObject *obj; | |
16467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16468 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
16469 | Py_INCREF(obj); | |
16470 | return Py_BuildValue((char *)""); | |
16471 | } | |
16472 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16473 | PyObject *resultobj; | |
16474 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 16475 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
16476 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16477 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16478 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16479 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16480 | long arg5 = (long) 0 ; | |
16481 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16482 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16483 | wxPyPanel *result; | |
16484 | wxPoint temp3 ; | |
16485 | wxSize temp4 ; | |
16486 | bool temp6 = False ; | |
16487 | PyObject * obj0 = 0 ; | |
16488 | PyObject * obj1 = 0 ; | |
16489 | PyObject * obj2 = 0 ; | |
16490 | PyObject * obj3 = 0 ; | |
16491 | PyObject * obj4 = 0 ; | |
16492 | PyObject * obj5 = 0 ; | |
16493 | char *kwnames[] = { | |
16494 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16495 | }; | |
16496 | ||
248ed943 | 16497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
16498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
16500 | if (obj1) { |
16501 | arg2 = (int const) SWIG_AsInt(obj1); | |
16502 | if (PyErr_Occurred()) SWIG_fail; | |
16503 | } | |
d55e5bfc RD |
16504 | if (obj2) { |
16505 | { | |
16506 | arg3 = &temp3; | |
16507 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16508 | } | |
16509 | } | |
16510 | if (obj3) { | |
16511 | { | |
16512 | arg4 = &temp4; | |
16513 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16514 | } | |
16515 | } | |
16516 | if (obj4) { | |
16517 | arg5 = (long) SWIG_AsLong(obj4); | |
16518 | if (PyErr_Occurred()) SWIG_fail; | |
16519 | } | |
16520 | if (obj5) { | |
16521 | { | |
16522 | arg6 = wxString_in_helper(obj5); | |
16523 | if (arg6 == NULL) SWIG_fail; | |
16524 | temp6 = True; | |
16525 | } | |
16526 | } | |
16527 | { | |
0439c23b | 16528 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16530 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16531 | ||
16532 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16533 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16534 | } |
16535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16536 | { | |
16537 | if (temp6) | |
16538 | delete arg6; | |
16539 | } | |
16540 | return resultobj; | |
16541 | fail: | |
16542 | { | |
16543 | if (temp6) | |
16544 | delete arg6; | |
16545 | } | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
16550 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16551 | PyObject *resultobj; | |
16552 | wxPyPanel *result; | |
16553 | char *kwnames[] = { | |
16554 | NULL | |
16555 | }; | |
16556 | ||
16557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
16558 | { | |
0439c23b | 16559 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16561 | result = (wxPyPanel *)new wxPyPanel(); | |
16562 | ||
16563 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16564 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16565 | } |
16566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16567 | return resultobj; | |
16568 | fail: | |
16569 | return NULL; | |
16570 | } | |
16571 | ||
16572 | ||
16573 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16574 | PyObject *resultobj; | |
16575 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16576 | PyObject *arg2 = (PyObject *) 0 ; | |
16577 | PyObject *arg3 = (PyObject *) 0 ; | |
16578 | PyObject * obj0 = 0 ; | |
16579 | PyObject * obj1 = 0 ; | |
16580 | PyObject * obj2 = 0 ; | |
16581 | char *kwnames[] = { | |
16582 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16583 | }; | |
16584 | ||
16585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16588 | arg2 = obj1; | |
16589 | arg3 = obj2; | |
16590 | { | |
16591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16592 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16593 | ||
16594 | wxPyEndAllowThreads(__tstate); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | } | |
16597 | Py_INCREF(Py_None); resultobj = Py_None; | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | return NULL; | |
16601 | } | |
16602 | ||
16603 | ||
caef1a4d RD |
16604 | static PyObject *_wrap_PyPanel_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16605 | PyObject *resultobj; | |
16606 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16607 | wxSize *arg2 = 0 ; | |
16608 | wxSize temp2 ; | |
16609 | PyObject * obj0 = 0 ; | |
16610 | PyObject * obj1 = 0 ; | |
16611 | char *kwnames[] = { | |
16612 | (char *) "self",(char *) "size", NULL | |
16613 | }; | |
16614 | ||
16615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16618 | { | |
16619 | arg2 = &temp2; | |
16620 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16621 | } | |
16622 | { | |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
16629 | Py_INCREF(Py_None); resultobj = Py_None; | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
d55e5bfc RD |
16636 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16637 | PyObject *resultobj; | |
16638 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16639 | int arg2 ; | |
16640 | int arg3 ; | |
16641 | int arg4 ; | |
16642 | int arg5 ; | |
16643 | PyObject * obj0 = 0 ; | |
16644 | PyObject * obj1 = 0 ; | |
16645 | PyObject * obj2 = 0 ; | |
16646 | PyObject * obj3 = 0 ; | |
16647 | PyObject * obj4 = 0 ; | |
16648 | char *kwnames[] = { | |
16649 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16650 | }; | |
16651 | ||
16652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16655 | arg2 = (int) SWIG_AsInt(obj1); | |
16656 | if (PyErr_Occurred()) SWIG_fail; | |
16657 | arg3 = (int) SWIG_AsInt(obj2); | |
16658 | if (PyErr_Occurred()) SWIG_fail; | |
16659 | arg4 = (int) SWIG_AsInt(obj3); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | arg5 = (int) SWIG_AsInt(obj4); | |
16662 | if (PyErr_Occurred()) SWIG_fail; | |
16663 | { | |
16664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16665 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16666 | ||
16667 | wxPyEndAllowThreads(__tstate); | |
16668 | if (PyErr_Occurred()) SWIG_fail; | |
16669 | } | |
16670 | Py_INCREF(Py_None); resultobj = Py_None; | |
16671 | return resultobj; | |
16672 | fail: | |
16673 | return NULL; | |
16674 | } | |
16675 | ||
16676 | ||
16677 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16678 | PyObject *resultobj; | |
16679 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16680 | int arg2 ; | |
16681 | int arg3 ; | |
16682 | int arg4 ; | |
16683 | int arg5 ; | |
16684 | int arg6 = (int) wxSIZE_AUTO ; | |
16685 | PyObject * obj0 = 0 ; | |
16686 | PyObject * obj1 = 0 ; | |
16687 | PyObject * obj2 = 0 ; | |
16688 | PyObject * obj3 = 0 ; | |
16689 | PyObject * obj4 = 0 ; | |
16690 | PyObject * obj5 = 0 ; | |
16691 | char *kwnames[] = { | |
16692 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16693 | }; | |
16694 | ||
16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16698 | arg2 = (int) SWIG_AsInt(obj1); | |
16699 | if (PyErr_Occurred()) SWIG_fail; | |
16700 | arg3 = (int) SWIG_AsInt(obj2); | |
16701 | if (PyErr_Occurred()) SWIG_fail; | |
16702 | arg4 = (int) SWIG_AsInt(obj3); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | arg5 = (int) SWIG_AsInt(obj4); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | if (obj5) { | |
16707 | arg6 = (int) SWIG_AsInt(obj5); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | { | |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | Py_INCREF(Py_None); resultobj = Py_None; | |
16718 | return resultobj; | |
16719 | fail: | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
16724 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16725 | PyObject *resultobj; | |
16726 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16727 | int arg2 ; | |
16728 | int arg3 ; | |
16729 | PyObject * obj0 = 0 ; | |
16730 | PyObject * obj1 = 0 ; | |
16731 | PyObject * obj2 = 0 ; | |
16732 | char *kwnames[] = { | |
16733 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16734 | }; | |
16735 | ||
16736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16739 | arg2 = (int) SWIG_AsInt(obj1); | |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
16741 | arg3 = (int) SWIG_AsInt(obj2); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | { | |
16744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16745 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16746 | ||
16747 | wxPyEndAllowThreads(__tstate); | |
16748 | if (PyErr_Occurred()) SWIG_fail; | |
16749 | } | |
16750 | Py_INCREF(Py_None); resultobj = Py_None; | |
16751 | return resultobj; | |
16752 | fail: | |
16753 | return NULL; | |
16754 | } | |
16755 | ||
16756 | ||
16757 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16758 | PyObject *resultobj; | |
16759 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16760 | int arg2 ; | |
16761 | int arg3 ; | |
16762 | PyObject * obj0 = 0 ; | |
16763 | PyObject * obj1 = 0 ; | |
16764 | PyObject * obj2 = 0 ; | |
16765 | char *kwnames[] = { | |
16766 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16772 | arg2 = (int) SWIG_AsInt(obj1); | |
16773 | if (PyErr_Occurred()) SWIG_fail; | |
16774 | arg3 = (int) SWIG_AsInt(obj2); | |
16775 | if (PyErr_Occurred()) SWIG_fail; | |
16776 | { | |
16777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16778 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16779 | ||
16780 | wxPyEndAllowThreads(__tstate); | |
16781 | if (PyErr_Occurred()) SWIG_fail; | |
16782 | } | |
16783 | Py_INCREF(Py_None); resultobj = Py_None; | |
16784 | return resultobj; | |
16785 | fail: | |
16786 | return NULL; | |
16787 | } | |
16788 | ||
16789 | ||
16790 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16791 | PyObject *resultobj; | |
16792 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16793 | int *arg2 = (int *) 0 ; | |
16794 | int *arg3 = (int *) 0 ; | |
16795 | int temp2 ; | |
16796 | int temp3 ; | |
16797 | PyObject * obj0 = 0 ; | |
16798 | char *kwnames[] = { | |
16799 | (char *) "self", NULL | |
16800 | }; | |
16801 | ||
16802 | arg2 = &temp2; | |
16803 | arg3 = &temp3; | |
16804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16807 | { | |
16808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16809 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16810 | ||
16811 | wxPyEndAllowThreads(__tstate); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | Py_INCREF(Py_None); resultobj = Py_None; | |
16815 | { | |
16816 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16817 | resultobj = t_output_helper(resultobj,o); | |
16818 | } | |
16819 | { | |
16820 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16821 | resultobj = t_output_helper(resultobj,o); | |
16822 | } | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | return NULL; | |
16826 | } | |
16827 | ||
16828 | ||
16829 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16830 | PyObject *resultobj; | |
16831 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16832 | int *arg2 = (int *) 0 ; | |
16833 | int *arg3 = (int *) 0 ; | |
16834 | int temp2 ; | |
16835 | int temp3 ; | |
16836 | PyObject * obj0 = 0 ; | |
16837 | char *kwnames[] = { | |
16838 | (char *) "self", NULL | |
16839 | }; | |
16840 | ||
16841 | arg2 = &temp2; | |
16842 | arg3 = &temp3; | |
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16846 | { | |
16847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16848 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16849 | ||
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | Py_INCREF(Py_None); resultobj = Py_None; | |
16854 | { | |
16855 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16856 | resultobj = t_output_helper(resultobj,o); | |
16857 | } | |
16858 | { | |
16859 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16860 | resultobj = t_output_helper(resultobj,o); | |
16861 | } | |
16862 | return resultobj; | |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
16868 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16869 | PyObject *resultobj; | |
16870 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16871 | int *arg2 = (int *) 0 ; | |
16872 | int *arg3 = (int *) 0 ; | |
16873 | int temp2 ; | |
16874 | int temp3 ; | |
16875 | PyObject * obj0 = 0 ; | |
16876 | char *kwnames[] = { | |
16877 | (char *) "self", NULL | |
16878 | }; | |
16879 | ||
16880 | arg2 = &temp2; | |
16881 | arg3 = &temp3; | |
16882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16885 | { | |
16886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16887 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16888 | ||
16889 | wxPyEndAllowThreads(__tstate); | |
16890 | if (PyErr_Occurred()) SWIG_fail; | |
16891 | } | |
16892 | Py_INCREF(Py_None); resultobj = Py_None; | |
16893 | { | |
16894 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16895 | resultobj = t_output_helper(resultobj,o); | |
16896 | } | |
16897 | { | |
16898 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16899 | resultobj = t_output_helper(resultobj,o); | |
16900 | } | |
16901 | return resultobj; | |
16902 | fail: | |
16903 | return NULL; | |
16904 | } | |
16905 | ||
16906 | ||
16907 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16908 | PyObject *resultobj; | |
16909 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16910 | wxSize result; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | char *kwnames[] = { | |
16913 | (char *) "self", NULL | |
16914 | }; | |
16915 | ||
16916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16922 | ||
16923 | wxPyEndAllowThreads(__tstate); | |
16924 | if (PyErr_Occurred()) SWIG_fail; | |
16925 | } | |
16926 | { | |
16927 | wxSize * resultptr; | |
16928 | resultptr = new wxSize((wxSize &) result); | |
16929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16930 | } | |
16931 | return resultobj; | |
16932 | fail: | |
16933 | return NULL; | |
16934 | } | |
16935 | ||
16936 | ||
16937 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16938 | PyObject *resultobj; | |
16939 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16940 | wxSize result; | |
16941 | PyObject * obj0 = 0 ; | |
16942 | char *kwnames[] = { | |
16943 | (char *) "self", NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16949 | { | |
16950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16951 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16952 | ||
16953 | wxPyEndAllowThreads(__tstate); | |
16954 | if (PyErr_Occurred()) SWIG_fail; | |
16955 | } | |
16956 | { | |
16957 | wxSize * resultptr; | |
16958 | resultptr = new wxSize((wxSize &) result); | |
16959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16960 | } | |
16961 | return resultobj; | |
16962 | fail: | |
16963 | return NULL; | |
16964 | } | |
16965 | ||
16966 | ||
16967 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16970 | PyObject * obj0 = 0 ; | |
16971 | char *kwnames[] = { | |
16972 | (char *) "self", NULL | |
16973 | }; | |
16974 | ||
16975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16978 | { | |
16979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16980 | (arg1)->base_InitDialog(); | |
16981 | ||
16982 | wxPyEndAllowThreads(__tstate); | |
16983 | if (PyErr_Occurred()) SWIG_fail; | |
16984 | } | |
16985 | Py_INCREF(Py_None); resultobj = Py_None; | |
16986 | return resultobj; | |
16987 | fail: | |
16988 | return NULL; | |
16989 | } | |
16990 | ||
16991 | ||
16992 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16993 | PyObject *resultobj; | |
16994 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16995 | bool result; | |
16996 | PyObject * obj0 = 0 ; | |
16997 | char *kwnames[] = { | |
16998 | (char *) "self", NULL | |
16999 | }; | |
17000 | ||
17001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17004 | { | |
17005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17006 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17007 | ||
17008 | wxPyEndAllowThreads(__tstate); | |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
17010 | } | |
17011 | { | |
17012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17013 | } | |
17014 | return resultobj; | |
17015 | fail: | |
17016 | return NULL; | |
17017 | } | |
17018 | ||
17019 | ||
17020 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17021 | PyObject *resultobj; | |
17022 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17023 | bool result; | |
17024 | PyObject * obj0 = 0 ; | |
17025 | char *kwnames[] = { | |
17026 | (char *) "self", NULL | |
17027 | }; | |
17028 | ||
17029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17032 | { | |
17033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17034 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17035 | ||
17036 | wxPyEndAllowThreads(__tstate); | |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
17039 | { | |
17040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17041 | } | |
17042 | return resultobj; | |
17043 | fail: | |
17044 | return NULL; | |
17045 | } | |
17046 | ||
17047 | ||
17048 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17049 | PyObject *resultobj; | |
17050 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17051 | bool result; | |
17052 | PyObject * obj0 = 0 ; | |
17053 | char *kwnames[] = { | |
17054 | (char *) "self", NULL | |
17055 | }; | |
17056 | ||
17057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
17058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17060 | { | |
17061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17062 | result = (bool)(arg1)->base_Validate(); | |
17063 | ||
17064 | wxPyEndAllowThreads(__tstate); | |
17065 | if (PyErr_Occurred()) SWIG_fail; | |
17066 | } | |
17067 | { | |
17068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17069 | } | |
17070 | return resultobj; | |
17071 | fail: | |
17072 | return NULL; | |
17073 | } | |
17074 | ||
17075 | ||
17076 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17077 | PyObject *resultobj; | |
17078 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17079 | bool result; | |
17080 | PyObject * obj0 = 0 ; | |
17081 | char *kwnames[] = { | |
17082 | (char *) "self", NULL | |
17083 | }; | |
17084 | ||
17085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17088 | { | |
17089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17090 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
17091 | ||
17092 | wxPyEndAllowThreads(__tstate); | |
17093 | if (PyErr_Occurred()) SWIG_fail; | |
17094 | } | |
17095 | { | |
17096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17097 | } | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
17104 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17105 | PyObject *resultobj; | |
17106 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17107 | bool result; | |
17108 | PyObject * obj0 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self", NULL | |
17111 | }; | |
17112 | ||
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17116 | { | |
17117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17118 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17119 | ||
17120 | wxPyEndAllowThreads(__tstate); | |
17121 | if (PyErr_Occurred()) SWIG_fail; | |
17122 | } | |
17123 | { | |
17124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17125 | } | |
17126 | return resultobj; | |
17127 | fail: | |
17128 | return NULL; | |
17129 | } | |
17130 | ||
17131 | ||
17132 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17133 | PyObject *resultobj; | |
17134 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17135 | wxSize result; | |
17136 | PyObject * obj0 = 0 ; | |
17137 | char *kwnames[] = { | |
17138 | (char *) "self", NULL | |
17139 | }; | |
17140 | ||
17141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
17147 | ||
17148 | wxPyEndAllowThreads(__tstate); | |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
17150 | } | |
17151 | { | |
17152 | wxSize * resultptr; | |
17153 | resultptr = new wxSize((wxSize &) result); | |
17154 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17155 | } | |
17156 | return resultobj; | |
17157 | fail: | |
17158 | return NULL; | |
17159 | } | |
17160 | ||
17161 | ||
17162 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17163 | PyObject *resultobj; | |
17164 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17165 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17166 | PyObject * obj0 = 0 ; | |
17167 | PyObject * obj1 = 0 ; | |
17168 | char *kwnames[] = { | |
17169 | (char *) "self",(char *) "child", NULL | |
17170 | }; | |
17171 | ||
17172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17175 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17177 | { | |
17178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17179 | (arg1)->base_AddChild(arg2); | |
17180 | ||
17181 | wxPyEndAllowThreads(__tstate); | |
17182 | if (PyErr_Occurred()) SWIG_fail; | |
17183 | } | |
17184 | Py_INCREF(Py_None); resultobj = Py_None; | |
17185 | return resultobj; | |
17186 | fail: | |
17187 | return NULL; | |
17188 | } | |
17189 | ||
17190 | ||
17191 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17192 | PyObject *resultobj; | |
17193 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17194 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17195 | PyObject * obj0 = 0 ; | |
17196 | PyObject * obj1 = 0 ; | |
17197 | char *kwnames[] = { | |
17198 | (char *) "self",(char *) "child", NULL | |
17199 | }; | |
17200 | ||
17201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17206 | { | |
17207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17208 | (arg1)->base_RemoveChild(arg2); | |
17209 | ||
17210 | wxPyEndAllowThreads(__tstate); | |
17211 | if (PyErr_Occurred()) SWIG_fail; | |
17212 | } | |
17213 | Py_INCREF(Py_None); resultobj = Py_None; | |
17214 | return resultobj; | |
17215 | fail: | |
17216 | return NULL; | |
17217 | } | |
17218 | ||
17219 | ||
17220 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17221 | PyObject *resultobj; | |
17222 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17223 | bool result; | |
17224 | PyObject * obj0 = 0 ; | |
17225 | char *kwnames[] = { | |
17226 | (char *) "self", NULL | |
17227 | }; | |
17228 | ||
17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17232 | { | |
17233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 17234 | result = (bool)((wxPyPanel const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
17235 | |
17236 | wxPyEndAllowThreads(__tstate); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
17239 | { | |
17240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17241 | } | |
17242 | return resultobj; | |
17243 | fail: | |
17244 | return NULL; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17249 | PyObject *resultobj; | |
17250 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17251 | wxColour *arg2 = 0 ; | |
17252 | wxColour temp2 ; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | PyObject * obj1 = 0 ; | |
17255 | char *kwnames[] = { | |
17256 | (char *) "self",(char *) "c", NULL | |
17257 | }; | |
17258 | ||
17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17262 | { | |
17263 | arg2 = &temp2; | |
17264 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17265 | } | |
17266 | { | |
17267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17268 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17269 | ||
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
17273 | Py_INCREF(Py_None); resultobj = Py_None; | |
17274 | return resultobj; | |
17275 | fail: | |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
caef1a4d RD |
17280 | static PyObject *_wrap_PyPanel_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
17281 | PyObject *resultobj; | |
17282 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17283 | wxVisualAttributes result; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
17290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | result = (arg1)->base_GetDefaultAttributes(); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | { | |
17300 | wxVisualAttributes * resultptr; | |
17301 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
17302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
17303 | } | |
17304 | return resultobj; | |
17305 | fail: | |
17306 | return NULL; | |
17307 | } | |
17308 | ||
17309 | ||
d55e5bfc RD |
17310 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { |
17311 | PyObject *obj; | |
17312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17313 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
17314 | Py_INCREF(obj); | |
17315 | return Py_BuildValue((char *)""); | |
17316 | } | |
17317 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17318 | PyObject *resultobj; | |
17319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 17320 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
17321 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17322 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17323 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17324 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17325 | long arg5 = (long) 0 ; | |
17326 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
17327 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17328 | wxPyScrolledWindow *result; | |
17329 | wxPoint temp3 ; | |
17330 | wxSize temp4 ; | |
17331 | bool temp6 = False ; | |
17332 | PyObject * obj0 = 0 ; | |
17333 | PyObject * obj1 = 0 ; | |
17334 | PyObject * obj2 = 0 ; | |
17335 | PyObject * obj3 = 0 ; | |
17336 | PyObject * obj4 = 0 ; | |
17337 | PyObject * obj5 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17340 | }; | |
17341 | ||
248ed943 | 17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
17343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
17345 | if (obj1) { |
17346 | arg2 = (int const) SWIG_AsInt(obj1); | |
17347 | if (PyErr_Occurred()) SWIG_fail; | |
17348 | } | |
d55e5bfc RD |
17349 | if (obj2) { |
17350 | { | |
17351 | arg3 = &temp3; | |
17352 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17353 | } | |
17354 | } | |
17355 | if (obj3) { | |
17356 | { | |
17357 | arg4 = &temp4; | |
17358 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17359 | } | |
17360 | } | |
17361 | if (obj4) { | |
17362 | arg5 = (long) SWIG_AsLong(obj4); | |
17363 | if (PyErr_Occurred()) SWIG_fail; | |
17364 | } | |
17365 | if (obj5) { | |
17366 | { | |
17367 | arg6 = wxString_in_helper(obj5); | |
17368 | if (arg6 == NULL) SWIG_fail; | |
17369 | temp6 = True; | |
17370 | } | |
17371 | } | |
17372 | { | |
0439c23b | 17373 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17375 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17376 | ||
17377 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17378 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17379 | } |
17380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17381 | { | |
17382 | if (temp6) | |
17383 | delete arg6; | |
17384 | } | |
17385 | return resultobj; | |
17386 | fail: | |
17387 | { | |
17388 | if (temp6) | |
17389 | delete arg6; | |
17390 | } | |
17391 | return NULL; | |
17392 | } | |
17393 | ||
17394 | ||
17395 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17396 | PyObject *resultobj; | |
17397 | wxPyScrolledWindow *result; | |
17398 | char *kwnames[] = { | |
17399 | NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
17403 | { | |
0439c23b | 17404 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17406 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
17407 | ||
17408 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17409 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17410 | } |
17411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17419 | PyObject *resultobj; | |
17420 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17421 | PyObject *arg2 = (PyObject *) 0 ; | |
17422 | PyObject *arg3 = (PyObject *) 0 ; | |
17423 | PyObject * obj0 = 0 ; | |
17424 | PyObject * obj1 = 0 ; | |
17425 | PyObject * obj2 = 0 ; | |
17426 | char *kwnames[] = { | |
17427 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17428 | }; | |
17429 | ||
17430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17433 | arg2 = obj1; | |
17434 | arg3 = obj2; | |
17435 | { | |
17436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17437 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17438 | ||
17439 | wxPyEndAllowThreads(__tstate); | |
17440 | if (PyErr_Occurred()) SWIG_fail; | |
17441 | } | |
17442 | Py_INCREF(Py_None); resultobj = Py_None; | |
17443 | return resultobj; | |
17444 | fail: | |
17445 | return NULL; | |
17446 | } | |
17447 | ||
17448 | ||
caef1a4d RD |
17449 | static PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
17450 | PyObject *resultobj; | |
17451 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17452 | wxSize *arg2 = 0 ; | |
17453 | wxSize temp2 ; | |
17454 | PyObject * obj0 = 0 ; | |
17455 | PyObject * obj1 = 0 ; | |
17456 | char *kwnames[] = { | |
17457 | (char *) "self",(char *) "size", NULL | |
17458 | }; | |
17459 | ||
17460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
17461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17463 | { | |
17464 | arg2 = &temp2; | |
17465 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17466 | } | |
17467 | { | |
17468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17469 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
17470 | ||
17471 | wxPyEndAllowThreads(__tstate); | |
17472 | if (PyErr_Occurred()) SWIG_fail; | |
17473 | } | |
17474 | Py_INCREF(Py_None); resultobj = Py_None; | |
17475 | return resultobj; | |
17476 | fail: | |
17477 | return NULL; | |
17478 | } | |
17479 | ||
17480 | ||
d55e5bfc RD |
17481 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
17482 | PyObject *resultobj; | |
17483 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17484 | int arg2 ; | |
17485 | int arg3 ; | |
17486 | int arg4 ; | |
17487 | int arg5 ; | |
17488 | PyObject * obj0 = 0 ; | |
17489 | PyObject * obj1 = 0 ; | |
17490 | PyObject * obj2 = 0 ; | |
17491 | PyObject * obj3 = 0 ; | |
17492 | PyObject * obj4 = 0 ; | |
17493 | char *kwnames[] = { | |
17494 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17495 | }; | |
17496 | ||
17497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17500 | arg2 = (int) SWIG_AsInt(obj1); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | arg3 = (int) SWIG_AsInt(obj2); | |
17503 | if (PyErr_Occurred()) SWIG_fail; | |
17504 | arg4 = (int) SWIG_AsInt(obj3); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | arg5 = (int) SWIG_AsInt(obj4); | |
17507 | if (PyErr_Occurred()) SWIG_fail; | |
17508 | { | |
17509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17510 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
17511 | ||
17512 | wxPyEndAllowThreads(__tstate); | |
17513 | if (PyErr_Occurred()) SWIG_fail; | |
17514 | } | |
17515 | Py_INCREF(Py_None); resultobj = Py_None; | |
17516 | return resultobj; | |
17517 | fail: | |
17518 | return NULL; | |
17519 | } | |
17520 | ||
17521 | ||
17522 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17523 | PyObject *resultobj; | |
17524 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17525 | int arg2 ; | |
17526 | int arg3 ; | |
17527 | int arg4 ; | |
17528 | int arg5 ; | |
17529 | int arg6 = (int) wxSIZE_AUTO ; | |
17530 | PyObject * obj0 = 0 ; | |
17531 | PyObject * obj1 = 0 ; | |
17532 | PyObject * obj2 = 0 ; | |
17533 | PyObject * obj3 = 0 ; | |
17534 | PyObject * obj4 = 0 ; | |
17535 | PyObject * obj5 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17543 | arg2 = (int) SWIG_AsInt(obj1); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | arg3 = (int) SWIG_AsInt(obj2); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | arg4 = (int) SWIG_AsInt(obj3); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | arg5 = (int) SWIG_AsInt(obj4); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | if (obj5) { | |
17552 | arg6 = (int) SWIG_AsInt(obj5); | |
17553 | if (PyErr_Occurred()) SWIG_fail; | |
17554 | } | |
17555 | { | |
17556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17557 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
17558 | ||
17559 | wxPyEndAllowThreads(__tstate); | |
17560 | if (PyErr_Occurred()) SWIG_fail; | |
17561 | } | |
17562 | Py_INCREF(Py_None); resultobj = Py_None; | |
17563 | return resultobj; | |
17564 | fail: | |
17565 | return NULL; | |
17566 | } | |
17567 | ||
17568 | ||
17569 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17570 | PyObject *resultobj; | |
17571 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17572 | int arg2 ; | |
17573 | int arg3 ; | |
17574 | PyObject * obj0 = 0 ; | |
17575 | PyObject * obj1 = 0 ; | |
17576 | PyObject * obj2 = 0 ; | |
17577 | char *kwnames[] = { | |
17578 | (char *) "self",(char *) "width",(char *) "height", NULL | |
17579 | }; | |
17580 | ||
17581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17584 | arg2 = (int) SWIG_AsInt(obj1); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | arg3 = (int) SWIG_AsInt(obj2); | |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
17588 | { | |
17589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17590 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
17591 | ||
17592 | wxPyEndAllowThreads(__tstate); | |
17593 | if (PyErr_Occurred()) SWIG_fail; | |
17594 | } | |
17595 | Py_INCREF(Py_None); resultobj = Py_None; | |
17596 | return resultobj; | |
17597 | fail: | |
17598 | return NULL; | |
17599 | } | |
17600 | ||
17601 | ||
17602 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17603 | PyObject *resultobj; | |
17604 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17605 | int arg2 ; | |
17606 | int arg3 ; | |
17607 | PyObject * obj0 = 0 ; | |
17608 | PyObject * obj1 = 0 ; | |
17609 | PyObject * obj2 = 0 ; | |
17610 | char *kwnames[] = { | |
17611 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17612 | }; | |
17613 | ||
17614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17617 | arg2 = (int) SWIG_AsInt(obj1); | |
17618 | if (PyErr_Occurred()) SWIG_fail; | |
17619 | arg3 = (int) SWIG_AsInt(obj2); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | { | |
17622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17623 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
17624 | ||
17625 | wxPyEndAllowThreads(__tstate); | |
17626 | if (PyErr_Occurred()) SWIG_fail; | |
17627 | } | |
17628 | Py_INCREF(Py_None); resultobj = Py_None; | |
17629 | return resultobj; | |
17630 | fail: | |
17631 | return NULL; | |
17632 | } | |
17633 | ||
17634 | ||
17635 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17636 | PyObject *resultobj; | |
17637 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17638 | int *arg2 = (int *) 0 ; | |
17639 | int *arg3 = (int *) 0 ; | |
17640 | int temp2 ; | |
17641 | int temp3 ; | |
17642 | PyObject * obj0 = 0 ; | |
17643 | char *kwnames[] = { | |
17644 | (char *) "self", NULL | |
17645 | }; | |
17646 | ||
17647 | arg2 = &temp2; | |
17648 | arg3 = &temp3; | |
17649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
17650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17652 | { | |
17653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17654 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
17655 | ||
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
17659 | Py_INCREF(Py_None); resultobj = Py_None; | |
17660 | { | |
17661 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17662 | resultobj = t_output_helper(resultobj,o); | |
17663 | } | |
17664 | { | |
17665 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17666 | resultobj = t_output_helper(resultobj,o); | |
17667 | } | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | return NULL; | |
17671 | } | |
17672 | ||
17673 | ||
17674 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17675 | PyObject *resultobj; | |
17676 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17677 | int *arg2 = (int *) 0 ; | |
17678 | int *arg3 = (int *) 0 ; | |
17679 | int temp2 ; | |
17680 | int temp3 ; | |
17681 | PyObject * obj0 = 0 ; | |
17682 | char *kwnames[] = { | |
17683 | (char *) "self", NULL | |
17684 | }; | |
17685 | ||
17686 | arg2 = &temp2; | |
17687 | arg3 = &temp3; | |
17688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
17689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17691 | { | |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
17694 | ||
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | Py_INCREF(Py_None); resultobj = Py_None; | |
17699 | { | |
17700 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17701 | resultobj = t_output_helper(resultobj,o); | |
17702 | } | |
17703 | { | |
17704 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17705 | resultobj = t_output_helper(resultobj,o); | |
17706 | } | |
17707 | return resultobj; | |
17708 | fail: | |
17709 | return NULL; | |
17710 | } | |
17711 | ||
17712 | ||
17713 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17714 | PyObject *resultobj; | |
17715 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17716 | int *arg2 = (int *) 0 ; | |
17717 | int *arg3 = (int *) 0 ; | |
17718 | int temp2 ; | |
17719 | int temp3 ; | |
17720 | PyObject * obj0 = 0 ; | |
17721 | char *kwnames[] = { | |
17722 | (char *) "self", NULL | |
17723 | }; | |
17724 | ||
17725 | arg2 = &temp2; | |
17726 | arg3 = &temp3; | |
17727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
17728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17730 | { | |
17731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17732 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
17733 | ||
17734 | wxPyEndAllowThreads(__tstate); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
17736 | } | |
17737 | Py_INCREF(Py_None); resultobj = Py_None; | |
17738 | { | |
17739 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17740 | resultobj = t_output_helper(resultobj,o); | |
17741 | } | |
17742 | { | |
17743 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17744 | resultobj = t_output_helper(resultobj,o); | |
17745 | } | |
17746 | return resultobj; | |
17747 | fail: | |
17748 | return NULL; | |
17749 | } | |
17750 | ||
17751 | ||
17752 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17753 | PyObject *resultobj; | |
17754 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17755 | wxSize result; | |
17756 | PyObject * obj0 = 0 ; | |
17757 | char *kwnames[] = { | |
17758 | (char *) "self", NULL | |
17759 | }; | |
17760 | ||
17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
17762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17764 | { | |
17765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17766 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17767 | ||
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
17771 | { | |
17772 | wxSize * resultptr; | |
17773 | resultptr = new wxSize((wxSize &) result); | |
17774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17775 | } | |
17776 | return resultobj; | |
17777 | fail: | |
17778 | return NULL; | |
17779 | } | |
17780 | ||
17781 | ||
17782 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17783 | PyObject *resultobj; | |
17784 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17785 | wxSize result; | |
17786 | PyObject * obj0 = 0 ; | |
17787 | char *kwnames[] = { | |
17788 | (char *) "self", NULL | |
17789 | }; | |
17790 | ||
17791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17794 | { | |
17795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17796 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17797 | ||
17798 | wxPyEndAllowThreads(__tstate); | |
17799 | if (PyErr_Occurred()) SWIG_fail; | |
17800 | } | |
17801 | { | |
17802 | wxSize * resultptr; | |
17803 | resultptr = new wxSize((wxSize &) result); | |
17804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17805 | } | |
17806 | return resultobj; | |
17807 | fail: | |
17808 | return NULL; | |
17809 | } | |
17810 | ||
17811 | ||
17812 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17813 | PyObject *resultobj; | |
17814 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17815 | PyObject * obj0 = 0 ; | |
17816 | char *kwnames[] = { | |
17817 | (char *) "self", NULL | |
17818 | }; | |
17819 | ||
17820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17823 | { | |
17824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17825 | (arg1)->base_InitDialog(); | |
17826 | ||
17827 | wxPyEndAllowThreads(__tstate); | |
17828 | if (PyErr_Occurred()) SWIG_fail; | |
17829 | } | |
17830 | Py_INCREF(Py_None); resultobj = Py_None; | |
17831 | return resultobj; | |
17832 | fail: | |
17833 | return NULL; | |
17834 | } | |
17835 | ||
17836 | ||
17837 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17838 | PyObject *resultobj; | |
17839 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17840 | bool result; | |
17841 | PyObject * obj0 = 0 ; | |
17842 | char *kwnames[] = { | |
17843 | (char *) "self", NULL | |
17844 | }; | |
17845 | ||
17846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17849 | { | |
17850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17851 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17852 | ||
17853 | wxPyEndAllowThreads(__tstate); | |
17854 | if (PyErr_Occurred()) SWIG_fail; | |
17855 | } | |
17856 | { | |
17857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17858 | } | |
17859 | return resultobj; | |
17860 | fail: | |
17861 | return NULL; | |
17862 | } | |
17863 | ||
17864 | ||
17865 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17866 | PyObject *resultobj; | |
17867 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17868 | bool result; | |
17869 | PyObject * obj0 = 0 ; | |
17870 | char *kwnames[] = { | |
17871 | (char *) "self", NULL | |
17872 | }; | |
17873 | ||
17874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17877 | { | |
17878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17879 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17880 | ||
17881 | wxPyEndAllowThreads(__tstate); | |
17882 | if (PyErr_Occurred()) SWIG_fail; | |
17883 | } | |
17884 | { | |
17885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17886 | } | |
17887 | return resultobj; | |
17888 | fail: | |
17889 | return NULL; | |
17890 | } | |
17891 | ||
17892 | ||
17893 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17894 | PyObject *resultobj; | |
17895 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17896 | bool result; | |
17897 | PyObject * obj0 = 0 ; | |
17898 | char *kwnames[] = { | |
17899 | (char *) "self", NULL | |
17900 | }; | |
17901 | ||
17902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17905 | { | |
17906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17907 | result = (bool)(arg1)->base_Validate(); | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
17912 | { | |
17913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17914 | } | |
17915 | return resultobj; | |
17916 | fail: | |
17917 | return NULL; | |
17918 | } | |
17919 | ||
17920 | ||
17921 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17922 | PyObject *resultobj; | |
17923 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17924 | bool result; | |
17925 | PyObject * obj0 = 0 ; | |
17926 | char *kwnames[] = { | |
17927 | (char *) "self", NULL | |
17928 | }; | |
17929 | ||
17930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17933 | { | |
17934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17935 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17936 | ||
17937 | wxPyEndAllowThreads(__tstate); | |
17938 | if (PyErr_Occurred()) SWIG_fail; | |
17939 | } | |
17940 | { | |
17941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17942 | } | |
17943 | return resultobj; | |
17944 | fail: | |
17945 | return NULL; | |
17946 | } | |
17947 | ||
17948 | ||
17949 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17950 | PyObject *resultobj; | |
17951 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17952 | bool result; | |
17953 | PyObject * obj0 = 0 ; | |
17954 | char *kwnames[] = { | |
17955 | (char *) "self", NULL | |
17956 | }; | |
17957 | ||
17958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17961 | { | |
17962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17963 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17964 | ||
17965 | wxPyEndAllowThreads(__tstate); | |
17966 | if (PyErr_Occurred()) SWIG_fail; | |
17967 | } | |
17968 | { | |
17969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17970 | } | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
17974 | } | |
17975 | ||
17976 | ||
17977 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17978 | PyObject *resultobj; | |
17979 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17980 | wxSize result; | |
17981 | PyObject * obj0 = 0 ; | |
17982 | char *kwnames[] = { | |
17983 | (char *) "self", NULL | |
17984 | }; | |
17985 | ||
17986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17989 | { | |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17992 | ||
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
17996 | { | |
17997 | wxSize * resultptr; | |
17998 | resultptr = new wxSize((wxSize &) result); | |
17999 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18000 | } | |
18001 | return resultobj; | |
18002 | fail: | |
18003 | return NULL; | |
18004 | } | |
18005 | ||
18006 | ||
18007 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18008 | PyObject *resultobj; | |
18009 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18011 | PyObject * obj0 = 0 ; | |
18012 | PyObject * obj1 = 0 ; | |
18013 | char *kwnames[] = { | |
18014 | (char *) "self",(char *) "child", NULL | |
18015 | }; | |
18016 | ||
18017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
18018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18022 | { | |
18023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18024 | (arg1)->base_AddChild(arg2); | |
18025 | ||
18026 | wxPyEndAllowThreads(__tstate); | |
18027 | if (PyErr_Occurred()) SWIG_fail; | |
18028 | } | |
18029 | Py_INCREF(Py_None); resultobj = Py_None; | |
18030 | return resultobj; | |
18031 | fail: | |
18032 | return NULL; | |
18033 | } | |
18034 | ||
18035 | ||
18036 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18037 | PyObject *resultobj; | |
18038 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18039 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18040 | PyObject * obj0 = 0 ; | |
18041 | PyObject * obj1 = 0 ; | |
18042 | char *kwnames[] = { | |
18043 | (char *) "self",(char *) "child", NULL | |
18044 | }; | |
18045 | ||
18046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
18047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18051 | { | |
18052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18053 | (arg1)->base_RemoveChild(arg2); | |
18054 | ||
18055 | wxPyEndAllowThreads(__tstate); | |
18056 | if (PyErr_Occurred()) SWIG_fail; | |
18057 | } | |
18058 | Py_INCREF(Py_None); resultobj = Py_None; | |
18059 | return resultobj; | |
18060 | fail: | |
18061 | return NULL; | |
18062 | } | |
18063 | ||
18064 | ||
18065 | static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18066 | PyObject *resultobj; | |
18067 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18068 | bool result; | |
18069 | PyObject * obj0 = 0 ; | |
18070 | char *kwnames[] = { | |
18071 | (char *) "self", NULL | |
18072 | }; | |
18073 | ||
18074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
18075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18077 | { | |
18078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 18079 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
18080 | |
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | { | |
18085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18086 | } | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
18093 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18094 | PyObject *resultobj; | |
18095 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18096 | wxColour *arg2 = 0 ; | |
18097 | wxColour temp2 ; | |
18098 | PyObject * obj0 = 0 ; | |
18099 | PyObject * obj1 = 0 ; | |
18100 | char *kwnames[] = { | |
18101 | (char *) "self",(char *) "c", NULL | |
18102 | }; | |
18103 | ||
18104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
18105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18107 | { | |
18108 | arg2 = &temp2; | |
18109 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18110 | } | |
18111 | { | |
18112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18113 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
18114 | ||
18115 | wxPyEndAllowThreads(__tstate); | |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
18117 | } | |
18118 | Py_INCREF(Py_None); resultobj = Py_None; | |
18119 | return resultobj; | |
18120 | fail: | |
18121 | return NULL; | |
18122 | } | |
18123 | ||
18124 | ||
caef1a4d RD |
18125 | static PyObject *_wrap_PyScrolledWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18126 | PyObject *resultobj; | |
18127 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18128 | wxVisualAttributes result; | |
18129 | PyObject * obj0 = 0 ; | |
18130 | char *kwnames[] = { | |
18131 | (char *) "self", NULL | |
18132 | }; | |
18133 | ||
18134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
18135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18137 | { | |
18138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18139 | result = (arg1)->base_GetDefaultAttributes(); | |
18140 | ||
18141 | wxPyEndAllowThreads(__tstate); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | { | |
18145 | wxVisualAttributes * resultptr; | |
18146 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18147 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18148 | } | |
18149 | return resultobj; | |
18150 | fail: | |
18151 | return NULL; | |
18152 | } | |
18153 | ||
18154 | ||
d55e5bfc RD |
18155 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
18156 | PyObject *obj; | |
18157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18158 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
18159 | Py_INCREF(obj); | |
18160 | return Py_BuildValue((char *)""); | |
18161 | } | |
18162 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
18163 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
18164 | return 1; | |
18165 | } | |
18166 | ||
18167 | ||
18168 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
18169 | PyObject *pyobj; | |
18170 | ||
18171 | { | |
18172 | #if wxUSE_UNICODE | |
18173 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
18174 | #else | |
18175 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
18176 | #endif | |
18177 | } | |
18178 | return pyobj; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
18183 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
18184 | return 1; | |
18185 | } | |
18186 | ||
18187 | ||
18188 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
18189 | PyObject *pyobj; | |
18190 | ||
18191 | { | |
18192 | #if wxUSE_UNICODE | |
18193 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
18194 | #else | |
18195 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
18196 | #endif | |
18197 | } | |
18198 | return pyobj; | |
18199 | } | |
18200 | ||
18201 | ||
09c21d3b | 18202 | static PyObject *_wrap_new_PrintData__SWIG_0(PyObject *self, PyObject *args) { |
d55e5bfc RD |
18203 | PyObject *resultobj; |
18204 | wxPrintData *result; | |
d55e5bfc | 18205 | |
09c21d3b | 18206 | if(!PyArg_ParseTuple(args,(char *)":new_PrintData")) goto fail; |
d55e5bfc RD |
18207 | { |
18208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18209 | result = (wxPrintData *)new wxPrintData(); | |
18210 | ||
18211 | wxPyEndAllowThreads(__tstate); | |
18212 | if (PyErr_Occurred()) SWIG_fail; | |
18213 | } | |
18214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
18215 | return resultobj; | |
18216 | fail: | |
18217 | return NULL; | |
18218 | } | |
18219 | ||
18220 | ||
09c21d3b RD |
18221 | static PyObject *_wrap_new_PrintData__SWIG_1(PyObject *self, PyObject *args) { |
18222 | PyObject *resultobj; | |
18223 | wxPrintData *arg1 = 0 ; | |
18224 | wxPrintData *result; | |
18225 | PyObject * obj0 = 0 ; | |
18226 | ||
18227 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintData",&obj0)) goto fail; | |
18228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18230 | SWIG_fail; | |
18231 | if (arg1 == NULL) { | |
18232 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18233 | SWIG_fail; | |
18234 | } | |
18235 | { | |
18236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18237 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
18238 | ||
18239 | wxPyEndAllowThreads(__tstate); | |
18240 | if (PyErr_Occurred()) SWIG_fail; | |
18241 | } | |
18242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
18243 | return resultobj; | |
18244 | fail: | |
18245 | return NULL; | |
18246 | } | |
18247 | ||
18248 | ||
18249 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { | |
18250 | int argc; | |
18251 | PyObject *argv[2]; | |
18252 | int ii; | |
18253 | ||
18254 | argc = PyObject_Length(args); | |
18255 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
18256 | argv[ii] = PyTuple_GetItem(args,ii); | |
18257 | } | |
18258 | if (argc == 0) { | |
18259 | return _wrap_new_PrintData__SWIG_0(self,args); | |
18260 | } | |
18261 | if (argc == 1) { | |
18262 | int _v; | |
18263 | { | |
18264 | void *ptr; | |
18265 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
18266 | _v = 0; | |
18267 | PyErr_Clear(); | |
18268 | } else { | |
18269 | _v = 1; | |
18270 | } | |
18271 | } | |
18272 | if (_v) { | |
18273 | return _wrap_new_PrintData__SWIG_1(self,args); | |
18274 | } | |
18275 | } | |
18276 | ||
18277 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintData'"); | |
18278 | return NULL; | |
18279 | } | |
18280 | ||
18281 | ||
d55e5bfc RD |
18282 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
18283 | PyObject *resultobj; | |
18284 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18285 | PyObject * obj0 = 0 ; | |
18286 | char *kwnames[] = { | |
18287 | (char *) "self", NULL | |
18288 | }; | |
18289 | ||
18290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
18291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18293 | { | |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | delete arg1; | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
18300 | Py_INCREF(Py_None); resultobj = Py_None; | |
18301 | return resultobj; | |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
18307 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18308 | PyObject *resultobj; | |
18309 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18310 | int result; | |
18311 | PyObject * obj0 = 0 ; | |
18312 | char *kwnames[] = { | |
18313 | (char *) "self", NULL | |
18314 | }; | |
18315 | ||
18316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
18317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18319 | { | |
18320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18321 | result = (int)(arg1)->GetNoCopies(); | |
18322 | ||
18323 | wxPyEndAllowThreads(__tstate); | |
18324 | if (PyErr_Occurred()) SWIG_fail; | |
18325 | } | |
18326 | resultobj = SWIG_FromInt((int)result); | |
18327 | return resultobj; | |
18328 | fail: | |
18329 | return NULL; | |
18330 | } | |
18331 | ||
18332 | ||
18333 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18334 | PyObject *resultobj; | |
18335 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18336 | bool result; | |
18337 | PyObject * obj0 = 0 ; | |
18338 | char *kwnames[] = { | |
18339 | (char *) "self", NULL | |
18340 | }; | |
18341 | ||
18342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
18343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18345 | { | |
18346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18347 | result = (bool)(arg1)->GetCollate(); | |
18348 | ||
18349 | wxPyEndAllowThreads(__tstate); | |
18350 | if (PyErr_Occurred()) SWIG_fail; | |
18351 | } | |
18352 | { | |
18353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18354 | } | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
18361 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18362 | PyObject *resultobj; | |
18363 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18364 | int result; | |
18365 | PyObject * obj0 = 0 ; | |
18366 | char *kwnames[] = { | |
18367 | (char *) "self", NULL | |
18368 | }; | |
18369 | ||
18370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
18371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18373 | { | |
18374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18375 | result = (int)(arg1)->GetOrientation(); | |
18376 | ||
18377 | wxPyEndAllowThreads(__tstate); | |
18378 | if (PyErr_Occurred()) SWIG_fail; | |
18379 | } | |
18380 | resultobj = SWIG_FromInt((int)result); | |
18381 | return resultobj; | |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
18387 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18388 | PyObject *resultobj; | |
18389 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18390 | bool result; | |
18391 | PyObject * obj0 = 0 ; | |
18392 | char *kwnames[] = { | |
18393 | (char *) "self", NULL | |
18394 | }; | |
18395 | ||
18396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
18397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18399 | { | |
18400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18401 | result = (bool)(arg1)->Ok(); | |
18402 | ||
18403 | wxPyEndAllowThreads(__tstate); | |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
18405 | } | |
18406 | { | |
18407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18408 | } | |
18409 | return resultobj; | |
18410 | fail: | |
18411 | return NULL; | |
18412 | } | |
18413 | ||
18414 | ||
18415 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18416 | PyObject *resultobj; | |
18417 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18418 | wxString *result; | |
18419 | PyObject * obj0 = 0 ; | |
18420 | char *kwnames[] = { | |
18421 | (char *) "self", NULL | |
18422 | }; | |
18423 | ||
18424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
18425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18427 | { | |
18428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18429 | { | |
18430 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
18431 | result = (wxString *) &_result_ref; | |
18432 | } | |
18433 | ||
18434 | wxPyEndAllowThreads(__tstate); | |
18435 | if (PyErr_Occurred()) SWIG_fail; | |
18436 | } | |
18437 | { | |
18438 | #if wxUSE_UNICODE | |
18439 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18440 | #else | |
18441 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18442 | #endif | |
18443 | } | |
18444 | return resultobj; | |
18445 | fail: | |
18446 | return NULL; | |
18447 | } | |
18448 | ||
18449 | ||
18450 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18451 | PyObject *resultobj; | |
18452 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18453 | bool result; | |
18454 | PyObject * obj0 = 0 ; | |
18455 | char *kwnames[] = { | |
18456 | (char *) "self", NULL | |
18457 | }; | |
18458 | ||
18459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
18460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18462 | { | |
18463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18464 | result = (bool)(arg1)->GetColour(); | |
18465 | ||
18466 | wxPyEndAllowThreads(__tstate); | |
18467 | if (PyErr_Occurred()) SWIG_fail; | |
18468 | } | |
18469 | { | |
18470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18471 | } | |
18472 | return resultobj; | |
18473 | fail: | |
18474 | return NULL; | |
18475 | } | |
18476 | ||
18477 | ||
18478 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18479 | PyObject *resultobj; | |
18480 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18481 | int result; | |
18482 | PyObject * obj0 = 0 ; | |
18483 | char *kwnames[] = { | |
18484 | (char *) "self", NULL | |
18485 | }; | |
18486 | ||
18487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
18488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18490 | { | |
18491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18492 | result = (int)(arg1)->GetDuplex(); | |
18493 | ||
18494 | wxPyEndAllowThreads(__tstate); | |
18495 | if (PyErr_Occurred()) SWIG_fail; | |
18496 | } | |
18497 | resultobj = SWIG_FromInt((int)result); | |
18498 | return resultobj; | |
18499 | fail: | |
18500 | return NULL; | |
18501 | } | |
18502 | ||
18503 | ||
18504 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18505 | PyObject *resultobj; | |
18506 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18507 | int result; | |
18508 | PyObject * obj0 = 0 ; | |
18509 | char *kwnames[] = { | |
18510 | (char *) "self", NULL | |
18511 | }; | |
18512 | ||
18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
18514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18516 | { | |
18517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18518 | result = (int)(arg1)->GetPaperId(); | |
18519 | ||
18520 | wxPyEndAllowThreads(__tstate); | |
18521 | if (PyErr_Occurred()) SWIG_fail; | |
18522 | } | |
18523 | resultobj = SWIG_FromInt((int)result); | |
18524 | return resultobj; | |
18525 | fail: | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
18530 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18531 | PyObject *resultobj; | |
18532 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18533 | wxSize *result; | |
18534 | PyObject * obj0 = 0 ; | |
18535 | char *kwnames[] = { | |
18536 | (char *) "self", NULL | |
18537 | }; | |
18538 | ||
18539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18542 | { | |
18543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18544 | { | |
18545 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
18546 | result = (wxSize *) &_result_ref; | |
18547 | } | |
18548 | ||
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
18556 | } | |
18557 | ||
18558 | ||
18559 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18560 | PyObject *resultobj; | |
18561 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18562 | int result; | |
18563 | PyObject * obj0 = 0 ; | |
18564 | char *kwnames[] = { | |
18565 | (char *) "self", NULL | |
18566 | }; | |
18567 | ||
18568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
18569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18571 | { | |
18572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18573 | result = (int)(arg1)->GetQuality(); | |
18574 | ||
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | resultobj = SWIG_FromInt((int)result); | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
18582 | } | |
18583 | ||
18584 | ||
18585 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18586 | PyObject *resultobj; | |
18587 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18588 | int arg2 ; | |
18589 | PyObject * obj0 = 0 ; | |
18590 | PyObject * obj1 = 0 ; | |
18591 | char *kwnames[] = { | |
18592 | (char *) "self",(char *) "v", NULL | |
18593 | }; | |
18594 | ||
18595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
18596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18598 | arg2 = (int) SWIG_AsInt(obj1); | |
18599 | if (PyErr_Occurred()) SWIG_fail; | |
18600 | { | |
18601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18602 | (arg1)->SetNoCopies(arg2); | |
18603 | ||
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | Py_INCREF(Py_None); resultobj = Py_None; | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
18614 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18615 | PyObject *resultobj; | |
18616 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18617 | bool arg2 ; | |
18618 | PyObject * obj0 = 0 ; | |
18619 | PyObject * obj1 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self",(char *) "flag", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
18625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18627 | arg2 = (bool) SWIG_AsBool(obj1); | |
18628 | if (PyErr_Occurred()) SWIG_fail; | |
18629 | { | |
18630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18631 | (arg1)->SetCollate(arg2); | |
18632 | ||
18633 | wxPyEndAllowThreads(__tstate); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | } | |
18636 | Py_INCREF(Py_None); resultobj = Py_None; | |
18637 | return resultobj; | |
18638 | fail: | |
18639 | return NULL; | |
18640 | } | |
18641 | ||
18642 | ||
18643 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18644 | PyObject *resultobj; | |
18645 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18646 | int arg2 ; | |
18647 | PyObject * obj0 = 0 ; | |
18648 | PyObject * obj1 = 0 ; | |
18649 | char *kwnames[] = { | |
18650 | (char *) "self",(char *) "orient", NULL | |
18651 | }; | |
18652 | ||
18653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18656 | arg2 = (int) SWIG_AsInt(obj1); | |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
18658 | { | |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | (arg1)->SetOrientation(arg2); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
18665 | Py_INCREF(Py_None); resultobj = Py_None; | |
18666 | return resultobj; | |
18667 | fail: | |
18668 | return NULL; | |
18669 | } | |
18670 | ||
18671 | ||
18672 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18673 | PyObject *resultobj; | |
18674 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18675 | wxString *arg2 = 0 ; | |
18676 | bool temp2 = False ; | |
18677 | PyObject * obj0 = 0 ; | |
18678 | PyObject * obj1 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self",(char *) "name", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
18684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18686 | { | |
18687 | arg2 = wxString_in_helper(obj1); | |
18688 | if (arg2 == NULL) SWIG_fail; | |
18689 | temp2 = True; | |
18690 | } | |
18691 | { | |
18692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18693 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
18694 | ||
18695 | wxPyEndAllowThreads(__tstate); | |
18696 | if (PyErr_Occurred()) SWIG_fail; | |
18697 | } | |
18698 | Py_INCREF(Py_None); resultobj = Py_None; | |
18699 | { | |
18700 | if (temp2) | |
18701 | delete arg2; | |
18702 | } | |
18703 | return resultobj; | |
18704 | fail: | |
18705 | { | |
18706 | if (temp2) | |
18707 | delete arg2; | |
18708 | } | |
18709 | return NULL; | |
18710 | } | |
18711 | ||
18712 | ||
18713 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18714 | PyObject *resultobj; | |
18715 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18716 | bool arg2 ; | |
18717 | PyObject * obj0 = 0 ; | |
18718 | PyObject * obj1 = 0 ; | |
18719 | char *kwnames[] = { | |
18720 | (char *) "self",(char *) "colour", NULL | |
18721 | }; | |
18722 | ||
18723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
18724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18726 | arg2 = (bool) SWIG_AsBool(obj1); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | { | |
18729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18730 | (arg1)->SetColour(arg2); | |
18731 | ||
18732 | wxPyEndAllowThreads(__tstate); | |
18733 | if (PyErr_Occurred()) SWIG_fail; | |
18734 | } | |
18735 | Py_INCREF(Py_None); resultobj = Py_None; | |
18736 | return resultobj; | |
18737 | fail: | |
18738 | return NULL; | |
18739 | } | |
18740 | ||
18741 | ||
18742 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18743 | PyObject *resultobj; | |
18744 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18745 | int arg2 ; | |
18746 | PyObject * obj0 = 0 ; | |
18747 | PyObject * obj1 = 0 ; | |
18748 | char *kwnames[] = { | |
18749 | (char *) "self",(char *) "duplex", NULL | |
18750 | }; | |
18751 | ||
18752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
18753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18755 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
18756 | if (PyErr_Occurred()) SWIG_fail; | |
18757 | { | |
18758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18759 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
18760 | ||
18761 | wxPyEndAllowThreads(__tstate); | |
18762 | if (PyErr_Occurred()) SWIG_fail; | |
18763 | } | |
18764 | Py_INCREF(Py_None); resultobj = Py_None; | |
18765 | return resultobj; | |
18766 | fail: | |
18767 | return NULL; | |
18768 | } | |
18769 | ||
18770 | ||
18771 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18772 | PyObject *resultobj; | |
18773 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18774 | int arg2 ; | |
18775 | PyObject * obj0 = 0 ; | |
18776 | PyObject * obj1 = 0 ; | |
18777 | char *kwnames[] = { | |
18778 | (char *) "self",(char *) "sizeId", NULL | |
18779 | }; | |
18780 | ||
18781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18784 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18785 | if (PyErr_Occurred()) SWIG_fail; | |
18786 | { | |
18787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18788 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18789 | ||
18790 | wxPyEndAllowThreads(__tstate); | |
18791 | if (PyErr_Occurred()) SWIG_fail; | |
18792 | } | |
18793 | Py_INCREF(Py_None); resultobj = Py_None; | |
18794 | return resultobj; | |
18795 | fail: | |
18796 | return NULL; | |
18797 | } | |
18798 | ||
18799 | ||
18800 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18801 | PyObject *resultobj; | |
18802 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18803 | wxSize *arg2 = 0 ; | |
18804 | wxSize temp2 ; | |
18805 | PyObject * obj0 = 0 ; | |
18806 | PyObject * obj1 = 0 ; | |
18807 | char *kwnames[] = { | |
18808 | (char *) "self",(char *) "sz", NULL | |
18809 | }; | |
18810 | ||
18811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18814 | { | |
18815 | arg2 = &temp2; | |
18816 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18817 | } | |
18818 | { | |
18819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18820 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18821 | ||
18822 | wxPyEndAllowThreads(__tstate); | |
18823 | if (PyErr_Occurred()) SWIG_fail; | |
18824 | } | |
18825 | Py_INCREF(Py_None); resultobj = Py_None; | |
18826 | return resultobj; | |
18827 | fail: | |
18828 | return NULL; | |
18829 | } | |
18830 | ||
18831 | ||
18832 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18833 | PyObject *resultobj; | |
18834 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18835 | int arg2 ; | |
18836 | PyObject * obj0 = 0 ; | |
18837 | PyObject * obj1 = 0 ; | |
18838 | char *kwnames[] = { | |
18839 | (char *) "self",(char *) "quality", NULL | |
18840 | }; | |
18841 | ||
18842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
18843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18845 | arg2 = (int) SWIG_AsInt(obj1); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | { | |
18848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18849 | (arg1)->SetQuality(arg2); | |
18850 | ||
18851 | wxPyEndAllowThreads(__tstate); | |
18852 | if (PyErr_Occurred()) SWIG_fail; | |
18853 | } | |
18854 | Py_INCREF(Py_None); resultobj = Py_None; | |
18855 | return resultobj; | |
18856 | fail: | |
18857 | return NULL; | |
18858 | } | |
18859 | ||
18860 | ||
18861 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18862 | PyObject *resultobj; | |
18863 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18864 | wxString *result; | |
18865 | PyObject * obj0 = 0 ; | |
18866 | char *kwnames[] = { | |
18867 | (char *) "self", NULL | |
18868 | }; | |
18869 | ||
18870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18873 | { | |
18874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18875 | { | |
18876 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18877 | result = (wxString *) &_result_ref; | |
18878 | } | |
18879 | ||
18880 | wxPyEndAllowThreads(__tstate); | |
18881 | if (PyErr_Occurred()) SWIG_fail; | |
18882 | } | |
18883 | { | |
18884 | #if wxUSE_UNICODE | |
18885 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18886 | #else | |
18887 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18888 | #endif | |
18889 | } | |
18890 | return resultobj; | |
18891 | fail: | |
18892 | return NULL; | |
18893 | } | |
18894 | ||
18895 | ||
18896 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18897 | PyObject *resultobj; | |
18898 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18899 | wxString *result; | |
18900 | PyObject * obj0 = 0 ; | |
18901 | char *kwnames[] = { | |
18902 | (char *) "self", NULL | |
18903 | }; | |
18904 | ||
18905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | { | |
18911 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18912 | result = (wxString *) &_result_ref; | |
18913 | } | |
18914 | ||
18915 | wxPyEndAllowThreads(__tstate); | |
18916 | if (PyErr_Occurred()) SWIG_fail; | |
18917 | } | |
18918 | { | |
18919 | #if wxUSE_UNICODE | |
18920 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18921 | #else | |
18922 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18923 | #endif | |
18924 | } | |
18925 | return resultobj; | |
18926 | fail: | |
18927 | return NULL; | |
18928 | } | |
18929 | ||
18930 | ||
18931 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18932 | PyObject *resultobj; | |
18933 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18934 | wxString *result; | |
18935 | PyObject * obj0 = 0 ; | |
18936 | char *kwnames[] = { | |
18937 | (char *) "self", NULL | |
18938 | }; | |
18939 | ||
18940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18943 | { | |
18944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18945 | { | |
18946 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18947 | result = (wxString *) &_result_ref; | |
18948 | } | |
18949 | ||
18950 | wxPyEndAllowThreads(__tstate); | |
18951 | if (PyErr_Occurred()) SWIG_fail; | |
18952 | } | |
18953 | { | |
18954 | #if wxUSE_UNICODE | |
18955 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18956 | #else | |
18957 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18958 | #endif | |
18959 | } | |
18960 | return resultobj; | |
18961 | fail: | |
18962 | return NULL; | |
18963 | } | |
18964 | ||
18965 | ||
18966 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18967 | PyObject *resultobj; | |
18968 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18969 | wxString *result; | |
18970 | PyObject * obj0 = 0 ; | |
18971 | char *kwnames[] = { | |
18972 | (char *) "self", NULL | |
18973 | }; | |
18974 | ||
18975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18978 | { | |
18979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18980 | { | |
18981 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18982 | result = (wxString *) &_result_ref; | |
18983 | } | |
18984 | ||
18985 | wxPyEndAllowThreads(__tstate); | |
18986 | if (PyErr_Occurred()) SWIG_fail; | |
18987 | } | |
18988 | { | |
18989 | #if wxUSE_UNICODE | |
18990 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18991 | #else | |
18992 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18993 | #endif | |
18994 | } | |
18995 | return resultobj; | |
18996 | fail: | |
18997 | return NULL; | |
18998 | } | |
18999 | ||
19000 | ||
19001 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19002 | PyObject *resultobj; | |
19003 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19004 | wxString *result; | |
19005 | PyObject * obj0 = 0 ; | |
19006 | char *kwnames[] = { | |
19007 | (char *) "self", NULL | |
19008 | }; | |
19009 | ||
19010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
19011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19013 | { | |
19014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19015 | { | |
19016 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
19017 | result = (wxString *) &_result_ref; | |
19018 | } | |
19019 | ||
19020 | wxPyEndAllowThreads(__tstate); | |
19021 | if (PyErr_Occurred()) SWIG_fail; | |
19022 | } | |
19023 | { | |
19024 | #if wxUSE_UNICODE | |
19025 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19026 | #else | |
19027 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19028 | #endif | |
19029 | } | |
19030 | return resultobj; | |
19031 | fail: | |
19032 | return NULL; | |
19033 | } | |
19034 | ||
19035 | ||
19036 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19037 | PyObject *resultobj; | |
19038 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19039 | double result; | |
19040 | PyObject * obj0 = 0 ; | |
19041 | char *kwnames[] = { | |
19042 | (char *) "self", NULL | |
19043 | }; | |
19044 | ||
19045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
19046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19048 | { | |
19049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19050 | result = (double)(arg1)->GetPrinterScaleX(); | |
19051 | ||
19052 | wxPyEndAllowThreads(__tstate); | |
19053 | if (PyErr_Occurred()) SWIG_fail; | |
19054 | } | |
19055 | resultobj = SWIG_FromDouble((double)result); | |
19056 | return resultobj; | |
19057 | fail: | |
19058 | return NULL; | |
19059 | } | |
19060 | ||
19061 | ||
19062 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19063 | PyObject *resultobj; | |
19064 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19065 | double result; | |
19066 | PyObject * obj0 = 0 ; | |
19067 | char *kwnames[] = { | |
19068 | (char *) "self", NULL | |
19069 | }; | |
19070 | ||
19071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
19072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19074 | { | |
19075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19076 | result = (double)(arg1)->GetPrinterScaleY(); | |
19077 | ||
19078 | wxPyEndAllowThreads(__tstate); | |
19079 | if (PyErr_Occurred()) SWIG_fail; | |
19080 | } | |
19081 | resultobj = SWIG_FromDouble((double)result); | |
19082 | return resultobj; | |
19083 | fail: | |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
19088 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19089 | PyObject *resultobj; | |
19090 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19091 | long result; | |
19092 | PyObject * obj0 = 0 ; | |
19093 | char *kwnames[] = { | |
19094 | (char *) "self", NULL | |
19095 | }; | |
19096 | ||
19097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
19098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19100 | { | |
19101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19102 | result = (long)(arg1)->GetPrinterTranslateX(); | |
19103 | ||
19104 | wxPyEndAllowThreads(__tstate); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | } | |
19107 | resultobj = SWIG_FromLong((long)result); | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19117 | long result; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | char *kwnames[] = { | |
19120 | (char *) "self", NULL | |
19121 | }; | |
19122 | ||
19123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
19124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19126 | { | |
19127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19128 | result = (long)(arg1)->GetPrinterTranslateY(); | |
19129 | ||
19130 | wxPyEndAllowThreads(__tstate); | |
19131 | if (PyErr_Occurred()) SWIG_fail; | |
19132 | } | |
19133 | resultobj = SWIG_FromLong((long)result); | |
19134 | return resultobj; | |
19135 | fail: | |
19136 | return NULL; | |
19137 | } | |
19138 | ||
19139 | ||
19140 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19141 | PyObject *resultobj; | |
19142 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19143 | int result; | |
19144 | PyObject * obj0 = 0 ; | |
19145 | char *kwnames[] = { | |
19146 | (char *) "self", NULL | |
19147 | }; | |
19148 | ||
19149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
19150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19152 | { | |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19154 | result = (int)(arg1)->GetPrintMode(); | |
19155 | ||
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
19159 | resultobj = SWIG_FromInt((int)result); | |
19160 | return resultobj; | |
19161 | fail: | |
19162 | return NULL; | |
19163 | } | |
19164 | ||
19165 | ||
19166 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19167 | PyObject *resultobj; | |
19168 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19169 | wxString *arg2 = 0 ; | |
19170 | bool temp2 = False ; | |
19171 | PyObject * obj0 = 0 ; | |
19172 | PyObject * obj1 = 0 ; | |
19173 | char *kwnames[] = { | |
19174 | (char *) "self",(char *) "command", NULL | |
19175 | }; | |
19176 | ||
19177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
19178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19180 | { | |
19181 | arg2 = wxString_in_helper(obj1); | |
19182 | if (arg2 == NULL) SWIG_fail; | |
19183 | temp2 = True; | |
19184 | } | |
19185 | { | |
19186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19187 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
19188 | ||
19189 | wxPyEndAllowThreads(__tstate); | |
19190 | if (PyErr_Occurred()) SWIG_fail; | |
19191 | } | |
19192 | Py_INCREF(Py_None); resultobj = Py_None; | |
19193 | { | |
19194 | if (temp2) | |
19195 | delete arg2; | |
19196 | } | |
19197 | return resultobj; | |
19198 | fail: | |
19199 | { | |
19200 | if (temp2) | |
19201 | delete arg2; | |
19202 | } | |
19203 | return NULL; | |
19204 | } | |
19205 | ||
19206 | ||
19207 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19208 | PyObject *resultobj; | |
19209 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19210 | wxString *arg2 = 0 ; | |
19211 | bool temp2 = False ; | |
19212 | PyObject * obj0 = 0 ; | |
19213 | PyObject * obj1 = 0 ; | |
19214 | char *kwnames[] = { | |
19215 | (char *) "self",(char *) "options", NULL | |
19216 | }; | |
19217 | ||
19218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
19219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19221 | { | |
19222 | arg2 = wxString_in_helper(obj1); | |
19223 | if (arg2 == NULL) SWIG_fail; | |
19224 | temp2 = True; | |
19225 | } | |
19226 | { | |
19227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19228 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
19229 | ||
19230 | wxPyEndAllowThreads(__tstate); | |
19231 | if (PyErr_Occurred()) SWIG_fail; | |
19232 | } | |
19233 | Py_INCREF(Py_None); resultobj = Py_None; | |
19234 | { | |
19235 | if (temp2) | |
19236 | delete arg2; | |
19237 | } | |
19238 | return resultobj; | |
19239 | fail: | |
19240 | { | |
19241 | if (temp2) | |
19242 | delete arg2; | |
19243 | } | |
19244 | return NULL; | |
19245 | } | |
19246 | ||
19247 | ||
19248 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19249 | PyObject *resultobj; | |
19250 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19251 | wxString *arg2 = 0 ; | |
19252 | bool temp2 = False ; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | PyObject * obj1 = 0 ; | |
19255 | char *kwnames[] = { | |
19256 | (char *) "self",(char *) "command", NULL | |
19257 | }; | |
19258 | ||
19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
19260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19262 | { | |
19263 | arg2 = wxString_in_helper(obj1); | |
19264 | if (arg2 == NULL) SWIG_fail; | |
19265 | temp2 = True; | |
19266 | } | |
19267 | { | |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
19270 | ||
19271 | wxPyEndAllowThreads(__tstate); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
19274 | Py_INCREF(Py_None); resultobj = Py_None; | |
19275 | { | |
19276 | if (temp2) | |
19277 | delete arg2; | |
19278 | } | |
19279 | return resultobj; | |
19280 | fail: | |
19281 | { | |
19282 | if (temp2) | |
19283 | delete arg2; | |
19284 | } | |
19285 | return NULL; | |
19286 | } | |
19287 | ||
19288 | ||
19289 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19290 | PyObject *resultobj; | |
19291 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19292 | wxString *arg2 = 0 ; | |
19293 | bool temp2 = False ; | |
19294 | PyObject * obj0 = 0 ; | |
19295 | PyObject * obj1 = 0 ; | |
19296 | char *kwnames[] = { | |
19297 | (char *) "self",(char *) "filename", NULL | |
19298 | }; | |
19299 | ||
19300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
19301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19303 | { | |
19304 | arg2 = wxString_in_helper(obj1); | |
19305 | if (arg2 == NULL) SWIG_fail; | |
19306 | temp2 = True; | |
19307 | } | |
19308 | { | |
19309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19310 | (arg1)->SetFilename((wxString const &)*arg2); | |
19311 | ||
19312 | wxPyEndAllowThreads(__tstate); | |
19313 | if (PyErr_Occurred()) SWIG_fail; | |
19314 | } | |
19315 | Py_INCREF(Py_None); resultobj = Py_None; | |
19316 | { | |
19317 | if (temp2) | |
19318 | delete arg2; | |
19319 | } | |
19320 | return resultobj; | |
19321 | fail: | |
19322 | { | |
19323 | if (temp2) | |
19324 | delete arg2; | |
19325 | } | |
19326 | return NULL; | |
19327 | } | |
19328 | ||
19329 | ||
19330 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19331 | PyObject *resultobj; | |
19332 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19333 | wxString *arg2 = 0 ; | |
19334 | bool temp2 = False ; | |
19335 | PyObject * obj0 = 0 ; | |
19336 | PyObject * obj1 = 0 ; | |
19337 | char *kwnames[] = { | |
19338 | (char *) "self",(char *) "path", NULL | |
19339 | }; | |
19340 | ||
19341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
19342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19344 | { | |
19345 | arg2 = wxString_in_helper(obj1); | |
19346 | if (arg2 == NULL) SWIG_fail; | |
19347 | temp2 = True; | |
19348 | } | |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
19352 | ||
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
19356 | Py_INCREF(Py_None); resultobj = Py_None; | |
19357 | { | |
19358 | if (temp2) | |
19359 | delete arg2; | |
19360 | } | |
19361 | return resultobj; | |
19362 | fail: | |
19363 | { | |
19364 | if (temp2) | |
19365 | delete arg2; | |
19366 | } | |
19367 | return NULL; | |
19368 | } | |
19369 | ||
19370 | ||
19371 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19372 | PyObject *resultobj; | |
19373 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19374 | double arg2 ; | |
19375 | PyObject * obj0 = 0 ; | |
19376 | PyObject * obj1 = 0 ; | |
19377 | char *kwnames[] = { | |
19378 | (char *) "self",(char *) "x", NULL | |
19379 | }; | |
19380 | ||
19381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
19382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19384 | arg2 = (double) SWIG_AsDouble(obj1); | |
19385 | if (PyErr_Occurred()) SWIG_fail; | |
19386 | { | |
19387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19388 | (arg1)->SetPrinterScaleX(arg2); | |
19389 | ||
19390 | wxPyEndAllowThreads(__tstate); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | } | |
19393 | Py_INCREF(Py_None); resultobj = Py_None; | |
19394 | return resultobj; | |
19395 | fail: | |
19396 | return NULL; | |
19397 | } | |
19398 | ||
19399 | ||
19400 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19401 | PyObject *resultobj; | |
19402 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19403 | double arg2 ; | |
19404 | PyObject * obj0 = 0 ; | |
19405 | PyObject * obj1 = 0 ; | |
19406 | char *kwnames[] = { | |
19407 | (char *) "self",(char *) "y", NULL | |
19408 | }; | |
19409 | ||
19410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
19411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19413 | arg2 = (double) SWIG_AsDouble(obj1); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | { | |
19416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19417 | (arg1)->SetPrinterScaleY(arg2); | |
19418 | ||
19419 | wxPyEndAllowThreads(__tstate); | |
19420 | if (PyErr_Occurred()) SWIG_fail; | |
19421 | } | |
19422 | Py_INCREF(Py_None); resultobj = Py_None; | |
19423 | return resultobj; | |
19424 | fail: | |
19425 | return NULL; | |
19426 | } | |
19427 | ||
19428 | ||
19429 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19430 | PyObject *resultobj; | |
19431 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19432 | double arg2 ; | |
19433 | double arg3 ; | |
19434 | PyObject * obj0 = 0 ; | |
19435 | PyObject * obj1 = 0 ; | |
19436 | PyObject * obj2 = 0 ; | |
19437 | char *kwnames[] = { | |
19438 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19439 | }; | |
19440 | ||
19441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19444 | arg2 = (double) SWIG_AsDouble(obj1); | |
19445 | if (PyErr_Occurred()) SWIG_fail; | |
19446 | arg3 = (double) SWIG_AsDouble(obj2); | |
19447 | if (PyErr_Occurred()) SWIG_fail; | |
19448 | { | |
19449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19450 | (arg1)->SetPrinterScaling(arg2,arg3); | |
19451 | ||
19452 | wxPyEndAllowThreads(__tstate); | |
19453 | if (PyErr_Occurred()) SWIG_fail; | |
19454 | } | |
19455 | Py_INCREF(Py_None); resultobj = Py_None; | |
19456 | return resultobj; | |
19457 | fail: | |
19458 | return NULL; | |
19459 | } | |
19460 | ||
19461 | ||
19462 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19463 | PyObject *resultobj; | |
19464 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19465 | long arg2 ; | |
19466 | PyObject * obj0 = 0 ; | |
19467 | PyObject * obj1 = 0 ; | |
19468 | char *kwnames[] = { | |
19469 | (char *) "self",(char *) "x", NULL | |
19470 | }; | |
19471 | ||
19472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
19473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19475 | arg2 = (long) SWIG_AsLong(obj1); | |
19476 | if (PyErr_Occurred()) SWIG_fail; | |
19477 | { | |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | (arg1)->SetPrinterTranslateX(arg2); | |
19480 | ||
19481 | wxPyEndAllowThreads(__tstate); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | Py_INCREF(Py_None); resultobj = Py_None; | |
19485 | return resultobj; | |
19486 | fail: | |
19487 | return NULL; | |
19488 | } | |
19489 | ||
19490 | ||
19491 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19492 | PyObject *resultobj; | |
19493 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19494 | long arg2 ; | |
19495 | PyObject * obj0 = 0 ; | |
19496 | PyObject * obj1 = 0 ; | |
19497 | char *kwnames[] = { | |
19498 | (char *) "self",(char *) "y", NULL | |
19499 | }; | |
19500 | ||
19501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
19502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19504 | arg2 = (long) SWIG_AsLong(obj1); | |
19505 | if (PyErr_Occurred()) SWIG_fail; | |
19506 | { | |
19507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19508 | (arg1)->SetPrinterTranslateY(arg2); | |
19509 | ||
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | Py_INCREF(Py_None); resultobj = Py_None; | |
19514 | return resultobj; | |
19515 | fail: | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
19520 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj; | |
19522 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19523 | long arg2 ; | |
19524 | long arg3 ; | |
19525 | PyObject * obj0 = 0 ; | |
19526 | PyObject * obj1 = 0 ; | |
19527 | PyObject * obj2 = 0 ; | |
19528 | char *kwnames[] = { | |
19529 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19530 | }; | |
19531 | ||
19532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19535 | arg2 = (long) SWIG_AsLong(obj1); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | arg3 = (long) SWIG_AsLong(obj2); | |
19538 | if (PyErr_Occurred()) SWIG_fail; | |
19539 | { | |
19540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19541 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
19542 | ||
19543 | wxPyEndAllowThreads(__tstate); | |
19544 | if (PyErr_Occurred()) SWIG_fail; | |
19545 | } | |
19546 | Py_INCREF(Py_None); resultobj = Py_None; | |
19547 | return resultobj; | |
19548 | fail: | |
19549 | return NULL; | |
19550 | } | |
19551 | ||
19552 | ||
19553 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19554 | PyObject *resultobj; | |
19555 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19556 | int arg2 ; | |
19557 | PyObject * obj0 = 0 ; | |
19558 | PyObject * obj1 = 0 ; | |
19559 | char *kwnames[] = { | |
19560 | (char *) "self",(char *) "printMode", NULL | |
19561 | }; | |
19562 | ||
19563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
19564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19566 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
19567 | if (PyErr_Occurred()) SWIG_fail; | |
19568 | { | |
19569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19570 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
19571 | ||
19572 | wxPyEndAllowThreads(__tstate); | |
19573 | if (PyErr_Occurred()) SWIG_fail; | |
19574 | } | |
19575 | Py_INCREF(Py_None); resultobj = Py_None; | |
19576 | return resultobj; | |
19577 | fail: | |
19578 | return NULL; | |
19579 | } | |
19580 | ||
19581 | ||
19582 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19583 | PyObject *resultobj; | |
19584 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19585 | wxOutputStream *result; | |
19586 | PyObject * obj0 = 0 ; | |
19587 | char *kwnames[] = { | |
19588 | (char *) "self", NULL | |
19589 | }; | |
19590 | ||
19591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
19592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19594 | { | |
19595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19596 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
19597 | ||
19598 | wxPyEndAllowThreads(__tstate); | |
19599 | if (PyErr_Occurred()) SWIG_fail; | |
19600 | } | |
19601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
19602 | return resultobj; | |
19603 | fail: | |
19604 | return NULL; | |
19605 | } | |
19606 | ||
19607 | ||
19608 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19609 | PyObject *resultobj; | |
19610 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19611 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
19612 | PyObject * obj0 = 0 ; | |
19613 | PyObject * obj1 = 0 ; | |
19614 | char *kwnames[] = { | |
19615 | (char *) "self",(char *) "outputstream", NULL | |
19616 | }; | |
19617 | ||
19618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
19619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
19622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19623 | { | |
19624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19625 | (arg1)->SetOutputStream(arg2); | |
19626 | ||
19627 | wxPyEndAllowThreads(__tstate); | |
19628 | if (PyErr_Occurred()) SWIG_fail; | |
19629 | } | |
19630 | Py_INCREF(Py_None); resultobj = Py_None; | |
19631 | return resultobj; | |
19632 | fail: | |
19633 | return NULL; | |
19634 | } | |
19635 | ||
19636 | ||
19637 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
19638 | PyObject *obj; | |
19639 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19640 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
19641 | Py_INCREF(obj); | |
19642 | return Py_BuildValue((char *)""); | |
19643 | } | |
09c21d3b | 19644 | static PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *self, PyObject *args) { |
d55e5bfc RD |
19645 | PyObject *resultobj; |
19646 | wxPageSetupDialogData *result; | |
d55e5bfc | 19647 | |
09c21d3b | 19648 | if(!PyArg_ParseTuple(args,(char *)":new_PageSetupDialogData")) goto fail; |
d55e5bfc RD |
19649 | { |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
19656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19657 | return resultobj; | |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
09c21d3b RD |
19663 | static PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *self, PyObject *args) { |
19664 | PyObject *resultobj; | |
19665 | wxPageSetupDialogData *arg1 = 0 ; | |
19666 | wxPageSetupDialogData *result; | |
19667 | PyObject * obj0 = 0 ; | |
19668 | ||
19669 | if(!PyArg_ParseTuple(args,(char *)"O:new_PageSetupDialogData",&obj0)) goto fail; | |
19670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19671 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19672 | SWIG_fail; | |
19673 | if (arg1 == NULL) { | |
19674 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19675 | SWIG_fail; | |
19676 | } | |
19677 | { | |
19678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19679 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
19680 | ||
19681 | wxPyEndAllowThreads(__tstate); | |
19682 | if (PyErr_Occurred()) SWIG_fail; | |
19683 | } | |
19684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19685 | return resultobj; | |
19686 | fail: | |
19687 | return NULL; | |
19688 | } | |
19689 | ||
19690 | ||
19691 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { | |
19692 | int argc; | |
19693 | PyObject *argv[2]; | |
19694 | int ii; | |
19695 | ||
19696 | argc = PyObject_Length(args); | |
19697 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
19698 | argv[ii] = PyTuple_GetItem(args,ii); | |
19699 | } | |
19700 | if (argc == 0) { | |
19701 | return _wrap_new_PageSetupDialogData__SWIG_0(self,args); | |
19702 | } | |
19703 | if (argc == 1) { | |
19704 | int _v; | |
19705 | { | |
19706 | void *ptr; | |
19707 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPageSetupDialogData, 0) == -1) { | |
19708 | _v = 0; | |
19709 | PyErr_Clear(); | |
19710 | } else { | |
19711 | _v = 1; | |
19712 | } | |
19713 | } | |
19714 | if (_v) { | |
19715 | return _wrap_new_PageSetupDialogData__SWIG_1(self,args); | |
19716 | } | |
19717 | } | |
19718 | ||
19719 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
19720 | return NULL; | |
19721 | } | |
19722 | ||
19723 | ||
d55e5bfc RD |
19724 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
19725 | PyObject *resultobj; | |
19726 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19727 | PyObject * obj0 = 0 ; | |
19728 | char *kwnames[] = { | |
19729 | (char *) "self", NULL | |
19730 | }; | |
19731 | ||
19732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
19733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19735 | { | |
19736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19737 | delete arg1; | |
19738 | ||
19739 | wxPyEndAllowThreads(__tstate); | |
19740 | if (PyErr_Occurred()) SWIG_fail; | |
19741 | } | |
19742 | Py_INCREF(Py_None); resultobj = Py_None; | |
19743 | return resultobj; | |
19744 | fail: | |
19745 | return NULL; | |
19746 | } | |
19747 | ||
19748 | ||
19749 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19750 | PyObject *resultobj; | |
19751 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19752 | bool arg2 ; | |
19753 | PyObject * obj0 = 0 ; | |
19754 | PyObject * obj1 = 0 ; | |
19755 | char *kwnames[] = { | |
19756 | (char *) "self",(char *) "flag", NULL | |
19757 | }; | |
19758 | ||
19759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19762 | arg2 = (bool) SWIG_AsBool(obj1); | |
19763 | if (PyErr_Occurred()) SWIG_fail; | |
19764 | { | |
19765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19766 | (arg1)->EnableHelp(arg2); | |
19767 | ||
19768 | wxPyEndAllowThreads(__tstate); | |
19769 | if (PyErr_Occurred()) SWIG_fail; | |
19770 | } | |
19771 | Py_INCREF(Py_None); resultobj = Py_None; | |
19772 | return resultobj; | |
19773 | fail: | |
19774 | return NULL; | |
19775 | } | |
19776 | ||
19777 | ||
19778 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19779 | PyObject *resultobj; | |
19780 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19781 | bool arg2 ; | |
19782 | PyObject * obj0 = 0 ; | |
19783 | PyObject * obj1 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self",(char *) "flag", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
19789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19791 | arg2 = (bool) SWIG_AsBool(obj1); | |
19792 | if (PyErr_Occurred()) SWIG_fail; | |
19793 | { | |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | (arg1)->EnableMargins(arg2); | |
19796 | ||
19797 | wxPyEndAllowThreads(__tstate); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | Py_INCREF(Py_None); resultobj = Py_None; | |
19801 | return resultobj; | |
19802 | fail: | |
19803 | return NULL; | |
19804 | } | |
19805 | ||
19806 | ||
19807 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19808 | PyObject *resultobj; | |
19809 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19810 | bool arg2 ; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | PyObject * obj1 = 0 ; | |
19813 | char *kwnames[] = { | |
19814 | (char *) "self",(char *) "flag", NULL | |
19815 | }; | |
19816 | ||
19817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
19818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19820 | arg2 = (bool) SWIG_AsBool(obj1); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | { | |
19823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19824 | (arg1)->EnableOrientation(arg2); | |
19825 | ||
19826 | wxPyEndAllowThreads(__tstate); | |
19827 | if (PyErr_Occurred()) SWIG_fail; | |
19828 | } | |
19829 | Py_INCREF(Py_None); resultobj = Py_None; | |
19830 | return resultobj; | |
19831 | fail: | |
19832 | return NULL; | |
19833 | } | |
19834 | ||
19835 | ||
19836 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19837 | PyObject *resultobj; | |
19838 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19839 | bool arg2 ; | |
19840 | PyObject * obj0 = 0 ; | |
19841 | PyObject * obj1 = 0 ; | |
19842 | char *kwnames[] = { | |
19843 | (char *) "self",(char *) "flag", NULL | |
19844 | }; | |
19845 | ||
19846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
19847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19849 | arg2 = (bool) SWIG_AsBool(obj1); | |
19850 | if (PyErr_Occurred()) SWIG_fail; | |
19851 | { | |
19852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19853 | (arg1)->EnablePaper(arg2); | |
19854 | ||
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | Py_INCREF(Py_None); resultobj = Py_None; | |
19859 | return resultobj; | |
19860 | fail: | |
19861 | return NULL; | |
19862 | } | |
19863 | ||
19864 | ||
19865 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19866 | PyObject *resultobj; | |
19867 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19868 | bool arg2 ; | |
19869 | PyObject * obj0 = 0 ; | |
19870 | PyObject * obj1 = 0 ; | |
19871 | char *kwnames[] = { | |
19872 | (char *) "self",(char *) "flag", NULL | |
19873 | }; | |
19874 | ||
19875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
19876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19878 | arg2 = (bool) SWIG_AsBool(obj1); | |
19879 | if (PyErr_Occurred()) SWIG_fail; | |
19880 | { | |
19881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19882 | (arg1)->EnablePrinter(arg2); | |
19883 | ||
19884 | wxPyEndAllowThreads(__tstate); | |
19885 | if (PyErr_Occurred()) SWIG_fail; | |
19886 | } | |
19887 | Py_INCREF(Py_None); resultobj = Py_None; | |
19888 | return resultobj; | |
19889 | fail: | |
19890 | return NULL; | |
19891 | } | |
19892 | ||
19893 | ||
19894 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19895 | PyObject *resultobj; | |
19896 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19897 | bool result; | |
19898 | PyObject * obj0 = 0 ; | |
19899 | char *kwnames[] = { | |
19900 | (char *) "self", NULL | |
19901 | }; | |
19902 | ||
19903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
19904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19906 | { | |
19907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19908 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
19909 | ||
19910 | wxPyEndAllowThreads(__tstate); | |
19911 | if (PyErr_Occurred()) SWIG_fail; | |
19912 | } | |
19913 | { | |
19914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19915 | } | |
19916 | return resultobj; | |
19917 | fail: | |
19918 | return NULL; | |
19919 | } | |
19920 | ||
19921 | ||
19922 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19923 | PyObject *resultobj; | |
19924 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19925 | bool result; | |
19926 | PyObject * obj0 = 0 ; | |
19927 | char *kwnames[] = { | |
19928 | (char *) "self", NULL | |
19929 | }; | |
19930 | ||
19931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19934 | { | |
19935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19936 | result = (bool)(arg1)->GetEnableMargins(); | |
19937 | ||
19938 | wxPyEndAllowThreads(__tstate); | |
19939 | if (PyErr_Occurred()) SWIG_fail; | |
19940 | } | |
19941 | { | |
19942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19943 | } | |
19944 | return resultobj; | |
19945 | fail: | |
19946 | return NULL; | |
19947 | } | |
19948 | ||
19949 | ||
19950 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19951 | PyObject *resultobj; | |
19952 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19953 | bool result; | |
19954 | PyObject * obj0 = 0 ; | |
19955 | char *kwnames[] = { | |
19956 | (char *) "self", NULL | |
19957 | }; | |
19958 | ||
19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19962 | { | |
19963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19964 | result = (bool)(arg1)->GetEnableOrientation(); | |
19965 | ||
19966 | wxPyEndAllowThreads(__tstate); | |
19967 | if (PyErr_Occurred()) SWIG_fail; | |
19968 | } | |
19969 | { | |
19970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19971 | } | |
19972 | return resultobj; | |
19973 | fail: | |
19974 | return NULL; | |
19975 | } | |
19976 | ||
19977 | ||
19978 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19979 | PyObject *resultobj; | |
19980 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19981 | bool result; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self", NULL | |
19985 | }; | |
19986 | ||
19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19990 | { | |
19991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19992 | result = (bool)(arg1)->GetEnablePaper(); | |
19993 | ||
19994 | wxPyEndAllowThreads(__tstate); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | { | |
19998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19999 | } | |
20000 | return resultobj; | |
20001 | fail: | |
20002 | return NULL; | |
20003 | } | |
20004 | ||
20005 | ||
20006 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20007 | PyObject *resultobj; | |
20008 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20009 | bool result; | |
20010 | PyObject * obj0 = 0 ; | |
20011 | char *kwnames[] = { | |
20012 | (char *) "self", NULL | |
20013 | }; | |
20014 | ||
20015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
20016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20018 | { | |
20019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20020 | result = (bool)(arg1)->GetEnablePrinter(); | |
20021 | ||
20022 | wxPyEndAllowThreads(__tstate); | |
20023 | if (PyErr_Occurred()) SWIG_fail; | |
20024 | } | |
20025 | { | |
20026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20027 | } | |
20028 | return resultobj; | |
20029 | fail: | |
20030 | return NULL; | |
20031 | } | |
20032 | ||
20033 | ||
20034 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20035 | PyObject *resultobj; | |
20036 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20037 | bool result; | |
20038 | PyObject * obj0 = 0 ; | |
20039 | char *kwnames[] = { | |
20040 | (char *) "self", NULL | |
20041 | }; | |
20042 | ||
20043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
20044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20046 | { | |
20047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20048 | result = (bool)(arg1)->GetEnableHelp(); | |
20049 | ||
20050 | wxPyEndAllowThreads(__tstate); | |
20051 | if (PyErr_Occurred()) SWIG_fail; | |
20052 | } | |
20053 | { | |
20054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20055 | } | |
20056 | return resultobj; | |
20057 | fail: | |
20058 | return NULL; | |
20059 | } | |
20060 | ||
20061 | ||
20062 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20063 | PyObject *resultobj; | |
20064 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20065 | bool result; | |
20066 | PyObject * obj0 = 0 ; | |
20067 | char *kwnames[] = { | |
20068 | (char *) "self", NULL | |
20069 | }; | |
20070 | ||
20071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
20072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20074 | { | |
20075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20076 | result = (bool)(arg1)->GetDefaultInfo(); | |
20077 | ||
20078 | wxPyEndAllowThreads(__tstate); | |
20079 | if (PyErr_Occurred()) SWIG_fail; | |
20080 | } | |
20081 | { | |
20082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20083 | } | |
20084 | return resultobj; | |
20085 | fail: | |
20086 | return NULL; | |
20087 | } | |
20088 | ||
20089 | ||
20090 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20091 | PyObject *resultobj; | |
20092 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20093 | wxPoint result; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | char *kwnames[] = { | |
20096 | (char *) "self", NULL | |
20097 | }; | |
20098 | ||
20099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
20100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20102 | { | |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | result = (arg1)->GetMarginTopLeft(); | |
20105 | ||
20106 | wxPyEndAllowThreads(__tstate); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | } | |
20109 | { | |
20110 | wxPoint * resultptr; | |
20111 | resultptr = new wxPoint((wxPoint &) result); | |
20112 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20113 | } | |
20114 | return resultobj; | |
20115 | fail: | |
20116 | return NULL; | |
20117 | } | |
20118 | ||
20119 | ||
20120 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20121 | PyObject *resultobj; | |
20122 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20123 | wxPoint result; | |
20124 | PyObject * obj0 = 0 ; | |
20125 | char *kwnames[] = { | |
20126 | (char *) "self", NULL | |
20127 | }; | |
20128 | ||
20129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
20130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20132 | { | |
20133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20134 | result = (arg1)->GetMarginBottomRight(); | |
20135 | ||
20136 | wxPyEndAllowThreads(__tstate); | |
20137 | if (PyErr_Occurred()) SWIG_fail; | |
20138 | } | |
20139 | { | |
20140 | wxPoint * resultptr; | |
20141 | resultptr = new wxPoint((wxPoint &) result); | |
20142 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20143 | } | |
20144 | return resultobj; | |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
20150 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20151 | PyObject *resultobj; | |
20152 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20153 | wxPoint result; | |
20154 | PyObject * obj0 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
20160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20162 | { | |
20163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20164 | result = (arg1)->GetMinMarginTopLeft(); | |
20165 | ||
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | { | |
20170 | wxPoint * resultptr; | |
20171 | resultptr = new wxPoint((wxPoint &) result); | |
20172 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20173 | } | |
20174 | return resultobj; | |
20175 | fail: | |
20176 | return NULL; | |
20177 | } | |
20178 | ||
20179 | ||
20180 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20181 | PyObject *resultobj; | |
20182 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20183 | wxPoint result; | |
20184 | PyObject * obj0 = 0 ; | |
20185 | char *kwnames[] = { | |
20186 | (char *) "self", NULL | |
20187 | }; | |
20188 | ||
20189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
20190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20192 | { | |
20193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20194 | result = (arg1)->GetMinMarginBottomRight(); | |
20195 | ||
20196 | wxPyEndAllowThreads(__tstate); | |
20197 | if (PyErr_Occurred()) SWIG_fail; | |
20198 | } | |
20199 | { | |
20200 | wxPoint * resultptr; | |
20201 | resultptr = new wxPoint((wxPoint &) result); | |
20202 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20203 | } | |
20204 | return resultobj; | |
20205 | fail: | |
20206 | return NULL; | |
20207 | } | |
20208 | ||
20209 | ||
20210 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20211 | PyObject *resultobj; | |
20212 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20213 | int result; | |
20214 | PyObject * obj0 = 0 ; | |
20215 | char *kwnames[] = { | |
20216 | (char *) "self", NULL | |
20217 | }; | |
20218 | ||
20219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
20220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20222 | { | |
20223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20224 | result = (int)(arg1)->GetPaperId(); | |
20225 | ||
20226 | wxPyEndAllowThreads(__tstate); | |
20227 | if (PyErr_Occurred()) SWIG_fail; | |
20228 | } | |
20229 | resultobj = SWIG_FromInt((int)result); | |
20230 | return resultobj; | |
20231 | fail: | |
20232 | return NULL; | |
20233 | } | |
20234 | ||
20235 | ||
20236 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20237 | PyObject *resultobj; | |
20238 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20239 | wxSize result; | |
20240 | PyObject * obj0 = 0 ; | |
20241 | char *kwnames[] = { | |
20242 | (char *) "self", NULL | |
20243 | }; | |
20244 | ||
20245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
20246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20248 | { | |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | result = (arg1)->GetPaperSize(); | |
20251 | ||
20252 | wxPyEndAllowThreads(__tstate); | |
20253 | if (PyErr_Occurred()) SWIG_fail; | |
20254 | } | |
20255 | { | |
20256 | wxSize * resultptr; | |
20257 | resultptr = new wxSize((wxSize &) result); | |
20258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20259 | } | |
20260 | return resultobj; | |
20261 | fail: | |
20262 | return NULL; | |
20263 | } | |
20264 | ||
20265 | ||
20266 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20267 | PyObject *resultobj; | |
20268 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20269 | wxPrintData *result; | |
20270 | PyObject * obj0 = 0 ; | |
20271 | char *kwnames[] = { | |
20272 | (char *) "self", NULL | |
20273 | }; | |
20274 | ||
20275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
20276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20278 | { | |
20279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20280 | { | |
20281 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
20282 | result = (wxPrintData *) &_result_ref; | |
20283 | } | |
20284 | ||
20285 | wxPyEndAllowThreads(__tstate); | |
20286 | if (PyErr_Occurred()) SWIG_fail; | |
20287 | } | |
20288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
20289 | return resultobj; | |
20290 | fail: | |
20291 | return NULL; | |
20292 | } | |
20293 | ||
20294 | ||
20295 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20296 | PyObject *resultobj; | |
20297 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20298 | bool result; | |
20299 | PyObject * obj0 = 0 ; | |
20300 | char *kwnames[] = { | |
20301 | (char *) "self", NULL | |
20302 | }; | |
20303 | ||
20304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
20305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20307 | { | |
20308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20309 | result = (bool)(arg1)->Ok(); | |
20310 | ||
20311 | wxPyEndAllowThreads(__tstate); | |
20312 | if (PyErr_Occurred()) SWIG_fail; | |
20313 | } | |
20314 | { | |
20315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20316 | } | |
20317 | return resultobj; | |
20318 | fail: | |
20319 | return NULL; | |
20320 | } | |
20321 | ||
20322 | ||
20323 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20324 | PyObject *resultobj; | |
20325 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20326 | bool arg2 ; | |
20327 | PyObject * obj0 = 0 ; | |
20328 | PyObject * obj1 = 0 ; | |
20329 | char *kwnames[] = { | |
20330 | (char *) "self",(char *) "flag", NULL | |
20331 | }; | |
20332 | ||
20333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
20334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20336 | arg2 = (bool) SWIG_AsBool(obj1); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | { | |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | (arg1)->SetDefaultInfo(arg2); | |
20341 | ||
20342 | wxPyEndAllowThreads(__tstate); | |
20343 | if (PyErr_Occurred()) SWIG_fail; | |
20344 | } | |
20345 | Py_INCREF(Py_None); resultobj = Py_None; | |
20346 | return resultobj; | |
20347 | fail: | |
20348 | return NULL; | |
20349 | } | |
20350 | ||
20351 | ||
20352 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20353 | PyObject *resultobj; | |
20354 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20355 | bool arg2 ; | |
20356 | PyObject * obj0 = 0 ; | |
20357 | PyObject * obj1 = 0 ; | |
20358 | char *kwnames[] = { | |
20359 | (char *) "self",(char *) "flag", NULL | |
20360 | }; | |
20361 | ||
20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
20363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20365 | arg2 = (bool) SWIG_AsBool(obj1); | |
20366 | if (PyErr_Occurred()) SWIG_fail; | |
20367 | { | |
20368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20369 | (arg1)->SetDefaultMinMargins(arg2); | |
20370 | ||
20371 | wxPyEndAllowThreads(__tstate); | |
20372 | if (PyErr_Occurred()) SWIG_fail; | |
20373 | } | |
20374 | Py_INCREF(Py_None); resultobj = Py_None; | |
20375 | return resultobj; | |
20376 | fail: | |
20377 | return NULL; | |
20378 | } | |
20379 | ||
20380 | ||
20381 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20382 | PyObject *resultobj; | |
20383 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20384 | wxPoint *arg2 = 0 ; | |
20385 | wxPoint temp2 ; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | PyObject * obj1 = 0 ; | |
20388 | char *kwnames[] = { | |
20389 | (char *) "self",(char *) "pt", NULL | |
20390 | }; | |
20391 | ||
20392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
20393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20395 | { | |
20396 | arg2 = &temp2; | |
20397 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20398 | } | |
20399 | { | |
20400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20401 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
20402 | ||
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | Py_INCREF(Py_None); resultobj = Py_None; | |
20407 | return resultobj; | |
20408 | fail: | |
20409 | return NULL; | |
20410 | } | |
20411 | ||
20412 | ||
20413 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20414 | PyObject *resultobj; | |
20415 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20416 | wxPoint *arg2 = 0 ; | |
20417 | wxPoint temp2 ; | |
20418 | PyObject * obj0 = 0 ; | |
20419 | PyObject * obj1 = 0 ; | |
20420 | char *kwnames[] = { | |
20421 | (char *) "self",(char *) "pt", NULL | |
20422 | }; | |
20423 | ||
20424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
20425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20427 | { | |
20428 | arg2 = &temp2; | |
20429 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20430 | } | |
20431 | { | |
20432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20433 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
20434 | ||
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | Py_INCREF(Py_None); resultobj = Py_None; | |
20439 | return resultobj; | |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
20445 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20446 | PyObject *resultobj; | |
20447 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20448 | wxPoint *arg2 = 0 ; | |
20449 | wxPoint temp2 ; | |
20450 | PyObject * obj0 = 0 ; | |
20451 | PyObject * obj1 = 0 ; | |
20452 | char *kwnames[] = { | |
20453 | (char *) "self",(char *) "pt", NULL | |
20454 | }; | |
20455 | ||
20456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
20457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20459 | { | |
20460 | arg2 = &temp2; | |
20461 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20462 | } | |
20463 | { | |
20464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20465 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
20466 | ||
20467 | wxPyEndAllowThreads(__tstate); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | } | |
20470 | Py_INCREF(Py_None); resultobj = Py_None; | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
20477 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20478 | PyObject *resultobj; | |
20479 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20480 | wxPoint *arg2 = 0 ; | |
20481 | wxPoint temp2 ; | |
20482 | PyObject * obj0 = 0 ; | |
20483 | PyObject * obj1 = 0 ; | |
20484 | char *kwnames[] = { | |
20485 | (char *) "self",(char *) "pt", NULL | |
20486 | }; | |
20487 | ||
20488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
20489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20491 | { | |
20492 | arg2 = &temp2; | |
20493 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20494 | } | |
20495 | { | |
20496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20497 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
20498 | ||
20499 | wxPyEndAllowThreads(__tstate); | |
20500 | if (PyErr_Occurred()) SWIG_fail; | |
20501 | } | |
20502 | Py_INCREF(Py_None); resultobj = Py_None; | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20510 | PyObject *resultobj; | |
20511 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20512 | int arg2 ; | |
20513 | PyObject * obj0 = 0 ; | |
20514 | PyObject * obj1 = 0 ; | |
20515 | char *kwnames[] = { | |
20516 | (char *) "self",(char *) "id", NULL | |
20517 | }; | |
20518 | ||
20519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
20520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20522 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
20523 | if (PyErr_Occurred()) SWIG_fail; | |
20524 | { | |
20525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20526 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
20527 | ||
20528 | wxPyEndAllowThreads(__tstate); | |
20529 | if (PyErr_Occurred()) SWIG_fail; | |
20530 | } | |
20531 | Py_INCREF(Py_None); resultobj = Py_None; | |
20532 | return resultobj; | |
20533 | fail: | |
20534 | return NULL; | |
20535 | } | |
20536 | ||
20537 | ||
20538 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20539 | PyObject *resultobj; | |
20540 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20541 | wxSize *arg2 = 0 ; | |
20542 | wxSize temp2 ; | |
20543 | PyObject * obj0 = 0 ; | |
20544 | PyObject * obj1 = 0 ; | |
20545 | char *kwnames[] = { | |
20546 | (char *) "self",(char *) "size", NULL | |
20547 | }; | |
20548 | ||
20549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
20550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20552 | { | |
20553 | arg2 = &temp2; | |
20554 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20555 | } | |
20556 | { | |
20557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20558 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
20559 | ||
20560 | wxPyEndAllowThreads(__tstate); | |
20561 | if (PyErr_Occurred()) SWIG_fail; | |
20562 | } | |
20563 | Py_INCREF(Py_None); resultobj = Py_None; | |
20564 | return resultobj; | |
20565 | fail: | |
20566 | return NULL; | |
20567 | } | |
20568 | ||
20569 | ||
20570 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20571 | PyObject *resultobj; | |
20572 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20573 | wxPrintData *arg2 = 0 ; | |
20574 | PyObject * obj0 = 0 ; | |
20575 | PyObject * obj1 = 0 ; | |
20576 | char *kwnames[] = { | |
20577 | (char *) "self",(char *) "printData", NULL | |
20578 | }; | |
20579 | ||
20580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
20581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
20584 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20585 | SWIG_fail; | |
20586 | if (arg2 == NULL) { | |
20587 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20588 | SWIG_fail; | |
20589 | } | |
20590 | { | |
20591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20592 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
20593 | ||
20594 | wxPyEndAllowThreads(__tstate); | |
20595 | if (PyErr_Occurred()) SWIG_fail; | |
20596 | } | |
20597 | Py_INCREF(Py_None); resultobj = Py_None; | |
20598 | return resultobj; | |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
20604 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
20605 | PyObject *obj; | |
20606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20607 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
20608 | Py_INCREF(obj); | |
20609 | return Py_BuildValue((char *)""); | |
20610 | } | |
20611 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20612 | PyObject *resultobj; | |
20613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20614 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
20615 | wxPageSetupDialog *result; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | PyObject * obj1 = 0 ; | |
20618 | char *kwnames[] = { | |
20619 | (char *) "parent",(char *) "data", NULL | |
20620 | }; | |
20621 | ||
20622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20625 | if (obj1) { | |
20626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
20627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20628 | } | |
20629 | { | |
0439c23b | 20630 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20632 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
20633 | ||
20634 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20635 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
20636 | } |
20637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
20638 | return resultobj; | |
20639 | fail: | |
20640 | return NULL; | |
20641 | } | |
20642 | ||
20643 | ||
20644 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20645 | PyObject *resultobj; | |
20646 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20647 | wxPageSetupDialogData *result; | |
20648 | PyObject * obj0 = 0 ; | |
20649 | char *kwnames[] = { | |
20650 | (char *) "self", NULL | |
20651 | }; | |
20652 | ||
20653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
20654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20656 | { | |
20657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20658 | { | |
20659 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
20660 | result = (wxPageSetupDialogData *) &_result_ref; | |
20661 | } | |
20662 | ||
20663 | wxPyEndAllowThreads(__tstate); | |
20664 | if (PyErr_Occurred()) SWIG_fail; | |
20665 | } | |
20666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
20667 | return resultobj; | |
20668 | fail: | |
20669 | return NULL; | |
20670 | } | |
20671 | ||
20672 | ||
20673 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20674 | PyObject *resultobj; | |
20675 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20676 | int result; | |
20677 | PyObject * obj0 = 0 ; | |
20678 | char *kwnames[] = { | |
20679 | (char *) "self", NULL | |
20680 | }; | |
20681 | ||
20682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
20683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20685 | { | |
20686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20687 | result = (int)(arg1)->ShowModal(); | |
20688 | ||
20689 | wxPyEndAllowThreads(__tstate); | |
20690 | if (PyErr_Occurred()) SWIG_fail; | |
20691 | } | |
20692 | resultobj = SWIG_FromInt((int)result); | |
20693 | return resultobj; | |
20694 | fail: | |
20695 | return NULL; | |
20696 | } | |
20697 | ||
20698 | ||
20699 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
20700 | PyObject *obj; | |
20701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20702 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
20703 | Py_INCREF(obj); | |
20704 | return Py_BuildValue((char *)""); | |
20705 | } | |
20706 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
20707 | PyObject *resultobj; | |
20708 | wxPrintDialogData *result; | |
20709 | ||
20710 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
20711 | { | |
20712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20713 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
20714 | ||
20715 | wxPyEndAllowThreads(__tstate); | |
20716 | if (PyErr_Occurred()) SWIG_fail; | |
20717 | } | |
20718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20719 | return resultobj; | |
20720 | fail: | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
20725 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
20726 | PyObject *resultobj; | |
20727 | wxPrintData *arg1 = 0 ; | |
20728 | wxPrintDialogData *result; | |
20729 | PyObject * obj0 = 0 ; | |
20730 | ||
20731 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
20732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
20733 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20734 | SWIG_fail; | |
20735 | if (arg1 == NULL) { | |
20736 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20737 | SWIG_fail; | |
20738 | } | |
20739 | { | |
20740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20741 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
20746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20747 | return resultobj; | |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
20754 | int argc; | |
20755 | PyObject *argv[2]; | |
20756 | int ii; | |
20757 | ||
20758 | argc = PyObject_Length(args); | |
20759 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
20760 | argv[ii] = PyTuple_GetItem(args,ii); | |
20761 | } | |
20762 | if (argc == 0) { | |
20763 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
20764 | } | |
20765 | if (argc == 1) { | |
20766 | int _v; | |
20767 | { | |
20768 | void *ptr; | |
20769 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
20770 | _v = 0; | |
20771 | PyErr_Clear(); | |
20772 | } else { | |
20773 | _v = 1; | |
20774 | } | |
20775 | } | |
20776 | if (_v) { | |
20777 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
20778 | } | |
20779 | } | |
20780 | ||
20781 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
20782 | return NULL; | |
20783 | } | |
20784 | ||
20785 | ||
20786 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20787 | PyObject *resultobj; | |
20788 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20789 | PyObject * obj0 = 0 ; | |
20790 | char *kwnames[] = { | |
20791 | (char *) "self", NULL | |
20792 | }; | |
20793 | ||
20794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
20795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20797 | { | |
20798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20799 | delete arg1; | |
20800 | ||
20801 | wxPyEndAllowThreads(__tstate); | |
20802 | if (PyErr_Occurred()) SWIG_fail; | |
20803 | } | |
20804 | Py_INCREF(Py_None); resultobj = Py_None; | |
20805 | return resultobj; | |
20806 | fail: | |
20807 | return NULL; | |
20808 | } | |
20809 | ||
20810 | ||
20811 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20812 | PyObject *resultobj; | |
20813 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20814 | int result; | |
20815 | PyObject * obj0 = 0 ; | |
20816 | char *kwnames[] = { | |
20817 | (char *) "self", NULL | |
20818 | }; | |
20819 | ||
20820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
20821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20823 | { | |
20824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20825 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
20826 | ||
20827 | wxPyEndAllowThreads(__tstate); | |
20828 | if (PyErr_Occurred()) SWIG_fail; | |
20829 | } | |
20830 | resultobj = SWIG_FromInt((int)result); | |
20831 | return resultobj; | |
20832 | fail: | |
20833 | return NULL; | |
20834 | } | |
20835 | ||
20836 | ||
20837 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20838 | PyObject *resultobj; | |
20839 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20840 | int result; | |
20841 | PyObject * obj0 = 0 ; | |
20842 | char *kwnames[] = { | |
20843 | (char *) "self", NULL | |
20844 | }; | |
20845 | ||
20846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
20847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20849 | { | |
20850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20851 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
20852 | ||
20853 | wxPyEndAllowThreads(__tstate); | |
20854 | if (PyErr_Occurred()) SWIG_fail; | |
20855 | } | |
20856 | resultobj = SWIG_FromInt((int)result); | |
20857 | return resultobj; | |
20858 | fail: | |
20859 | return NULL; | |
20860 | } | |
20861 | ||
20862 | ||
20863 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20864 | PyObject *resultobj; | |
20865 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20866 | int result; | |
20867 | PyObject * obj0 = 0 ; | |
20868 | char *kwnames[] = { | |
20869 | (char *) "self", NULL | |
20870 | }; | |
20871 | ||
20872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
20873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20875 | { | |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
20878 | ||
20879 | wxPyEndAllowThreads(__tstate); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | resultobj = SWIG_FromInt((int)result); | |
20883 | return resultobj; | |
20884 | fail: | |
20885 | return NULL; | |
20886 | } | |
20887 | ||
20888 | ||
20889 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20890 | PyObject *resultobj; | |
20891 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20892 | int result; | |
20893 | PyObject * obj0 = 0 ; | |
20894 | char *kwnames[] = { | |
20895 | (char *) "self", NULL | |
20896 | }; | |
20897 | ||
20898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
20899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20901 | { | |
20902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20903 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
20904 | ||
20905 | wxPyEndAllowThreads(__tstate); | |
20906 | if (PyErr_Occurred()) SWIG_fail; | |
20907 | } | |
20908 | resultobj = SWIG_FromInt((int)result); | |
20909 | return resultobj; | |
20910 | fail: | |
20911 | return NULL; | |
20912 | } | |
20913 | ||
20914 | ||
20915 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20916 | PyObject *resultobj; | |
20917 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20918 | int result; | |
20919 | PyObject * obj0 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "self", NULL | |
20922 | }; | |
20923 | ||
20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20927 | { | |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20930 | ||
20931 | wxPyEndAllowThreads(__tstate); | |
20932 | if (PyErr_Occurred()) SWIG_fail; | |
20933 | } | |
20934 | resultobj = SWIG_FromInt((int)result); | |
20935 | return resultobj; | |
20936 | fail: | |
20937 | return NULL; | |
20938 | } | |
20939 | ||
20940 | ||
20941 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20942 | PyObject *resultobj; | |
20943 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20944 | bool result; | |
20945 | PyObject * obj0 = 0 ; | |
20946 | char *kwnames[] = { | |
20947 | (char *) "self", NULL | |
20948 | }; | |
20949 | ||
20950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20953 | { | |
20954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20955 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20956 | ||
20957 | wxPyEndAllowThreads(__tstate); | |
20958 | if (PyErr_Occurred()) SWIG_fail; | |
20959 | } | |
20960 | { | |
20961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20962 | } | |
20963 | return resultobj; | |
20964 | fail: | |
20965 | return NULL; | |
20966 | } | |
20967 | ||
20968 | ||
20969 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20970 | PyObject *resultobj; | |
20971 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20972 | bool result; | |
20973 | PyObject * obj0 = 0 ; | |
20974 | char *kwnames[] = { | |
20975 | (char *) "self", NULL | |
20976 | }; | |
20977 | ||
20978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20981 | { | |
20982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20983 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20984 | ||
20985 | wxPyEndAllowThreads(__tstate); | |
20986 | if (PyErr_Occurred()) SWIG_fail; | |
20987 | } | |
20988 | { | |
20989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20990 | } | |
20991 | return resultobj; | |
20992 | fail: | |
20993 | return NULL; | |
20994 | } | |
20995 | ||
20996 | ||
20997 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20998 | PyObject *resultobj; | |
20999 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21000 | bool result; | |
21001 | PyObject * obj0 = 0 ; | |
21002 | char *kwnames[] = { | |
21003 | (char *) "self", NULL | |
21004 | }; | |
21005 | ||
21006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
21007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21009 | { | |
21010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21011 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
21012 | ||
21013 | wxPyEndAllowThreads(__tstate); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | } | |
21016 | { | |
21017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21018 | } | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
21025 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21026 | PyObject *resultobj; | |
21027 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21028 | bool result; | |
21029 | PyObject * obj0 = 0 ; | |
21030 | char *kwnames[] = { | |
21031 | (char *) "self", NULL | |
21032 | }; | |
21033 | ||
21034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
21035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21037 | { | |
21038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21039 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
21040 | ||
21041 | wxPyEndAllowThreads(__tstate); | |
21042 | if (PyErr_Occurred()) SWIG_fail; | |
21043 | } | |
21044 | { | |
21045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21046 | } | |
21047 | return resultobj; | |
21048 | fail: | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
21053 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21054 | PyObject *resultobj; | |
21055 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21056 | bool result; | |
21057 | PyObject * obj0 = 0 ; | |
21058 | char *kwnames[] = { | |
21059 | (char *) "self", NULL | |
21060 | }; | |
21061 | ||
21062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
21063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21065 | { | |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
21072 | { | |
21073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21074 | } | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21084 | int arg2 ; | |
21085 | PyObject * obj0 = 0 ; | |
21086 | PyObject * obj1 = 0 ; | |
21087 | char *kwnames[] = { | |
21088 | (char *) "self",(char *) "v", NULL | |
21089 | }; | |
21090 | ||
21091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
21092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21094 | arg2 = (int) SWIG_AsInt(obj1); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | { | |
21097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21098 | (arg1)->SetFromPage(arg2); | |
21099 | ||
21100 | wxPyEndAllowThreads(__tstate); | |
21101 | if (PyErr_Occurred()) SWIG_fail; | |
21102 | } | |
21103 | Py_INCREF(Py_None); resultobj = Py_None; | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
21110 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21111 | PyObject *resultobj; | |
21112 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21113 | int arg2 ; | |
21114 | PyObject * obj0 = 0 ; | |
21115 | PyObject * obj1 = 0 ; | |
21116 | char *kwnames[] = { | |
21117 | (char *) "self",(char *) "v", NULL | |
21118 | }; | |
21119 | ||
21120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
21121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21123 | arg2 = (int) SWIG_AsInt(obj1); | |
21124 | if (PyErr_Occurred()) SWIG_fail; | |
21125 | { | |
21126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21127 | (arg1)->SetToPage(arg2); | |
21128 | ||
21129 | wxPyEndAllowThreads(__tstate); | |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
21131 | } | |
21132 | Py_INCREF(Py_None); resultobj = Py_None; | |
21133 | return resultobj; | |
21134 | fail: | |
21135 | return NULL; | |
21136 | } | |
21137 | ||
21138 | ||
21139 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21140 | PyObject *resultobj; | |
21141 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21142 | int arg2 ; | |
21143 | PyObject * obj0 = 0 ; | |
21144 | PyObject * obj1 = 0 ; | |
21145 | char *kwnames[] = { | |
21146 | (char *) "self",(char *) "v", NULL | |
21147 | }; | |
21148 | ||
21149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
21150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21152 | arg2 = (int) SWIG_AsInt(obj1); | |
21153 | if (PyErr_Occurred()) SWIG_fail; | |
21154 | { | |
21155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21156 | (arg1)->SetMinPage(arg2); | |
21157 | ||
21158 | wxPyEndAllowThreads(__tstate); | |
21159 | if (PyErr_Occurred()) SWIG_fail; | |
21160 | } | |
21161 | Py_INCREF(Py_None); resultobj = Py_None; | |
21162 | return resultobj; | |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
21168 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21169 | PyObject *resultobj; | |
21170 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21171 | int arg2 ; | |
21172 | PyObject * obj0 = 0 ; | |
21173 | PyObject * obj1 = 0 ; | |
21174 | char *kwnames[] = { | |
21175 | (char *) "self",(char *) "v", NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
21179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21181 | arg2 = (int) SWIG_AsInt(obj1); | |
21182 | if (PyErr_Occurred()) SWIG_fail; | |
21183 | { | |
21184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21185 | (arg1)->SetMaxPage(arg2); | |
21186 | ||
21187 | wxPyEndAllowThreads(__tstate); | |
21188 | if (PyErr_Occurred()) SWIG_fail; | |
21189 | } | |
21190 | Py_INCREF(Py_None); resultobj = Py_None; | |
21191 | return resultobj; | |
21192 | fail: | |
21193 | return NULL; | |
21194 | } | |
21195 | ||
21196 | ||
21197 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21198 | PyObject *resultobj; | |
21199 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21200 | int arg2 ; | |
21201 | PyObject * obj0 = 0 ; | |
21202 | PyObject * obj1 = 0 ; | |
21203 | char *kwnames[] = { | |
21204 | (char *) "self",(char *) "v", NULL | |
21205 | }; | |
21206 | ||
21207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
21208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21210 | arg2 = (int) SWIG_AsInt(obj1); | |
21211 | if (PyErr_Occurred()) SWIG_fail; | |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | (arg1)->SetNoCopies(arg2); | |
21215 | ||
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | Py_INCREF(Py_None); resultobj = Py_None; | |
21220 | return resultobj; | |
21221 | fail: | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21227 | PyObject *resultobj; | |
21228 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21229 | bool arg2 ; | |
21230 | PyObject * obj0 = 0 ; | |
21231 | PyObject * obj1 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "self",(char *) "flag", NULL | |
21234 | }; | |
21235 | ||
21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
21237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21239 | arg2 = (bool) SWIG_AsBool(obj1); | |
21240 | if (PyErr_Occurred()) SWIG_fail; | |
21241 | { | |
21242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21243 | (arg1)->SetAllPages(arg2); | |
21244 | ||
21245 | wxPyEndAllowThreads(__tstate); | |
21246 | if (PyErr_Occurred()) SWIG_fail; | |
21247 | } | |
21248 | Py_INCREF(Py_None); resultobj = Py_None; | |
21249 | return resultobj; | |
21250 | fail: | |
21251 | return NULL; | |
21252 | } | |
21253 | ||
21254 | ||
21255 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21256 | PyObject *resultobj; | |
21257 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21258 | bool arg2 ; | |
21259 | PyObject * obj0 = 0 ; | |
21260 | PyObject * obj1 = 0 ; | |
21261 | char *kwnames[] = { | |
21262 | (char *) "self",(char *) "flag", NULL | |
21263 | }; | |
21264 | ||
21265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
21266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21268 | arg2 = (bool) SWIG_AsBool(obj1); | |
21269 | if (PyErr_Occurred()) SWIG_fail; | |
21270 | { | |
21271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21272 | (arg1)->SetSelection(arg2); | |
21273 | ||
21274 | wxPyEndAllowThreads(__tstate); | |
21275 | if (PyErr_Occurred()) SWIG_fail; | |
21276 | } | |
21277 | Py_INCREF(Py_None); resultobj = Py_None; | |
21278 | return resultobj; | |
21279 | fail: | |
21280 | return NULL; | |
21281 | } | |
21282 | ||
21283 | ||
21284 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21285 | PyObject *resultobj; | |
21286 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21287 | bool arg2 ; | |
21288 | PyObject * obj0 = 0 ; | |
21289 | PyObject * obj1 = 0 ; | |
21290 | char *kwnames[] = { | |
21291 | (char *) "self",(char *) "flag", NULL | |
21292 | }; | |
21293 | ||
21294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
21295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21297 | arg2 = (bool) SWIG_AsBool(obj1); | |
21298 | if (PyErr_Occurred()) SWIG_fail; | |
21299 | { | |
21300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21301 | (arg1)->SetCollate(arg2); | |
21302 | ||
21303 | wxPyEndAllowThreads(__tstate); | |
21304 | if (PyErr_Occurred()) SWIG_fail; | |
21305 | } | |
21306 | Py_INCREF(Py_None); resultobj = Py_None; | |
21307 | return resultobj; | |
21308 | fail: | |
21309 | return NULL; | |
21310 | } | |
21311 | ||
21312 | ||
21313 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21314 | PyObject *resultobj; | |
21315 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21316 | bool arg2 ; | |
21317 | PyObject * obj0 = 0 ; | |
21318 | PyObject * obj1 = 0 ; | |
21319 | char *kwnames[] = { | |
21320 | (char *) "self",(char *) "flag", NULL | |
21321 | }; | |
21322 | ||
21323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
21324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21326 | arg2 = (bool) SWIG_AsBool(obj1); | |
21327 | if (PyErr_Occurred()) SWIG_fail; | |
21328 | { | |
21329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21330 | (arg1)->SetPrintToFile(arg2); | |
21331 | ||
21332 | wxPyEndAllowThreads(__tstate); | |
21333 | if (PyErr_Occurred()) SWIG_fail; | |
21334 | } | |
21335 | Py_INCREF(Py_None); resultobj = Py_None; | |
21336 | return resultobj; | |
21337 | fail: | |
21338 | return NULL; | |
21339 | } | |
21340 | ||
21341 | ||
21342 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21343 | PyObject *resultobj; | |
21344 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21345 | bool arg2 ; | |
21346 | PyObject * obj0 = 0 ; | |
21347 | PyObject * obj1 = 0 ; | |
21348 | char *kwnames[] = { | |
21349 | (char *) "self",(char *) "flag", NULL | |
21350 | }; | |
21351 | ||
21352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
21353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21355 | arg2 = (bool) SWIG_AsBool(obj1); | |
21356 | if (PyErr_Occurred()) SWIG_fail; | |
21357 | { | |
21358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21359 | (arg1)->SetSetupDialog(arg2); | |
21360 | ||
21361 | wxPyEndAllowThreads(__tstate); | |
21362 | if (PyErr_Occurred()) SWIG_fail; | |
21363 | } | |
21364 | Py_INCREF(Py_None); resultobj = Py_None; | |
21365 | return resultobj; | |
21366 | fail: | |
21367 | return NULL; | |
21368 | } | |
21369 | ||
21370 | ||
21371 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21372 | PyObject *resultobj; | |
21373 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21374 | bool arg2 ; | |
21375 | PyObject * obj0 = 0 ; | |
21376 | PyObject * obj1 = 0 ; | |
21377 | char *kwnames[] = { | |
21378 | (char *) "self",(char *) "flag", NULL | |
21379 | }; | |
21380 | ||
21381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
21382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21384 | arg2 = (bool) SWIG_AsBool(obj1); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | { | |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | (arg1)->EnablePrintToFile(arg2); | |
21389 | ||
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | Py_INCREF(Py_None); resultobj = Py_None; | |
21394 | return resultobj; | |
21395 | fail: | |
21396 | return NULL; | |
21397 | } | |
21398 | ||
21399 | ||
21400 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21401 | PyObject *resultobj; | |
21402 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21403 | bool arg2 ; | |
21404 | PyObject * obj0 = 0 ; | |
21405 | PyObject * obj1 = 0 ; | |
21406 | char *kwnames[] = { | |
21407 | (char *) "self",(char *) "flag", NULL | |
21408 | }; | |
21409 | ||
21410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
21411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21413 | arg2 = (bool) SWIG_AsBool(obj1); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | { | |
21416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21417 | (arg1)->EnableSelection(arg2); | |
21418 | ||
21419 | wxPyEndAllowThreads(__tstate); | |
21420 | if (PyErr_Occurred()) SWIG_fail; | |
21421 | } | |
21422 | Py_INCREF(Py_None); resultobj = Py_None; | |
21423 | return resultobj; | |
21424 | fail: | |
21425 | return NULL; | |
21426 | } | |
21427 | ||
21428 | ||
21429 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21430 | PyObject *resultobj; | |
21431 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21432 | bool arg2 ; | |
21433 | PyObject * obj0 = 0 ; | |
21434 | PyObject * obj1 = 0 ; | |
21435 | char *kwnames[] = { | |
21436 | (char *) "self",(char *) "flag", NULL | |
21437 | }; | |
21438 | ||
21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
21440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21442 | arg2 = (bool) SWIG_AsBool(obj1); | |
21443 | if (PyErr_Occurred()) SWIG_fail; | |
21444 | { | |
21445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21446 | (arg1)->EnablePageNumbers(arg2); | |
21447 | ||
21448 | wxPyEndAllowThreads(__tstate); | |
21449 | if (PyErr_Occurred()) SWIG_fail; | |
21450 | } | |
21451 | Py_INCREF(Py_None); resultobj = Py_None; | |
21452 | return resultobj; | |
21453 | fail: | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
21458 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21459 | PyObject *resultobj; | |
21460 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21461 | bool arg2 ; | |
21462 | PyObject * obj0 = 0 ; | |
21463 | PyObject * obj1 = 0 ; | |
21464 | char *kwnames[] = { | |
21465 | (char *) "self",(char *) "flag", NULL | |
21466 | }; | |
21467 | ||
21468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
21469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21471 | arg2 = (bool) SWIG_AsBool(obj1); | |
21472 | if (PyErr_Occurred()) SWIG_fail; | |
21473 | { | |
21474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21475 | (arg1)->EnableHelp(arg2); | |
21476 | ||
21477 | wxPyEndAllowThreads(__tstate); | |
21478 | if (PyErr_Occurred()) SWIG_fail; | |
21479 | } | |
21480 | Py_INCREF(Py_None); resultobj = Py_None; | |
21481 | return resultobj; | |
21482 | fail: | |
21483 | return NULL; | |
21484 | } | |
21485 | ||
21486 | ||
21487 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21488 | PyObject *resultobj; | |
21489 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21490 | bool result; | |
21491 | PyObject * obj0 = 0 ; | |
21492 | char *kwnames[] = { | |
21493 | (char *) "self", NULL | |
21494 | }; | |
21495 | ||
21496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
21497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21499 | { | |
21500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21501 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
21502 | ||
21503 | wxPyEndAllowThreads(__tstate); | |
21504 | if (PyErr_Occurred()) SWIG_fail; | |
21505 | } | |
21506 | { | |
21507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21508 | } | |
21509 | return resultobj; | |
21510 | fail: | |
21511 | return NULL; | |
21512 | } | |
21513 | ||
21514 | ||
21515 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21516 | PyObject *resultobj; | |
21517 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21518 | bool result; | |
21519 | PyObject * obj0 = 0 ; | |
21520 | char *kwnames[] = { | |
21521 | (char *) "self", NULL | |
21522 | }; | |
21523 | ||
21524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
21525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21527 | { | |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | { | |
21535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21536 | } | |
21537 | return resultobj; | |
21538 | fail: | |
21539 | return NULL; | |
21540 | } | |
21541 | ||
21542 | ||
21543 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21544 | PyObject *resultobj; | |
21545 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21546 | bool result; | |
21547 | PyObject * obj0 = 0 ; | |
21548 | char *kwnames[] = { | |
21549 | (char *) "self", NULL | |
21550 | }; | |
21551 | ||
21552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
21553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21555 | { | |
21556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21557 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
21558 | ||
21559 | wxPyEndAllowThreads(__tstate); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | } | |
21562 | { | |
21563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21564 | } | |
21565 | return resultobj; | |
21566 | fail: | |
21567 | return NULL; | |
21568 | } | |
21569 | ||
21570 | ||
21571 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21572 | PyObject *resultobj; | |
21573 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21574 | bool result; | |
21575 | PyObject * obj0 = 0 ; | |
21576 | char *kwnames[] = { | |
21577 | (char *) "self", NULL | |
21578 | }; | |
21579 | ||
21580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
21581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21583 | { | |
21584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21585 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
21586 | ||
21587 | wxPyEndAllowThreads(__tstate); | |
21588 | if (PyErr_Occurred()) SWIG_fail; | |
21589 | } | |
21590 | { | |
21591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21592 | } | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21602 | bool result; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | char *kwnames[] = { | |
21605 | (char *) "self", NULL | |
21606 | }; | |
21607 | ||
21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
21609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21611 | { | |
21612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21613 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
21614 | ||
21615 | wxPyEndAllowThreads(__tstate); | |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
21617 | } | |
21618 | { | |
21619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21620 | } | |
21621 | return resultobj; | |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21630 | wxPrintData *result; | |
21631 | PyObject * obj0 = 0 ; | |
21632 | char *kwnames[] = { | |
21633 | (char *) "self", NULL | |
21634 | }; | |
21635 | ||
21636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
21637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21639 | { | |
21640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21641 | { | |
21642 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
21643 | result = (wxPrintData *) &_result_ref; | |
21644 | } | |
21645 | ||
21646 | wxPyEndAllowThreads(__tstate); | |
21647 | if (PyErr_Occurred()) SWIG_fail; | |
21648 | } | |
21649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
21650 | return resultobj; | |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
21656 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21657 | PyObject *resultobj; | |
21658 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21659 | wxPrintData *arg2 = 0 ; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | PyObject * obj1 = 0 ; | |
21662 | char *kwnames[] = { | |
21663 | (char *) "self",(char *) "printData", NULL | |
21664 | }; | |
21665 | ||
21666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
21667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
21670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21671 | SWIG_fail; | |
21672 | if (arg2 == NULL) { | |
21673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21674 | SWIG_fail; | |
21675 | } | |
21676 | { | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21679 | ||
21680 | wxPyEndAllowThreads(__tstate); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
21683 | Py_INCREF(Py_None); resultobj = Py_None; | |
21684 | return resultobj; | |
21685 | fail: | |
21686 | return NULL; | |
21687 | } | |
21688 | ||
21689 | ||
21690 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
21691 | PyObject *obj; | |
21692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21693 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
21694 | Py_INCREF(obj); | |
21695 | return Py_BuildValue((char *)""); | |
21696 | } | |
21697 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21698 | PyObject *resultobj; | |
21699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21700 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
21701 | wxPrintDialog *result; | |
21702 | PyObject * obj0 = 0 ; | |
21703 | PyObject * obj1 = 0 ; | |
21704 | char *kwnames[] = { | |
21705 | (char *) "parent",(char *) "data", NULL | |
21706 | }; | |
21707 | ||
21708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21711 | if (obj1) { | |
21712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
21713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21714 | } | |
21715 | { | |
0439c23b | 21716 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21718 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
21719 | ||
21720 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21721 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21722 | } |
21723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
21724 | return resultobj; | |
21725 | fail: | |
21726 | return NULL; | |
21727 | } | |
21728 | ||
21729 | ||
21730 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21731 | PyObject *resultobj; | |
21732 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21733 | wxPrintDialogData *result; | |
21734 | PyObject * obj0 = 0 ; | |
21735 | char *kwnames[] = { | |
21736 | (char *) "self", NULL | |
21737 | }; | |
21738 | ||
21739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21742 | { | |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | { | |
21745 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21746 | result = (wxPrintDialogData *) &_result_ref; | |
21747 | } | |
21748 | ||
21749 | wxPyEndAllowThreads(__tstate); | |
21750 | if (PyErr_Occurred()) SWIG_fail; | |
21751 | } | |
21752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21753 | return resultobj; | |
21754 | fail: | |
21755 | return NULL; | |
21756 | } | |
21757 | ||
21758 | ||
21759 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21760 | PyObject *resultobj; | |
21761 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21762 | wxDC *result; | |
21763 | PyObject * obj0 = 0 ; | |
21764 | char *kwnames[] = { | |
21765 | (char *) "self", NULL | |
21766 | }; | |
21767 | ||
21768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
21769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21771 | { | |
21772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21773 | result = (wxDC *)(arg1)->GetPrintDC(); | |
21774 | ||
21775 | wxPyEndAllowThreads(__tstate); | |
21776 | if (PyErr_Occurred()) SWIG_fail; | |
21777 | } | |
21778 | { | |
412d302d | 21779 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
21780 | } |
21781 | return resultobj; | |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
21787 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21788 | PyObject *resultobj; | |
21789 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21790 | int result; | |
21791 | PyObject * obj0 = 0 ; | |
21792 | char *kwnames[] = { | |
21793 | (char *) "self", NULL | |
21794 | }; | |
21795 | ||
21796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
21797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21799 | { | |
21800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21801 | result = (int)(arg1)->ShowModal(); | |
21802 | ||
21803 | wxPyEndAllowThreads(__tstate); | |
21804 | if (PyErr_Occurred()) SWIG_fail; | |
21805 | } | |
21806 | resultobj = SWIG_FromInt((int)result); | |
21807 | return resultobj; | |
21808 | fail: | |
21809 | return NULL; | |
21810 | } | |
21811 | ||
21812 | ||
21813 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
21814 | PyObject *obj; | |
21815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21816 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
21817 | Py_INCREF(obj); | |
21818 | return Py_BuildValue((char *)""); | |
21819 | } | |
21820 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21821 | PyObject *resultobj; | |
21822 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
21823 | wxPrinter *result; | |
21824 | PyObject * obj0 = 0 ; | |
21825 | char *kwnames[] = { | |
21826 | (char *) "data", NULL | |
21827 | }; | |
21828 | ||
21829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
21830 | if (obj0) { | |
21831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21833 | } | |
21834 | { | |
0439c23b | 21835 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21837 | result = (wxPrinter *)new wxPrinter(arg1); | |
21838 | ||
21839 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21840 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21841 | } |
21842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
21843 | return resultobj; | |
21844 | fail: | |
21845 | return NULL; | |
21846 | } | |
21847 | ||
21848 | ||
21849 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21850 | PyObject *resultobj; | |
21851 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21852 | PyObject * obj0 = 0 ; | |
21853 | char *kwnames[] = { | |
21854 | (char *) "self", NULL | |
21855 | }; | |
21856 | ||
21857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
21858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21860 | { | |
21861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21862 | delete arg1; | |
21863 | ||
21864 | wxPyEndAllowThreads(__tstate); | |
21865 | if (PyErr_Occurred()) SWIG_fail; | |
21866 | } | |
21867 | Py_INCREF(Py_None); resultobj = Py_None; | |
21868 | return resultobj; | |
21869 | fail: | |
21870 | return NULL; | |
21871 | } | |
21872 | ||
21873 | ||
21874 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21875 | PyObject *resultobj; | |
21876 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21877 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21878 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21879 | PyObject * obj0 = 0 ; | |
21880 | PyObject * obj1 = 0 ; | |
21881 | PyObject * obj2 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21891 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21893 | { | |
21894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21895 | (arg1)->CreateAbortWindow(arg2,arg3); | |
21896 | ||
21897 | wxPyEndAllowThreads(__tstate); | |
21898 | if (PyErr_Occurred()) SWIG_fail; | |
21899 | } | |
21900 | Py_INCREF(Py_None); resultobj = Py_None; | |
21901 | return resultobj; | |
21902 | fail: | |
21903 | return NULL; | |
21904 | } | |
21905 | ||
21906 | ||
21907 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21908 | PyObject *resultobj; | |
21909 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21910 | wxPrintDialogData *result; | |
21911 | PyObject * obj0 = 0 ; | |
21912 | char *kwnames[] = { | |
21913 | (char *) "self", NULL | |
21914 | }; | |
21915 | ||
21916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21919 | { | |
21920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21921 | { | |
21922 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21923 | result = (wxPrintDialogData *) &_result_ref; | |
21924 | } | |
21925 | ||
21926 | wxPyEndAllowThreads(__tstate); | |
21927 | if (PyErr_Occurred()) SWIG_fail; | |
21928 | } | |
21929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21939 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21940 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21941 | int arg4 = (int) True ; | |
21942 | bool result; | |
21943 | PyObject * obj0 = 0 ; | |
21944 | PyObject * obj1 = 0 ; | |
21945 | PyObject * obj2 = 0 ; | |
21946 | PyObject * obj3 = 0 ; | |
21947 | char *kwnames[] = { | |
21948 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21949 | }; | |
21950 | ||
21951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21956 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21958 | if (obj3) { | |
21959 | arg4 = (int) SWIG_AsInt(obj3); | |
21960 | if (PyErr_Occurred()) SWIG_fail; | |
21961 | } | |
21962 | { | |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
21969 | { | |
21970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21971 | } | |
21972 | return resultobj; | |
21973 | fail: | |
21974 | return NULL; | |
21975 | } | |
21976 | ||
21977 | ||
21978 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21979 | PyObject *resultobj; | |
21980 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21981 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21982 | wxDC *result; | |
21983 | PyObject * obj0 = 0 ; | |
21984 | PyObject * obj1 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self",(char *) "parent", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21992 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21994 | { | |
21995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21996 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21997 | ||
21998 | wxPyEndAllowThreads(__tstate); | |
21999 | if (PyErr_Occurred()) SWIG_fail; | |
22000 | } | |
22001 | { | |
412d302d | 22002 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22003 | } |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
22010 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22011 | PyObject *resultobj; | |
22012 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
22013 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22014 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
22015 | wxString *arg4 = 0 ; | |
22016 | bool temp4 = False ; | |
22017 | PyObject * obj0 = 0 ; | |
22018 | PyObject * obj1 = 0 ; | |
22019 | PyObject * obj2 = 0 ; | |
22020 | PyObject * obj3 = 0 ; | |
22021 | char *kwnames[] = { | |
22022 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
22023 | }; | |
22024 | ||
22025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
22027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22030 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
22031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22032 | { | |
22033 | arg4 = wxString_in_helper(obj3); | |
22034 | if (arg4 == NULL) SWIG_fail; | |
22035 | temp4 = True; | |
22036 | } | |
22037 | { | |
22038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22039 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
22040 | ||
22041 | wxPyEndAllowThreads(__tstate); | |
22042 | if (PyErr_Occurred()) SWIG_fail; | |
22043 | } | |
22044 | Py_INCREF(Py_None); resultobj = Py_None; | |
22045 | { | |
22046 | if (temp4) | |
22047 | delete arg4; | |
22048 | } | |
22049 | return resultobj; | |
22050 | fail: | |
22051 | { | |
22052 | if (temp4) | |
22053 | delete arg4; | |
22054 | } | |
22055 | return NULL; | |
22056 | } | |
22057 | ||
22058 | ||
22059 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22060 | PyObject *resultobj; | |
22061 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
22062 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22063 | bool result; | |
22064 | PyObject * obj0 = 0 ; | |
22065 | PyObject * obj1 = 0 ; | |
22066 | char *kwnames[] = { | |
22067 | (char *) "self",(char *) "parent", NULL | |
22068 | }; | |
22069 | ||
22070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
22071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
22072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22075 | { | |
22076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22077 | result = (bool)(arg1)->Setup(arg2); | |
22078 | ||
22079 | wxPyEndAllowThreads(__tstate); | |
22080 | if (PyErr_Occurred()) SWIG_fail; | |
22081 | } | |
22082 | { | |
22083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22084 | } | |
22085 | return resultobj; | |
22086 | fail: | |
22087 | return NULL; | |
22088 | } | |
22089 | ||
22090 | ||
22091 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22092 | PyObject *resultobj; | |
22093 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
22094 | bool result; | |
22095 | PyObject * obj0 = 0 ; | |
22096 | char *kwnames[] = { | |
22097 | (char *) "self", NULL | |
22098 | }; | |
22099 | ||
22100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
22101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
22102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22103 | { | |
22104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22105 | result = (bool)(arg1)->GetAbort(); | |
22106 | ||
22107 | wxPyEndAllowThreads(__tstate); | |
22108 | if (PyErr_Occurred()) SWIG_fail; | |
22109 | } | |
22110 | { | |
22111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22112 | } | |
22113 | return resultobj; | |
22114 | fail: | |
22115 | return NULL; | |
22116 | } | |
22117 | ||
22118 | ||
22119 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22120 | PyObject *resultobj; | |
22121 | int result; | |
22122 | char *kwnames[] = { | |
22123 | NULL | |
22124 | }; | |
22125 | ||
22126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
22127 | { | |
22128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22129 | result = (int)wxPrinter::GetLastError(); | |
22130 | ||
22131 | wxPyEndAllowThreads(__tstate); | |
22132 | if (PyErr_Occurred()) SWIG_fail; | |
22133 | } | |
22134 | resultobj = SWIG_FromInt((int)result); | |
22135 | return resultobj; | |
22136 | fail: | |
22137 | return NULL; | |
22138 | } | |
22139 | ||
22140 | ||
22141 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
22142 | PyObject *obj; | |
22143 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22144 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
22145 | Py_INCREF(obj); | |
22146 | return Py_BuildValue((char *)""); | |
22147 | } | |
22148 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22149 | PyObject *resultobj; | |
22150 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
22151 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22152 | wxPyPrintout *result; | |
22153 | bool temp1 = False ; | |
22154 | PyObject * obj0 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "title", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
22160 | if (obj0) { | |
22161 | { | |
22162 | arg1 = wxString_in_helper(obj0); | |
22163 | if (arg1 == NULL) SWIG_fail; | |
22164 | temp1 = True; | |
22165 | } | |
22166 | } | |
22167 | { | |
0439c23b | 22168 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22170 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
22171 | ||
22172 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22173 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22174 | } |
22175 | { | |
412d302d | 22176 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
22177 | } |
22178 | { | |
22179 | if (temp1) | |
22180 | delete arg1; | |
22181 | } | |
22182 | return resultobj; | |
22183 | fail: | |
22184 | { | |
22185 | if (temp1) | |
22186 | delete arg1; | |
22187 | } | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
22192 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22193 | PyObject *resultobj; | |
22194 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22195 | PyObject *arg2 = (PyObject *) 0 ; | |
22196 | PyObject *arg3 = (PyObject *) 0 ; | |
22197 | PyObject * obj0 = 0 ; | |
22198 | PyObject * obj1 = 0 ; | |
22199 | PyObject * obj2 = 0 ; | |
22200 | char *kwnames[] = { | |
22201 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22202 | }; | |
22203 | ||
22204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22207 | arg2 = obj1; | |
22208 | arg3 = obj2; | |
22209 | { | |
22210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22211 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22212 | ||
22213 | wxPyEndAllowThreads(__tstate); | |
22214 | if (PyErr_Occurred()) SWIG_fail; | |
22215 | } | |
22216 | Py_INCREF(Py_None); resultobj = Py_None; | |
22217 | return resultobj; | |
22218 | fail: | |
22219 | return NULL; | |
22220 | } | |
22221 | ||
22222 | ||
22223 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22224 | PyObject *resultobj; | |
22225 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22226 | wxString result; | |
22227 | PyObject * obj0 = 0 ; | |
22228 | char *kwnames[] = { | |
22229 | (char *) "self", NULL | |
22230 | }; | |
22231 | ||
22232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",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 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
22238 | ||
22239 | wxPyEndAllowThreads(__tstate); | |
22240 | if (PyErr_Occurred()) SWIG_fail; | |
22241 | } | |
22242 | { | |
22243 | #if wxUSE_UNICODE | |
22244 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22245 | #else | |
22246 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22247 | #endif | |
22248 | } | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
22255 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22256 | PyObject *resultobj; | |
22257 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22258 | wxDC *result; | |
22259 | PyObject * obj0 = 0 ; | |
22260 | char *kwnames[] = { | |
22261 | (char *) "self", NULL | |
22262 | }; | |
22263 | ||
22264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
22265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22267 | { | |
22268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22269 | result = (wxDC *)(arg1)->GetDC(); | |
22270 | ||
22271 | wxPyEndAllowThreads(__tstate); | |
22272 | if (PyErr_Occurred()) SWIG_fail; | |
22273 | } | |
22274 | { | |
412d302d | 22275 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22276 | } |
22277 | return resultobj; | |
22278 | fail: | |
22279 | return NULL; | |
22280 | } | |
22281 | ||
22282 | ||
22283 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22284 | PyObject *resultobj; | |
22285 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22286 | wxDC *arg2 = (wxDC *) 0 ; | |
22287 | PyObject * obj0 = 0 ; | |
22288 | PyObject * obj1 = 0 ; | |
22289 | char *kwnames[] = { | |
22290 | (char *) "self",(char *) "dc", NULL | |
22291 | }; | |
22292 | ||
22293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
22294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22296 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22298 | { | |
22299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22300 | (arg1)->SetDC(arg2); | |
22301 | ||
22302 | wxPyEndAllowThreads(__tstate); | |
22303 | if (PyErr_Occurred()) SWIG_fail; | |
22304 | } | |
22305 | Py_INCREF(Py_None); resultobj = Py_None; | |
22306 | return resultobj; | |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
22312 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22313 | PyObject *resultobj; | |
22314 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22315 | int arg2 ; | |
22316 | int arg3 ; | |
22317 | PyObject * obj0 = 0 ; | |
22318 | PyObject * obj1 = 0 ; | |
22319 | PyObject * obj2 = 0 ; | |
22320 | char *kwnames[] = { | |
22321 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22322 | }; | |
22323 | ||
22324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22327 | arg2 = (int) SWIG_AsInt(obj1); | |
22328 | if (PyErr_Occurred()) SWIG_fail; | |
22329 | arg3 = (int) SWIG_AsInt(obj2); | |
22330 | if (PyErr_Occurred()) SWIG_fail; | |
22331 | { | |
22332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22333 | (arg1)->SetPageSizePixels(arg2,arg3); | |
22334 | ||
22335 | wxPyEndAllowThreads(__tstate); | |
22336 | if (PyErr_Occurred()) SWIG_fail; | |
22337 | } | |
22338 | Py_INCREF(Py_None); resultobj = Py_None; | |
22339 | return resultobj; | |
22340 | fail: | |
22341 | return NULL; | |
22342 | } | |
22343 | ||
22344 | ||
22345 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22346 | PyObject *resultobj; | |
22347 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22348 | int *arg2 = (int *) 0 ; | |
22349 | int *arg3 = (int *) 0 ; | |
22350 | int temp2 ; | |
22351 | int temp3 ; | |
22352 | PyObject * obj0 = 0 ; | |
22353 | char *kwnames[] = { | |
22354 | (char *) "self", NULL | |
22355 | }; | |
22356 | ||
22357 | arg2 = &temp2; | |
22358 | arg3 = &temp3; | |
22359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
22360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22362 | { | |
22363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22364 | (arg1)->GetPageSizePixels(arg2,arg3); | |
22365 | ||
22366 | wxPyEndAllowThreads(__tstate); | |
22367 | if (PyErr_Occurred()) SWIG_fail; | |
22368 | } | |
22369 | Py_INCREF(Py_None); resultobj = Py_None; | |
22370 | { | |
22371 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22372 | resultobj = t_output_helper(resultobj,o); | |
22373 | } | |
22374 | { | |
22375 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22376 | resultobj = t_output_helper(resultobj,o); | |
22377 | } | |
22378 | return resultobj; | |
22379 | fail: | |
22380 | return NULL; | |
22381 | } | |
22382 | ||
22383 | ||
22384 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22385 | PyObject *resultobj; | |
22386 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22387 | int arg2 ; | |
22388 | int arg3 ; | |
22389 | PyObject * obj0 = 0 ; | |
22390 | PyObject * obj1 = 0 ; | |
22391 | PyObject * obj2 = 0 ; | |
22392 | char *kwnames[] = { | |
22393 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22394 | }; | |
22395 | ||
22396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22399 | arg2 = (int) SWIG_AsInt(obj1); | |
22400 | if (PyErr_Occurred()) SWIG_fail; | |
22401 | arg3 = (int) SWIG_AsInt(obj2); | |
22402 | if (PyErr_Occurred()) SWIG_fail; | |
22403 | { | |
22404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22405 | (arg1)->SetPageSizeMM(arg2,arg3); | |
22406 | ||
22407 | wxPyEndAllowThreads(__tstate); | |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
22409 | } | |
22410 | Py_INCREF(Py_None); resultobj = Py_None; | |
22411 | return resultobj; | |
22412 | fail: | |
22413 | return NULL; | |
22414 | } | |
22415 | ||
22416 | ||
22417 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22418 | PyObject *resultobj; | |
22419 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22420 | int *arg2 = (int *) 0 ; | |
22421 | int *arg3 = (int *) 0 ; | |
22422 | int temp2 ; | |
22423 | int temp3 ; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | char *kwnames[] = { | |
22426 | (char *) "self", NULL | |
22427 | }; | |
22428 | ||
22429 | arg2 = &temp2; | |
22430 | arg3 = &temp3; | |
22431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
22432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22434 | { | |
22435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22436 | (arg1)->GetPageSizeMM(arg2,arg3); | |
22437 | ||
22438 | wxPyEndAllowThreads(__tstate); | |
22439 | if (PyErr_Occurred()) SWIG_fail; | |
22440 | } | |
22441 | Py_INCREF(Py_None); resultobj = Py_None; | |
22442 | { | |
22443 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22444 | resultobj = t_output_helper(resultobj,o); | |
22445 | } | |
22446 | { | |
22447 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22448 | resultobj = t_output_helper(resultobj,o); | |
22449 | } | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22459 | int arg2 ; | |
22460 | int arg3 ; | |
22461 | PyObject * obj0 = 0 ; | |
22462 | PyObject * obj1 = 0 ; | |
22463 | PyObject * obj2 = 0 ; | |
22464 | char *kwnames[] = { | |
22465 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22466 | }; | |
22467 | ||
22468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22471 | arg2 = (int) SWIG_AsInt(obj1); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | arg3 = (int) SWIG_AsInt(obj2); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | { | |
22476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22477 | (arg1)->SetPPIScreen(arg2,arg3); | |
22478 | ||
22479 | wxPyEndAllowThreads(__tstate); | |
22480 | if (PyErr_Occurred()) SWIG_fail; | |
22481 | } | |
22482 | Py_INCREF(Py_None); resultobj = Py_None; | |
22483 | return resultobj; | |
22484 | fail: | |
22485 | return NULL; | |
22486 | } | |
22487 | ||
22488 | ||
22489 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22490 | PyObject *resultobj; | |
22491 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22492 | int *arg2 = (int *) 0 ; | |
22493 | int *arg3 = (int *) 0 ; | |
22494 | int temp2 ; | |
22495 | int temp3 ; | |
22496 | PyObject * obj0 = 0 ; | |
22497 | char *kwnames[] = { | |
22498 | (char *) "self", NULL | |
22499 | }; | |
22500 | ||
22501 | arg2 = &temp2; | |
22502 | arg3 = &temp3; | |
22503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
22504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22506 | { | |
22507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22508 | (arg1)->GetPPIScreen(arg2,arg3); | |
22509 | ||
22510 | wxPyEndAllowThreads(__tstate); | |
22511 | if (PyErr_Occurred()) SWIG_fail; | |
22512 | } | |
22513 | Py_INCREF(Py_None); resultobj = Py_None; | |
22514 | { | |
22515 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22516 | resultobj = t_output_helper(resultobj,o); | |
22517 | } | |
22518 | { | |
22519 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22520 | resultobj = t_output_helper(resultobj,o); | |
22521 | } | |
22522 | return resultobj; | |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
22528 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22529 | PyObject *resultobj; | |
22530 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22531 | int arg2 ; | |
22532 | int arg3 ; | |
22533 | PyObject * obj0 = 0 ; | |
22534 | PyObject * obj1 = 0 ; | |
22535 | PyObject * obj2 = 0 ; | |
22536 | char *kwnames[] = { | |
22537 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22538 | }; | |
22539 | ||
22540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22543 | arg2 = (int) SWIG_AsInt(obj1); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | arg3 = (int) SWIG_AsInt(obj2); | |
22546 | if (PyErr_Occurred()) SWIG_fail; | |
22547 | { | |
22548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22549 | (arg1)->SetPPIPrinter(arg2,arg3); | |
22550 | ||
22551 | wxPyEndAllowThreads(__tstate); | |
22552 | if (PyErr_Occurred()) SWIG_fail; | |
22553 | } | |
22554 | Py_INCREF(Py_None); resultobj = Py_None; | |
22555 | return resultobj; | |
22556 | fail: | |
22557 | return NULL; | |
22558 | } | |
22559 | ||
22560 | ||
22561 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22562 | PyObject *resultobj; | |
22563 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22564 | int *arg2 = (int *) 0 ; | |
22565 | int *arg3 = (int *) 0 ; | |
22566 | int temp2 ; | |
22567 | int temp3 ; | |
22568 | PyObject * obj0 = 0 ; | |
22569 | char *kwnames[] = { | |
22570 | (char *) "self", NULL | |
22571 | }; | |
22572 | ||
22573 | arg2 = &temp2; | |
22574 | arg3 = &temp3; | |
22575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
22576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22578 | { | |
22579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22580 | (arg1)->GetPPIPrinter(arg2,arg3); | |
22581 | ||
22582 | wxPyEndAllowThreads(__tstate); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | } | |
22585 | Py_INCREF(Py_None); resultobj = Py_None; | |
22586 | { | |
22587 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22588 | resultobj = t_output_helper(resultobj,o); | |
22589 | } | |
22590 | { | |
22591 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22592 | resultobj = t_output_helper(resultobj,o); | |
22593 | } | |
22594 | return resultobj; | |
22595 | fail: | |
22596 | return NULL; | |
22597 | } | |
22598 | ||
22599 | ||
22600 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22601 | PyObject *resultobj; | |
22602 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22603 | bool result; | |
22604 | PyObject * obj0 = 0 ; | |
22605 | char *kwnames[] = { | |
22606 | (char *) "self", NULL | |
22607 | }; | |
22608 | ||
22609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
22610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22612 | { | |
22613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22614 | result = (bool)(arg1)->IsPreview(); | |
22615 | ||
22616 | wxPyEndAllowThreads(__tstate); | |
22617 | if (PyErr_Occurred()) SWIG_fail; | |
22618 | } | |
22619 | { | |
22620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22621 | } | |
22622 | return resultobj; | |
22623 | fail: | |
22624 | return NULL; | |
22625 | } | |
22626 | ||
22627 | ||
22628 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22629 | PyObject *resultobj; | |
22630 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22631 | bool arg2 ; | |
22632 | PyObject * obj0 = 0 ; | |
22633 | PyObject * obj1 = 0 ; | |
22634 | char *kwnames[] = { | |
22635 | (char *) "self",(char *) "p", NULL | |
22636 | }; | |
22637 | ||
22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
22639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22641 | arg2 = (bool) SWIG_AsBool(obj1); | |
22642 | if (PyErr_Occurred()) SWIG_fail; | |
22643 | { | |
22644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22645 | (arg1)->SetIsPreview(arg2); | |
22646 | ||
22647 | wxPyEndAllowThreads(__tstate); | |
22648 | if (PyErr_Occurred()) SWIG_fail; | |
22649 | } | |
22650 | Py_INCREF(Py_None); resultobj = Py_None; | |
22651 | return resultobj; | |
22652 | fail: | |
22653 | return NULL; | |
22654 | } | |
22655 | ||
22656 | ||
22657 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22658 | PyObject *resultobj; | |
22659 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22660 | int arg2 ; | |
22661 | int arg3 ; | |
22662 | bool result; | |
22663 | PyObject * obj0 = 0 ; | |
22664 | PyObject * obj1 = 0 ; | |
22665 | PyObject * obj2 = 0 ; | |
22666 | char *kwnames[] = { | |
22667 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
22668 | }; | |
22669 | ||
22670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22673 | arg2 = (int) SWIG_AsInt(obj1); | |
22674 | if (PyErr_Occurred()) SWIG_fail; | |
22675 | arg3 = (int) SWIG_AsInt(obj2); | |
22676 | if (PyErr_Occurred()) SWIG_fail; | |
22677 | { | |
22678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22679 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
22680 | ||
22681 | wxPyEndAllowThreads(__tstate); | |
22682 | if (PyErr_Occurred()) SWIG_fail; | |
22683 | } | |
22684 | { | |
22685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22686 | } | |
22687 | return resultobj; | |
22688 | fail: | |
22689 | return NULL; | |
22690 | } | |
22691 | ||
22692 | ||
22693 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22694 | PyObject *resultobj; | |
22695 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22696 | PyObject * obj0 = 0 ; | |
22697 | char *kwnames[] = { | |
22698 | (char *) "self", NULL | |
22699 | }; | |
22700 | ||
22701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
22702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22704 | { | |
22705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22706 | (arg1)->base_OnEndDocument(); | |
22707 | ||
22708 | wxPyEndAllowThreads(__tstate); | |
22709 | if (PyErr_Occurred()) SWIG_fail; | |
22710 | } | |
22711 | Py_INCREF(Py_None); resultobj = Py_None; | |
22712 | return resultobj; | |
22713 | fail: | |
22714 | return NULL; | |
22715 | } | |
22716 | ||
22717 | ||
22718 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22719 | PyObject *resultobj; | |
22720 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22721 | PyObject * obj0 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
22727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22729 | { | |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | (arg1)->base_OnBeginPrinting(); | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | Py_INCREF(Py_None); resultobj = Py_None; | |
22737 | return resultobj; | |
22738 | fail: | |
22739 | return NULL; | |
22740 | } | |
22741 | ||
22742 | ||
22743 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22744 | PyObject *resultobj; | |
22745 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22746 | PyObject * obj0 = 0 ; | |
22747 | char *kwnames[] = { | |
22748 | (char *) "self", NULL | |
22749 | }; | |
22750 | ||
22751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
22752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22754 | { | |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | (arg1)->base_OnEndPrinting(); | |
22757 | ||
22758 | wxPyEndAllowThreads(__tstate); | |
22759 | if (PyErr_Occurred()) SWIG_fail; | |
22760 | } | |
22761 | Py_INCREF(Py_None); resultobj = Py_None; | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
22768 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22769 | PyObject *resultobj; | |
22770 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22771 | PyObject * obj0 = 0 ; | |
22772 | char *kwnames[] = { | |
22773 | (char *) "self", NULL | |
22774 | }; | |
22775 | ||
22776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
22777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22779 | { | |
22780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22781 | (arg1)->base_OnPreparePrinting(); | |
22782 | ||
22783 | wxPyEndAllowThreads(__tstate); | |
22784 | if (PyErr_Occurred()) SWIG_fail; | |
22785 | } | |
22786 | Py_INCREF(Py_None); resultobj = Py_None; | |
22787 | return resultobj; | |
22788 | fail: | |
22789 | return NULL; | |
22790 | } | |
22791 | ||
22792 | ||
22793 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22794 | PyObject *resultobj; | |
22795 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22796 | int arg2 ; | |
22797 | bool result; | |
22798 | PyObject * obj0 = 0 ; | |
22799 | PyObject * obj1 = 0 ; | |
22800 | char *kwnames[] = { | |
22801 | (char *) "self",(char *) "page", NULL | |
22802 | }; | |
22803 | ||
22804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
22805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22807 | arg2 = (int) SWIG_AsInt(obj1); | |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
22809 | { | |
22810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22811 | result = (bool)(arg1)->base_HasPage(arg2); | |
22812 | ||
22813 | wxPyEndAllowThreads(__tstate); | |
22814 | if (PyErr_Occurred()) SWIG_fail; | |
22815 | } | |
22816 | { | |
22817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22818 | } | |
22819 | return resultobj; | |
22820 | fail: | |
22821 | return NULL; | |
22822 | } | |
22823 | ||
22824 | ||
22825 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22826 | PyObject *resultobj; | |
22827 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22828 | int *arg2 = (int *) 0 ; | |
22829 | int *arg3 = (int *) 0 ; | |
22830 | int *arg4 = (int *) 0 ; | |
22831 | int *arg5 = (int *) 0 ; | |
22832 | int temp2 ; | |
22833 | int temp3 ; | |
22834 | int temp4 ; | |
22835 | int temp5 ; | |
22836 | PyObject * obj0 = 0 ; | |
22837 | char *kwnames[] = { | |
22838 | (char *) "self", NULL | |
22839 | }; | |
22840 | ||
22841 | arg2 = &temp2; | |
22842 | arg3 = &temp3; | |
22843 | arg4 = &temp4; | |
22844 | arg5 = &temp5; | |
22845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
22846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22848 | { | |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
22851 | ||
22852 | wxPyEndAllowThreads(__tstate); | |
22853 | if (PyErr_Occurred()) SWIG_fail; | |
22854 | } | |
22855 | Py_INCREF(Py_None); resultobj = Py_None; | |
22856 | { | |
22857 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22858 | resultobj = t_output_helper(resultobj,o); | |
22859 | } | |
22860 | { | |
22861 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22862 | resultobj = t_output_helper(resultobj,o); | |
22863 | } | |
22864 | { | |
22865 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22866 | resultobj = t_output_helper(resultobj,o); | |
22867 | } | |
22868 | { | |
22869 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22870 | resultobj = t_output_helper(resultobj,o); | |
22871 | } | |
22872 | return resultobj; | |
22873 | fail: | |
22874 | return NULL; | |
22875 | } | |
22876 | ||
22877 | ||
22878 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
22879 | PyObject *obj; | |
22880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22881 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
22882 | Py_INCREF(obj); | |
22883 | return Py_BuildValue((char *)""); | |
22884 | } | |
22885 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22886 | PyObject *resultobj; | |
22887 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22888 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22889 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22890 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22891 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22892 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22893 | long arg5 = (long) 0 ; | |
22894 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
22895 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22896 | wxPreviewCanvas *result; | |
22897 | wxPoint temp3 ; | |
22898 | wxSize temp4 ; | |
22899 | bool temp6 = False ; | |
22900 | PyObject * obj0 = 0 ; | |
22901 | PyObject * obj1 = 0 ; | |
22902 | PyObject * obj2 = 0 ; | |
22903 | PyObject * obj3 = 0 ; | |
22904 | PyObject * obj4 = 0 ; | |
22905 | PyObject * obj5 = 0 ; | |
22906 | char *kwnames[] = { | |
22907 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22908 | }; | |
22909 | ||
22910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22915 | if (obj2) { | |
22916 | { | |
22917 | arg3 = &temp3; | |
22918 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22919 | } | |
22920 | } | |
22921 | if (obj3) { | |
22922 | { | |
22923 | arg4 = &temp4; | |
22924 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22925 | } | |
22926 | } | |
22927 | if (obj4) { | |
22928 | arg5 = (long) SWIG_AsLong(obj4); | |
22929 | if (PyErr_Occurred()) SWIG_fail; | |
22930 | } | |
22931 | if (obj5) { | |
22932 | { | |
22933 | arg6 = wxString_in_helper(obj5); | |
22934 | if (arg6 == NULL) SWIG_fail; | |
22935 | temp6 = True; | |
22936 | } | |
22937 | } | |
22938 | { | |
0439c23b | 22939 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22941 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22942 | ||
22943 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22944 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22945 | } |
22946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22947 | { | |
22948 | if (temp6) | |
22949 | delete arg6; | |
22950 | } | |
22951 | return resultobj; | |
22952 | fail: | |
22953 | { | |
22954 | if (temp6) | |
22955 | delete arg6; | |
22956 | } | |
22957 | return NULL; | |
22958 | } | |
22959 | ||
22960 | ||
22961 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22962 | PyObject *obj; | |
22963 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22964 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22965 | Py_INCREF(obj); | |
22966 | return Py_BuildValue((char *)""); | |
22967 | } | |
22968 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22969 | PyObject *resultobj; | |
22970 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22971 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22972 | wxString *arg3 = 0 ; | |
22973 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22974 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22975 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22976 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22977 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22978 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22979 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22980 | wxPreviewFrame *result; | |
22981 | bool temp3 = False ; | |
22982 | wxPoint temp4 ; | |
22983 | wxSize temp5 ; | |
22984 | bool temp7 = False ; | |
22985 | PyObject * obj0 = 0 ; | |
22986 | PyObject * obj1 = 0 ; | |
22987 | PyObject * obj2 = 0 ; | |
22988 | PyObject * obj3 = 0 ; | |
22989 | PyObject * obj4 = 0 ; | |
22990 | PyObject * obj5 = 0 ; | |
22991 | PyObject * obj6 = 0 ; | |
22992 | char *kwnames[] = { | |
22993 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22994 | }; | |
22995 | ||
22996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23001 | { | |
23002 | arg3 = wxString_in_helper(obj2); | |
23003 | if (arg3 == NULL) SWIG_fail; | |
23004 | temp3 = True; | |
23005 | } | |
23006 | if (obj3) { | |
23007 | { | |
23008 | arg4 = &temp4; | |
23009 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23010 | } | |
23011 | } | |
23012 | if (obj4) { | |
23013 | { | |
23014 | arg5 = &temp5; | |
23015 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23016 | } | |
23017 | } | |
23018 | if (obj5) { | |
23019 | arg6 = (long) SWIG_AsLong(obj5); | |
23020 | if (PyErr_Occurred()) SWIG_fail; | |
23021 | } | |
23022 | if (obj6) { | |
23023 | { | |
23024 | arg7 = wxString_in_helper(obj6); | |
23025 | if (arg7 == NULL) SWIG_fail; | |
23026 | temp7 = True; | |
23027 | } | |
23028 | } | |
23029 | { | |
0439c23b | 23030 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23032 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
23033 | ||
23034 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23035 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23036 | } |
23037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
23038 | { | |
23039 | if (temp3) | |
23040 | delete arg3; | |
23041 | } | |
23042 | { | |
23043 | if (temp7) | |
23044 | delete arg7; | |
23045 | } | |
23046 | return resultobj; | |
23047 | fail: | |
23048 | { | |
23049 | if (temp3) | |
23050 | delete arg3; | |
23051 | } | |
23052 | { | |
23053 | if (temp7) | |
23054 | delete arg7; | |
23055 | } | |
23056 | return NULL; | |
23057 | } | |
23058 | ||
23059 | ||
23060 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23061 | PyObject *resultobj; | |
23062 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23063 | PyObject * obj0 = 0 ; | |
23064 | char *kwnames[] = { | |
23065 | (char *) "self", NULL | |
23066 | }; | |
23067 | ||
23068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
23069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23071 | { | |
23072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23073 | (arg1)->Initialize(); | |
23074 | ||
23075 | wxPyEndAllowThreads(__tstate); | |
23076 | if (PyErr_Occurred()) SWIG_fail; | |
23077 | } | |
23078 | Py_INCREF(Py_None); resultobj = Py_None; | |
23079 | return resultobj; | |
23080 | fail: | |
23081 | return NULL; | |
23082 | } | |
23083 | ||
23084 | ||
23085 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23086 | PyObject *resultobj; | |
23087 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23088 | PyObject * obj0 = 0 ; | |
23089 | char *kwnames[] = { | |
23090 | (char *) "self", NULL | |
23091 | }; | |
23092 | ||
23093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
23094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23096 | { | |
23097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23098 | (arg1)->CreateControlBar(); | |
23099 | ||
23100 | wxPyEndAllowThreads(__tstate); | |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
23102 | } | |
23103 | Py_INCREF(Py_None); resultobj = Py_None; | |
23104 | return resultobj; | |
23105 | fail: | |
23106 | return NULL; | |
23107 | } | |
23108 | ||
23109 | ||
23110 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23111 | PyObject *resultobj; | |
23112 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23113 | PyObject * obj0 = 0 ; | |
23114 | char *kwnames[] = { | |
23115 | (char *) "self", NULL | |
23116 | }; | |
23117 | ||
23118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
23119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23121 | { | |
23122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23123 | (arg1)->CreateCanvas(); | |
23124 | ||
23125 | wxPyEndAllowThreads(__tstate); | |
23126 | if (PyErr_Occurred()) SWIG_fail; | |
23127 | } | |
23128 | Py_INCREF(Py_None); resultobj = Py_None; | |
23129 | return resultobj; | |
23130 | fail: | |
23131 | return NULL; | |
23132 | } | |
23133 | ||
23134 | ||
23135 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23136 | PyObject *resultobj; | |
23137 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23138 | wxPreviewControlBar *result; | |
23139 | PyObject * obj0 = 0 ; | |
23140 | char *kwnames[] = { | |
23141 | (char *) "self", NULL | |
23142 | }; | |
23143 | ||
23144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
23145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23147 | { | |
23148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23149 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
23150 | ||
23151 | wxPyEndAllowThreads(__tstate); | |
23152 | if (PyErr_Occurred()) SWIG_fail; | |
23153 | } | |
23154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
23155 | return resultobj; | |
23156 | fail: | |
23157 | return NULL; | |
23158 | } | |
23159 | ||
23160 | ||
23161 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
23162 | PyObject *obj; | |
23163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23164 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
23165 | Py_INCREF(obj); | |
23166 | return Py_BuildValue((char *)""); | |
23167 | } | |
23168 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23169 | PyObject *resultobj; | |
23170 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23171 | long arg2 ; | |
23172 | wxWindow *arg3 = (wxWindow *) 0 ; | |
23173 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23174 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23175 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23176 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23177 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
23178 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
23179 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23180 | wxPreviewControlBar *result; | |
23181 | wxPoint temp4 ; | |
23182 | wxSize temp5 ; | |
23183 | bool temp7 = False ; | |
23184 | PyObject * obj0 = 0 ; | |
23185 | PyObject * obj1 = 0 ; | |
23186 | PyObject * obj2 = 0 ; | |
23187 | PyObject * obj3 = 0 ; | |
23188 | PyObject * obj4 = 0 ; | |
23189 | PyObject * obj5 = 0 ; | |
23190 | PyObject * obj6 = 0 ; | |
23191 | char *kwnames[] = { | |
23192 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
23193 | }; | |
23194 | ||
23195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23198 | arg2 = (long) SWIG_AsLong(obj1); | |
23199 | if (PyErr_Occurred()) SWIG_fail; | |
23200 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
23201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23202 | if (obj3) { | |
23203 | { | |
23204 | arg4 = &temp4; | |
23205 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23206 | } | |
23207 | } | |
23208 | if (obj4) { | |
23209 | { | |
23210 | arg5 = &temp5; | |
23211 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23212 | } | |
23213 | } | |
23214 | if (obj5) { | |
23215 | arg6 = (long) SWIG_AsLong(obj5); | |
23216 | if (PyErr_Occurred()) SWIG_fail; | |
23217 | } | |
23218 | if (obj6) { | |
23219 | { | |
23220 | arg7 = wxString_in_helper(obj6); | |
23221 | if (arg7 == NULL) SWIG_fail; | |
23222 | temp7 = True; | |
23223 | } | |
23224 | } | |
23225 | { | |
0439c23b | 23226 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23228 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
23229 | ||
23230 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23231 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23232 | } |
23233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
23234 | { | |
23235 | if (temp7) | |
23236 | delete arg7; | |
23237 | } | |
23238 | return resultobj; | |
23239 | fail: | |
23240 | { | |
23241 | if (temp7) | |
23242 | delete arg7; | |
23243 | } | |
23244 | return NULL; | |
23245 | } | |
23246 | ||
23247 | ||
23248 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23249 | PyObject *resultobj; | |
23250 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23251 | int result; | |
23252 | PyObject * obj0 = 0 ; | |
23253 | char *kwnames[] = { | |
23254 | (char *) "self", NULL | |
23255 | }; | |
23256 | ||
23257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
23258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23260 | { | |
23261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23262 | result = (int)(arg1)->GetZoomControl(); | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | resultobj = SWIG_FromInt((int)result); | |
23268 | return resultobj; | |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
23274 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23275 | PyObject *resultobj; | |
23276 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23277 | int arg2 ; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | PyObject * obj1 = 0 ; | |
23280 | char *kwnames[] = { | |
23281 | (char *) "self",(char *) "zoom", NULL | |
23282 | }; | |
23283 | ||
23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
23285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23287 | arg2 = (int) SWIG_AsInt(obj1); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | { | |
23290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23291 | (arg1)->SetZoomControl(arg2); | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
23296 | Py_INCREF(Py_None); resultobj = Py_None; | |
23297 | return resultobj; | |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
23303 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23304 | PyObject *resultobj; | |
23305 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23306 | wxPrintPreview *result; | |
23307 | PyObject * obj0 = 0 ; | |
23308 | char *kwnames[] = { | |
23309 | (char *) "self", NULL | |
23310 | }; | |
23311 | ||
23312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
23313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23315 | { | |
23316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23317 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
23318 | ||
23319 | wxPyEndAllowThreads(__tstate); | |
23320 | if (PyErr_Occurred()) SWIG_fail; | |
23321 | } | |
23322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
23323 | return resultobj; | |
23324 | fail: | |
23325 | return NULL; | |
23326 | } | |
23327 | ||
23328 | ||
23329 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23330 | PyObject *resultobj; | |
23331 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23332 | PyObject * obj0 = 0 ; | |
23333 | char *kwnames[] = { | |
23334 | (char *) "self", NULL | |
23335 | }; | |
23336 | ||
23337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
23338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23340 | { | |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | (arg1)->OnNext(); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | Py_INCREF(Py_None); resultobj = Py_None; | |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23355 | PyObject *resultobj; | |
23356 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23357 | PyObject * obj0 = 0 ; | |
23358 | char *kwnames[] = { | |
23359 | (char *) "self", NULL | |
23360 | }; | |
23361 | ||
23362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
23363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23365 | { | |
23366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23367 | (arg1)->OnPrevious(); | |
23368 | ||
23369 | wxPyEndAllowThreads(__tstate); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
23372 | Py_INCREF(Py_None); resultobj = Py_None; | |
23373 | return resultobj; | |
23374 | fail: | |
23375 | return NULL; | |
23376 | } | |
23377 | ||
23378 | ||
23379 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23380 | PyObject *resultobj; | |
23381 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23382 | PyObject * obj0 = 0 ; | |
23383 | char *kwnames[] = { | |
23384 | (char *) "self", NULL | |
23385 | }; | |
23386 | ||
23387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
23388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23390 | { | |
23391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23392 | (arg1)->OnFirst(); | |
23393 | ||
23394 | wxPyEndAllowThreads(__tstate); | |
23395 | if (PyErr_Occurred()) SWIG_fail; | |
23396 | } | |
23397 | Py_INCREF(Py_None); resultobj = Py_None; | |
23398 | return resultobj; | |
23399 | fail: | |
23400 | return NULL; | |
23401 | } | |
23402 | ||
23403 | ||
23404 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23405 | PyObject *resultobj; | |
23406 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23407 | PyObject * obj0 = 0 ; | |
23408 | char *kwnames[] = { | |
23409 | (char *) "self", NULL | |
23410 | }; | |
23411 | ||
23412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
23413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | (arg1)->OnLast(); | |
23418 | ||
23419 | wxPyEndAllowThreads(__tstate); | |
23420 | if (PyErr_Occurred()) SWIG_fail; | |
23421 | } | |
23422 | Py_INCREF(Py_None); resultobj = Py_None; | |
23423 | return resultobj; | |
23424 | fail: | |
23425 | return NULL; | |
23426 | } | |
23427 | ||
23428 | ||
23429 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23430 | PyObject *resultobj; | |
23431 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23432 | PyObject * obj0 = 0 ; | |
23433 | char *kwnames[] = { | |
23434 | (char *) "self", NULL | |
23435 | }; | |
23436 | ||
23437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
23438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | (arg1)->OnGoto(); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | Py_INCREF(Py_None); resultobj = Py_None; | |
23448 | return resultobj; | |
23449 | fail: | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
23454 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
23455 | PyObject *obj; | |
23456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23457 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
23458 | Py_INCREF(obj); | |
23459 | return Py_BuildValue((char *)""); | |
23460 | } | |
23461 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23462 | PyObject *resultobj; | |
23463 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23464 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23465 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23466 | wxPrintPreview *result; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | PyObject * obj1 = 0 ; | |
23469 | PyObject * obj2 = 0 ; | |
23470 | ||
23471 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23476 | if (obj2) { | |
23477 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23479 | } | |
23480 | { | |
0439c23b | 23481 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23483 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
23484 | ||
23485 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23486 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23487 | } |
23488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
23489 | return resultobj; | |
23490 | fail: | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
23495 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23496 | PyObject *resultobj; | |
23497 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23498 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23499 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23500 | wxPrintPreview *result; | |
23501 | PyObject * obj0 = 0 ; | |
23502 | PyObject * obj1 = 0 ; | |
23503 | PyObject * obj2 = 0 ; | |
23504 | ||
23505 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23510 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23512 | { | |
0439c23b | 23513 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23515 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
23516 | ||
23517 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23518 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23519 | } |
23520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
23521 | return resultobj; | |
23522 | fail: | |
23523 | return NULL; | |
23524 | } | |
23525 | ||
23526 | ||
23527 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
23528 | int argc; | |
23529 | PyObject *argv[4]; | |
23530 | int ii; | |
23531 | ||
23532 | argc = PyObject_Length(args); | |
23533 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23534 | argv[ii] = PyTuple_GetItem(args,ii); | |
23535 | } | |
23536 | if ((argc >= 2) && (argc <= 3)) { | |
23537 | int _v; | |
23538 | { | |
23539 | void *ptr; | |
23540 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23541 | _v = 0; | |
23542 | PyErr_Clear(); | |
23543 | } else { | |
23544 | _v = 1; | |
23545 | } | |
23546 | } | |
23547 | if (_v) { | |
23548 | { | |
23549 | void *ptr; | |
23550 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23551 | _v = 0; | |
23552 | PyErr_Clear(); | |
23553 | } else { | |
23554 | _v = 1; | |
23555 | } | |
23556 | } | |
23557 | if (_v) { | |
23558 | if (argc <= 2) { | |
23559 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23560 | } | |
23561 | { | |
23562 | void *ptr; | |
23563 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23564 | _v = 0; | |
23565 | PyErr_Clear(); | |
23566 | } else { | |
23567 | _v = 1; | |
23568 | } | |
23569 | } | |
23570 | if (_v) { | |
23571 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23572 | } | |
23573 | } | |
23574 | } | |
23575 | } | |
23576 | if (argc == 3) { | |
23577 | int _v; | |
23578 | { | |
23579 | void *ptr; | |
23580 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23581 | _v = 0; | |
23582 | PyErr_Clear(); | |
23583 | } else { | |
23584 | _v = 1; | |
23585 | } | |
23586 | } | |
23587 | if (_v) { | |
23588 | { | |
23589 | void *ptr; | |
23590 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23591 | _v = 0; | |
23592 | PyErr_Clear(); | |
23593 | } else { | |
23594 | _v = 1; | |
23595 | } | |
23596 | } | |
23597 | if (_v) { | |
23598 | { | |
23599 | void *ptr; | |
23600 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23601 | _v = 0; | |
23602 | PyErr_Clear(); | |
23603 | } else { | |
23604 | _v = 1; | |
23605 | } | |
23606 | } | |
23607 | if (_v) { | |
23608 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
23609 | } | |
23610 | } | |
23611 | } | |
23612 | } | |
23613 | ||
23614 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
23615 | return NULL; | |
23616 | } | |
23617 | ||
23618 | ||
23619 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23620 | PyObject *resultobj; | |
23621 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23622 | int arg2 ; | |
23623 | bool result; | |
23624 | PyObject * obj0 = 0 ; | |
23625 | PyObject * obj1 = 0 ; | |
23626 | char *kwnames[] = { | |
23627 | (char *) "self",(char *) "pageNum", NULL | |
23628 | }; | |
23629 | ||
23630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23633 | arg2 = (int) SWIG_AsInt(obj1); | |
23634 | if (PyErr_Occurred()) SWIG_fail; | |
23635 | { | |
23636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23637 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
23638 | ||
23639 | wxPyEndAllowThreads(__tstate); | |
23640 | if (PyErr_Occurred()) SWIG_fail; | |
23641 | } | |
23642 | { | |
23643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23644 | } | |
23645 | return resultobj; | |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
23651 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23652 | PyObject *resultobj; | |
23653 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23654 | int result; | |
23655 | PyObject * obj0 = 0 ; | |
23656 | char *kwnames[] = { | |
23657 | (char *) "self", NULL | |
23658 | }; | |
23659 | ||
23660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
23661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23663 | { | |
23664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23665 | result = (int)(arg1)->GetCurrentPage(); | |
23666 | ||
23667 | wxPyEndAllowThreads(__tstate); | |
23668 | if (PyErr_Occurred()) SWIG_fail; | |
23669 | } | |
23670 | resultobj = SWIG_FromInt((int)result); | |
23671 | return resultobj; | |
23672 | fail: | |
23673 | return NULL; | |
23674 | } | |
23675 | ||
23676 | ||
23677 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23678 | PyObject *resultobj; | |
23679 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23680 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23681 | PyObject * obj0 = 0 ; | |
23682 | PyObject * obj1 = 0 ; | |
23683 | char *kwnames[] = { | |
23684 | (char *) "self",(char *) "printout", NULL | |
23685 | }; | |
23686 | ||
23687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
23688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23692 | { | |
23693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23694 | (arg1)->SetPrintout(arg2); | |
23695 | ||
23696 | wxPyEndAllowThreads(__tstate); | |
23697 | if (PyErr_Occurred()) SWIG_fail; | |
23698 | } | |
23699 | Py_INCREF(Py_None); resultobj = Py_None; | |
23700 | return resultobj; | |
23701 | fail: | |
23702 | return NULL; | |
23703 | } | |
23704 | ||
23705 | ||
23706 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23707 | PyObject *resultobj; | |
23708 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23709 | wxPyPrintout *result; | |
23710 | PyObject * obj0 = 0 ; | |
23711 | char *kwnames[] = { | |
23712 | (char *) "self", NULL | |
23713 | }; | |
23714 | ||
23715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
23716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23718 | { | |
23719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23720 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
23721 | ||
23722 | wxPyEndAllowThreads(__tstate); | |
23723 | if (PyErr_Occurred()) SWIG_fail; | |
23724 | } | |
23725 | { | |
412d302d | 23726 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23727 | } |
23728 | return resultobj; | |
23729 | fail: | |
23730 | return NULL; | |
23731 | } | |
23732 | ||
23733 | ||
23734 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23735 | PyObject *resultobj; | |
23736 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23737 | wxPyPrintout *result; | |
23738 | PyObject * obj0 = 0 ; | |
23739 | char *kwnames[] = { | |
23740 | (char *) "self", NULL | |
23741 | }; | |
23742 | ||
23743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
23744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23746 | { | |
23747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23748 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
23749 | ||
23750 | wxPyEndAllowThreads(__tstate); | |
23751 | if (PyErr_Occurred()) SWIG_fail; | |
23752 | } | |
23753 | { | |
412d302d | 23754 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23755 | } |
23756 | return resultobj; | |
23757 | fail: | |
23758 | return NULL; | |
23759 | } | |
23760 | ||
23761 | ||
23762 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23763 | PyObject *resultobj; | |
23764 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23765 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23766 | PyObject * obj0 = 0 ; | |
23767 | PyObject * obj1 = 0 ; | |
23768 | char *kwnames[] = { | |
23769 | (char *) "self",(char *) "frame", NULL | |
23770 | }; | |
23771 | ||
23772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
23773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23777 | { | |
23778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23779 | (arg1)->SetFrame(arg2); | |
23780 | ||
23781 | wxPyEndAllowThreads(__tstate); | |
23782 | if (PyErr_Occurred()) SWIG_fail; | |
23783 | } | |
23784 | Py_INCREF(Py_None); resultobj = Py_None; | |
23785 | return resultobj; | |
23786 | fail: | |
23787 | return NULL; | |
23788 | } | |
23789 | ||
23790 | ||
23791 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23792 | PyObject *resultobj; | |
23793 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23794 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23795 | PyObject * obj0 = 0 ; | |
23796 | PyObject * obj1 = 0 ; | |
23797 | char *kwnames[] = { | |
23798 | (char *) "self",(char *) "canvas", NULL | |
23799 | }; | |
23800 | ||
23801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23806 | { | |
23807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23808 | (arg1)->SetCanvas(arg2); | |
23809 | ||
23810 | wxPyEndAllowThreads(__tstate); | |
23811 | if (PyErr_Occurred()) SWIG_fail; | |
23812 | } | |
23813 | Py_INCREF(Py_None); resultobj = Py_None; | |
23814 | return resultobj; | |
23815 | fail: | |
23816 | return NULL; | |
23817 | } | |
23818 | ||
23819 | ||
23820 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23821 | PyObject *resultobj; | |
23822 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23823 | wxFrame *result; | |
23824 | PyObject * obj0 = 0 ; | |
23825 | char *kwnames[] = { | |
23826 | (char *) "self", NULL | |
23827 | }; | |
23828 | ||
23829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
23830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23832 | { | |
23833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23834 | result = (wxFrame *)(arg1)->GetFrame(); | |
23835 | ||
23836 | wxPyEndAllowThreads(__tstate); | |
23837 | if (PyErr_Occurred()) SWIG_fail; | |
23838 | } | |
23839 | { | |
412d302d | 23840 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23841 | } |
23842 | return resultobj; | |
23843 | fail: | |
23844 | return NULL; | |
23845 | } | |
23846 | ||
23847 | ||
23848 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23849 | PyObject *resultobj; | |
23850 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23851 | wxPreviewCanvas *result; | |
23852 | PyObject * obj0 = 0 ; | |
23853 | char *kwnames[] = { | |
23854 | (char *) "self", NULL | |
23855 | }; | |
23856 | ||
23857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
23858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23860 | { | |
23861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23862 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
23863 | ||
23864 | wxPyEndAllowThreads(__tstate); | |
23865 | if (PyErr_Occurred()) SWIG_fail; | |
23866 | } | |
23867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
23868 | return resultobj; | |
23869 | fail: | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
23874 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23875 | PyObject *resultobj; | |
23876 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23877 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23878 | wxDC *arg3 = 0 ; | |
23879 | bool result; | |
23880 | PyObject * obj0 = 0 ; | |
23881 | PyObject * obj1 = 0 ; | |
23882 | PyObject * obj2 = 0 ; | |
23883 | char *kwnames[] = { | |
23884 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23885 | }; | |
23886 | ||
23887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23892 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23893 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23894 | SWIG_fail; | |
23895 | if (arg3 == NULL) { | |
23896 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23897 | SWIG_fail; | |
23898 | } | |
23899 | { | |
23900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23901 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
23902 | ||
23903 | wxPyEndAllowThreads(__tstate); | |
23904 | if (PyErr_Occurred()) SWIG_fail; | |
23905 | } | |
23906 | { | |
23907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23908 | } | |
23909 | return resultobj; | |
23910 | fail: | |
23911 | return NULL; | |
23912 | } | |
23913 | ||
23914 | ||
23915 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23916 | PyObject *resultobj; | |
23917 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23918 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23919 | wxDC *arg3 = 0 ; | |
23920 | bool result; | |
23921 | PyObject * obj0 = 0 ; | |
23922 | PyObject * obj1 = 0 ; | |
23923 | PyObject * obj2 = 0 ; | |
23924 | char *kwnames[] = { | |
23925 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23926 | }; | |
23927 | ||
23928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23931 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23933 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23935 | SWIG_fail; | |
23936 | if (arg3 == NULL) { | |
23937 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23938 | SWIG_fail; | |
23939 | } | |
23940 | { | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
23947 | { | |
23948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23949 | } | |
23950 | return resultobj; | |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23959 | int arg2 ; | |
23960 | bool result; | |
23961 | PyObject * obj0 = 0 ; | |
23962 | PyObject * obj1 = 0 ; | |
23963 | char *kwnames[] = { | |
23964 | (char *) "self",(char *) "pageNum", NULL | |
23965 | }; | |
23966 | ||
23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23970 | arg2 = (int) SWIG_AsInt(obj1); | |
23971 | if (PyErr_Occurred()) SWIG_fail; | |
23972 | { | |
23973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23974 | result = (bool)(arg1)->RenderPage(arg2); | |
23975 | ||
23976 | wxPyEndAllowThreads(__tstate); | |
23977 | if (PyErr_Occurred()) SWIG_fail; | |
23978 | } | |
23979 | { | |
23980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23981 | } | |
23982 | return resultobj; | |
23983 | fail: | |
23984 | return NULL; | |
23985 | } | |
23986 | ||
23987 | ||
23988 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23989 | PyObject *resultobj; | |
23990 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23991 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23992 | PyObject * obj0 = 0 ; | |
23993 | PyObject * obj1 = 0 ; | |
23994 | char *kwnames[] = { | |
23995 | (char *) "self",(char *) "canvas", NULL | |
23996 | }; | |
23997 | ||
23998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
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 | { | |
24004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24005 | (arg1)->AdjustScrollbars(arg2); | |
24006 | ||
24007 | wxPyEndAllowThreads(__tstate); | |
24008 | if (PyErr_Occurred()) SWIG_fail; | |
24009 | } | |
24010 | Py_INCREF(Py_None); resultobj = Py_None; | |
24011 | return resultobj; | |
24012 | fail: | |
24013 | return NULL; | |
24014 | } | |
24015 | ||
24016 | ||
24017 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24018 | PyObject *resultobj; | |
24019 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24020 | wxPrintDialogData *result; | |
24021 | PyObject * obj0 = 0 ; | |
24022 | char *kwnames[] = { | |
24023 | (char *) "self", NULL | |
24024 | }; | |
24025 | ||
24026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
24027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24029 | { | |
24030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24031 | { | |
24032 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
24033 | result = (wxPrintDialogData *) &_result_ref; | |
24034 | } | |
24035 | ||
24036 | wxPyEndAllowThreads(__tstate); | |
24037 | if (PyErr_Occurred()) SWIG_fail; | |
24038 | } | |
24039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
24040 | return resultobj; | |
24041 | fail: | |
24042 | return NULL; | |
24043 | } | |
24044 | ||
24045 | ||
24046 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24047 | PyObject *resultobj; | |
24048 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24049 | int arg2 ; | |
24050 | PyObject * obj0 = 0 ; | |
24051 | PyObject * obj1 = 0 ; | |
24052 | char *kwnames[] = { | |
24053 | (char *) "self",(char *) "percent", NULL | |
24054 | }; | |
24055 | ||
24056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
24057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24059 | arg2 = (int) SWIG_AsInt(obj1); | |
24060 | if (PyErr_Occurred()) SWIG_fail; | |
24061 | { | |
24062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24063 | (arg1)->SetZoom(arg2); | |
24064 | ||
24065 | wxPyEndAllowThreads(__tstate); | |
24066 | if (PyErr_Occurred()) SWIG_fail; | |
24067 | } | |
24068 | Py_INCREF(Py_None); resultobj = Py_None; | |
24069 | return resultobj; | |
24070 | fail: | |
24071 | return NULL; | |
24072 | } | |
24073 | ||
24074 | ||
24075 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24076 | PyObject *resultobj; | |
24077 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24078 | int result; | |
24079 | PyObject * obj0 = 0 ; | |
24080 | char *kwnames[] = { | |
24081 | (char *) "self", NULL | |
24082 | }; | |
24083 | ||
24084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
24085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24087 | { | |
24088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24089 | result = (int)(arg1)->GetZoom(); | |
24090 | ||
24091 | wxPyEndAllowThreads(__tstate); | |
24092 | if (PyErr_Occurred()) SWIG_fail; | |
24093 | } | |
24094 | resultobj = SWIG_FromInt((int)result); | |
24095 | return resultobj; | |
24096 | fail: | |
24097 | return NULL; | |
24098 | } | |
24099 | ||
24100 | ||
24101 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24102 | PyObject *resultobj; | |
24103 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24104 | int result; | |
24105 | PyObject * obj0 = 0 ; | |
24106 | char *kwnames[] = { | |
24107 | (char *) "self", NULL | |
24108 | }; | |
24109 | ||
24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
24111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24113 | { | |
24114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24115 | result = (int)(arg1)->GetMaxPage(); | |
24116 | ||
24117 | wxPyEndAllowThreads(__tstate); | |
24118 | if (PyErr_Occurred()) SWIG_fail; | |
24119 | } | |
24120 | resultobj = SWIG_FromInt((int)result); | |
24121 | return resultobj; | |
24122 | fail: | |
24123 | return NULL; | |
24124 | } | |
24125 | ||
24126 | ||
24127 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24128 | PyObject *resultobj; | |
24129 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24130 | int result; | |
24131 | PyObject * obj0 = 0 ; | |
24132 | char *kwnames[] = { | |
24133 | (char *) "self", NULL | |
24134 | }; | |
24135 | ||
24136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
24137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24139 | { | |
24140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24141 | result = (int)(arg1)->GetMinPage(); | |
24142 | ||
24143 | wxPyEndAllowThreads(__tstate); | |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
24145 | } | |
24146 | resultobj = SWIG_FromInt((int)result); | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | return NULL; | |
24150 | } | |
24151 | ||
24152 | ||
24153 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24154 | PyObject *resultobj; | |
24155 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24156 | bool result; | |
24157 | PyObject * obj0 = 0 ; | |
24158 | char *kwnames[] = { | |
24159 | (char *) "self", NULL | |
24160 | }; | |
24161 | ||
24162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
24163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24165 | { | |
24166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24167 | result = (bool)(arg1)->Ok(); | |
24168 | ||
24169 | wxPyEndAllowThreads(__tstate); | |
24170 | if (PyErr_Occurred()) SWIG_fail; | |
24171 | } | |
24172 | { | |
24173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24174 | } | |
24175 | return resultobj; | |
24176 | fail: | |
24177 | return NULL; | |
24178 | } | |
24179 | ||
24180 | ||
24181 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24182 | PyObject *resultobj; | |
24183 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24184 | bool arg2 ; | |
24185 | PyObject * obj0 = 0 ; | |
24186 | PyObject * obj1 = 0 ; | |
24187 | char *kwnames[] = { | |
24188 | (char *) "self",(char *) "ok", NULL | |
24189 | }; | |
24190 | ||
24191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
24192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24194 | arg2 = (bool) SWIG_AsBool(obj1); | |
24195 | if (PyErr_Occurred()) SWIG_fail; | |
24196 | { | |
24197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24198 | (arg1)->SetOk(arg2); | |
24199 | ||
24200 | wxPyEndAllowThreads(__tstate); | |
24201 | if (PyErr_Occurred()) SWIG_fail; | |
24202 | } | |
24203 | Py_INCREF(Py_None); resultobj = Py_None; | |
24204 | return resultobj; | |
24205 | fail: | |
24206 | return NULL; | |
24207 | } | |
24208 | ||
24209 | ||
24210 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24211 | PyObject *resultobj; | |
24212 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24213 | bool arg2 ; | |
24214 | bool result; | |
24215 | PyObject * obj0 = 0 ; | |
24216 | PyObject * obj1 = 0 ; | |
24217 | char *kwnames[] = { | |
24218 | (char *) "self",(char *) "interactive", NULL | |
24219 | }; | |
24220 | ||
24221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
24222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24224 | arg2 = (bool) SWIG_AsBool(obj1); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | { | |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | result = (bool)(arg1)->Print(arg2); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
24233 | { | |
24234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24235 | } | |
24236 | return resultobj; | |
24237 | fail: | |
24238 | return NULL; | |
24239 | } | |
24240 | ||
24241 | ||
24242 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24243 | PyObject *resultobj; | |
24244 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24245 | PyObject * obj0 = 0 ; | |
24246 | char *kwnames[] = { | |
24247 | (char *) "self", NULL | |
24248 | }; | |
24249 | ||
24250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
24251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24253 | { | |
24254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24255 | (arg1)->DetermineScaling(); | |
24256 | ||
24257 | wxPyEndAllowThreads(__tstate); | |
24258 | if (PyErr_Occurred()) SWIG_fail; | |
24259 | } | |
24260 | Py_INCREF(Py_None); resultobj = Py_None; | |
24261 | return resultobj; | |
24262 | fail: | |
24263 | return NULL; | |
24264 | } | |
24265 | ||
24266 | ||
24267 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24268 | PyObject *obj; | |
24269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24270 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
24271 | Py_INCREF(obj); | |
24272 | return Py_BuildValue((char *)""); | |
24273 | } | |
24274 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
24275 | PyObject *resultobj; | |
24276 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
24277 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
24278 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
24279 | wxPyPrintPreview *result; | |
24280 | PyObject * obj0 = 0 ; | |
24281 | PyObject * obj1 = 0 ; | |
24282 | PyObject * obj2 = 0 ; | |
24283 | ||
24284 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
24285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
24286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
24288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24289 | if (obj2) { | |
24290 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
24291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24292 | } | |
24293 | { | |
0439c23b | 24294 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24296 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24299 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24300 | } |
24301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
24302 | return resultobj; | |
24303 | fail: | |
24304 | return NULL; | |
24305 | } | |
24306 | ||
24307 | ||
24308 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
24309 | PyObject *resultobj; | |
24310 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
24311 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
24312 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
24313 | wxPyPrintPreview *result; | |
24314 | PyObject * obj0 = 0 ; | |
24315 | PyObject * obj1 = 0 ; | |
24316 | PyObject * obj2 = 0 ; | |
24317 | ||
24318 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
24319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
24320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
24322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24323 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
24324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24325 | { | |
0439c23b | 24326 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24328 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
24329 | ||
24330 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24331 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24332 | } |
24333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
24334 | return resultobj; | |
24335 | fail: | |
24336 | return NULL; | |
24337 | } | |
24338 | ||
24339 | ||
24340 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
24341 | int argc; | |
24342 | PyObject *argv[4]; | |
24343 | int ii; | |
24344 | ||
24345 | argc = PyObject_Length(args); | |
24346 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
24347 | argv[ii] = PyTuple_GetItem(args,ii); | |
24348 | } | |
24349 | if ((argc >= 2) && (argc <= 3)) { | |
24350 | int _v; | |
24351 | { | |
24352 | void *ptr; | |
24353 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24354 | _v = 0; | |
24355 | PyErr_Clear(); | |
24356 | } else { | |
24357 | _v = 1; | |
24358 | } | |
24359 | } | |
24360 | if (_v) { | |
24361 | { | |
24362 | void *ptr; | |
24363 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24364 | _v = 0; | |
24365 | PyErr_Clear(); | |
24366 | } else { | |
24367 | _v = 1; | |
24368 | } | |
24369 | } | |
24370 | if (_v) { | |
24371 | if (argc <= 2) { | |
24372 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
24373 | } | |
24374 | { | |
24375 | void *ptr; | |
24376 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
24377 | _v = 0; | |
24378 | PyErr_Clear(); | |
24379 | } else { | |
24380 | _v = 1; | |
24381 | } | |
24382 | } | |
24383 | if (_v) { | |
24384 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
24385 | } | |
24386 | } | |
24387 | } | |
24388 | } | |
24389 | if (argc == 3) { | |
24390 | int _v; | |
24391 | { | |
24392 | void *ptr; | |
24393 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24394 | _v = 0; | |
24395 | PyErr_Clear(); | |
24396 | } else { | |
24397 | _v = 1; | |
24398 | } | |
24399 | } | |
24400 | if (_v) { | |
24401 | { | |
24402 | void *ptr; | |
24403 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24404 | _v = 0; | |
24405 | PyErr_Clear(); | |
24406 | } else { | |
24407 | _v = 1; | |
24408 | } | |
24409 | } | |
24410 | if (_v) { | |
24411 | { | |
24412 | void *ptr; | |
24413 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
24414 | _v = 0; | |
24415 | PyErr_Clear(); | |
24416 | } else { | |
24417 | _v = 1; | |
24418 | } | |
24419 | } | |
24420 | if (_v) { | |
24421 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
24422 | } | |
24423 | } | |
24424 | } | |
24425 | } | |
24426 | ||
24427 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
24428 | return NULL; | |
24429 | } | |
24430 | ||
24431 | ||
24432 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24433 | PyObject *resultobj; | |
24434 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24435 | PyObject *arg2 = (PyObject *) 0 ; | |
24436 | PyObject *arg3 = (PyObject *) 0 ; | |
24437 | PyObject * obj0 = 0 ; | |
24438 | PyObject * obj1 = 0 ; | |
24439 | PyObject * obj2 = 0 ; | |
24440 | char *kwnames[] = { | |
24441 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24442 | }; | |
24443 | ||
24444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24447 | arg2 = obj1; | |
24448 | arg3 = obj2; | |
24449 | { | |
24450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24451 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24452 | ||
24453 | wxPyEndAllowThreads(__tstate); | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | } | |
24456 | Py_INCREF(Py_None); resultobj = Py_None; | |
24457 | return resultobj; | |
24458 | fail: | |
24459 | return NULL; | |
24460 | } | |
24461 | ||
24462 | ||
24463 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24464 | PyObject *resultobj; | |
24465 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24466 | int arg2 ; | |
24467 | bool result; | |
24468 | PyObject * obj0 = 0 ; | |
24469 | PyObject * obj1 = 0 ; | |
24470 | char *kwnames[] = { | |
24471 | (char *) "self",(char *) "pageNum", NULL | |
24472 | }; | |
24473 | ||
24474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
24475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24477 | arg2 = (int) SWIG_AsInt(obj1); | |
24478 | if (PyErr_Occurred()) SWIG_fail; | |
24479 | { | |
24480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24481 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
24482 | ||
24483 | wxPyEndAllowThreads(__tstate); | |
24484 | if (PyErr_Occurred()) SWIG_fail; | |
24485 | } | |
24486 | { | |
24487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24488 | } | |
24489 | return resultobj; | |
24490 | fail: | |
24491 | return NULL; | |
24492 | } | |
24493 | ||
24494 | ||
24495 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24496 | PyObject *resultobj; | |
24497 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24498 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24499 | wxDC *arg3 = 0 ; | |
24500 | bool result; | |
24501 | PyObject * obj0 = 0 ; | |
24502 | PyObject * obj1 = 0 ; | |
24503 | PyObject * obj2 = 0 ; | |
24504 | char *kwnames[] = { | |
24505 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
24506 | }; | |
24507 | ||
24508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24511 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24513 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24514 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24515 | SWIG_fail; | |
24516 | if (arg3 == NULL) { | |
24517 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24518 | SWIG_fail; | |
24519 | } | |
24520 | { | |
24521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24522 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
24523 | ||
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
24527 | { | |
24528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24529 | } | |
24530 | return resultobj; | |
24531 | fail: | |
24532 | return NULL; | |
24533 | } | |
24534 | ||
24535 | ||
24536 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24537 | PyObject *resultobj; | |
24538 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24539 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24540 | wxDC *arg3 = 0 ; | |
24541 | bool result; | |
24542 | PyObject * obj0 = 0 ; | |
24543 | PyObject * obj1 = 0 ; | |
24544 | PyObject * obj2 = 0 ; | |
24545 | char *kwnames[] = { | |
24546 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
24547 | }; | |
24548 | ||
24549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24554 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24556 | SWIG_fail; | |
24557 | if (arg3 == NULL) { | |
24558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24559 | SWIG_fail; | |
24560 | } | |
24561 | { | |
24562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24563 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
24564 | ||
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
24568 | { | |
24569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24570 | } | |
24571 | return resultobj; | |
24572 | fail: | |
24573 | return NULL; | |
24574 | } | |
24575 | ||
24576 | ||
24577 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24578 | PyObject *resultobj; | |
24579 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24580 | int arg2 ; | |
24581 | bool result; | |
24582 | PyObject * obj0 = 0 ; | |
24583 | PyObject * obj1 = 0 ; | |
24584 | char *kwnames[] = { | |
24585 | (char *) "self",(char *) "pageNum", NULL | |
24586 | }; | |
24587 | ||
24588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
24589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24591 | arg2 = (int) SWIG_AsInt(obj1); | |
24592 | if (PyErr_Occurred()) SWIG_fail; | |
24593 | { | |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | result = (bool)(arg1)->base_RenderPage(arg2); | |
24596 | ||
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | { | |
24601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24602 | } | |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
24609 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24610 | PyObject *resultobj; | |
24611 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24612 | int arg2 ; | |
24613 | PyObject * obj0 = 0 ; | |
24614 | PyObject * obj1 = 0 ; | |
24615 | char *kwnames[] = { | |
24616 | (char *) "self",(char *) "percent", NULL | |
24617 | }; | |
24618 | ||
24619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
24620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24622 | arg2 = (int) SWIG_AsInt(obj1); | |
24623 | if (PyErr_Occurred()) SWIG_fail; | |
24624 | { | |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | (arg1)->base_SetZoom(arg2); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
24631 | Py_INCREF(Py_None); resultobj = Py_None; | |
24632 | return resultobj; | |
24633 | fail: | |
24634 | return NULL; | |
24635 | } | |
24636 | ||
24637 | ||
24638 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24639 | PyObject *resultobj; | |
24640 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24641 | bool arg2 ; | |
24642 | bool result; | |
24643 | PyObject * obj0 = 0 ; | |
24644 | PyObject * obj1 = 0 ; | |
24645 | char *kwnames[] = { | |
24646 | (char *) "self",(char *) "interactive", NULL | |
24647 | }; | |
24648 | ||
24649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
24650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24652 | arg2 = (bool) SWIG_AsBool(obj1); | |
24653 | if (PyErr_Occurred()) SWIG_fail; | |
24654 | { | |
24655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24656 | result = (bool)(arg1)->base_Print(arg2); | |
24657 | ||
24658 | wxPyEndAllowThreads(__tstate); | |
24659 | if (PyErr_Occurred()) SWIG_fail; | |
24660 | } | |
24661 | { | |
24662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24663 | } | |
24664 | return resultobj; | |
24665 | fail: | |
24666 | return NULL; | |
24667 | } | |
24668 | ||
24669 | ||
24670 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24671 | PyObject *resultobj; | |
24672 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24673 | PyObject * obj0 = 0 ; | |
24674 | char *kwnames[] = { | |
24675 | (char *) "self", NULL | |
24676 | }; | |
24677 | ||
24678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
24679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24681 | { | |
24682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24683 | (arg1)->base_DetermineScaling(); | |
24684 | ||
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | Py_INCREF(Py_None); resultobj = Py_None; | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
24695 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24696 | PyObject *obj; | |
24697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24698 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
24699 | Py_INCREF(obj); | |
24700 | return Py_BuildValue((char *)""); | |
24701 | } | |
24702 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24703 | PyObject *resultobj; | |
24704 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24705 | wxFrame *arg2 = (wxFrame *) 0 ; | |
24706 | wxString *arg3 = 0 ; | |
24707 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24708 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24709 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24710 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24711 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
24712 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
24713 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24714 | wxPyPreviewFrame *result; | |
24715 | bool temp3 = False ; | |
24716 | wxPoint temp4 ; | |
24717 | wxSize temp5 ; | |
24718 | bool temp7 = False ; | |
24719 | PyObject * obj0 = 0 ; | |
24720 | PyObject * obj1 = 0 ; | |
24721 | PyObject * obj2 = 0 ; | |
24722 | PyObject * obj3 = 0 ; | |
24723 | PyObject * obj4 = 0 ; | |
24724 | PyObject * obj5 = 0 ; | |
24725 | PyObject * obj6 = 0 ; | |
24726 | char *kwnames[] = { | |
24727 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24728 | }; | |
24729 | ||
24730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
24734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24735 | { | |
24736 | arg3 = wxString_in_helper(obj2); | |
24737 | if (arg3 == NULL) SWIG_fail; | |
24738 | temp3 = True; | |
24739 | } | |
24740 | if (obj3) { | |
24741 | { | |
24742 | arg4 = &temp4; | |
24743 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24744 | } | |
24745 | } | |
24746 | if (obj4) { | |
24747 | { | |
24748 | arg5 = &temp5; | |
24749 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24750 | } | |
24751 | } | |
24752 | if (obj5) { | |
24753 | arg6 = (long) SWIG_AsLong(obj5); | |
24754 | if (PyErr_Occurred()) SWIG_fail; | |
24755 | } | |
24756 | if (obj6) { | |
24757 | { | |
24758 | arg7 = wxString_in_helper(obj6); | |
24759 | if (arg7 == NULL) SWIG_fail; | |
24760 | temp7 = True; | |
24761 | } | |
24762 | } | |
24763 | { | |
0439c23b | 24764 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24766 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24767 | ||
24768 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24769 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24770 | } |
24771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
24772 | { | |
24773 | if (temp3) | |
24774 | delete arg3; | |
24775 | } | |
24776 | { | |
24777 | if (temp7) | |
24778 | delete arg7; | |
24779 | } | |
24780 | return resultobj; | |
24781 | fail: | |
24782 | { | |
24783 | if (temp3) | |
24784 | delete arg3; | |
24785 | } | |
24786 | { | |
24787 | if (temp7) | |
24788 | delete arg7; | |
24789 | } | |
24790 | return NULL; | |
24791 | } | |
24792 | ||
24793 | ||
24794 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24795 | PyObject *resultobj; | |
24796 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24797 | PyObject *arg2 = (PyObject *) 0 ; | |
24798 | PyObject *arg3 = (PyObject *) 0 ; | |
24799 | PyObject * obj0 = 0 ; | |
24800 | PyObject * obj1 = 0 ; | |
24801 | PyObject * obj2 = 0 ; | |
24802 | char *kwnames[] = { | |
24803 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24804 | }; | |
24805 | ||
24806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24809 | arg2 = obj1; | |
24810 | arg3 = obj2; | |
24811 | { | |
24812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24813 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24814 | ||
24815 | wxPyEndAllowThreads(__tstate); | |
24816 | if (PyErr_Occurred()) SWIG_fail; | |
24817 | } | |
24818 | Py_INCREF(Py_None); resultobj = Py_None; | |
24819 | return resultobj; | |
24820 | fail: | |
24821 | return NULL; | |
24822 | } | |
24823 | ||
24824 | ||
24825 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24826 | PyObject *resultobj; | |
24827 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24828 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24829 | PyObject * obj0 = 0 ; | |
24830 | PyObject * obj1 = 0 ; | |
24831 | char *kwnames[] = { | |
24832 | (char *) "self",(char *) "canvas", NULL | |
24833 | }; | |
24834 | ||
24835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
24836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24840 | { | |
24841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24842 | (arg1)->SetPreviewCanvas(arg2); | |
24843 | ||
24844 | wxPyEndAllowThreads(__tstate); | |
24845 | if (PyErr_Occurred()) SWIG_fail; | |
24846 | } | |
24847 | Py_INCREF(Py_None); resultobj = Py_None; | |
24848 | return resultobj; | |
24849 | fail: | |
24850 | return NULL; | |
24851 | } | |
24852 | ||
24853 | ||
24854 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24855 | PyObject *resultobj; | |
24856 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24857 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
24858 | PyObject * obj0 = 0 ; | |
24859 | PyObject * obj1 = 0 ; | |
24860 | char *kwnames[] = { | |
24861 | (char *) "self",(char *) "bar", NULL | |
24862 | }; | |
24863 | ||
24864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
24865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
24868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24869 | { | |
24870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24871 | (arg1)->SetControlBar(arg2); | |
24872 | ||
24873 | wxPyEndAllowThreads(__tstate); | |
24874 | if (PyErr_Occurred()) SWIG_fail; | |
24875 | } | |
24876 | Py_INCREF(Py_None); resultobj = Py_None; | |
24877 | return resultobj; | |
24878 | fail: | |
24879 | return NULL; | |
24880 | } | |
24881 | ||
24882 | ||
24883 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24884 | PyObject *resultobj; | |
24885 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24886 | PyObject * obj0 = 0 ; | |
24887 | char *kwnames[] = { | |
24888 | (char *) "self", NULL | |
24889 | }; | |
24890 | ||
24891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
24892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24894 | { | |
24895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24896 | (arg1)->base_Initialize(); | |
24897 | ||
24898 | wxPyEndAllowThreads(__tstate); | |
24899 | if (PyErr_Occurred()) SWIG_fail; | |
24900 | } | |
24901 | Py_INCREF(Py_None); resultobj = Py_None; | |
24902 | return resultobj; | |
24903 | fail: | |
24904 | return NULL; | |
24905 | } | |
24906 | ||
24907 | ||
24908 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24909 | PyObject *resultobj; | |
24910 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24911 | PyObject * obj0 = 0 ; | |
24912 | char *kwnames[] = { | |
24913 | (char *) "self", NULL | |
24914 | }; | |
24915 | ||
24916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
24917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24919 | { | |
24920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24921 | (arg1)->base_CreateCanvas(); | |
24922 | ||
24923 | wxPyEndAllowThreads(__tstate); | |
24924 | if (PyErr_Occurred()) SWIG_fail; | |
24925 | } | |
24926 | Py_INCREF(Py_None); resultobj = Py_None; | |
24927 | return resultobj; | |
24928 | fail: | |
24929 | return NULL; | |
24930 | } | |
24931 | ||
24932 | ||
24933 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24934 | PyObject *resultobj; | |
24935 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24936 | PyObject * obj0 = 0 ; | |
24937 | char *kwnames[] = { | |
24938 | (char *) "self", NULL | |
24939 | }; | |
24940 | ||
24941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24944 | { | |
24945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24946 | (arg1)->base_CreateControlBar(); | |
24947 | ||
24948 | wxPyEndAllowThreads(__tstate); | |
24949 | if (PyErr_Occurred()) SWIG_fail; | |
24950 | } | |
24951 | Py_INCREF(Py_None); resultobj = Py_None; | |
24952 | return resultobj; | |
24953 | fail: | |
24954 | return NULL; | |
24955 | } | |
24956 | ||
24957 | ||
24958 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24959 | PyObject *obj; | |
24960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24961 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24962 | Py_INCREF(obj); | |
24963 | return Py_BuildValue((char *)""); | |
24964 | } | |
24965 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24966 | PyObject *resultobj; | |
24967 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24968 | long arg2 ; | |
24969 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24970 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24971 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24972 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24973 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24974 | long arg6 = (long) 0 ; | |
24975 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24976 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24977 | wxPyPreviewControlBar *result; | |
24978 | wxPoint temp4 ; | |
24979 | wxSize temp5 ; | |
24980 | bool temp7 = False ; | |
24981 | PyObject * obj0 = 0 ; | |
24982 | PyObject * obj1 = 0 ; | |
24983 | PyObject * obj2 = 0 ; | |
24984 | PyObject * obj3 = 0 ; | |
24985 | PyObject * obj4 = 0 ; | |
24986 | PyObject * obj5 = 0 ; | |
24987 | PyObject * obj6 = 0 ; | |
24988 | char *kwnames[] = { | |
24989 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24990 | }; | |
24991 | ||
24992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24995 | arg2 = (long) SWIG_AsLong(obj1); | |
24996 | if (PyErr_Occurred()) SWIG_fail; | |
24997 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24999 | if (obj3) { | |
25000 | { | |
25001 | arg4 = &temp4; | |
25002 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25003 | } | |
25004 | } | |
25005 | if (obj4) { | |
25006 | { | |
25007 | arg5 = &temp5; | |
25008 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25009 | } | |
25010 | } | |
25011 | if (obj5) { | |
25012 | arg6 = (long) SWIG_AsLong(obj5); | |
25013 | if (PyErr_Occurred()) SWIG_fail; | |
25014 | } | |
25015 | if (obj6) { | |
25016 | { | |
25017 | arg7 = wxString_in_helper(obj6); | |
25018 | if (arg7 == NULL) SWIG_fail; | |
25019 | temp7 = True; | |
25020 | } | |
25021 | } | |
25022 | { | |
0439c23b | 25023 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25025 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
25026 | ||
25027 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25028 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25029 | } |
25030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
25031 | { | |
25032 | if (temp7) | |
25033 | delete arg7; | |
25034 | } | |
25035 | return resultobj; | |
25036 | fail: | |
25037 | { | |
25038 | if (temp7) | |
25039 | delete arg7; | |
25040 | } | |
25041 | return NULL; | |
25042 | } | |
25043 | ||
25044 | ||
25045 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25046 | PyObject *resultobj; | |
25047 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25048 | PyObject *arg2 = (PyObject *) 0 ; | |
25049 | PyObject *arg3 = (PyObject *) 0 ; | |
25050 | PyObject * obj0 = 0 ; | |
25051 | PyObject * obj1 = 0 ; | |
25052 | PyObject * obj2 = 0 ; | |
25053 | char *kwnames[] = { | |
25054 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25055 | }; | |
25056 | ||
25057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25060 | arg2 = obj1; | |
25061 | arg3 = obj2; | |
25062 | { | |
25063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25064 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25065 | ||
25066 | wxPyEndAllowThreads(__tstate); | |
25067 | if (PyErr_Occurred()) SWIG_fail; | |
25068 | } | |
25069 | Py_INCREF(Py_None); resultobj = Py_None; | |
25070 | return resultobj; | |
25071 | fail: | |
25072 | return NULL; | |
25073 | } | |
25074 | ||
25075 | ||
25076 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25077 | PyObject *resultobj; | |
25078 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25079 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
25080 | PyObject * obj0 = 0 ; | |
25081 | PyObject * obj1 = 0 ; | |
25082 | char *kwnames[] = { | |
25083 | (char *) "self",(char *) "preview", NULL | |
25084 | }; | |
25085 | ||
25086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
25087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
25090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25091 | { | |
25092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25093 | (arg1)->SetPrintPreview(arg2); | |
25094 | ||
25095 | wxPyEndAllowThreads(__tstate); | |
25096 | if (PyErr_Occurred()) SWIG_fail; | |
25097 | } | |
25098 | Py_INCREF(Py_None); resultobj = Py_None; | |
25099 | return resultobj; | |
25100 | fail: | |
25101 | return NULL; | |
25102 | } | |
25103 | ||
25104 | ||
25105 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25106 | PyObject *resultobj; | |
25107 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25108 | PyObject * obj0 = 0 ; | |
25109 | char *kwnames[] = { | |
25110 | (char *) "self", NULL | |
25111 | }; | |
25112 | ||
25113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
25114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25116 | { | |
25117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25118 | (arg1)->base_CreateButtons(); | |
25119 | ||
25120 | wxPyEndAllowThreads(__tstate); | |
25121 | if (PyErr_Occurred()) SWIG_fail; | |
25122 | } | |
25123 | Py_INCREF(Py_None); resultobj = Py_None; | |
25124 | return resultobj; | |
25125 | fail: | |
25126 | return NULL; | |
25127 | } | |
25128 | ||
25129 | ||
25130 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25131 | PyObject *resultobj; | |
25132 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25133 | int arg2 ; | |
25134 | PyObject * obj0 = 0 ; | |
25135 | PyObject * obj1 = 0 ; | |
25136 | char *kwnames[] = { | |
25137 | (char *) "self",(char *) "zoom", NULL | |
25138 | }; | |
25139 | ||
25140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
25141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25143 | arg2 = (int) SWIG_AsInt(obj1); | |
25144 | if (PyErr_Occurred()) SWIG_fail; | |
25145 | { | |
25146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25147 | (arg1)->base_SetZoomControl(arg2); | |
25148 | ||
25149 | wxPyEndAllowThreads(__tstate); | |
25150 | if (PyErr_Occurred()) SWIG_fail; | |
25151 | } | |
25152 | Py_INCREF(Py_None); resultobj = Py_None; | |
25153 | return resultobj; | |
25154 | fail: | |
25155 | return NULL; | |
25156 | } | |
25157 | ||
25158 | ||
25159 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
25160 | PyObject *obj; | |
25161 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25162 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
25163 | Py_INCREF(obj); | |
25164 | return Py_BuildValue((char *)""); | |
25165 | } | |
25166 | static PyMethodDef SwigMethods[] = { | |
25167 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25171 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25172 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, |
25173 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
25188 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
25189 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
f5b96ee1 | 25195 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS }, |
f20a2e1f | 25196 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25197 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, |
25198 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
25212 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25234 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25235 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, |
25236 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
25238 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25246 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25247 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, |
25248 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
25252 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25254 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
25256 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
25260 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
25261 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25267 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25269 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25270 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
03837c5c | 25271 | { (char *)"StatusBar_SetStatusStyles", (PyCFunction) _wrap_StatusBar_SetStatusStyles, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25272 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, |
25273 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
25275 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25276 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25277 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, |
25278 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
25279 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25281 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
25283 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
25285 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
25287 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
25292 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25294 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
25295 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25296 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25297 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
25299 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
25302 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25304 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25305 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, |
25306 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
25307 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
25310 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
25312 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
25313 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25314 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25316 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
25317 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
25318 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
25319 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
25320 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
25321 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25322 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25323 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25324 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25325 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25326 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25327 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25328 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25329 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25330 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25331 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25332 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25333 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
25334 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
25335 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
25336 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
25337 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
25338 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
25339 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
25340 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
25341 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
25342 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
25343 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
25344 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
25345 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
25346 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
25347 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25348 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25349 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
25350 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25351 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25352 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25353 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25354 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25355 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
25356 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
25357 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25358 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25359 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
25360 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
25361 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
25362 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25363 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25364 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25365 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25366 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25367 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25368 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25369 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25370 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
25371 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
25372 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
25373 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
25374 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
25375 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25376 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
25377 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
25378 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
25379 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25380 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, | |
25381 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
25382 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25383 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25384 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25385 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, | |
25386 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, | |
25387 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
25388 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
25389 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
25390 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
25391 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
25392 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25393 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25394 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25395 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25396 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
25397 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
25398 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
25399 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
25400 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
25401 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
354693ff | 25402 | { (char *)"VScrolledWindow_HitTestXY", (PyCFunction) _wrap_VScrolledWindow_HitTestXY, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25403 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
25404 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
25405 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
25406 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
25407 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
25408 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
25409 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
25410 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
25411 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
25412 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25413 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25414 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
25415 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
25416 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25417 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
25418 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
25419 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
25420 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
25421 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
25422 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25423 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
25424 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
25425 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25426 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25427 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
25428 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
25429 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
25430 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
25431 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
25432 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25433 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
25434 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
25435 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
25436 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
25437 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
25438 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25439 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25440 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
25441 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 25442 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25443 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, |
25444 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
25445 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
25446 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
25447 | { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
25448 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, | |
25449 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25450 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, | |
25451 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
25452 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
25453 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
25454 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
25455 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
25456 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
25457 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
25458 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25459 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
25460 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
25461 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25462 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
25463 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
25464 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
25465 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
25466 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
25467 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
25468 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25469 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25470 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25471 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25472 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25473 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
25474 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
25475 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25476 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25477 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
25478 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25479 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
25480 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25481 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
25482 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25483 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25484 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
25485 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25486 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
25487 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25488 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
25489 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25490 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
25491 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
25492 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25493 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25494 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25495 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
25496 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25497 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25498 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25499 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25500 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
25501 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
25502 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25503 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25504 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
25505 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
25506 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
25507 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
25508 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
25509 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25510 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
25511 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
25512 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
25513 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
25514 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
25515 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
25516 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25517 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
25518 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25519 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
25520 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
25521 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
25522 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
25523 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
25524 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
25525 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
25526 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
25527 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
25528 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
25529 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
25530 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
25531 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25532 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25533 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25534 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
25535 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25536 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25537 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25538 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
25539 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
25540 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
25541 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25542 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25543 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25544 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25545 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25546 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25547 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
25548 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25549 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25550 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
25551 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25552 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25553 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
25554 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25555 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25556 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25557 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
25558 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
25559 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
25560 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
25561 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
25562 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25563 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25564 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25565 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25566 | { (char *)"MDIParentFrame_SetToolBar", (PyCFunction) _wrap_MDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25567 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
25568 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
25569 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25570 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25571 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25572 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
25573 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25574 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25575 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
25576 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25577 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25578 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25579 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
25580 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25581 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25582 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25583 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25584 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25585 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25586 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25587 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25588 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25589 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25590 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25591 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25592 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25593 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25594 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25595 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25596 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25597 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25598 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25599 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25600 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25601 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25602 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25603 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25604 | { (char *)"PyWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25605 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, |
25606 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25607 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25608 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25609 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25610 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25611 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25612 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25613 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25614 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25615 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25616 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25617 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25618 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25619 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25620 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25621 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25622 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25623 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25624 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25625 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25626 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25627 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25628 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25629 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25630 | { (char *)"PyPanel_base_GetDefaultAttributes", (PyCFunction) _wrap_PyPanel_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25631 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, |
25632 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25633 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25634 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25635 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25636 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25637 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25638 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25639 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25640 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25641 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25642 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25643 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25644 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25645 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25646 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25647 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25648 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25649 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25650 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25651 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25652 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25653 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25654 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25655 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25656 | { (char *)"PyScrolledWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyScrolledWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 25657 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, |
09c21d3b | 25658 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS }, |
d55e5bfc RD |
25659 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, |
25660 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25661 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25662 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25663 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25664 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25665 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25666 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25667 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25668 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25669 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25670 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25671 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25672 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25673 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25674 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25675 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25676 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25677 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25678 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25679 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25680 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25681 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25682 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25683 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25684 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25685 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25686 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25687 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25688 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25689 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25690 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25691 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25692 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25693 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25694 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25695 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25696 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
25697 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25698 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25699 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
25700 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25701 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25702 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25703 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
09c21d3b | 25704 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS }, |
d55e5bfc RD |
25705 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, |
25706 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25707 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25708 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25709 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25710 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25711 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25712 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25713 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25714 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25715 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25716 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25717 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25718 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25719 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25720 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25721 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25722 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25723 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25724 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25725 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25726 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25727 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25728 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25729 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25730 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25731 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25732 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25733 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25734 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25735 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
25736 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25737 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
25738 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25739 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
25740 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
25741 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25742 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25743 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25744 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25745 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25746 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25747 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25748 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25749 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25750 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25751 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25752 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25753 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25754 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25755 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25756 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25757 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25758 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25759 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25760 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25761 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25762 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25763 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25764 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25765 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25766 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25767 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25768 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25769 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25770 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25771 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25772 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25773 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
25774 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25775 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25776 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
25777 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25778 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
25779 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25780 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25781 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
25782 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25783 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
25784 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25785 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
25786 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
25787 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
25788 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
25789 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
25790 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
25791 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25792 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25793 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
25794 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
25795 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25796 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25797 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25798 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25799 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25800 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25801 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25802 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25803 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25804 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25805 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
25806 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
25807 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25808 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25809 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
25810 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
25811 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
25812 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
25813 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25814 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
25815 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25816 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25817 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25818 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25819 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25820 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
25821 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25822 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25823 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25824 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25825 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
25826 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
25827 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
25828 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
25829 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
25830 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
25831 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
25832 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25833 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25834 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25835 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25836 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25837 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25838 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25839 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25840 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25841 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25842 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25843 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25844 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25845 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25846 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25847 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25848 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25849 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25850 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25851 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
25852 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
25853 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25854 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
25855 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
25856 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25857 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25858 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25859 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25860 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25861 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25862 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
25863 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25864 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
25865 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25866 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25867 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25868 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25869 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25870 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25871 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25872 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
25873 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25874 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25875 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25876 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
25877 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25878 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
25879 | { NULL, NULL } | |
25880 | }; | |
25881 | ||
25882 | ||
25883 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25884 | ||
25885 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
25886 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25887 | } | |
25888 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25889 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25890 | } | |
25891 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25892 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25893 | } | |
25894 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25895 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25896 | } | |
25897 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25898 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25899 | } | |
25900 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25901 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25902 | } | |
25903 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25904 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25905 | } | |
25906 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
25907 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25908 | } | |
25909 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25910 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25911 | } | |
25912 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25913 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25914 | } | |
25915 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
25916 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25917 | } | |
25918 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25919 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25920 | } | |
25921 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25922 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25923 | } | |
25924 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
25925 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25926 | } | |
25927 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25928 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25929 | } | |
25930 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25931 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25932 | } | |
25933 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25934 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25935 | } | |
25936 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25937 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25938 | } | |
25939 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25940 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25941 | } | |
25942 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25943 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25944 | } | |
25945 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25946 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25947 | } | |
25948 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25949 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25950 | } | |
25951 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25952 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25953 | } | |
25954 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25955 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25956 | } | |
25957 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25958 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25959 | } | |
25960 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25961 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25962 | } | |
25963 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25964 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25965 | } | |
25966 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25967 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25968 | } | |
25969 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25970 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25971 | } | |
25972 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25973 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25974 | } | |
25975 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25976 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25977 | } | |
25978 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25979 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25980 | } | |
25981 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25982 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25983 | } | |
25984 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25985 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25986 | } | |
25987 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25988 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25989 | } | |
25990 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25991 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25992 | } | |
25993 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25994 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25995 | } | |
25996 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25997 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25998 | } | |
25999 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
26000 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26001 | } | |
26002 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
26003 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
26004 | } | |
26005 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
26006 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
26007 | } | |
26008 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
26009 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
26010 | } | |
26011 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
26012 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26013 | } | |
26014 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
26015 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26016 | } | |
26017 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
26018 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26019 | } | |
26020 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
26021 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
26022 | } | |
26023 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
26024 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
26025 | } | |
26026 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
26027 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
26028 | } | |
26029 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
26030 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
26031 | } | |
26032 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
26033 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
26034 | } | |
26035 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
26036 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26037 | } | |
26038 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
26039 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26040 | } | |
26041 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
26042 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26043 | } | |
26044 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
26045 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26046 | } | |
26047 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
26048 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26049 | } | |
26050 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
26051 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26052 | } | |
26053 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
26054 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26055 | } | |
26056 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
26057 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
26058 | } | |
26059 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
26060 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
26061 | } | |
26062 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26063 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26064 | } | |
26065 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
26066 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26067 | } | |
26068 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
26069 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26070 | } | |
26071 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
26072 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
26073 | } | |
26074 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
26075 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26076 | } | |
26077 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
26078 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
26079 | } | |
26080 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
26081 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
26082 | } | |
26083 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
26084 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
26085 | } | |
26086 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
26087 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
26088 | } | |
26089 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26090 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
26091 | } | |
26092 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
26093 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
26094 | } | |
26095 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
26096 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
26097 | } | |
26098 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26099 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26100 | } | |
26101 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
26102 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
26103 | } | |
26104 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
26105 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26106 | } | |
26107 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
26108 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26109 | } | |
26110 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
26111 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26112 | } | |
26113 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
26114 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
26115 | } | |
26116 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
26117 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26118 | } | |
26119 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
26120 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
26121 | } | |
26122 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
26123 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26124 | } | |
26125 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
26126 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26127 | } | |
26128 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
26129 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26130 | } | |
26131 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
26132 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
26133 | } | |
26134 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
26135 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26136 | } | |
26137 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
26138 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
26139 | } | |
26140 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
26141 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
26142 | } | |
26143 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
26144 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26145 | } | |
26146 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
26147 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26148 | } | |
26149 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
26150 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26151 | } | |
26152 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
26153 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
26154 | } | |
26155 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
26156 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26157 | } | |
26158 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
26159 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26160 | } | |
26161 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
26162 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26163 | } | |
26164 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
26165 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26166 | } | |
26167 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
26168 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
26169 | } | |
26170 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
26171 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
26172 | } | |
26173 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
26174 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
26175 | } | |
26176 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
26177 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26178 | } | |
26179 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
26180 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
26181 | } | |
26182 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
26183 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
26184 | } | |
26185 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
26186 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
26187 | } | |
26188 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
26189 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
26190 | } | |
26191 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
26192 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
26193 | } | |
26194 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
26195 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26196 | } | |
26197 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
26198 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26199 | } | |
26200 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
26201 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
26202 | } | |
26203 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
26204 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
26205 | } | |
26206 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
26207 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
26208 | } | |
26209 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
26210 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
26211 | } | |
26212 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
26213 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26214 | } | |
26215 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
26216 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
26217 | } | |
26218 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
26219 | return (void *)((wxObject *) ((wxSizer *) x)); | |
26220 | } | |
26221 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
26222 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26223 | } | |
26224 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
26225 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26226 | } | |
26227 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
26228 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
26229 | } | |
26230 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
26231 | return (void *)((wxObject *) ((wxEvent *) x)); | |
26232 | } | |
26233 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
26234 | return (void *)((wxObject *) ((wxFontData *) x)); | |
26235 | } | |
26236 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
26237 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
26238 | } | |
26239 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
26240 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26241 | } | |
26242 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
26243 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
26244 | } | |
26245 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
26246 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
26247 | } | |
26248 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
26249 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
26250 | } | |
26251 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
26252 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
26253 | } | |
26254 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
26255 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26256 | } | |
26257 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
26258 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
26259 | } | |
26260 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
26261 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
26262 | } | |
26263 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
26264 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26265 | } | |
26266 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
26267 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26268 | } | |
26269 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
26270 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26271 | } | |
26272 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
26273 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26274 | } | |
26275 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
26276 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26277 | } | |
26278 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
26279 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
26280 | } | |
26281 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
26282 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
26283 | } | |
26284 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
26285 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26286 | } | |
26287 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
26288 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
26289 | } | |
26290 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
26291 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
26292 | } | |
26293 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
26294 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
26295 | } | |
26296 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
26297 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26298 | } | |
26299 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
26300 | return (void *)((wxObject *) ((wxColourData *) x)); | |
26301 | } | |
26302 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
26303 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
26304 | } | |
26305 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
26306 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26307 | } | |
26308 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
26309 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
26310 | } | |
26311 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
26312 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26313 | } | |
26314 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
26315 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26316 | } | |
26317 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
26318 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26319 | } | |
26320 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
26321 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26322 | } | |
26323 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
26324 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26325 | } | |
26326 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
26327 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26328 | } | |
26329 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
26330 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26331 | } | |
26332 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
26333 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26334 | } | |
26335 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
26336 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
26337 | } | |
26338 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
26339 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
26340 | } | |
26341 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
26342 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
26343 | } | |
26344 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
26345 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
26346 | } | |
26347 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
26348 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26349 | } | |
26350 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
26351 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26352 | } | |
26353 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
26354 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
26355 | } | |
26356 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
26357 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
26358 | } | |
26359 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
26360 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
26361 | } | |
26362 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
26363 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
26364 | } | |
26365 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
26366 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
26367 | } | |
26368 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
26369 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
26370 | } | |
26371 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
26372 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
26373 | } | |
26374 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
26375 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
26376 | } | |
26377 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
26378 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
26379 | } | |
26380 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
26381 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
26382 | } | |
26383 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
26384 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
26385 | } | |
26386 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
26387 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
26388 | } | |
26389 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
26390 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
26391 | } | |
26392 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
26393 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
26394 | } | |
26395 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
26396 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
26397 | } | |
26398 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
26399 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
26400 | } | |
26401 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
26402 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
26403 | } | |
26404 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
26405 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
26406 | } | |
26407 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
26408 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
26409 | } | |
26410 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
26411 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26412 | } | |
26413 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
26414 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26415 | } | |
26416 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
26417 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
26418 | } | |
26419 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
26420 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26421 | } | |
26422 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
26423 | return (void *)((wxObject *) ((wxImage *) x)); | |
26424 | } | |
26425 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
26426 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
26427 | } | |
26428 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
26429 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
26430 | } | |
26431 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
26432 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
26433 | } | |
26434 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
26435 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
26436 | } | |
26437 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
26438 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
26439 | } | |
26440 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
26441 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26442 | } | |
26443 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26444 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26445 | } | |
26446 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26447 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26448 | } | |
26449 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26450 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26451 | } | |
26452 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26453 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26454 | } | |
26455 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26456 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26457 | } | |
26458 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26459 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26460 | } | |
26461 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
26462 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
26463 | } | |
26464 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
26465 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
26466 | } | |
26467 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
26468 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
26469 | } | |
26470 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
26471 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
26472 | } | |
26473 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
26474 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
26475 | } | |
26476 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
26477 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26478 | } | |
26479 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
26480 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
26481 | } | |
26482 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
26483 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26484 | } | |
26485 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
26486 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26487 | } | |
26488 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
26489 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26490 | } | |
26491 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
26492 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
26493 | } | |
26494 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
26495 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26496 | } | |
26497 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
26498 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
26499 | } | |
26500 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
26501 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
26502 | } | |
26503 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
26504 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26505 | } | |
26506 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
26507 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
26508 | } | |
26509 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
26510 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
26511 | } | |
26512 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
26513 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26514 | } | |
26515 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
26516 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26517 | } | |
26518 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
26519 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26520 | } | |
26521 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
26522 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26523 | } | |
26524 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
26525 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26526 | } | |
26527 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
26528 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26529 | } | |
26530 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26531 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26532 | } | |
26533 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26534 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26535 | } | |
26536 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26537 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26538 | } | |
26539 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26540 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26541 | } | |
26542 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26543 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26544 | } | |
26545 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26546 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26547 | } | |
26548 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26549 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26550 | } | |
26551 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26552 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26553 | } | |
26554 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
26555 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
26556 | } | |
26557 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
26558 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26559 | } | |
26560 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26561 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26562 | } | |
26563 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26564 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26565 | } | |
26566 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26567 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26568 | } | |
26569 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26570 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26571 | } | |
26572 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
26573 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
26574 | } | |
26575 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
26576 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
26577 | } | |
26578 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26579 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26580 | } | |
26581 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26582 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26583 | } | |
26584 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26585 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26586 | } | |
26587 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26588 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26589 | } | |
26590 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
26591 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26592 | } | |
26593 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
26594 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26595 | } | |
26596 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
26597 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26598 | } | |
26599 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
26600 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26601 | } | |
26602 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
26603 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
26604 | } | |
26605 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
26606 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
26607 | } | |
26608 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
26609 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
26610 | } | |
26611 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
26612 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
26613 | } | |
26614 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
26615 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
26616 | } | |
26617 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
26618 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
26619 | } | |
26620 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
26621 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
26622 | } | |
26623 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
26624 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
26625 | } | |
26626 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
26627 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
26628 | } | |
26629 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
26630 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
26631 | } | |
26632 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
26633 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
26634 | } | |
26635 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
26636 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
26637 | } | |
26638 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
26639 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
26640 | } | |
26641 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
26642 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
26643 | } | |
26644 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
26645 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
26646 | } | |
26647 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26648 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26649 | } | |
26650 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26651 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26652 | } | |
26653 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
26654 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
26655 | } | |
26656 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26657 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
26658 | } | |
26659 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26660 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26661 | } | |
26662 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
26663 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26664 | } | |
26665 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
26666 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26667 | } | |
26668 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
26669 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
26670 | } | |
26671 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26672 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26673 | } | |
26674 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
26675 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26676 | } | |
26677 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
26678 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26679 | } | |
26680 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
26681 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26682 | } | |
26683 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
26684 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26685 | } | |
26686 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
26687 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26688 | } | |
26689 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
26690 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26691 | } | |
26692 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
26693 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26694 | } | |
26695 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
26696 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
26697 | } | |
26698 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
26699 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
26700 | } | |
26701 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
26702 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
26703 | } | |
26704 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
26705 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26706 | } | |
26707 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
26708 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26709 | } | |
26710 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
26711 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26712 | } | |
26713 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
26714 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
26715 | } | |
26716 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
26717 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26718 | } | |
26719 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
26720 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
26721 | } | |
26722 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
26723 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
26724 | } | |
26725 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
26726 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
26727 | } | |
26728 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
26729 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
26730 | } | |
26731 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
26732 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
26733 | } | |
26734 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
26735 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26736 | } | |
26737 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26738 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26739 | } | |
26740 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
26741 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26742 | } | |
26743 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
26744 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26745 | } | |
26746 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
26747 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26748 | } | |
26749 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26750 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26751 | } | |
26752 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
26753 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
26754 | } | |
26755 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
26756 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26757 | } | |
26758 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
26759 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26760 | } | |
26761 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
26762 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26763 | } | |
26764 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
26765 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
26766 | } | |
26767 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
26768 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26769 | } | |
26770 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
26771 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
26772 | } | |
26773 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
26774 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26775 | } | |
26776 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
26777 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26778 | } | |
26779 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
26780 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26781 | } | |
26782 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
26783 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
26784 | } | |
26785 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
26786 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26787 | } | |
26788 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
26789 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26790 | } | |
26791 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
26792 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26793 | } | |
26794 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
26795 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26796 | } | |
26797 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
26798 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26799 | } | |
26800 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
26801 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26802 | } | |
26803 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
26804 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
26805 | } | |
26806 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
26807 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
26808 | } | |
26809 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
26810 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
26811 | } | |
26812 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
26813 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
26814 | } | |
26815 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
26816 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
26817 | } | |
26818 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
26819 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
26820 | } | |
26821 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
26822 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26823 | } | |
26824 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
26825 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26826 | } | |
26827 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
26828 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
26829 | } | |
26830 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
26831 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
26832 | } | |
26833 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
26834 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
26835 | } | |
26836 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
26837 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
26838 | } | |
26839 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
26840 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26841 | } | |
26842 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
26843 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26844 | } | |
26845 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
26846 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26847 | } | |
26848 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
26849 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26850 | } | |
26851 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
26852 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
26853 | } | |
26854 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
26855 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26856 | } | |
26857 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
26858 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
26859 | } | |
26860 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
26861 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26862 | } | |
26863 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
26864 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26865 | } | |
26866 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
26867 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
26868 | } | |
26869 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
26870 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26871 | } | |
26872 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
26873 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26874 | } | |
26875 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
26876 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26877 | } | |
26878 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
26879 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26880 | } | |
26881 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
26882 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26883 | } | |
26884 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
26885 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26886 | } | |
26887 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
26888 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26889 | } | |
26890 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
26891 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26892 | } | |
26893 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
26894 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
26895 | } | |
26896 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
26897 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26898 | } | |
26899 | 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}}; | |
26900 | 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}}; | |
26901 | 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}}; | |
26902 | 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}}; | |
26903 | 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 |
26904 | 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}}; |
26905 | 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}}; | |
f5b96ee1 | 26906 | 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 |
26907 | 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}}; |
26908 | 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}}; | |
26909 | 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}}; | |
26910 | 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}}; | |
26911 | 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}}; | |
26912 | 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}}; | |
26913 | 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}}; | |
26914 | 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}}; | |
26915 | 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}}; | |
26916 | 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}}; | |
26917 | 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}}; | |
26918 | 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}}; | |
26919 | 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 | 26920 | 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 |
26921 | 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}}; |
26922 | 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}}; | |
26923 | 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}}; | |
26924 | 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}}; | |
26925 | 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}}; | |
26926 | 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}}; | |
26927 | 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}}; | |
26928 | 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}}; | |
26929 | 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}}; | |
26930 | 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}}; | |
26931 | 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}}; | |
26932 | 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}}; | |
26933 | 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}}; | |
26934 | 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}}; | |
26935 | 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}}; | |
26936 | 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}}; | |
26937 | 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}}; | |
26938 | 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}}; | |
26939 | 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}}; | |
26940 | 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}}; | |
26941 | 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}}; | |
26942 | 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}}; | |
26943 | 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}}; | |
26944 | 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}}; | |
26945 | 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}}; | |
26946 | 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}}; | |
26947 | 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}}; | |
26948 | 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}}; | |
26949 | 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}}; | |
26950 | 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}}; | |
d55e5bfc RD |
26951 | 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}}; |
26952 | 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}}; | |
26953 | 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}}; | |
26954 | 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}}; | |
26955 | 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 | 26956 | 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 |
26957 | 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}}; |
26958 | 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}}; | |
26959 | 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}}; | |
26960 | 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}}; | |
26961 | 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}}; | |
26962 | 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}}; | |
26963 | 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 |
26964 | 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}}; |
26965 | 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}}; | |
26966 | 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}}; | |
26967 | 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}}; | |
26968 | 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}}; | |
26969 | 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}}; | |
26970 | 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}}; | |
26971 | 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}}; | |
26972 | 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}}; | |
26973 | 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}}; | |
26974 | 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}}; | |
26975 | 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 | 26976 | 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 |
26977 | 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}}; |
26978 | 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}}; | |
26979 | 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}}; | |
26980 | 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}}; | |
26981 | 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}}; | |
26982 | 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}}; | |
26983 | 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}}; | |
26984 | 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}}; | |
26985 | ||
26986 | static swig_type_info *swig_types_initial[] = { | |
26987 | _swigt__p_wxQueryLayoutInfoEvent, | |
26988 | _swigt__p_wxPreviewFrame, | |
26989 | _swigt__p_wxPyPreviewFrame, | |
26990 | _swigt__p_wxPyPanel, | |
26991 | _swigt__p_wxMenu, | |
d55e5bfc RD |
26992 | _swigt__p_wxFontData, |
26993 | _swigt__p_wxEvent, | |
f5b96ee1 | 26994 | _swigt__p_wxPrintData, |
d55e5bfc RD |
26995 | _swigt__p_wxTaskBarIcon, |
26996 | _swigt__p_wxIconBundle, | |
26997 | _swigt__p_wxLayoutAlgorithm, | |
26998 | _swigt__p_wxFindDialogEvent, | |
26999 | _swigt__p_wxPreviewCanvas, | |
27000 | _swigt__p_wxFont, | |
27001 | _swigt__p_wxSplitterEvent, | |
27002 | _swigt__p_wxRegion, | |
27003 | _swigt__p_wxFindReplaceData, | |
27004 | _swigt__p_int, | |
27005 | _swigt__p_wxSize, | |
27006 | _swigt__p_wxDC, | |
27007 | _swigt__p_wxIcon, | |
f20a2e1f | 27008 | _swigt__p_wxVisualAttributes, |
d55e5bfc RD |
27009 | _swigt__p_wxMDIChildFrame, |
27010 | _swigt__p_wxColourData, | |
27011 | _swigt__p_wxNotifyEvent, | |
27012 | _swigt__p_wxPyWindow, | |
27013 | _swigt__p_wxSplashScreen, | |
27014 | _swigt__p_wxFindReplaceDialog, | |
27015 | _swigt__p_wxProgressDialog, | |
27016 | _swigt__p_wxMessageDialog, | |
27017 | _swigt__p_wxTextEntryDialog, | |
27018 | _swigt__p_wxSingleChoiceDialog, | |
27019 | _swigt__p_wxMultiChoiceDialog, | |
27020 | _swigt__p_wxFileDialog, | |
27021 | _swigt__p_wxPrinter, | |
27022 | _swigt__p_wxArrayInt, | |
27023 | _swigt__p_wxEvtHandler, | |
27024 | _swigt__p_wxCalculateLayoutEvent, | |
27025 | _swigt__p_wxPyHtmlListBox, | |
27026 | _swigt__p_wxPyVListBox, | |
27027 | _swigt__p_wxRect, | |
27028 | _swigt__p_char, | |
27029 | _swigt__p_wxMiniFrame, | |
27030 | _swigt__p_wxFrame, | |
27031 | _swigt__p_wxPyPrintout, | |
27032 | _swigt__p_wxTaskBarIconEvent, | |
27033 | _swigt__p_wxScrollWinEvent, | |
27034 | _swigt__p_wxStatusBar, | |
27035 | _swigt__p_wxMDIParentFrame, | |
27036 | _swigt__p_wxPoint, | |
27037 | _swigt__p_wxObject, | |
27038 | _swigt__p_wxOutputStream, | |
d55e5bfc RD |
27039 | _swigt__p_wxPyScrolledWindow, |
27040 | _swigt__p_wxMDIClientWindow, | |
27041 | _swigt__p_wxTipWindow, | |
27042 | _swigt__p_wxSashLayoutWindow, | |
27043 | _swigt__p_wxSplitterWindow, | |
f20a2e1f | 27044 | _swigt__p_wxSplashScreenWindow, |
d55e5bfc RD |
27045 | _swigt__p_wxPyVScrolledWindow, |
27046 | _swigt__p_wxPyPopupTransientWindow, | |
27047 | _swigt__p_wxPopupWindow, | |
27048 | _swigt__p_wxSashWindow, | |
27049 | _swigt__p_wxTopLevelWindow, | |
27050 | _swigt__p_wxWindow, | |
27051 | _swigt__p_wxScrolledWindow, | |
d55e5bfc RD |
27052 | _swigt__p_wxMenuBar, |
27053 | _swigt__p_wxPrintPreview, | |
27054 | _swigt__p_wxSashEvent, | |
27055 | _swigt__p_wxString, | |
27056 | _swigt__p_wxPyPrintPreview, | |
27057 | _swigt__p_wxFontDialog, | |
27058 | _swigt__p_wxDirDialog, | |
27059 | _swigt__p_wxColourDialog, | |
27060 | _swigt__p_wxDialog, | |
27061 | _swigt__p_wxPanel, | |
27062 | _swigt__p_wxPageSetupDialog, | |
27063 | _swigt__p_wxPrintDialog, | |
c24da6d6 | 27064 | _swigt__p_wxFileSystem, |
d55e5bfc RD |
27065 | _swigt__p_wxBitmap, |
27066 | _swigt__p_wxCommandEvent, | |
27067 | _swigt__p_wxPreviewControlBar, | |
27068 | _swigt__p_wxPyPreviewControlBar, | |
27069 | _swigt__p_wxColour, | |
27070 | _swigt__p_wxToolBar, | |
27071 | _swigt__p_wxPageSetupDialogData, | |
27072 | _swigt__p_wxPrintDialogData, | |
27073 | 0 | |
27074 | }; | |
27075 | ||
27076 | ||
27077 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27078 | ||
27079 | static swig_const_info swig_const_table[] = { | |
27080 | {0}}; | |
27081 | ||
27082 | #ifdef __cplusplus | |
27083 | } | |
27084 | #endif | |
27085 | ||
27086 | #ifdef __cplusplus | |
27087 | extern "C" | |
27088 | #endif | |
27089 | SWIGEXPORT(void) SWIG_init(void) { | |
27090 | static PyObject *SWIG_globals = 0; | |
27091 | static int typeinit = 0; | |
27092 | PyObject *m, *d; | |
27093 | int i; | |
27094 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
27095 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27096 | d = PyModule_GetDict(m); | |
27097 | ||
27098 | if (!typeinit) { | |
27099 | for (i = 0; swig_types_initial[i]; i++) { | |
27100 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
27101 | } | |
27102 | typeinit = 1; | |
27103 | } | |
27104 | SWIG_InstallConstants(d,swig_const_table); | |
27105 | ||
27106 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
27107 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
27108 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
27109 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
27110 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
27111 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
27112 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
27113 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
27114 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
27115 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
27116 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
27117 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
27118 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
27119 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
27120 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
27121 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
27122 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
27123 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
27124 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
27125 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
27126 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
27127 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
27128 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
27129 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
27130 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
27131 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
27132 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
27133 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
27134 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
27135 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
27136 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
27137 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
27138 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
27139 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
27140 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
27141 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
27142 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
27143 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
27144 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
27145 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
27146 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
27147 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
03837c5c RD |
27148 | PyDict_SetItemString(d,"SB_NORMAL", SWIG_FromInt((int)wxSB_NORMAL)); |
27149 | PyDict_SetItemString(d,"SB_FLAT", SWIG_FromInt((int)wxSB_FLAT)); | |
27150 | PyDict_SetItemString(d,"SB_RAISED", SWIG_FromInt((int)wxSB_RAISED)); | |
d55e5bfc RD |
27151 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); |
27152 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
27153 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
27154 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
27155 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
27156 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
27157 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
27158 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
27159 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
27160 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
27161 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
27162 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
27163 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
27164 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
27165 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
27166 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
27167 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
27168 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
27169 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
27170 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
27171 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
27172 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
27173 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
27174 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
27175 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
27176 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
27177 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
27178 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
27179 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
27180 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
27181 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
27182 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
27183 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
27184 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
27185 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
27186 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
27187 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
27188 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
27189 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
27190 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
27191 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
27192 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
27193 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
27194 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
27195 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
27196 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
27197 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
27198 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
27199 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
27200 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
27201 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
27202 | ||
27203 | // Map renamed classes back to their common name for OOR | |
27204 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
27205 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
27206 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
27207 | ||
27208 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
27209 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
27210 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
27211 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
27212 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
27213 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
27214 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
27215 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
27216 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
27217 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
27218 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
27219 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
27220 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
27221 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
27222 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
27223 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
27224 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
27225 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
27226 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
27227 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
27228 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
27229 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
27230 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
27231 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
27232 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
27233 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
27234 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
27235 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
27236 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
27237 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
27238 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
27239 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
27240 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
27241 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
27242 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
27243 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
27244 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
27245 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
27246 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
27247 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
27248 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
27249 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
27250 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
27251 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
27252 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
27253 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
27254 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
27255 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
27256 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
27257 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
27258 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
27259 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
27260 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
27261 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
27262 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
27263 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
27264 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
27265 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
27266 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
27267 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
27268 | ||
27269 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
27270 | ||
27271 | } | |
27272 |