]>
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] | |
09c21d3b RD |
214 | #define SWIGTYPE_p_wxPrintData swig_types[5] |
215 | #define SWIGTYPE_p_wxFontData swig_types[6] | |
216 | #define SWIGTYPE_p_wxEvent 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 | ||
f20a2e1f RD |
2603 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2604 | PyObject *resultobj; | |
2605 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2606 | wxVisualAttributes result; | |
2607 | PyObject * obj0 = 0 ; | |
2608 | char *kwnames[] = { | |
2609 | (char *) "variant", NULL | |
2610 | }; | |
2611 | ||
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2613 | if (obj0) { | |
2614 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2615 | if (PyErr_Occurred()) SWIG_fail; | |
2616 | } | |
2617 | { | |
0439c23b | 2618 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2620 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2621 | ||
2622 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2623 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2624 | } |
2625 | { | |
2626 | wxVisualAttributes * resultptr; | |
2627 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2629 | } | |
2630 | return resultobj; | |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
d55e5bfc RD |
2636 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
2637 | PyObject *obj; | |
2638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2639 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2640 | Py_INCREF(obj); | |
2641 | return Py_BuildValue((char *)""); | |
2642 | } | |
2643 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2644 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2645 | return 1; | |
2646 | } | |
2647 | ||
2648 | ||
2649 | static PyObject *_wrap_FrameNameStr_get() { | |
2650 | PyObject *pyobj; | |
2651 | ||
2652 | { | |
2653 | #if wxUSE_UNICODE | |
2654 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2655 | #else | |
2656 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2657 | #endif | |
2658 | } | |
2659 | return pyobj; | |
2660 | } | |
2661 | ||
2662 | ||
2663 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2664 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2665 | return 1; | |
2666 | } | |
2667 | ||
2668 | ||
2669 | static PyObject *_wrap_DialogNameStr_get() { | |
2670 | PyObject *pyobj; | |
2671 | ||
2672 | { | |
2673 | #if wxUSE_UNICODE | |
2674 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2675 | #else | |
2676 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2677 | #endif | |
2678 | } | |
2679 | return pyobj; | |
2680 | } | |
2681 | ||
2682 | ||
2683 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2684 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2685 | return 1; | |
2686 | } | |
2687 | ||
2688 | ||
2689 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2690 | PyObject *pyobj; | |
2691 | ||
2692 | { | |
2693 | #if wxUSE_UNICODE | |
2694 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2695 | #else | |
2696 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2697 | #endif | |
2698 | } | |
2699 | return pyobj; | |
2700 | } | |
2701 | ||
2702 | ||
2703 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2704 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2705 | return 1; | |
2706 | } | |
2707 | ||
2708 | ||
2709 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2710 | PyObject *pyobj; | |
2711 | ||
2712 | { | |
2713 | #if wxUSE_UNICODE | |
2714 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2715 | #else | |
2716 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2717 | #endif | |
2718 | } | |
2719 | return pyobj; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2724 | PyObject *resultobj; | |
2725 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2726 | bool arg2 = (bool) True ; | |
2727 | PyObject * obj0 = 0 ; | |
2728 | PyObject * obj1 = 0 ; | |
2729 | char *kwnames[] = { | |
2730 | (char *) "self",(char *) "maximize", NULL | |
2731 | }; | |
2732 | ||
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2736 | if (obj1) { | |
2737 | arg2 = (bool) SWIG_AsBool(obj1); | |
2738 | if (PyErr_Occurred()) SWIG_fail; | |
2739 | } | |
2740 | { | |
2741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2742 | (arg1)->Maximize(arg2); | |
2743 | ||
2744 | wxPyEndAllowThreads(__tstate); | |
2745 | if (PyErr_Occurred()) SWIG_fail; | |
2746 | } | |
2747 | Py_INCREF(Py_None); resultobj = Py_None; | |
2748 | return resultobj; | |
2749 | fail: | |
2750 | return NULL; | |
2751 | } | |
2752 | ||
2753 | ||
2754 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2755 | PyObject *resultobj; | |
2756 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2757 | PyObject * obj0 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "self", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2765 | { | |
2766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2767 | (arg1)->Restore(); | |
2768 | ||
2769 | wxPyEndAllowThreads(__tstate); | |
2770 | if (PyErr_Occurred()) SWIG_fail; | |
2771 | } | |
2772 | Py_INCREF(Py_None); resultobj = Py_None; | |
2773 | return resultobj; | |
2774 | fail: | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
2779 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2780 | PyObject *resultobj; | |
2781 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2782 | bool arg2 = (bool) True ; | |
2783 | PyObject * obj0 = 0 ; | |
2784 | PyObject * obj1 = 0 ; | |
2785 | char *kwnames[] = { | |
2786 | (char *) "self",(char *) "iconize", NULL | |
2787 | }; | |
2788 | ||
2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2792 | if (obj1) { | |
2793 | arg2 = (bool) SWIG_AsBool(obj1); | |
2794 | if (PyErr_Occurred()) SWIG_fail; | |
2795 | } | |
2796 | { | |
2797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2798 | (arg1)->Iconize(arg2); | |
2799 | ||
2800 | wxPyEndAllowThreads(__tstate); | |
2801 | if (PyErr_Occurred()) SWIG_fail; | |
2802 | } | |
2803 | Py_INCREF(Py_None); resultobj = Py_None; | |
2804 | return resultobj; | |
2805 | fail: | |
2806 | return NULL; | |
2807 | } | |
2808 | ||
2809 | ||
2810 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject *resultobj; | |
2812 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2813 | bool result; | |
2814 | PyObject * obj0 = 0 ; | |
2815 | char *kwnames[] = { | |
2816 | (char *) "self", NULL | |
2817 | }; | |
2818 | ||
2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2822 | { | |
2823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2824 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2825 | ||
2826 | wxPyEndAllowThreads(__tstate); | |
2827 | if (PyErr_Occurred()) SWIG_fail; | |
2828 | } | |
2829 | { | |
2830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2831 | } | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | return NULL; | |
2835 | } | |
2836 | ||
2837 | ||
2838 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2839 | PyObject *resultobj; | |
2840 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2841 | bool result; | |
2842 | PyObject * obj0 = 0 ; | |
2843 | char *kwnames[] = { | |
2844 | (char *) "self", NULL | |
2845 | }; | |
2846 | ||
2847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2850 | { | |
2851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2852 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2853 | ||
2854 | wxPyEndAllowThreads(__tstate); | |
2855 | if (PyErr_Occurred()) SWIG_fail; | |
2856 | } | |
2857 | { | |
2858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2859 | } | |
2860 | return resultobj; | |
2861 | fail: | |
2862 | return NULL; | |
2863 | } | |
2864 | ||
2865 | ||
2866 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2867 | PyObject *resultobj; | |
2868 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2869 | wxIcon result; | |
2870 | PyObject * obj0 = 0 ; | |
2871 | char *kwnames[] = { | |
2872 | (char *) "self", NULL | |
2873 | }; | |
2874 | ||
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2878 | { | |
2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2880 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2881 | ||
2882 | wxPyEndAllowThreads(__tstate); | |
2883 | if (PyErr_Occurred()) SWIG_fail; | |
2884 | } | |
2885 | { | |
2886 | wxIcon * resultptr; | |
2887 | resultptr = new wxIcon((wxIcon &) result); | |
2888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2889 | } | |
2890 | return resultobj; | |
2891 | fail: | |
2892 | return NULL; | |
2893 | } | |
2894 | ||
2895 | ||
2896 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2897 | PyObject *resultobj; | |
2898 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2899 | wxIcon *arg2 = 0 ; | |
2900 | PyObject * obj0 = 0 ; | |
2901 | PyObject * obj1 = 0 ; | |
2902 | char *kwnames[] = { | |
2903 | (char *) "self",(char *) "icon", NULL | |
2904 | }; | |
2905 | ||
2906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2911 | SWIG_fail; | |
2912 | if (arg2 == NULL) { | |
2913 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2914 | SWIG_fail; | |
2915 | } | |
2916 | { | |
2917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2918 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2919 | ||
2920 | wxPyEndAllowThreads(__tstate); | |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
2922 | } | |
2923 | Py_INCREF(Py_None); resultobj = Py_None; | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2933 | wxIconBundle *arg2 = 0 ; | |
2934 | PyObject * obj0 = 0 ; | |
2935 | PyObject * obj1 = 0 ; | |
2936 | char *kwnames[] = { | |
2937 | (char *) "self",(char *) "icons", NULL | |
2938 | }; | |
2939 | ||
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",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_wxIconBundle, | |
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)->SetIcons((wxIconBundle 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_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject *resultobj; | |
2966 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2967 | bool arg2 ; | |
2968 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2969 | bool result; | |
2970 | PyObject * obj0 = 0 ; | |
2971 | PyObject * obj1 = 0 ; | |
2972 | PyObject * obj2 = 0 ; | |
2973 | char *kwnames[] = { | |
2974 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2975 | }; | |
2976 | ||
2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2980 | arg2 = (bool) SWIG_AsBool(obj1); | |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
2982 | if (obj2) { | |
2983 | arg3 = (long) SWIG_AsLong(obj2); | |
2984 | if (PyErr_Occurred()) SWIG_fail; | |
2985 | } | |
2986 | { | |
2987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2988 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2989 | ||
2990 | wxPyEndAllowThreads(__tstate); | |
2991 | if (PyErr_Occurred()) SWIG_fail; | |
2992 | } | |
2993 | { | |
2994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2995 | } | |
2996 | return resultobj; | |
2997 | fail: | |
2998 | return NULL; | |
2999 | } | |
3000 | ||
3001 | ||
3002 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject *resultobj; | |
3004 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3005 | bool result; | |
3006 | PyObject * obj0 = 0 ; | |
3007 | char *kwnames[] = { | |
3008 | (char *) "self", NULL | |
3009 | }; | |
3010 | ||
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
3012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3014 | { | |
3015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3016 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
3017 | ||
3018 | wxPyEndAllowThreads(__tstate); | |
3019 | if (PyErr_Occurred()) SWIG_fail; | |
3020 | } | |
3021 | { | |
3022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3023 | } | |
3024 | return resultobj; | |
3025 | fail: | |
3026 | return NULL; | |
3027 | } | |
3028 | ||
3029 | ||
3030 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3031 | PyObject *resultobj; | |
3032 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3033 | wxString *arg2 = 0 ; | |
3034 | bool temp2 = False ; | |
3035 | PyObject * obj0 = 0 ; | |
3036 | PyObject * obj1 = 0 ; | |
3037 | char *kwnames[] = { | |
3038 | (char *) "self",(char *) "title", NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
3042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3044 | { | |
3045 | arg2 = wxString_in_helper(obj1); | |
3046 | if (arg2 == NULL) SWIG_fail; | |
3047 | temp2 = True; | |
3048 | } | |
3049 | { | |
3050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3051 | (arg1)->SetTitle((wxString const &)*arg2); | |
3052 | ||
3053 | wxPyEndAllowThreads(__tstate); | |
3054 | if (PyErr_Occurred()) SWIG_fail; | |
3055 | } | |
3056 | Py_INCREF(Py_None); resultobj = Py_None; | |
3057 | { | |
3058 | if (temp2) | |
3059 | delete arg2; | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | { | |
3064 | if (temp2) | |
3065 | delete arg2; | |
3066 | } | |
3067 | return NULL; | |
3068 | } | |
3069 | ||
3070 | ||
3071 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject *resultobj; | |
3073 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3074 | wxString result; | |
3075 | PyObject * obj0 = 0 ; | |
3076 | char *kwnames[] = { | |
3077 | (char *) "self", NULL | |
3078 | }; | |
3079 | ||
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3083 | { | |
3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3085 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3086 | ||
3087 | wxPyEndAllowThreads(__tstate); | |
3088 | if (PyErr_Occurred()) SWIG_fail; | |
3089 | } | |
3090 | { | |
3091 | #if wxUSE_UNICODE | |
3092 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3093 | #else | |
3094 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3095 | #endif | |
3096 | } | |
3097 | return resultobj; | |
3098 | fail: | |
3099 | return NULL; | |
3100 | } | |
3101 | ||
3102 | ||
3103 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3104 | PyObject *resultobj; | |
3105 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3106 | wxRegion *arg2 = 0 ; | |
3107 | bool result; | |
3108 | PyObject * obj0 = 0 ; | |
3109 | PyObject * obj1 = 0 ; | |
3110 | char *kwnames[] = { | |
3111 | (char *) "self",(char *) "region", NULL | |
3112 | }; | |
3113 | ||
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3117 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3118 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3119 | SWIG_fail; | |
3120 | if (arg2 == NULL) { | |
3121 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3122 | SWIG_fail; | |
3123 | } | |
3124 | { | |
3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3126 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3127 | ||
3128 | wxPyEndAllowThreads(__tstate); | |
3129 | if (PyErr_Occurred()) SWIG_fail; | |
3130 | } | |
3131 | { | |
3132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3133 | } | |
3134 | return resultobj; | |
3135 | fail: | |
3136 | return NULL; | |
3137 | } | |
3138 | ||
3139 | ||
3140 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3141 | PyObject *obj; | |
3142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3143 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3144 | Py_INCREF(obj); | |
3145 | return Py_BuildValue((char *)""); | |
3146 | } | |
3147 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3148 | PyObject *resultobj; | |
3149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3150 | int arg2 = (int) (int)-1 ; |
3151 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3152 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
3153 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3154 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3155 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3156 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3157 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3158 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3159 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3160 | wxFrame *result; | |
3161 | bool temp3 = False ; | |
3162 | wxPoint temp4 ; | |
3163 | wxSize temp5 ; | |
3164 | bool temp7 = False ; | |
3165 | PyObject * obj0 = 0 ; | |
3166 | PyObject * obj1 = 0 ; | |
3167 | PyObject * obj2 = 0 ; | |
3168 | PyObject * obj3 = 0 ; | |
3169 | PyObject * obj4 = 0 ; | |
3170 | PyObject * obj5 = 0 ; | |
3171 | PyObject * obj6 = 0 ; | |
3172 | char *kwnames[] = { | |
3173 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3174 | }; | |
3175 | ||
248ed943 | 3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
3177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3179 | if (obj1) { |
3180 | arg2 = (int const) SWIG_AsInt(obj1); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | if (obj2) { | |
3184 | { | |
3185 | arg3 = wxString_in_helper(obj2); | |
3186 | if (arg3 == NULL) SWIG_fail; | |
3187 | temp3 = True; | |
3188 | } | |
d55e5bfc RD |
3189 | } |
3190 | if (obj3) { | |
3191 | { | |
3192 | arg4 = &temp4; | |
3193 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3194 | } | |
3195 | } | |
3196 | if (obj4) { | |
3197 | { | |
3198 | arg5 = &temp5; | |
3199 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3200 | } | |
3201 | } | |
3202 | if (obj5) { | |
3203 | arg6 = (long) SWIG_AsLong(obj5); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
3206 | if (obj6) { | |
3207 | { | |
3208 | arg7 = wxString_in_helper(obj6); | |
3209 | if (arg7 == NULL) SWIG_fail; | |
3210 | temp7 = True; | |
3211 | } | |
3212 | } | |
3213 | { | |
0439c23b | 3214 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3216 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3217 | ||
3218 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3219 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3220 | } |
b0f7404b | 3221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1); |
d55e5bfc RD |
3222 | { |
3223 | if (temp3) | |
3224 | delete arg3; | |
3225 | } | |
3226 | { | |
3227 | if (temp7) | |
3228 | delete arg7; | |
3229 | } | |
3230 | return resultobj; | |
3231 | fail: | |
3232 | { | |
3233 | if (temp3) | |
3234 | delete arg3; | |
3235 | } | |
3236 | { | |
3237 | if (temp7) | |
3238 | delete arg7; | |
3239 | } | |
3240 | return NULL; | |
3241 | } | |
3242 | ||
3243 | ||
3244 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3245 | PyObject *resultobj; | |
3246 | wxFrame *result; | |
3247 | char *kwnames[] = { | |
3248 | NULL | |
3249 | }; | |
3250 | ||
3251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3252 | { | |
0439c23b | 3253 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3255 | result = (wxFrame *)new wxFrame(); | |
3256 | ||
3257 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3258 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3259 | } |
b0f7404b | 3260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1); |
d55e5bfc RD |
3261 | return resultobj; |
3262 | fail: | |
3263 | return NULL; | |
3264 | } | |
3265 | ||
3266 | ||
3267 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject *resultobj; | |
3269 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3270 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3271 | int arg3 = (int) (int)-1 ; |
3272 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3273 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
3274 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3275 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3276 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3277 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3278 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3279 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3280 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3281 | bool result; | |
3282 | bool temp4 = False ; | |
3283 | wxPoint temp5 ; | |
3284 | wxSize temp6 ; | |
3285 | bool temp8 = False ; | |
3286 | PyObject * obj0 = 0 ; | |
3287 | PyObject * obj1 = 0 ; | |
3288 | PyObject * obj2 = 0 ; | |
3289 | PyObject * obj3 = 0 ; | |
3290 | PyObject * obj4 = 0 ; | |
3291 | PyObject * obj5 = 0 ; | |
3292 | PyObject * obj6 = 0 ; | |
3293 | PyObject * obj7 = 0 ; | |
3294 | char *kwnames[] = { | |
3295 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3296 | }; | |
3297 | ||
248ed943 | 3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
3300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3303 | if (obj2) { |
3304 | arg3 = (int const) SWIG_AsInt(obj2); | |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
3306 | } | |
3307 | if (obj3) { | |
3308 | { | |
3309 | arg4 = wxString_in_helper(obj3); | |
3310 | if (arg4 == NULL) SWIG_fail; | |
3311 | temp4 = True; | |
3312 | } | |
d55e5bfc RD |
3313 | } |
3314 | if (obj4) { | |
3315 | { | |
3316 | arg5 = &temp5; | |
3317 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3318 | } | |
3319 | } | |
3320 | if (obj5) { | |
3321 | { | |
3322 | arg6 = &temp6; | |
3323 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3324 | } | |
3325 | } | |
3326 | if (obj6) { | |
3327 | arg7 = (long) SWIG_AsLong(obj6); | |
3328 | if (PyErr_Occurred()) SWIG_fail; | |
3329 | } | |
3330 | if (obj7) { | |
3331 | { | |
3332 | arg8 = wxString_in_helper(obj7); | |
3333 | if (arg8 == NULL) SWIG_fail; | |
3334 | temp8 = True; | |
3335 | } | |
3336 | } | |
3337 | { | |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3339 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3340 | ||
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
3344 | { | |
3345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3346 | } | |
3347 | { | |
3348 | if (temp4) | |
3349 | delete arg4; | |
3350 | } | |
3351 | { | |
3352 | if (temp8) | |
3353 | delete arg8; | |
3354 | } | |
3355 | return resultobj; | |
3356 | fail: | |
3357 | { | |
3358 | if (temp4) | |
3359 | delete arg4; | |
3360 | } | |
3361 | { | |
3362 | if (temp8) | |
3363 | delete arg8; | |
3364 | } | |
3365 | return NULL; | |
3366 | } | |
3367 | ||
3368 | ||
3369 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3370 | PyObject *resultobj; | |
3371 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3372 | wxPoint result; | |
3373 | PyObject * obj0 = 0 ; | |
3374 | char *kwnames[] = { | |
3375 | (char *) "self", NULL | |
3376 | }; | |
3377 | ||
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3381 | { | |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3383 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3384 | ||
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | { | |
3389 | wxPoint * resultptr; | |
3390 | resultptr = new wxPoint((wxPoint &) result); | |
3391 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3392 | } | |
3393 | return resultobj; | |
3394 | fail: | |
3395 | return NULL; | |
3396 | } | |
3397 | ||
3398 | ||
3399 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3400 | PyObject *resultobj; | |
3401 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3402 | PyObject * obj0 = 0 ; | |
3403 | char *kwnames[] = { | |
3404 | (char *) "self", NULL | |
3405 | }; | |
3406 | ||
3407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3410 | { | |
3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3412 | (arg1)->SendSizeEvent(); | |
3413 | ||
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | Py_INCREF(Py_None); resultobj = Py_None; | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | return NULL; | |
3421 | } | |
3422 | ||
3423 | ||
3424 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject *resultobj; | |
3426 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3427 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3428 | PyObject * obj0 = 0 ; | |
3429 | PyObject * obj1 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "self",(char *) "menubar", NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3439 | { | |
3440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3441 | (arg1)->SetMenuBar(arg2); | |
3442 | ||
3443 | wxPyEndAllowThreads(__tstate); | |
3444 | if (PyErr_Occurred()) SWIG_fail; | |
3445 | } | |
3446 | Py_INCREF(Py_None); resultobj = Py_None; | |
3447 | return resultobj; | |
3448 | fail: | |
3449 | return NULL; | |
3450 | } | |
3451 | ||
3452 | ||
3453 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3454 | PyObject *resultobj; | |
3455 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3456 | wxMenuBar *result; | |
3457 | PyObject * obj0 = 0 ; | |
3458 | char *kwnames[] = { | |
3459 | (char *) "self", NULL | |
3460 | }; | |
3461 | ||
3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3465 | { | |
3466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3467 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3468 | ||
3469 | wxPyEndAllowThreads(__tstate); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
3472 | { | |
412d302d | 3473 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3474 | } |
3475 | return resultobj; | |
3476 | fail: | |
3477 | return NULL; | |
3478 | } | |
3479 | ||
3480 | ||
3481 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3482 | PyObject *resultobj; | |
3483 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3484 | int arg2 ; | |
3485 | bool result; | |
3486 | PyObject * obj0 = 0 ; | |
3487 | PyObject * obj1 = 0 ; | |
3488 | char *kwnames[] = { | |
3489 | (char *) "self",(char *) "winid", NULL | |
3490 | }; | |
3491 | ||
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3495 | arg2 = (int) SWIG_AsInt(obj1); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | { | |
3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3499 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3500 | ||
3501 | wxPyEndAllowThreads(__tstate); | |
3502 | if (PyErr_Occurred()) SWIG_fail; | |
3503 | } | |
3504 | { | |
3505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3506 | } | |
3507 | return resultobj; | |
3508 | fail: | |
3509 | return NULL; | |
3510 | } | |
3511 | ||
3512 | ||
3513 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject *resultobj; | |
3515 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3516 | int arg2 = (int) 1 ; | |
3517 | long arg3 = (long) wxST_SIZEGRIP ; | |
3518 | int arg4 = (int) 0 ; | |
3519 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3520 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3521 | wxStatusBar *result; | |
3522 | bool temp5 = False ; | |
3523 | PyObject * obj0 = 0 ; | |
3524 | PyObject * obj1 = 0 ; | |
3525 | PyObject * obj2 = 0 ; | |
3526 | PyObject * obj3 = 0 ; | |
3527 | PyObject * obj4 = 0 ; | |
3528 | char *kwnames[] = { | |
3529 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3530 | }; | |
3531 | ||
3532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3535 | if (obj1) { | |
3536 | arg2 = (int) SWIG_AsInt(obj1); | |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
3538 | } | |
3539 | if (obj2) { | |
3540 | arg3 = (long) SWIG_AsLong(obj2); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | if (obj3) { | |
3544 | arg4 = (int) SWIG_AsInt(obj3); | |
3545 | if (PyErr_Occurred()) SWIG_fail; | |
3546 | } | |
3547 | if (obj4) { | |
3548 | { | |
3549 | arg5 = wxString_in_helper(obj4); | |
3550 | if (arg5 == NULL) SWIG_fail; | |
3551 | temp5 = True; | |
3552 | } | |
3553 | } | |
3554 | { | |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
3560 | } | |
3561 | { | |
412d302d | 3562 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3563 | } |
3564 | { | |
3565 | if (temp5) | |
3566 | delete arg5; | |
3567 | } | |
3568 | return resultobj; | |
3569 | fail: | |
3570 | { | |
3571 | if (temp5) | |
3572 | delete arg5; | |
3573 | } | |
3574 | return NULL; | |
3575 | } | |
3576 | ||
3577 | ||
3578 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3579 | PyObject *resultobj; | |
3580 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3581 | wxStatusBar *result; | |
3582 | PyObject * obj0 = 0 ; | |
3583 | char *kwnames[] = { | |
3584 | (char *) "self", NULL | |
3585 | }; | |
3586 | ||
3587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3590 | { | |
3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3592 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3593 | ||
3594 | wxPyEndAllowThreads(__tstate); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
3597 | { | |
412d302d | 3598 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3599 | } |
3600 | return resultobj; | |
3601 | fail: | |
3602 | return NULL; | |
3603 | } | |
3604 | ||
3605 | ||
3606 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3607 | PyObject *resultobj; | |
3608 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3609 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3610 | PyObject * obj0 = 0 ; | |
3611 | PyObject * obj1 = 0 ; | |
3612 | char *kwnames[] = { | |
3613 | (char *) "self",(char *) "statBar", NULL | |
3614 | }; | |
3615 | ||
3616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3621 | { | |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | (arg1)->SetStatusBar(arg2); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
3628 | Py_INCREF(Py_None); resultobj = Py_None; | |
3629 | return resultobj; | |
3630 | fail: | |
3631 | return NULL; | |
3632 | } | |
3633 | ||
3634 | ||
3635 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3636 | PyObject *resultobj; | |
3637 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3638 | wxString *arg2 = 0 ; | |
3639 | int arg3 = (int) 0 ; | |
3640 | bool temp2 = False ; | |
3641 | PyObject * obj0 = 0 ; | |
3642 | PyObject * obj1 = 0 ; | |
3643 | PyObject * obj2 = 0 ; | |
3644 | char *kwnames[] = { | |
3645 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3646 | }; | |
3647 | ||
3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3651 | { | |
3652 | arg2 = wxString_in_helper(obj1); | |
3653 | if (arg2 == NULL) SWIG_fail; | |
3654 | temp2 = True; | |
3655 | } | |
3656 | if (obj2) { | |
3657 | arg3 = (int) SWIG_AsInt(obj2); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | { | |
3661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3662 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3663 | ||
3664 | wxPyEndAllowThreads(__tstate); | |
3665 | if (PyErr_Occurred()) SWIG_fail; | |
3666 | } | |
3667 | Py_INCREF(Py_None); resultobj = Py_None; | |
3668 | { | |
3669 | if (temp2) | |
3670 | delete arg2; | |
3671 | } | |
3672 | return resultobj; | |
3673 | fail: | |
3674 | { | |
3675 | if (temp2) | |
3676 | delete arg2; | |
3677 | } | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
3682 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject *resultobj; | |
3684 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3685 | int arg2 ; | |
3686 | int *arg3 = (int *) 0 ; | |
3687 | PyObject * obj0 = 0 ; | |
3688 | PyObject * obj1 = 0 ; | |
3689 | char *kwnames[] = { | |
3690 | (char *) "self",(char *) "widths", NULL | |
3691 | }; | |
3692 | ||
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3696 | { | |
3697 | arg2 = PyList_Size(obj1); | |
3698 | arg3 = int_LIST_helper(obj1); | |
3699 | if (arg3 == NULL) SWIG_fail; | |
3700 | } | |
3701 | { | |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3703 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3704 | ||
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | Py_INCREF(Py_None); resultobj = Py_None; | |
3709 | { | |
3710 | if (arg3) delete [] arg3; | |
3711 | } | |
3712 | return resultobj; | |
3713 | fail: | |
3714 | { | |
3715 | if (arg3) delete [] arg3; | |
3716 | } | |
3717 | return NULL; | |
3718 | } | |
3719 | ||
3720 | ||
3721 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3722 | PyObject *resultobj; | |
3723 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3724 | wxString *arg2 = 0 ; | |
3725 | int arg3 = (int) 0 ; | |
3726 | bool temp2 = False ; | |
3727 | PyObject * obj0 = 0 ; | |
3728 | PyObject * obj1 = 0 ; | |
3729 | PyObject * obj2 = 0 ; | |
3730 | char *kwnames[] = { | |
3731 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3732 | }; | |
3733 | ||
3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3737 | { | |
3738 | arg2 = wxString_in_helper(obj1); | |
3739 | if (arg2 == NULL) SWIG_fail; | |
3740 | temp2 = True; | |
3741 | } | |
3742 | if (obj2) { | |
3743 | arg3 = (int) SWIG_AsInt(obj2); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
3746 | { | |
3747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3748 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3749 | ||
3750 | wxPyEndAllowThreads(__tstate); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
3753 | Py_INCREF(Py_None); resultobj = Py_None; | |
3754 | { | |
3755 | if (temp2) | |
3756 | delete arg2; | |
3757 | } | |
3758 | return resultobj; | |
3759 | fail: | |
3760 | { | |
3761 | if (temp2) | |
3762 | delete arg2; | |
3763 | } | |
3764 | return NULL; | |
3765 | } | |
3766 | ||
3767 | ||
3768 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3769 | PyObject *resultobj; | |
3770 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3771 | int arg2 = (int) 0 ; | |
3772 | PyObject * obj0 = 0 ; | |
3773 | PyObject * obj1 = 0 ; | |
3774 | char *kwnames[] = { | |
3775 | (char *) "self",(char *) "number", NULL | |
3776 | }; | |
3777 | ||
3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3781 | if (obj1) { | |
3782 | arg2 = (int) SWIG_AsInt(obj1); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
3785 | { | |
3786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3787 | (arg1)->PopStatusText(arg2); | |
3788 | ||
3789 | wxPyEndAllowThreads(__tstate); | |
3790 | if (PyErr_Occurred()) SWIG_fail; | |
3791 | } | |
3792 | Py_INCREF(Py_None); resultobj = Py_None; | |
3793 | return resultobj; | |
3794 | fail: | |
3795 | return NULL; | |
3796 | } | |
3797 | ||
3798 | ||
3799 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3800 | PyObject *resultobj; | |
3801 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3802 | int arg2 ; | |
3803 | PyObject * obj0 = 0 ; | |
3804 | PyObject * obj1 = 0 ; | |
3805 | char *kwnames[] = { | |
3806 | (char *) "self",(char *) "n", NULL | |
3807 | }; | |
3808 | ||
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3812 | arg2 = (int) SWIG_AsInt(obj1); | |
3813 | if (PyErr_Occurred()) SWIG_fail; | |
3814 | { | |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | (arg1)->SetStatusBarPane(arg2); | |
3817 | ||
3818 | wxPyEndAllowThreads(__tstate); | |
3819 | if (PyErr_Occurred()) SWIG_fail; | |
3820 | } | |
3821 | Py_INCREF(Py_None); resultobj = Py_None; | |
3822 | return resultobj; | |
3823 | fail: | |
3824 | return NULL; | |
3825 | } | |
3826 | ||
3827 | ||
3828 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3829 | PyObject *resultobj; | |
3830 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3831 | int result; | |
3832 | PyObject * obj0 = 0 ; | |
3833 | char *kwnames[] = { | |
3834 | (char *) "self", NULL | |
3835 | }; | |
3836 | ||
3837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3840 | { | |
3841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3842 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3843 | ||
3844 | wxPyEndAllowThreads(__tstate); | |
3845 | if (PyErr_Occurred()) SWIG_fail; | |
3846 | } | |
3847 | resultobj = SWIG_FromInt((int)result); | |
3848 | return resultobj; | |
3849 | fail: | |
3850 | return NULL; | |
3851 | } | |
3852 | ||
3853 | ||
3854 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3855 | PyObject *resultobj; | |
3856 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3857 | long arg2 = (long) -1 ; | |
3858 | int arg3 = (int) -1 ; | |
3859 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3860 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3861 | wxToolBar *result; | |
3862 | bool temp4 = False ; | |
3863 | PyObject * obj0 = 0 ; | |
3864 | PyObject * obj1 = 0 ; | |
3865 | PyObject * obj2 = 0 ; | |
3866 | PyObject * obj3 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3874 | if (obj1) { | |
3875 | arg2 = (long) SWIG_AsLong(obj1); | |
3876 | if (PyErr_Occurred()) SWIG_fail; | |
3877 | } | |
3878 | if (obj2) { | |
3879 | arg3 = (int) SWIG_AsInt(obj2); | |
3880 | if (PyErr_Occurred()) SWIG_fail; | |
3881 | } | |
3882 | if (obj3) { | |
3883 | { | |
3884 | arg4 = wxString_in_helper(obj3); | |
3885 | if (arg4 == NULL) SWIG_fail; | |
3886 | temp4 = True; | |
3887 | } | |
3888 | } | |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
3896 | { | |
412d302d | 3897 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3898 | } |
3899 | { | |
3900 | if (temp4) | |
3901 | delete arg4; | |
3902 | } | |
3903 | return resultobj; | |
3904 | fail: | |
3905 | { | |
3906 | if (temp4) | |
3907 | delete arg4; | |
3908 | } | |
3909 | return NULL; | |
3910 | } | |
3911 | ||
3912 | ||
3913 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3914 | PyObject *resultobj; | |
3915 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3916 | wxToolBar *result; | |
3917 | PyObject * obj0 = 0 ; | |
3918 | char *kwnames[] = { | |
3919 | (char *) "self", NULL | |
3920 | }; | |
3921 | ||
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3925 | { | |
3926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3927 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3928 | ||
3929 | wxPyEndAllowThreads(__tstate); | |
3930 | if (PyErr_Occurred()) SWIG_fail; | |
3931 | } | |
3932 | { | |
412d302d | 3933 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3934 | } |
3935 | return resultobj; | |
3936 | fail: | |
3937 | return NULL; | |
3938 | } | |
3939 | ||
3940 | ||
3941 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3942 | PyObject *resultobj; | |
3943 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3944 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3945 | PyObject * obj0 = 0 ; | |
3946 | PyObject * obj1 = 0 ; | |
3947 | char *kwnames[] = { | |
3948 | (char *) "self",(char *) "toolbar", NULL | |
3949 | }; | |
3950 | ||
3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3956 | { | |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3958 | (arg1)->SetToolBar(arg2); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
3961 | if (PyErr_Occurred()) SWIG_fail; | |
3962 | } | |
3963 | Py_INCREF(Py_None); resultobj = Py_None; | |
3964 | return resultobj; | |
3965 | fail: | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
3970 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3971 | PyObject *resultobj; | |
3972 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3973 | wxString *arg2 = 0 ; | |
3974 | bool arg3 ; | |
3975 | bool temp2 = False ; | |
3976 | PyObject * obj0 = 0 ; | |
3977 | PyObject * obj1 = 0 ; | |
3978 | PyObject * obj2 = 0 ; | |
3979 | char *kwnames[] = { | |
3980 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3981 | }; | |
3982 | ||
3983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3986 | { | |
3987 | arg2 = wxString_in_helper(obj1); | |
3988 | if (arg2 == NULL) SWIG_fail; | |
3989 | temp2 = True; | |
3990 | } | |
3991 | arg3 = (bool) SWIG_AsBool(obj2); | |
3992 | if (PyErr_Occurred()) SWIG_fail; | |
3993 | { | |
3994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3995 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3996 | ||
3997 | wxPyEndAllowThreads(__tstate); | |
3998 | if (PyErr_Occurred()) SWIG_fail; | |
3999 | } | |
4000 | Py_INCREF(Py_None); resultobj = Py_None; | |
4001 | { | |
4002 | if (temp2) | |
4003 | delete arg2; | |
4004 | } | |
4005 | return resultobj; | |
4006 | fail: | |
4007 | { | |
4008 | if (temp2) | |
4009 | delete arg2; | |
4010 | } | |
4011 | return NULL; | |
4012 | } | |
4013 | ||
4014 | ||
4015 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4016 | PyObject *resultobj; | |
4017 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4018 | wxMenu *arg2 = (wxMenu *) NULL ; | |
4019 | PyObject * obj0 = 0 ; | |
4020 | PyObject * obj1 = 0 ; | |
4021 | char *kwnames[] = { | |
4022 | (char *) "self",(char *) "menu", NULL | |
4023 | }; | |
4024 | ||
4025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
4026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4028 | if (obj1) { | |
4029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
4030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4031 | } | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | (arg1)->DoMenuUpdates(arg2); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | Py_INCREF(Py_None); resultobj = Py_None; | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
f20a2e1f RD |
4046 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4047 | PyObject *resultobj; | |
4048 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4049 | wxVisualAttributes result; | |
4050 | PyObject * obj0 = 0 ; | |
4051 | char *kwnames[] = { | |
4052 | (char *) "variant", NULL | |
4053 | }; | |
4054 | ||
4055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4056 | if (obj0) { | |
4057 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4060 | { | |
0439c23b | 4061 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4063 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4064 | ||
4065 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4066 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4067 | } |
4068 | { | |
4069 | wxVisualAttributes * resultptr; | |
4070 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4071 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4072 | } | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
d55e5bfc RD |
4079 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { |
4080 | PyObject *obj; | |
4081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4082 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4083 | Py_INCREF(obj); | |
4084 | return Py_BuildValue((char *)""); | |
4085 | } | |
4086 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4087 | PyObject *resultobj; | |
4088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4089 | int arg2 = (int) (int)-1 ; |
4090 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4091 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4092 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4093 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4094 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4095 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4096 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4097 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4098 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4099 | wxDialog *result; | |
4100 | bool temp3 = False ; | |
4101 | wxPoint temp4 ; | |
4102 | wxSize temp5 ; | |
4103 | bool temp7 = False ; | |
4104 | PyObject * obj0 = 0 ; | |
4105 | PyObject * obj1 = 0 ; | |
4106 | PyObject * obj2 = 0 ; | |
4107 | PyObject * obj3 = 0 ; | |
4108 | PyObject * obj4 = 0 ; | |
4109 | PyObject * obj5 = 0 ; | |
4110 | PyObject * obj6 = 0 ; | |
4111 | char *kwnames[] = { | |
4112 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4113 | }; | |
4114 | ||
248ed943 | 4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4118 | if (obj1) { |
4119 | arg2 = (int const) SWIG_AsInt(obj1); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
4121 | } | |
4122 | if (obj2) { | |
4123 | { | |
4124 | arg3 = wxString_in_helper(obj2); | |
4125 | if (arg3 == NULL) SWIG_fail; | |
4126 | temp3 = True; | |
4127 | } | |
d55e5bfc RD |
4128 | } |
4129 | if (obj3) { | |
4130 | { | |
4131 | arg4 = &temp4; | |
4132 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4133 | } | |
4134 | } | |
4135 | if (obj4) { | |
4136 | { | |
4137 | arg5 = &temp5; | |
4138 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4139 | } | |
4140 | } | |
4141 | if (obj5) { | |
4142 | arg6 = (long) SWIG_AsLong(obj5); | |
4143 | if (PyErr_Occurred()) SWIG_fail; | |
4144 | } | |
4145 | if (obj6) { | |
4146 | { | |
4147 | arg7 = wxString_in_helper(obj6); | |
4148 | if (arg7 == NULL) SWIG_fail; | |
4149 | temp7 = True; | |
4150 | } | |
4151 | } | |
4152 | { | |
0439c23b | 4153 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4155 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4156 | ||
4157 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4158 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4159 | } |
b0f7404b | 4160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); |
d55e5bfc RD |
4161 | { |
4162 | if (temp3) | |
4163 | delete arg3; | |
4164 | } | |
4165 | { | |
4166 | if (temp7) | |
4167 | delete arg7; | |
4168 | } | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | { | |
4172 | if (temp3) | |
4173 | delete arg3; | |
4174 | } | |
4175 | { | |
4176 | if (temp7) | |
4177 | delete arg7; | |
4178 | } | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
4183 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject *resultobj; | |
4185 | wxDialog *result; | |
4186 | char *kwnames[] = { | |
4187 | NULL | |
4188 | }; | |
4189 | ||
4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4191 | { | |
0439c23b | 4192 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4194 | result = (wxDialog *)new wxDialog(); | |
4195 | ||
4196 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4197 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4198 | } |
b0f7404b | 4199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); |
d55e5bfc RD |
4200 | return resultobj; |
4201 | fail: | |
4202 | return NULL; | |
4203 | } | |
4204 | ||
4205 | ||
4206 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4207 | PyObject *resultobj; | |
4208 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4210 | int arg3 = (int) (int)-1 ; |
4211 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4212 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4213 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4214 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4215 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4216 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4217 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4218 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4219 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4220 | bool result; | |
4221 | bool temp4 = False ; | |
4222 | wxPoint temp5 ; | |
4223 | wxSize temp6 ; | |
4224 | bool temp8 = False ; | |
4225 | PyObject * obj0 = 0 ; | |
4226 | PyObject * obj1 = 0 ; | |
4227 | PyObject * obj2 = 0 ; | |
4228 | PyObject * obj3 = 0 ; | |
4229 | PyObject * obj4 = 0 ; | |
4230 | PyObject * obj5 = 0 ; | |
4231 | PyObject * obj6 = 0 ; | |
4232 | PyObject * obj7 = 0 ; | |
4233 | char *kwnames[] = { | |
4234 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4235 | }; | |
4236 | ||
248ed943 | 4237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, |
4239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4242 | if (obj2) { |
4243 | arg3 = (int const) SWIG_AsInt(obj2); | |
4244 | if (PyErr_Occurred()) SWIG_fail; | |
4245 | } | |
4246 | if (obj3) { | |
4247 | { | |
4248 | arg4 = wxString_in_helper(obj3); | |
4249 | if (arg4 == NULL) SWIG_fail; | |
4250 | temp4 = True; | |
4251 | } | |
d55e5bfc RD |
4252 | } |
4253 | if (obj4) { | |
4254 | { | |
4255 | arg5 = &temp5; | |
4256 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4257 | } | |
4258 | } | |
4259 | if (obj5) { | |
4260 | { | |
4261 | arg6 = &temp6; | |
4262 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4263 | } | |
4264 | } | |
4265 | if (obj6) { | |
4266 | arg7 = (long) SWIG_AsLong(obj6); | |
4267 | if (PyErr_Occurred()) SWIG_fail; | |
4268 | } | |
4269 | if (obj7) { | |
4270 | { | |
4271 | arg8 = wxString_in_helper(obj7); | |
4272 | if (arg8 == NULL) SWIG_fail; | |
4273 | temp8 = True; | |
4274 | } | |
4275 | } | |
4276 | { | |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
4283 | { | |
4284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4285 | } | |
4286 | { | |
4287 | if (temp4) | |
4288 | delete arg4; | |
4289 | } | |
4290 | { | |
4291 | if (temp8) | |
4292 | delete arg8; | |
4293 | } | |
4294 | return resultobj; | |
4295 | fail: | |
4296 | { | |
4297 | if (temp4) | |
4298 | delete arg4; | |
4299 | } | |
4300 | { | |
4301 | if (temp8) | |
4302 | delete arg8; | |
4303 | } | |
4304 | return NULL; | |
4305 | } | |
4306 | ||
4307 | ||
4308 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4309 | PyObject *resultobj; | |
4310 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4311 | int arg2 ; | |
4312 | PyObject * obj0 = 0 ; | |
4313 | PyObject * obj1 = 0 ; | |
4314 | char *kwnames[] = { | |
4315 | (char *) "self",(char *) "returnCode", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4321 | arg2 = (int) SWIG_AsInt(obj1); | |
4322 | if (PyErr_Occurred()) SWIG_fail; | |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | (arg1)->SetReturnCode(arg2); | |
4326 | ||
4327 | wxPyEndAllowThreads(__tstate); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
4330 | Py_INCREF(Py_None); resultobj = Py_None; | |
4331 | return resultobj; | |
4332 | fail: | |
4333 | return NULL; | |
4334 | } | |
4335 | ||
4336 | ||
4337 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4338 | PyObject *resultobj; | |
4339 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4340 | int result; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | char *kwnames[] = { | |
4343 | (char *) "self", NULL | |
4344 | }; | |
4345 | ||
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4349 | { | |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
4356 | resultobj = SWIG_FromInt((int)result); | |
4357 | return resultobj; | |
4358 | fail: | |
4359 | return NULL; | |
4360 | } | |
4361 | ||
4362 | ||
4363 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4364 | PyObject *resultobj; | |
4365 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4366 | wxString *arg2 = 0 ; | |
4367 | wxSizer *result; | |
4368 | bool temp2 = False ; | |
4369 | PyObject * obj0 = 0 ; | |
4370 | PyObject * obj1 = 0 ; | |
4371 | char *kwnames[] = { | |
4372 | (char *) "self",(char *) "message", NULL | |
4373 | }; | |
4374 | ||
4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4378 | { | |
4379 | arg2 = wxString_in_helper(obj1); | |
4380 | if (arg2 == NULL) SWIG_fail; | |
4381 | temp2 = True; | |
4382 | } | |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
4389 | } | |
4390 | { | |
412d302d | 4391 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
4392 | } |
4393 | { | |
4394 | if (temp2) | |
4395 | delete arg2; | |
4396 | } | |
4397 | return resultobj; | |
4398 | fail: | |
4399 | { | |
4400 | if (temp2) | |
4401 | delete arg2; | |
4402 | } | |
4403 | return NULL; | |
4404 | } | |
4405 | ||
4406 | ||
4407 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4408 | PyObject *resultobj; | |
4409 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4410 | long arg2 ; | |
4411 | wxSizer *result; | |
4412 | PyObject * obj0 = 0 ; | |
4413 | PyObject * obj1 = 0 ; | |
4414 | char *kwnames[] = { | |
4415 | (char *) "self",(char *) "flags", NULL | |
4416 | }; | |
4417 | ||
4418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4421 | arg2 = (long) SWIG_AsLong(obj1); | |
4422 | if (PyErr_Occurred()) SWIG_fail; | |
4423 | { | |
4424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4425 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4426 | ||
4427 | wxPyEndAllowThreads(__tstate); | |
4428 | if (PyErr_Occurred()) SWIG_fail; | |
4429 | } | |
4430 | { | |
412d302d | 4431 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
4432 | } |
4433 | return resultobj; | |
4434 | fail: | |
4435 | return NULL; | |
4436 | } | |
4437 | ||
4438 | ||
4439 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4440 | PyObject *resultobj; | |
4441 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4442 | bool result; | |
4443 | PyObject * obj0 = 0 ; | |
4444 | char *kwnames[] = { | |
4445 | (char *) "self", NULL | |
4446 | }; | |
4447 | ||
4448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4451 | { | |
4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4453 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4454 | ||
4455 | wxPyEndAllowThreads(__tstate); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | } | |
4458 | { | |
4459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4460 | } | |
4461 | return resultobj; | |
4462 | fail: | |
4463 | return NULL; | |
4464 | } | |
4465 | ||
4466 | ||
4467 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4468 | PyObject *resultobj; | |
4469 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4470 | int result; | |
4471 | PyObject * obj0 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "self", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4479 | { | |
4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4481 | result = (int)(arg1)->ShowModal(); | |
4482 | ||
4483 | wxPyEndAllowThreads(__tstate); | |
4484 | if (PyErr_Occurred()) SWIG_fail; | |
4485 | } | |
4486 | resultobj = SWIG_FromInt((int)result); | |
4487 | return resultobj; | |
4488 | fail: | |
4489 | return NULL; | |
4490 | } | |
4491 | ||
4492 | ||
4493 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4496 | int arg2 ; | |
4497 | PyObject * obj0 = 0 ; | |
4498 | PyObject * obj1 = 0 ; | |
4499 | char *kwnames[] = { | |
4500 | (char *) "self",(char *) "retCode", NULL | |
4501 | }; | |
4502 | ||
4503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4506 | arg2 = (int) SWIG_AsInt(obj1); | |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
4508 | { | |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | (arg1)->EndModal(arg2); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4515 | Py_INCREF(Py_None); resultobj = Py_None; | |
4516 | return resultobj; | |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
f20a2e1f RD |
4522 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4523 | PyObject *resultobj; | |
4524 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4525 | wxVisualAttributes result; | |
4526 | PyObject * obj0 = 0 ; | |
4527 | char *kwnames[] = { | |
4528 | (char *) "variant", NULL | |
4529 | }; | |
4530 | ||
4531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4532 | if (obj0) { | |
4533 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | { | |
0439c23b | 4537 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4539 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4542 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4543 | } |
4544 | { | |
4545 | wxVisualAttributes * resultptr; | |
4546 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4548 | } | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
d55e5bfc RD |
4555 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { |
4556 | PyObject *obj; | |
4557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4558 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4559 | Py_INCREF(obj); | |
4560 | return Py_BuildValue((char *)""); | |
4561 | } | |
4562 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4563 | PyObject *resultobj; | |
4564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4565 | int arg2 = (int) (int)-1 ; |
4566 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4567 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4568 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4569 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4570 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4571 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4572 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4573 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4574 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4575 | wxMiniFrame *result; | |
4576 | bool temp3 = False ; | |
4577 | wxPoint temp4 ; | |
4578 | wxSize temp5 ; | |
4579 | bool temp7 = False ; | |
4580 | PyObject * obj0 = 0 ; | |
4581 | PyObject * obj1 = 0 ; | |
4582 | PyObject * obj2 = 0 ; | |
4583 | PyObject * obj3 = 0 ; | |
4584 | PyObject * obj4 = 0 ; | |
4585 | PyObject * obj5 = 0 ; | |
4586 | PyObject * obj6 = 0 ; | |
4587 | char *kwnames[] = { | |
4588 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4589 | }; | |
4590 | ||
248ed943 | 4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4594 | if (obj1) { |
4595 | arg2 = (int const) SWIG_AsInt(obj1); | |
4596 | if (PyErr_Occurred()) SWIG_fail; | |
4597 | } | |
4598 | if (obj2) { | |
4599 | { | |
4600 | arg3 = wxString_in_helper(obj2); | |
4601 | if (arg3 == NULL) SWIG_fail; | |
4602 | temp3 = True; | |
4603 | } | |
d55e5bfc RD |
4604 | } |
4605 | if (obj3) { | |
4606 | { | |
4607 | arg4 = &temp4; | |
4608 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4609 | } | |
4610 | } | |
4611 | if (obj4) { | |
4612 | { | |
4613 | arg5 = &temp5; | |
4614 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4615 | } | |
4616 | } | |
4617 | if (obj5) { | |
4618 | arg6 = (long) SWIG_AsLong(obj5); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
4621 | if (obj6) { | |
4622 | { | |
4623 | arg7 = wxString_in_helper(obj6); | |
4624 | if (arg7 == NULL) SWIG_fail; | |
4625 | temp7 = True; | |
4626 | } | |
4627 | } | |
4628 | { | |
0439c23b | 4629 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4631 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4632 | ||
4633 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4634 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4635 | } |
4636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4637 | { | |
4638 | if (temp3) | |
4639 | delete arg3; | |
4640 | } | |
4641 | { | |
4642 | if (temp7) | |
4643 | delete arg7; | |
4644 | } | |
4645 | return resultobj; | |
4646 | fail: | |
4647 | { | |
4648 | if (temp3) | |
4649 | delete arg3; | |
4650 | } | |
4651 | { | |
4652 | if (temp7) | |
4653 | delete arg7; | |
4654 | } | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
4659 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4660 | PyObject *resultobj; | |
4661 | wxMiniFrame *result; | |
4662 | char *kwnames[] = { | |
4663 | NULL | |
4664 | }; | |
4665 | ||
4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4667 | { | |
0439c23b | 4668 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4670 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4673 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4674 | } |
4675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4676 | return resultobj; | |
4677 | fail: | |
4678 | return NULL; | |
4679 | } | |
4680 | ||
4681 | ||
4682 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4683 | PyObject *resultobj; | |
4684 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4685 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4686 | int arg3 = (int) (int)-1 ; |
4687 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4688 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4689 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4690 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4691 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4692 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4693 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4694 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4695 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4696 | bool result; | |
4697 | bool temp4 = False ; | |
4698 | wxPoint temp5 ; | |
4699 | wxSize temp6 ; | |
4700 | bool temp8 = False ; | |
4701 | PyObject * obj0 = 0 ; | |
4702 | PyObject * obj1 = 0 ; | |
4703 | PyObject * obj2 = 0 ; | |
4704 | PyObject * obj3 = 0 ; | |
4705 | PyObject * obj4 = 0 ; | |
4706 | PyObject * obj5 = 0 ; | |
4707 | PyObject * obj6 = 0 ; | |
4708 | PyObject * obj7 = 0 ; | |
4709 | char *kwnames[] = { | |
4710 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4711 | }; | |
4712 | ||
248ed943 | 4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, |
4715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4718 | if (obj2) { |
4719 | arg3 = (int const) SWIG_AsInt(obj2); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
4722 | if (obj3) { | |
4723 | { | |
4724 | arg4 = wxString_in_helper(obj3); | |
4725 | if (arg4 == NULL) SWIG_fail; | |
4726 | temp4 = True; | |
4727 | } | |
d55e5bfc RD |
4728 | } |
4729 | if (obj4) { | |
4730 | { | |
4731 | arg5 = &temp5; | |
4732 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4733 | } | |
4734 | } | |
4735 | if (obj5) { | |
4736 | { | |
4737 | arg6 = &temp6; | |
4738 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4739 | } | |
4740 | } | |
4741 | if (obj6) { | |
4742 | arg7 = (long) SWIG_AsLong(obj6); | |
4743 | if (PyErr_Occurred()) SWIG_fail; | |
4744 | } | |
4745 | if (obj7) { | |
4746 | { | |
4747 | arg8 = wxString_in_helper(obj7); | |
4748 | if (arg8 == NULL) SWIG_fail; | |
4749 | temp8 = True; | |
4750 | } | |
4751 | } | |
4752 | { | |
4753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4754 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4755 | ||
4756 | wxPyEndAllowThreads(__tstate); | |
4757 | if (PyErr_Occurred()) SWIG_fail; | |
4758 | } | |
4759 | { | |
4760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4761 | } | |
4762 | { | |
4763 | if (temp4) | |
4764 | delete arg4; | |
4765 | } | |
4766 | { | |
4767 | if (temp8) | |
4768 | delete arg8; | |
4769 | } | |
4770 | return resultobj; | |
4771 | fail: | |
4772 | { | |
4773 | if (temp4) | |
4774 | delete arg4; | |
4775 | } | |
4776 | { | |
4777 | if (temp8) | |
4778 | delete arg8; | |
4779 | } | |
4780 | return NULL; | |
4781 | } | |
4782 | ||
4783 | ||
4784 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4785 | PyObject *obj; | |
4786 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4787 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4788 | Py_INCREF(obj); | |
4789 | return Py_BuildValue((char *)""); | |
4790 | } | |
4791 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4792 | PyObject *resultobj; | |
4793 | wxBitmap *arg1 = 0 ; | |
4794 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4795 | int arg3 ; | |
4796 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4797 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4798 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4799 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4800 | long arg6 = (long) wxNO_BORDER ; | |
4801 | wxSplashScreenWindow *result; | |
4802 | wxPoint temp4 ; | |
4803 | wxSize temp5 ; | |
4804 | PyObject * obj0 = 0 ; | |
4805 | PyObject * obj1 = 0 ; | |
4806 | PyObject * obj2 = 0 ; | |
4807 | PyObject * obj3 = 0 ; | |
4808 | PyObject * obj4 = 0 ; | |
4809 | PyObject * obj5 = 0 ; | |
4810 | char *kwnames[] = { | |
4811 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4812 | }; | |
4813 | ||
4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4817 | SWIG_fail; | |
4818 | if (arg1 == NULL) { | |
4819 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4820 | SWIG_fail; | |
4821 | } | |
4822 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4824 | arg3 = (int) SWIG_AsInt(obj2); | |
4825 | if (PyErr_Occurred()) SWIG_fail; | |
4826 | if (obj3) { | |
4827 | { | |
4828 | arg4 = &temp4; | |
4829 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4830 | } | |
4831 | } | |
4832 | if (obj4) { | |
4833 | { | |
4834 | arg5 = &temp5; | |
4835 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4836 | } | |
4837 | } | |
4838 | if (obj5) { | |
4839 | arg6 = (long) SWIG_AsLong(obj5); | |
4840 | if (PyErr_Occurred()) SWIG_fail; | |
4841 | } | |
4842 | { | |
0439c23b | 4843 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4845 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4848 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4849 | } |
4850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4851 | return resultobj; | |
4852 | fail: | |
4853 | return NULL; | |
4854 | } | |
4855 | ||
4856 | ||
4857 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4858 | PyObject *resultobj; | |
4859 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4860 | wxBitmap *arg2 = 0 ; | |
4861 | PyObject * obj0 = 0 ; | |
4862 | PyObject * obj1 = 0 ; | |
4863 | char *kwnames[] = { | |
4864 | (char *) "self",(char *) "bitmap", NULL | |
4865 | }; | |
4866 | ||
4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4870 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4871 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4872 | SWIG_fail; | |
4873 | if (arg2 == NULL) { | |
4874 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4875 | SWIG_fail; | |
4876 | } | |
4877 | { | |
4878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4879 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4880 | ||
4881 | wxPyEndAllowThreads(__tstate); | |
4882 | if (PyErr_Occurred()) SWIG_fail; | |
4883 | } | |
4884 | Py_INCREF(Py_None); resultobj = Py_None; | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4894 | wxBitmap *result; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | { | |
4906 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4907 | result = (wxBitmap *) &_result_ref; | |
4908 | } | |
4909 | ||
4910 | wxPyEndAllowThreads(__tstate); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | } | |
4913 | { | |
4914 | wxBitmap* resultptr = new wxBitmap(*result); | |
4915 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4916 | } | |
4917 | return resultobj; | |
4918 | fail: | |
4919 | return NULL; | |
4920 | } | |
4921 | ||
4922 | ||
4923 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4924 | PyObject *obj; | |
4925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4926 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4927 | Py_INCREF(obj); | |
4928 | return Py_BuildValue((char *)""); | |
4929 | } | |
4930 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4931 | PyObject *resultobj; | |
4932 | wxBitmap *arg1 = 0 ; | |
4933 | long arg2 ; | |
4934 | int arg3 ; | |
4935 | wxWindow *arg4 = (wxWindow *) 0 ; | |
248ed943 | 4936 | int arg5 = (int) -1 ; |
d55e5bfc RD |
4937 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
4938 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4939 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4940 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4941 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4942 | wxSplashScreen *result; | |
4943 | wxPoint temp6 ; | |
4944 | wxSize temp7 ; | |
4945 | PyObject * obj0 = 0 ; | |
4946 | PyObject * obj1 = 0 ; | |
4947 | PyObject * obj2 = 0 ; | |
4948 | PyObject * obj3 = 0 ; | |
4949 | PyObject * obj4 = 0 ; | |
4950 | PyObject * obj5 = 0 ; | |
4951 | PyObject * obj6 = 0 ; | |
4952 | PyObject * obj7 = 0 ; | |
4953 | char *kwnames[] = { | |
4954 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4955 | }; | |
4956 | ||
248ed943 | 4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4960 | SWIG_fail; | |
4961 | if (arg1 == NULL) { | |
4962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4963 | SWIG_fail; | |
4964 | } | |
4965 | arg2 = (long) SWIG_AsLong(obj1); | |
4966 | if (PyErr_Occurred()) SWIG_fail; | |
4967 | arg3 = (int) SWIG_AsInt(obj2); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4971 | if (obj4) { |
4972 | arg5 = (int) SWIG_AsInt(obj4); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
d55e5bfc RD |
4975 | if (obj5) { |
4976 | { | |
4977 | arg6 = &temp6; | |
4978 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4979 | } | |
4980 | } | |
4981 | if (obj6) { | |
4982 | { | |
4983 | arg7 = &temp7; | |
4984 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4985 | } | |
4986 | } | |
4987 | if (obj7) { | |
4988 | arg8 = (long) SWIG_AsLong(obj7); | |
4989 | if (PyErr_Occurred()) SWIG_fail; | |
4990 | } | |
4991 | { | |
0439c23b | 4992 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4994 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4995 | ||
4996 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4997 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4998 | } |
4999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
5000 | return resultobj; | |
5001 | fail: | |
5002 | return NULL; | |
5003 | } | |
5004 | ||
5005 | ||
5006 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5007 | PyObject *resultobj; | |
5008 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5009 | long result; | |
5010 | PyObject * obj0 = 0 ; | |
5011 | char *kwnames[] = { | |
5012 | (char *) "self", NULL | |
5013 | }; | |
5014 | ||
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
5016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5018 | { | |
5019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5020 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
5021 | ||
5022 | wxPyEndAllowThreads(__tstate); | |
5023 | if (PyErr_Occurred()) SWIG_fail; | |
5024 | } | |
5025 | resultobj = SWIG_FromLong((long)result); | |
5026 | return resultobj; | |
5027 | fail: | |
5028 | return NULL; | |
5029 | } | |
5030 | ||
5031 | ||
5032 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject *resultobj; | |
5034 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5035 | wxSplashScreenWindow *result; | |
5036 | PyObject * obj0 = 0 ; | |
5037 | char *kwnames[] = { | |
5038 | (char *) "self", NULL | |
5039 | }; | |
5040 | ||
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
5042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5044 | { | |
5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5046 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
5047 | ||
5048 | wxPyEndAllowThreads(__tstate); | |
5049 | if (PyErr_Occurred()) SWIG_fail; | |
5050 | } | |
5051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
5052 | return resultobj; | |
5053 | fail: | |
5054 | return NULL; | |
5055 | } | |
5056 | ||
5057 | ||
5058 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5059 | PyObject *resultobj; | |
5060 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5061 | int result; | |
5062 | PyObject * obj0 = 0 ; | |
5063 | char *kwnames[] = { | |
5064 | (char *) "self", NULL | |
5065 | }; | |
5066 | ||
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
5068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5070 | { | |
5071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5072 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
5073 | ||
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | resultobj = SWIG_FromInt((int)result); | |
5078 | return resultobj; | |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
5084 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
5085 | PyObject *obj; | |
5086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5087 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
5088 | Py_INCREF(obj); | |
5089 | return Py_BuildValue((char *)""); | |
5090 | } | |
5091 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5092 | PyObject *resultobj; | |
5093 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5094 | int arg2 = (int) -1 ; | |
5095 | long arg3 = (long) wxST_SIZEGRIP ; | |
5096 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
5097 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5098 | wxStatusBar *result; | |
5099 | bool temp4 = False ; | |
5100 | PyObject * obj0 = 0 ; | |
5101 | PyObject * obj1 = 0 ; | |
5102 | PyObject * obj2 = 0 ; | |
5103 | PyObject * obj3 = 0 ; | |
5104 | char *kwnames[] = { | |
5105 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5106 | }; | |
5107 | ||
5108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5111 | if (obj1) { | |
5112 | arg2 = (int) SWIG_AsInt(obj1); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | } | |
5115 | if (obj2) { | |
5116 | arg3 = (long) SWIG_AsLong(obj2); | |
5117 | if (PyErr_Occurred()) SWIG_fail; | |
5118 | } | |
5119 | if (obj3) { | |
5120 | { | |
5121 | arg4 = wxString_in_helper(obj3); | |
5122 | if (arg4 == NULL) SWIG_fail; | |
5123 | temp4 = True; | |
5124 | } | |
5125 | } | |
5126 | { | |
0439c23b | 5127 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5129 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5132 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5133 | } |
b0f7404b | 5134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1); |
d55e5bfc RD |
5135 | { |
5136 | if (temp4) | |
5137 | delete arg4; | |
5138 | } | |
5139 | return resultobj; | |
5140 | fail: | |
5141 | { | |
5142 | if (temp4) | |
5143 | delete arg4; | |
5144 | } | |
5145 | return NULL; | |
5146 | } | |
5147 | ||
5148 | ||
5149 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5150 | PyObject *resultobj; | |
5151 | wxStatusBar *result; | |
5152 | char *kwnames[] = { | |
5153 | NULL | |
5154 | }; | |
5155 | ||
5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5157 | { | |
0439c23b | 5158 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5160 | result = (wxStatusBar *)new wxStatusBar(); | |
5161 | ||
5162 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5163 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5164 | } |
b0f7404b | 5165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1); |
d55e5bfc RD |
5166 | return resultobj; |
5167 | fail: | |
5168 | return NULL; | |
5169 | } | |
5170 | ||
5171 | ||
5172 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5173 | PyObject *resultobj; | |
5174 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5176 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5177 | long arg4 = (long) wxST_SIZEGRIP ; |
5178 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5179 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5180 | bool result; | |
5181 | bool temp5 = False ; | |
5182 | PyObject * obj0 = 0 ; | |
5183 | PyObject * obj1 = 0 ; | |
5184 | PyObject * obj2 = 0 ; | |
5185 | PyObject * obj3 = 0 ; | |
5186 | PyObject * obj4 = 0 ; | |
5187 | char *kwnames[] = { | |
5188 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5189 | }; | |
5190 | ||
248ed943 | 5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
5192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, |
5193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5196 | if (obj2) { |
5197 | arg3 = (int) SWIG_AsInt(obj2); | |
5198 | if (PyErr_Occurred()) SWIG_fail; | |
5199 | } | |
d55e5bfc RD |
5200 | if (obj3) { |
5201 | arg4 = (long) SWIG_AsLong(obj3); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | if (obj4) { | |
5205 | { | |
5206 | arg5 = wxString_in_helper(obj4); | |
5207 | if (arg5 == NULL) SWIG_fail; | |
5208 | temp5 = True; | |
5209 | } | |
5210 | } | |
5211 | { | |
5212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5213 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5214 | ||
5215 | wxPyEndAllowThreads(__tstate); | |
5216 | if (PyErr_Occurred()) SWIG_fail; | |
5217 | } | |
5218 | { | |
5219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5220 | } | |
5221 | { | |
5222 | if (temp5) | |
5223 | delete arg5; | |
5224 | } | |
5225 | return resultobj; | |
5226 | fail: | |
5227 | { | |
5228 | if (temp5) | |
5229 | delete arg5; | |
5230 | } | |
5231 | return NULL; | |
5232 | } | |
5233 | ||
5234 | ||
5235 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj; | |
5237 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5238 | int arg2 = (int) 1 ; | |
5239 | PyObject * obj0 = 0 ; | |
5240 | PyObject * obj1 = 0 ; | |
5241 | char *kwnames[] = { | |
5242 | (char *) "self",(char *) "number", NULL | |
5243 | }; | |
5244 | ||
5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5248 | if (obj1) { | |
5249 | arg2 = (int) SWIG_AsInt(obj1); | |
5250 | if (PyErr_Occurred()) SWIG_fail; | |
5251 | } | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | (arg1)->SetFieldsCount(arg2); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | Py_INCREF(Py_None); resultobj = Py_None; | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
5266 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5267 | PyObject *resultobj; | |
5268 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5269 | int result; | |
5270 | PyObject * obj0 = 0 ; | |
5271 | char *kwnames[] = { | |
5272 | (char *) "self", NULL | |
5273 | }; | |
5274 | ||
5275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5278 | { | |
5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5280 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5281 | ||
5282 | wxPyEndAllowThreads(__tstate); | |
5283 | if (PyErr_Occurred()) SWIG_fail; | |
5284 | } | |
5285 | resultobj = SWIG_FromInt((int)result); | |
5286 | return resultobj; | |
5287 | fail: | |
5288 | return NULL; | |
5289 | } | |
5290 | ||
5291 | ||
5292 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5293 | PyObject *resultobj; | |
5294 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5295 | wxString *arg2 = 0 ; | |
5296 | int arg3 = (int) 0 ; | |
5297 | bool temp2 = False ; | |
5298 | PyObject * obj0 = 0 ; | |
5299 | PyObject * obj1 = 0 ; | |
5300 | PyObject * obj2 = 0 ; | |
5301 | char *kwnames[] = { | |
5302 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5303 | }; | |
5304 | ||
5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5308 | { | |
5309 | arg2 = wxString_in_helper(obj1); | |
5310 | if (arg2 == NULL) SWIG_fail; | |
5311 | temp2 = True; | |
5312 | } | |
5313 | if (obj2) { | |
5314 | arg3 = (int) SWIG_AsInt(obj2); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | { | |
5318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5319 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5320 | ||
5321 | wxPyEndAllowThreads(__tstate); | |
5322 | if (PyErr_Occurred()) SWIG_fail; | |
5323 | } | |
5324 | Py_INCREF(Py_None); resultobj = Py_None; | |
5325 | { | |
5326 | if (temp2) | |
5327 | delete arg2; | |
5328 | } | |
5329 | return resultobj; | |
5330 | fail: | |
5331 | { | |
5332 | if (temp2) | |
5333 | delete arg2; | |
5334 | } | |
5335 | return NULL; | |
5336 | } | |
5337 | ||
5338 | ||
5339 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject *resultobj; | |
5341 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5342 | int arg2 = (int) 0 ; | |
5343 | wxString result; | |
5344 | PyObject * obj0 = 0 ; | |
5345 | PyObject * obj1 = 0 ; | |
5346 | char *kwnames[] = { | |
5347 | (char *) "self",(char *) "number", NULL | |
5348 | }; | |
5349 | ||
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5353 | if (obj1) { | |
5354 | arg2 = (int) SWIG_AsInt(obj1); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
5357 | { | |
5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5359 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5360 | ||
5361 | wxPyEndAllowThreads(__tstate); | |
5362 | if (PyErr_Occurred()) SWIG_fail; | |
5363 | } | |
5364 | { | |
5365 | #if wxUSE_UNICODE | |
5366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5367 | #else | |
5368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5369 | #endif | |
5370 | } | |
5371 | return resultobj; | |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
5377 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5378 | PyObject *resultobj; | |
5379 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5380 | wxString *arg2 = 0 ; | |
5381 | int arg3 = (int) 0 ; | |
5382 | bool temp2 = False ; | |
5383 | PyObject * obj0 = 0 ; | |
5384 | PyObject * obj1 = 0 ; | |
5385 | PyObject * obj2 = 0 ; | |
5386 | char *kwnames[] = { | |
5387 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5388 | }; | |
5389 | ||
5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5393 | { | |
5394 | arg2 = wxString_in_helper(obj1); | |
5395 | if (arg2 == NULL) SWIG_fail; | |
5396 | temp2 = True; | |
5397 | } | |
5398 | if (obj2) { | |
5399 | arg3 = (int) SWIG_AsInt(obj2); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | { | |
5403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5404 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5405 | ||
5406 | wxPyEndAllowThreads(__tstate); | |
5407 | if (PyErr_Occurred()) SWIG_fail; | |
5408 | } | |
5409 | Py_INCREF(Py_None); resultobj = Py_None; | |
5410 | { | |
5411 | if (temp2) | |
5412 | delete arg2; | |
5413 | } | |
5414 | return resultobj; | |
5415 | fail: | |
5416 | { | |
5417 | if (temp2) | |
5418 | delete arg2; | |
5419 | } | |
5420 | return NULL; | |
5421 | } | |
5422 | ||
5423 | ||
5424 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject *resultobj; | |
5426 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5427 | int arg2 = (int) 0 ; | |
5428 | PyObject * obj0 = 0 ; | |
5429 | PyObject * obj1 = 0 ; | |
5430 | char *kwnames[] = { | |
5431 | (char *) "self",(char *) "number", NULL | |
5432 | }; | |
5433 | ||
5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5437 | if (obj1) { | |
5438 | arg2 = (int) SWIG_AsInt(obj1); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
5441 | { | |
5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5443 | (arg1)->PopStatusText(arg2); | |
5444 | ||
5445 | wxPyEndAllowThreads(__tstate); | |
5446 | if (PyErr_Occurred()) SWIG_fail; | |
5447 | } | |
5448 | Py_INCREF(Py_None); resultobj = Py_None; | |
5449 | return resultobj; | |
5450 | fail: | |
5451 | return NULL; | |
5452 | } | |
5453 | ||
5454 | ||
5455 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5456 | PyObject *resultobj; | |
5457 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5458 | int arg2 ; | |
5459 | int *arg3 = (int *) 0 ; | |
5460 | PyObject * obj0 = 0 ; | |
5461 | PyObject * obj1 = 0 ; | |
5462 | char *kwnames[] = { | |
5463 | (char *) "self",(char *) "widths", NULL | |
5464 | }; | |
5465 | ||
5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5469 | { | |
5470 | arg2 = PyList_Size(obj1); | |
5471 | arg3 = int_LIST_helper(obj1); | |
5472 | if (arg3 == NULL) SWIG_fail; | |
5473 | } | |
5474 | { | |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | Py_INCREF(Py_None); resultobj = Py_None; | |
5482 | { | |
5483 | if (arg3) delete [] arg3; | |
5484 | } | |
5485 | return resultobj; | |
5486 | fail: | |
5487 | { | |
5488 | if (arg3) delete [] arg3; | |
5489 | } | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5497 | int arg2 ; | |
5498 | wxRect result; | |
5499 | PyObject * obj0 = 0 ; | |
5500 | PyObject * obj1 = 0 ; | |
5501 | char *kwnames[] = { | |
5502 | (char *) "self",(char *) "i", NULL | |
5503 | }; | |
5504 | ||
5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5508 | arg2 = (int) SWIG_AsInt(obj1); | |
5509 | if (PyErr_Occurred()) SWIG_fail; | |
5510 | { | |
5511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5512 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5513 | ||
5514 | wxPyEndAllowThreads(__tstate); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
5517 | { | |
5518 | wxRect * resultptr; | |
5519 | resultptr = new wxRect((wxRect &) result); | |
5520 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5521 | } | |
5522 | return resultobj; | |
5523 | fail: | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj; | |
5530 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5531 | int arg2 ; | |
5532 | PyObject * obj0 = 0 ; | |
5533 | PyObject * obj1 = 0 ; | |
5534 | char *kwnames[] = { | |
5535 | (char *) "self",(char *) "height", NULL | |
5536 | }; | |
5537 | ||
5538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5541 | arg2 = (int) SWIG_AsInt(obj1); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
5543 | { | |
5544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5545 | (arg1)->SetMinHeight(arg2); | |
5546 | ||
5547 | wxPyEndAllowThreads(__tstate); | |
5548 | if (PyErr_Occurred()) SWIG_fail; | |
5549 | } | |
5550 | Py_INCREF(Py_None); resultobj = Py_None; | |
5551 | return resultobj; | |
5552 | fail: | |
5553 | return NULL; | |
5554 | } | |
5555 | ||
5556 | ||
5557 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5558 | PyObject *resultobj; | |
5559 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5560 | int result; | |
5561 | PyObject * obj0 = 0 ; | |
5562 | char *kwnames[] = { | |
5563 | (char *) "self", NULL | |
5564 | }; | |
5565 | ||
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5569 | { | |
5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5571 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5572 | ||
5573 | wxPyEndAllowThreads(__tstate); | |
5574 | if (PyErr_Occurred()) SWIG_fail; | |
5575 | } | |
5576 | resultobj = SWIG_FromInt((int)result); | |
5577 | return resultobj; | |
5578 | fail: | |
5579 | return NULL; | |
5580 | } | |
5581 | ||
5582 | ||
5583 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5584 | PyObject *resultobj; | |
5585 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5586 | int result; | |
5587 | PyObject * obj0 = 0 ; | |
5588 | char *kwnames[] = { | |
5589 | (char *) "self", NULL | |
5590 | }; | |
5591 | ||
5592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5595 | { | |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
5600 | if (PyErr_Occurred()) SWIG_fail; | |
5601 | } | |
5602 | resultobj = SWIG_FromInt((int)result); | |
5603 | return resultobj; | |
5604 | fail: | |
5605 | return NULL; | |
5606 | } | |
5607 | ||
5608 | ||
f20a2e1f RD |
5609 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5610 | PyObject *resultobj; | |
5611 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5612 | wxVisualAttributes result; | |
5613 | PyObject * obj0 = 0 ; | |
5614 | char *kwnames[] = { | |
5615 | (char *) "variant", NULL | |
5616 | }; | |
5617 | ||
5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5619 | if (obj0) { | |
5620 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | } | |
5623 | { | |
0439c23b | 5624 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5626 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5627 | ||
5628 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5629 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5630 | } |
5631 | { | |
5632 | wxVisualAttributes * resultptr; | |
5633 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5635 | } | |
5636 | return resultobj; | |
5637 | fail: | |
5638 | return NULL; | |
5639 | } | |
5640 | ||
5641 | ||
d55e5bfc RD |
5642 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { |
5643 | PyObject *obj; | |
5644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5645 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5646 | Py_INCREF(obj); | |
5647 | return Py_BuildValue((char *)""); | |
5648 | } | |
5649 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5650 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5651 | return 1; | |
5652 | } | |
5653 | ||
5654 | ||
5655 | static PyObject *_wrap_SplitterNameStr_get() { | |
5656 | PyObject *pyobj; | |
5657 | ||
5658 | { | |
5659 | #if wxUSE_UNICODE | |
5660 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5661 | #else | |
5662 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5663 | #endif | |
5664 | } | |
5665 | return pyobj; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5672 | int arg2 = (int) -1 ; | |
5673 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5674 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5675 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5676 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5677 | long arg5 = (long) wxSP_3D ; | |
5678 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5679 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5680 | wxSplitterWindow *result; | |
5681 | wxPoint temp3 ; | |
5682 | wxSize temp4 ; | |
5683 | bool temp6 = False ; | |
5684 | PyObject * obj0 = 0 ; | |
5685 | PyObject * obj1 = 0 ; | |
5686 | PyObject * obj2 = 0 ; | |
5687 | PyObject * obj3 = 0 ; | |
5688 | PyObject * obj4 = 0 ; | |
5689 | PyObject * obj5 = 0 ; | |
5690 | char *kwnames[] = { | |
5691 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5692 | }; | |
5693 | ||
5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5697 | if (obj1) { | |
5698 | arg2 = (int) SWIG_AsInt(obj1); | |
5699 | if (PyErr_Occurred()) SWIG_fail; | |
5700 | } | |
5701 | if (obj2) { | |
5702 | { | |
5703 | arg3 = &temp3; | |
5704 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5705 | } | |
5706 | } | |
5707 | if (obj3) { | |
5708 | { | |
5709 | arg4 = &temp4; | |
5710 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5711 | } | |
5712 | } | |
5713 | if (obj4) { | |
5714 | arg5 = (long) SWIG_AsLong(obj4); | |
5715 | if (PyErr_Occurred()) SWIG_fail; | |
5716 | } | |
5717 | if (obj5) { | |
5718 | { | |
5719 | arg6 = wxString_in_helper(obj5); | |
5720 | if (arg6 == NULL) SWIG_fail; | |
5721 | temp6 = True; | |
5722 | } | |
5723 | } | |
5724 | { | |
0439c23b | 5725 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5727 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5728 | ||
5729 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5730 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5731 | } |
5732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5733 | { | |
5734 | if (temp6) | |
5735 | delete arg6; | |
5736 | } | |
5737 | return resultobj; | |
5738 | fail: | |
5739 | { | |
5740 | if (temp6) | |
5741 | delete arg6; | |
5742 | } | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
5747 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5748 | PyObject *resultobj; | |
5749 | wxSplitterWindow *result; | |
5750 | char *kwnames[] = { | |
5751 | NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5755 | { | |
0439c23b | 5756 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5758 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5759 | ||
5760 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5761 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5762 | } |
5763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5764 | return resultobj; | |
5765 | fail: | |
5766 | return NULL; | |
5767 | } | |
5768 | ||
5769 | ||
5770 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5771 | PyObject *resultobj; | |
5772 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5773 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5774 | int arg3 = (int) -1 ; | |
5775 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5776 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5777 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5778 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5779 | long arg6 = (long) wxSP_3D ; | |
5780 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5781 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5782 | bool result; | |
5783 | wxPoint temp4 ; | |
5784 | wxSize temp5 ; | |
5785 | bool temp7 = False ; | |
5786 | PyObject * obj0 = 0 ; | |
5787 | PyObject * obj1 = 0 ; | |
5788 | PyObject * obj2 = 0 ; | |
5789 | PyObject * obj3 = 0 ; | |
5790 | PyObject * obj4 = 0 ; | |
5791 | PyObject * obj5 = 0 ; | |
5792 | PyObject * obj6 = 0 ; | |
5793 | char *kwnames[] = { | |
5794 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5795 | }; | |
5796 | ||
5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5802 | if (obj2) { | |
5803 | arg3 = (int) SWIG_AsInt(obj2); | |
5804 | if (PyErr_Occurred()) SWIG_fail; | |
5805 | } | |
5806 | if (obj3) { | |
5807 | { | |
5808 | arg4 = &temp4; | |
5809 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5810 | } | |
5811 | } | |
5812 | if (obj4) { | |
5813 | { | |
5814 | arg5 = &temp5; | |
5815 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5816 | } | |
5817 | } | |
5818 | if (obj5) { | |
5819 | arg6 = (long) SWIG_AsLong(obj5); | |
5820 | if (PyErr_Occurred()) SWIG_fail; | |
5821 | } | |
5822 | if (obj6) { | |
5823 | { | |
5824 | arg7 = wxString_in_helper(obj6); | |
5825 | if (arg7 == NULL) SWIG_fail; | |
5826 | temp7 = True; | |
5827 | } | |
5828 | } | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5832 | ||
5833 | wxPyEndAllowThreads(__tstate); | |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | { | |
5837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5838 | } | |
5839 | { | |
5840 | if (temp7) | |
5841 | delete arg7; | |
5842 | } | |
5843 | return resultobj; | |
5844 | fail: | |
5845 | { | |
5846 | if (temp7) | |
5847 | delete arg7; | |
5848 | } | |
5849 | return NULL; | |
5850 | } | |
5851 | ||
5852 | ||
5853 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5854 | PyObject *resultobj; | |
5855 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5856 | wxWindow *result; | |
5857 | PyObject * obj0 = 0 ; | |
5858 | char *kwnames[] = { | |
5859 | (char *) "self", NULL | |
5860 | }; | |
5861 | ||
5862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5865 | { | |
5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5867 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5868 | ||
5869 | wxPyEndAllowThreads(__tstate); | |
5870 | if (PyErr_Occurred()) SWIG_fail; | |
5871 | } | |
5872 | { | |
412d302d | 5873 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5874 | } |
5875 | return resultobj; | |
5876 | fail: | |
5877 | return NULL; | |
5878 | } | |
5879 | ||
5880 | ||
5881 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject *resultobj; | |
5883 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5884 | wxWindow *result; | |
5885 | PyObject * obj0 = 0 ; | |
5886 | char *kwnames[] = { | |
5887 | (char *) "self", NULL | |
5888 | }; | |
5889 | ||
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | { | |
412d302d | 5901 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5902 | } |
5903 | return resultobj; | |
5904 | fail: | |
5905 | return NULL; | |
5906 | } | |
5907 | ||
5908 | ||
5909 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject *resultobj; | |
5911 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5912 | int arg2 ; | |
5913 | PyObject * obj0 = 0 ; | |
5914 | PyObject * obj1 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self",(char *) "mode", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5922 | arg2 = (int) SWIG_AsInt(obj1); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | { | |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | (arg1)->SetSplitMode(arg2); | |
5927 | ||
5928 | wxPyEndAllowThreads(__tstate); | |
5929 | if (PyErr_Occurred()) SWIG_fail; | |
5930 | } | |
5931 | Py_INCREF(Py_None); resultobj = Py_None; | |
5932 | return resultobj; | |
5933 | fail: | |
5934 | return NULL; | |
5935 | } | |
5936 | ||
5937 | ||
5938 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5939 | PyObject *resultobj; | |
5940 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5941 | int result; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5950 | { | |
5951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5952 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5953 | ||
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
5957 | resultobj = SWIG_FromInt((int)result); | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
5964 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject *resultobj; | |
5966 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5967 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5968 | PyObject * obj0 = 0 ; | |
5969 | PyObject * obj1 = 0 ; | |
5970 | char *kwnames[] = { | |
5971 | (char *) "self",(char *) "window", NULL | |
5972 | }; | |
5973 | ||
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5979 | { | |
5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5981 | (arg1)->Initialize(arg2); | |
5982 | ||
5983 | wxPyEndAllowThreads(__tstate); | |
5984 | if (PyErr_Occurred()) SWIG_fail; | |
5985 | } | |
5986 | Py_INCREF(Py_None); resultobj = Py_None; | |
5987 | return resultobj; | |
5988 | fail: | |
5989 | return NULL; | |
5990 | } | |
5991 | ||
5992 | ||
5993 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5994 | PyObject *resultobj; | |
5995 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5997 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5998 | int arg4 = (int) 0 ; | |
5999 | bool result; | |
6000 | PyObject * obj0 = 0 ; | |
6001 | PyObject * obj1 = 0 ; | |
6002 | PyObject * obj2 = 0 ; | |
6003 | PyObject * obj3 = 0 ; | |
6004 | char *kwnames[] = { | |
6005 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6006 | }; | |
6007 | ||
6008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6013 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6015 | if (obj3) { | |
6016 | arg4 = (int) SWIG_AsInt(obj3); | |
6017 | if (PyErr_Occurred()) SWIG_fail; | |
6018 | } | |
6019 | { | |
6020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6021 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
6022 | ||
6023 | wxPyEndAllowThreads(__tstate); | |
6024 | if (PyErr_Occurred()) SWIG_fail; | |
6025 | } | |
6026 | { | |
6027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6028 | } | |
6029 | return resultobj; | |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject *resultobj; | |
6037 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6038 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6039 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6040 | int arg4 = (int) 0 ; | |
6041 | bool result; | |
6042 | PyObject * obj0 = 0 ; | |
6043 | PyObject * obj1 = 0 ; | |
6044 | PyObject * obj2 = 0 ; | |
6045 | PyObject * obj3 = 0 ; | |
6046 | char *kwnames[] = { | |
6047 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6048 | }; | |
6049 | ||
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6053 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6055 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6057 | if (obj3) { | |
6058 | arg4 = (int) SWIG_AsInt(obj3); | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
6061 | { | |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | { | |
6069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6070 | } | |
6071 | return resultobj; | |
6072 | fail: | |
6073 | return NULL; | |
6074 | } | |
6075 | ||
6076 | ||
6077 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6078 | PyObject *resultobj; | |
6079 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6080 | wxWindow *arg2 = (wxWindow *) NULL ; | |
6081 | bool result; | |
6082 | PyObject * obj0 = 0 ; | |
6083 | PyObject * obj1 = 0 ; | |
6084 | char *kwnames[] = { | |
6085 | (char *) "self",(char *) "toRemove", NULL | |
6086 | }; | |
6087 | ||
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
6089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6091 | if (obj1) { | |
6092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6094 | } | |
6095 | { | |
6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6097 | result = (bool)(arg1)->Unsplit(arg2); | |
6098 | ||
6099 | wxPyEndAllowThreads(__tstate); | |
6100 | if (PyErr_Occurred()) SWIG_fail; | |
6101 | } | |
6102 | { | |
6103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6104 | } | |
6105 | return resultobj; | |
6106 | fail: | |
6107 | return NULL; | |
6108 | } | |
6109 | ||
6110 | ||
6111 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6112 | PyObject *resultobj; | |
6113 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6114 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6115 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6116 | bool result; | |
6117 | PyObject * obj0 = 0 ; | |
6118 | PyObject * obj1 = 0 ; | |
6119 | PyObject * obj2 = 0 ; | |
6120 | char *kwnames[] = { | |
6121 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6122 | }; | |
6123 | ||
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6129 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6133 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6134 | ||
6135 | wxPyEndAllowThreads(__tstate); | |
6136 | if (PyErr_Occurred()) SWIG_fail; | |
6137 | } | |
6138 | { | |
6139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6140 | } | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6150 | PyObject * obj0 = 0 ; | |
6151 | char *kwnames[] = { | |
6152 | (char *) "self", NULL | |
6153 | }; | |
6154 | ||
6155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6158 | { | |
6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6160 | (arg1)->UpdateSize(); | |
6161 | ||
6162 | wxPyEndAllowThreads(__tstate); | |
6163 | if (PyErr_Occurred()) SWIG_fail; | |
6164 | } | |
6165 | Py_INCREF(Py_None); resultobj = Py_None; | |
6166 | return resultobj; | |
6167 | fail: | |
6168 | return NULL; | |
6169 | } | |
6170 | ||
6171 | ||
6172 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6175 | bool result; | |
6176 | PyObject * obj0 = 0 ; | |
6177 | char *kwnames[] = { | |
6178 | (char *) "self", NULL | |
6179 | }; | |
6180 | ||
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6184 | { | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6193 | } | |
6194 | return resultobj; | |
6195 | fail: | |
6196 | return NULL; | |
6197 | } | |
6198 | ||
6199 | ||
6200 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6201 | PyObject *resultobj; | |
6202 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6203 | int arg2 ; | |
6204 | PyObject * obj0 = 0 ; | |
6205 | PyObject * obj1 = 0 ; | |
6206 | char *kwnames[] = { | |
6207 | (char *) "self",(char *) "width", NULL | |
6208 | }; | |
6209 | ||
6210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6213 | arg2 = (int) SWIG_AsInt(obj1); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | (arg1)->SetSashSize(arg2); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | Py_INCREF(Py_None); resultobj = Py_None; | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6230 | PyObject *resultobj; | |
6231 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6232 | int arg2 ; | |
6233 | PyObject * obj0 = 0 ; | |
6234 | PyObject * obj1 = 0 ; | |
6235 | char *kwnames[] = { | |
6236 | (char *) "self",(char *) "width", NULL | |
6237 | }; | |
6238 | ||
6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6242 | arg2 = (int) SWIG_AsInt(obj1); | |
6243 | if (PyErr_Occurred()) SWIG_fail; | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | (arg1)->SetBorderSize(arg2); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
6251 | Py_INCREF(Py_None); resultobj = Py_None; | |
6252 | return resultobj; | |
6253 | fail: | |
6254 | return NULL; | |
6255 | } | |
6256 | ||
6257 | ||
6258 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6259 | PyObject *resultobj; | |
6260 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6261 | int result; | |
6262 | PyObject * obj0 = 0 ; | |
6263 | char *kwnames[] = { | |
6264 | (char *) "self", NULL | |
6265 | }; | |
6266 | ||
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6270 | { | |
6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6272 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6273 | ||
6274 | wxPyEndAllowThreads(__tstate); | |
6275 | if (PyErr_Occurred()) SWIG_fail; | |
6276 | } | |
6277 | resultobj = SWIG_FromInt((int)result); | |
6278 | return resultobj; | |
6279 | fail: | |
6280 | return NULL; | |
6281 | } | |
6282 | ||
6283 | ||
6284 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6285 | PyObject *resultobj; | |
6286 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6287 | int result; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | char *kwnames[] = { | |
6290 | (char *) "self", NULL | |
6291 | }; | |
6292 | ||
6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6296 | { | |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | resultobj = SWIG_FromInt((int)result); | |
6304 | return resultobj; | |
6305 | fail: | |
6306 | return NULL; | |
6307 | } | |
6308 | ||
6309 | ||
6310 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6311 | PyObject *resultobj; | |
6312 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6313 | int arg2 ; | |
6314 | bool arg3 = (bool) True ; | |
6315 | PyObject * obj0 = 0 ; | |
6316 | PyObject * obj1 = 0 ; | |
6317 | PyObject * obj2 = 0 ; | |
6318 | char *kwnames[] = { | |
6319 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6320 | }; | |
6321 | ||
6322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6325 | arg2 = (int) SWIG_AsInt(obj1); | |
6326 | if (PyErr_Occurred()) SWIG_fail; | |
6327 | if (obj2) { | |
6328 | arg3 = (bool) SWIG_AsBool(obj2); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
6331 | { | |
6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6333 | (arg1)->SetSashPosition(arg2,arg3); | |
6334 | ||
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
6338 | Py_INCREF(Py_None); resultobj = Py_None; | |
6339 | return resultobj; | |
6340 | fail: | |
6341 | return NULL; | |
6342 | } | |
6343 | ||
6344 | ||
6345 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6346 | PyObject *resultobj; | |
6347 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6348 | int result; | |
6349 | PyObject * obj0 = 0 ; | |
6350 | char *kwnames[] = { | |
6351 | (char *) "self", NULL | |
6352 | }; | |
6353 | ||
6354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6357 | { | |
6358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6359 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6360 | ||
6361 | wxPyEndAllowThreads(__tstate); | |
6362 | if (PyErr_Occurred()) SWIG_fail; | |
6363 | } | |
6364 | resultobj = SWIG_FromInt((int)result); | |
6365 | return resultobj; | |
6366 | fail: | |
6367 | return NULL; | |
6368 | } | |
6369 | ||
6370 | ||
6371 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6372 | PyObject *resultobj; | |
6373 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6374 | int arg2 ; | |
6375 | PyObject * obj0 = 0 ; | |
6376 | PyObject * obj1 = 0 ; | |
6377 | char *kwnames[] = { | |
6378 | (char *) "self",(char *) "min", NULL | |
6379 | }; | |
6380 | ||
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6384 | arg2 = (int) SWIG_AsInt(obj1); | |
6385 | if (PyErr_Occurred()) SWIG_fail; | |
6386 | { | |
6387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6388 | (arg1)->SetMinimumPaneSize(arg2); | |
6389 | ||
6390 | wxPyEndAllowThreads(__tstate); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | Py_INCREF(Py_None); resultobj = Py_None; | |
6394 | return resultobj; | |
6395 | fail: | |
6396 | return NULL; | |
6397 | } | |
6398 | ||
6399 | ||
6400 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6401 | PyObject *resultobj; | |
6402 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6403 | int result; | |
6404 | PyObject * obj0 = 0 ; | |
6405 | char *kwnames[] = { | |
6406 | (char *) "self", NULL | |
6407 | }; | |
6408 | ||
6409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6415 | ||
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) SWIG_fail; | |
6418 | } | |
6419 | resultobj = SWIG_FromInt((int)result); | |
6420 | return resultobj; | |
6421 | fail: | |
6422 | return NULL; | |
6423 | } | |
6424 | ||
6425 | ||
6426 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject *resultobj; | |
6428 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6429 | int arg2 ; | |
6430 | int arg3 ; | |
6431 | int arg4 = (int) 5 ; | |
6432 | bool result; | |
6433 | PyObject * obj0 = 0 ; | |
6434 | PyObject * obj1 = 0 ; | |
6435 | PyObject * obj2 = 0 ; | |
6436 | PyObject * obj3 = 0 ; | |
6437 | char *kwnames[] = { | |
6438 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6439 | }; | |
6440 | ||
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6444 | arg2 = (int) SWIG_AsInt(obj1); | |
6445 | if (PyErr_Occurred()) SWIG_fail; | |
6446 | arg3 = (int) SWIG_AsInt(obj2); | |
6447 | if (PyErr_Occurred()) SWIG_fail; | |
6448 | if (obj3) { | |
6449 | arg4 = (int) SWIG_AsInt(obj3); | |
6450 | if (PyErr_Occurred()) SWIG_fail; | |
6451 | } | |
6452 | { | |
6453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6454 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6455 | ||
6456 | wxPyEndAllowThreads(__tstate); | |
6457 | if (PyErr_Occurred()) SWIG_fail; | |
6458 | } | |
6459 | { | |
6460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6461 | } | |
6462 | return resultobj; | |
6463 | fail: | |
6464 | return NULL; | |
6465 | } | |
6466 | ||
6467 | ||
6468 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6469 | PyObject *resultobj; | |
6470 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6471 | PyObject * obj0 = 0 ; | |
6472 | char *kwnames[] = { | |
6473 | (char *) "self", NULL | |
6474 | }; | |
6475 | ||
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6479 | { | |
6480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6481 | (arg1)->SizeWindows(); | |
6482 | ||
6483 | wxPyEndAllowThreads(__tstate); | |
6484 | if (PyErr_Occurred()) SWIG_fail; | |
6485 | } | |
6486 | Py_INCREF(Py_None); resultobj = Py_None; | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | return NULL; | |
6490 | } | |
6491 | ||
6492 | ||
6493 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6494 | PyObject *resultobj; | |
6495 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6496 | bool arg2 ; | |
6497 | PyObject * obj0 = 0 ; | |
6498 | PyObject * obj1 = 0 ; | |
6499 | char *kwnames[] = { | |
6500 | (char *) "self",(char *) "needUpdating", NULL | |
6501 | }; | |
6502 | ||
6503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6506 | arg2 = (bool) SWIG_AsBool(obj1); | |
6507 | if (PyErr_Occurred()) SWIG_fail; | |
6508 | { | |
6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6510 | (arg1)->SetNeedUpdating(arg2); | |
6511 | ||
6512 | wxPyEndAllowThreads(__tstate); | |
6513 | if (PyErr_Occurred()) SWIG_fail; | |
6514 | } | |
6515 | Py_INCREF(Py_None); resultobj = Py_None; | |
6516 | return resultobj; | |
6517 | fail: | |
6518 | return NULL; | |
6519 | } | |
6520 | ||
6521 | ||
6522 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6523 | PyObject *resultobj; | |
6524 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6525 | bool result; | |
6526 | PyObject * obj0 = 0 ; | |
6527 | char *kwnames[] = { | |
6528 | (char *) "self", NULL | |
6529 | }; | |
6530 | ||
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6534 | { | |
6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6536 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6537 | ||
6538 | wxPyEndAllowThreads(__tstate); | |
6539 | if (PyErr_Occurred()) SWIG_fail; | |
6540 | } | |
6541 | { | |
6542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6543 | } | |
6544 | return resultobj; | |
6545 | fail: | |
6546 | return NULL; | |
6547 | } | |
6548 | ||
6549 | ||
f20a2e1f RD |
6550 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6551 | PyObject *resultobj; | |
6552 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6553 | wxVisualAttributes result; | |
6554 | PyObject * obj0 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "variant", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6560 | if (obj0) { | |
6561 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6562 | if (PyErr_Occurred()) SWIG_fail; | |
6563 | } | |
6564 | { | |
0439c23b | 6565 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6567 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6568 | ||
6569 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6570 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6571 | } |
6572 | { | |
6573 | wxVisualAttributes * resultptr; | |
6574 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6576 | } | |
6577 | return resultobj; | |
6578 | fail: | |
6579 | return NULL; | |
6580 | } | |
6581 | ||
6582 | ||
d55e5bfc RD |
6583 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { |
6584 | PyObject *obj; | |
6585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6586 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6587 | Py_INCREF(obj); | |
6588 | return Py_BuildValue((char *)""); | |
6589 | } | |
6590 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6591 | PyObject *resultobj; | |
6592 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6593 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6594 | wxSplitterEvent *result; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | PyObject * obj1 = 0 ; | |
6597 | char *kwnames[] = { | |
6598 | (char *) "type",(char *) "splitter", NULL | |
6599 | }; | |
6600 | ||
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6602 | if (obj0) { | |
6603 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6604 | if (PyErr_Occurred()) SWIG_fail; | |
6605 | } | |
6606 | if (obj1) { | |
6607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6609 | } | |
6610 | { | |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6613 | ||
6614 | wxPyEndAllowThreads(__tstate); | |
6615 | if (PyErr_Occurred()) SWIG_fail; | |
6616 | } | |
6617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6618 | return resultobj; | |
6619 | fail: | |
6620 | return NULL; | |
6621 | } | |
6622 | ||
6623 | ||
6624 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6625 | PyObject *resultobj; | |
6626 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6627 | int arg2 ; | |
6628 | PyObject * obj0 = 0 ; | |
6629 | PyObject * obj1 = 0 ; | |
6630 | char *kwnames[] = { | |
6631 | (char *) "self",(char *) "pos", NULL | |
6632 | }; | |
6633 | ||
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6637 | arg2 = (int) SWIG_AsInt(obj1); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | { | |
6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6641 | (arg1)->SetSashPosition(arg2); | |
6642 | ||
6643 | wxPyEndAllowThreads(__tstate); | |
6644 | if (PyErr_Occurred()) SWIG_fail; | |
6645 | } | |
6646 | Py_INCREF(Py_None); resultobj = Py_None; | |
6647 | return resultobj; | |
6648 | fail: | |
6649 | return NULL; | |
6650 | } | |
6651 | ||
6652 | ||
6653 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6654 | PyObject *resultobj; | |
6655 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6656 | int result; | |
6657 | PyObject * obj0 = 0 ; | |
6658 | char *kwnames[] = { | |
6659 | (char *) "self", NULL | |
6660 | }; | |
6661 | ||
6662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6665 | { | |
6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6667 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6668 | ||
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) SWIG_fail; | |
6671 | } | |
6672 | resultobj = SWIG_FromInt((int)result); | |
6673 | return resultobj; | |
6674 | fail: | |
6675 | return NULL; | |
6676 | } | |
6677 | ||
6678 | ||
6679 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6680 | PyObject *resultobj; | |
6681 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6682 | wxWindow *result; | |
6683 | PyObject * obj0 = 0 ; | |
6684 | char *kwnames[] = { | |
6685 | (char *) "self", NULL | |
6686 | }; | |
6687 | ||
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6691 | { | |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6694 | ||
6695 | wxPyEndAllowThreads(__tstate); | |
6696 | if (PyErr_Occurred()) SWIG_fail; | |
6697 | } | |
6698 | { | |
412d302d | 6699 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
6700 | } |
6701 | return resultobj; | |
6702 | fail: | |
6703 | return NULL; | |
6704 | } | |
6705 | ||
6706 | ||
6707 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6708 | PyObject *resultobj; | |
6709 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6710 | int result; | |
6711 | PyObject * obj0 = 0 ; | |
6712 | char *kwnames[] = { | |
6713 | (char *) "self", NULL | |
6714 | }; | |
6715 | ||
6716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6719 | { | |
6720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6721 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6722 | ||
6723 | wxPyEndAllowThreads(__tstate); | |
6724 | if (PyErr_Occurred()) SWIG_fail; | |
6725 | } | |
6726 | resultobj = SWIG_FromInt((int)result); | |
6727 | return resultobj; | |
6728 | fail: | |
6729 | return NULL; | |
6730 | } | |
6731 | ||
6732 | ||
6733 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6734 | PyObject *resultobj; | |
6735 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6736 | int result; | |
6737 | PyObject * obj0 = 0 ; | |
6738 | char *kwnames[] = { | |
6739 | (char *) "self", NULL | |
6740 | }; | |
6741 | ||
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | resultobj = SWIG_FromInt((int)result); | |
6753 | return resultobj; | |
6754 | fail: | |
6755 | return NULL; | |
6756 | } | |
6757 | ||
6758 | ||
6759 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6760 | PyObject *obj; | |
6761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6762 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6763 | Py_INCREF(obj); | |
6764 | return Py_BuildValue((char *)""); | |
6765 | } | |
6766 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6767 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6768 | return 1; | |
6769 | } | |
6770 | ||
6771 | ||
6772 | static PyObject *_wrap_SashNameStr_get() { | |
6773 | PyObject *pyobj; | |
6774 | ||
6775 | { | |
6776 | #if wxUSE_UNICODE | |
6777 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6778 | #else | |
6779 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6780 | #endif | |
6781 | } | |
6782 | return pyobj; | |
6783 | } | |
6784 | ||
6785 | ||
6786 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6787 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6788 | return 1; | |
6789 | } | |
6790 | ||
6791 | ||
6792 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6793 | PyObject *pyobj; | |
6794 | ||
6795 | { | |
6796 | #if wxUSE_UNICODE | |
6797 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6798 | #else | |
6799 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6800 | #endif | |
6801 | } | |
6802 | return pyobj; | |
6803 | } | |
6804 | ||
6805 | ||
6806 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6807 | PyObject *resultobj; | |
6808 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6809 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6810 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6811 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6812 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6813 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6814 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6815 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6816 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6817 | wxSashWindow *result; | |
6818 | wxPoint temp3 ; | |
6819 | wxSize temp4 ; | |
6820 | bool temp6 = False ; | |
6821 | PyObject * obj0 = 0 ; | |
6822 | PyObject * obj1 = 0 ; | |
6823 | PyObject * obj2 = 0 ; | |
6824 | PyObject * obj3 = 0 ; | |
6825 | PyObject * obj4 = 0 ; | |
6826 | PyObject * obj5 = 0 ; | |
6827 | char *kwnames[] = { | |
6828 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6829 | }; | |
6830 | ||
248ed943 | 6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
6832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6834 | if (obj1) { |
6835 | arg2 = (int) SWIG_AsInt(obj1); | |
6836 | if (PyErr_Occurred()) SWIG_fail; | |
6837 | } | |
d55e5bfc RD |
6838 | if (obj2) { |
6839 | { | |
6840 | arg3 = &temp3; | |
6841 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6842 | } | |
6843 | } | |
6844 | if (obj3) { | |
6845 | { | |
6846 | arg4 = &temp4; | |
6847 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6848 | } | |
6849 | } | |
6850 | if (obj4) { | |
6851 | arg5 = (long) SWIG_AsLong(obj4); | |
6852 | if (PyErr_Occurred()) SWIG_fail; | |
6853 | } | |
6854 | if (obj5) { | |
6855 | { | |
6856 | arg6 = wxString_in_helper(obj5); | |
6857 | if (arg6 == NULL) SWIG_fail; | |
6858 | temp6 = True; | |
6859 | } | |
6860 | } | |
6861 | { | |
0439c23b | 6862 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6864 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6865 | ||
6866 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6867 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6868 | } |
6869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6870 | { | |
6871 | if (temp6) | |
6872 | delete arg6; | |
6873 | } | |
6874 | return resultobj; | |
6875 | fail: | |
6876 | { | |
6877 | if (temp6) | |
6878 | delete arg6; | |
6879 | } | |
6880 | return NULL; | |
6881 | } | |
6882 | ||
6883 | ||
6884 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6885 | PyObject *resultobj; | |
6886 | wxSashWindow *result; | |
6887 | char *kwnames[] = { | |
6888 | NULL | |
6889 | }; | |
6890 | ||
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6892 | { | |
0439c23b | 6893 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6895 | result = (wxSashWindow *)new wxSashWindow(); | |
6896 | ||
6897 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6898 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6899 | } |
6900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6901 | return resultobj; | |
6902 | fail: | |
6903 | return NULL; | |
6904 | } | |
6905 | ||
6906 | ||
6907 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject *resultobj; | |
6909 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6911 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6912 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6913 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6914 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6915 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6916 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6917 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6918 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6919 | bool result; | |
6920 | wxPoint temp4 ; | |
6921 | wxSize temp5 ; | |
6922 | bool temp7 = False ; | |
6923 | PyObject * obj0 = 0 ; | |
6924 | PyObject * obj1 = 0 ; | |
6925 | PyObject * obj2 = 0 ; | |
6926 | PyObject * obj3 = 0 ; | |
6927 | PyObject * obj4 = 0 ; | |
6928 | PyObject * obj5 = 0 ; | |
6929 | PyObject * obj6 = 0 ; | |
6930 | char *kwnames[] = { | |
6931 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6932 | }; | |
6933 | ||
248ed943 | 6934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
6935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, |
6936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6939 | if (obj2) { |
6940 | arg3 = (int) SWIG_AsInt(obj2); | |
6941 | if (PyErr_Occurred()) SWIG_fail; | |
6942 | } | |
d55e5bfc RD |
6943 | if (obj3) { |
6944 | { | |
6945 | arg4 = &temp4; | |
6946 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6947 | } | |
6948 | } | |
6949 | if (obj4) { | |
6950 | { | |
6951 | arg5 = &temp5; | |
6952 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6953 | } | |
6954 | } | |
6955 | if (obj5) { | |
6956 | arg6 = (long) SWIG_AsLong(obj5); | |
6957 | if (PyErr_Occurred()) SWIG_fail; | |
6958 | } | |
6959 | if (obj6) { | |
6960 | { | |
6961 | arg7 = wxString_in_helper(obj6); | |
6962 | if (arg7 == NULL) SWIG_fail; | |
6963 | temp7 = True; | |
6964 | } | |
6965 | } | |
6966 | { | |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6968 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6969 | ||
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
6973 | { | |
6974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6975 | } | |
6976 | { | |
6977 | if (temp7) | |
6978 | delete arg7; | |
6979 | } | |
6980 | return resultobj; | |
6981 | fail: | |
6982 | { | |
6983 | if (temp7) | |
6984 | delete arg7; | |
6985 | } | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6993 | int arg2 ; | |
6994 | bool arg3 ; | |
6995 | PyObject * obj0 = 0 ; | |
6996 | PyObject * obj1 = 0 ; | |
6997 | PyObject * obj2 = 0 ; | |
6998 | char *kwnames[] = { | |
6999 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
7000 | }; | |
7001 | ||
7002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7005 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7006 | if (PyErr_Occurred()) SWIG_fail; | |
7007 | arg3 = (bool) SWIG_AsBool(obj2); | |
7008 | if (PyErr_Occurred()) SWIG_fail; | |
7009 | { | |
7010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7011 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
7012 | ||
7013 | wxPyEndAllowThreads(__tstate); | |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
7015 | } | |
7016 | Py_INCREF(Py_None); resultobj = Py_None; | |
7017 | return resultobj; | |
7018 | fail: | |
7019 | return NULL; | |
7020 | } | |
7021 | ||
7022 | ||
7023 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7024 | PyObject *resultobj; | |
7025 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7026 | int arg2 ; | |
7027 | bool result; | |
7028 | PyObject * obj0 = 0 ; | |
7029 | PyObject * obj1 = 0 ; | |
7030 | char *kwnames[] = { | |
7031 | (char *) "self",(char *) "edge", NULL | |
7032 | }; | |
7033 | ||
7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
7035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7037 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | { | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7048 | } | |
7049 | return resultobj; | |
7050 | fail: | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
7055 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7056 | PyObject *resultobj; | |
7057 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7058 | int arg2 ; | |
7059 | bool arg3 ; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | PyObject * obj1 = 0 ; | |
7062 | PyObject * obj2 = 0 ; | |
7063 | char *kwnames[] = { | |
7064 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
7065 | }; | |
7066 | ||
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7070 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | arg3 = (bool) SWIG_AsBool(obj2); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
7074 | { | |
7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7076 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
7077 | ||
7078 | wxPyEndAllowThreads(__tstate); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | } | |
7081 | Py_INCREF(Py_None); resultobj = Py_None; | |
7082 | return resultobj; | |
7083 | fail: | |
7084 | return NULL; | |
7085 | } | |
7086 | ||
7087 | ||
7088 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7089 | PyObject *resultobj; | |
7090 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7091 | int arg2 ; | |
7092 | bool result; | |
7093 | PyObject * obj0 = 0 ; | |
7094 | PyObject * obj1 = 0 ; | |
7095 | char *kwnames[] = { | |
7096 | (char *) "self",(char *) "edge", NULL | |
7097 | }; | |
7098 | ||
7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
7100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7102 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | { | |
7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7106 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
7107 | ||
7108 | wxPyEndAllowThreads(__tstate); | |
7109 | if (PyErr_Occurred()) SWIG_fail; | |
7110 | } | |
7111 | { | |
7112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7113 | } | |
7114 | return resultobj; | |
7115 | fail: | |
7116 | return NULL; | |
7117 | } | |
7118 | ||
7119 | ||
7120 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7121 | PyObject *resultobj; | |
7122 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7123 | int arg2 ; | |
7124 | int result; | |
7125 | PyObject * obj0 = 0 ; | |
7126 | PyObject * obj1 = 0 ; | |
7127 | char *kwnames[] = { | |
7128 | (char *) "self",(char *) "edge", NULL | |
7129 | }; | |
7130 | ||
7131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7134 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | { | |
7137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7138 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7139 | ||
7140 | wxPyEndAllowThreads(__tstate); | |
7141 | if (PyErr_Occurred()) SWIG_fail; | |
7142 | } | |
7143 | resultobj = SWIG_FromInt((int)result); | |
7144 | return resultobj; | |
7145 | fail: | |
7146 | return NULL; | |
7147 | } | |
7148 | ||
7149 | ||
7150 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7151 | PyObject *resultobj; | |
7152 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7153 | int arg2 ; | |
7154 | PyObject * obj0 = 0 ; | |
7155 | PyObject * obj1 = 0 ; | |
7156 | char *kwnames[] = { | |
7157 | (char *) "self",(char *) "width", NULL | |
7158 | }; | |
7159 | ||
7160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7163 | arg2 = (int) SWIG_AsInt(obj1); | |
7164 | if (PyErr_Occurred()) SWIG_fail; | |
7165 | { | |
7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7167 | (arg1)->SetDefaultBorderSize(arg2); | |
7168 | ||
7169 | wxPyEndAllowThreads(__tstate); | |
7170 | if (PyErr_Occurred()) SWIG_fail; | |
7171 | } | |
7172 | Py_INCREF(Py_None); resultobj = Py_None; | |
7173 | return resultobj; | |
7174 | fail: | |
7175 | return NULL; | |
7176 | } | |
7177 | ||
7178 | ||
7179 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7180 | PyObject *resultobj; | |
7181 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7182 | int result; | |
7183 | PyObject * obj0 = 0 ; | |
7184 | char *kwnames[] = { | |
7185 | (char *) "self", NULL | |
7186 | }; | |
7187 | ||
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7191 | { | |
7192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7193 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7194 | ||
7195 | wxPyEndAllowThreads(__tstate); | |
7196 | if (PyErr_Occurred()) SWIG_fail; | |
7197 | } | |
7198 | resultobj = SWIG_FromInt((int)result); | |
7199 | return resultobj; | |
7200 | fail: | |
7201 | return NULL; | |
7202 | } | |
7203 | ||
7204 | ||
7205 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7206 | PyObject *resultobj; | |
7207 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7208 | int arg2 ; | |
7209 | PyObject * obj0 = 0 ; | |
7210 | PyObject * obj1 = 0 ; | |
7211 | char *kwnames[] = { | |
7212 | (char *) "self",(char *) "width", NULL | |
7213 | }; | |
7214 | ||
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7218 | arg2 = (int) SWIG_AsInt(obj1); | |
7219 | if (PyErr_Occurred()) SWIG_fail; | |
7220 | { | |
7221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7222 | (arg1)->SetExtraBorderSize(arg2); | |
7223 | ||
7224 | wxPyEndAllowThreads(__tstate); | |
7225 | if (PyErr_Occurred()) SWIG_fail; | |
7226 | } | |
7227 | Py_INCREF(Py_None); resultobj = Py_None; | |
7228 | return resultobj; | |
7229 | fail: | |
7230 | return NULL; | |
7231 | } | |
7232 | ||
7233 | ||
7234 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7235 | PyObject *resultobj; | |
7236 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7237 | int result; | |
7238 | PyObject * obj0 = 0 ; | |
7239 | char *kwnames[] = { | |
7240 | (char *) "self", NULL | |
7241 | }; | |
7242 | ||
7243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7246 | { | |
7247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7248 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7249 | ||
7250 | wxPyEndAllowThreads(__tstate); | |
7251 | if (PyErr_Occurred()) SWIG_fail; | |
7252 | } | |
7253 | resultobj = SWIG_FromInt((int)result); | |
7254 | return resultobj; | |
7255 | fail: | |
7256 | return NULL; | |
7257 | } | |
7258 | ||
7259 | ||
7260 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7261 | PyObject *resultobj; | |
7262 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7263 | int arg2 ; | |
7264 | PyObject * obj0 = 0 ; | |
7265 | PyObject * obj1 = 0 ; | |
7266 | char *kwnames[] = { | |
7267 | (char *) "self",(char *) "min", NULL | |
7268 | }; | |
7269 | ||
7270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7273 | arg2 = (int) SWIG_AsInt(obj1); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | { | |
7276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7277 | (arg1)->SetMinimumSizeX(arg2); | |
7278 | ||
7279 | wxPyEndAllowThreads(__tstate); | |
7280 | if (PyErr_Occurred()) SWIG_fail; | |
7281 | } | |
7282 | Py_INCREF(Py_None); resultobj = Py_None; | |
7283 | return resultobj; | |
7284 | fail: | |
7285 | return NULL; | |
7286 | } | |
7287 | ||
7288 | ||
7289 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7290 | PyObject *resultobj; | |
7291 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7292 | int arg2 ; | |
7293 | PyObject * obj0 = 0 ; | |
7294 | PyObject * obj1 = 0 ; | |
7295 | char *kwnames[] = { | |
7296 | (char *) "self",(char *) "min", NULL | |
7297 | }; | |
7298 | ||
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7302 | arg2 = (int) SWIG_AsInt(obj1); | |
7303 | if (PyErr_Occurred()) SWIG_fail; | |
7304 | { | |
7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7306 | (arg1)->SetMinimumSizeY(arg2); | |
7307 | ||
7308 | wxPyEndAllowThreads(__tstate); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | Py_INCREF(Py_None); resultobj = Py_None; | |
7312 | return resultobj; | |
7313 | fail: | |
7314 | return NULL; | |
7315 | } | |
7316 | ||
7317 | ||
7318 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7319 | PyObject *resultobj; | |
7320 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7321 | int result; | |
7322 | PyObject * obj0 = 0 ; | |
7323 | char *kwnames[] = { | |
7324 | (char *) "self", NULL | |
7325 | }; | |
7326 | ||
7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7330 | { | |
7331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7332 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7333 | ||
7334 | wxPyEndAllowThreads(__tstate); | |
7335 | if (PyErr_Occurred()) SWIG_fail; | |
7336 | } | |
7337 | resultobj = SWIG_FromInt((int)result); | |
7338 | return resultobj; | |
7339 | fail: | |
7340 | return NULL; | |
7341 | } | |
7342 | ||
7343 | ||
7344 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7345 | PyObject *resultobj; | |
7346 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7347 | int result; | |
7348 | PyObject * obj0 = 0 ; | |
7349 | char *kwnames[] = { | |
7350 | (char *) "self", NULL | |
7351 | }; | |
7352 | ||
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7356 | { | |
7357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7358 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7359 | ||
7360 | wxPyEndAllowThreads(__tstate); | |
7361 | if (PyErr_Occurred()) SWIG_fail; | |
7362 | } | |
7363 | resultobj = SWIG_FromInt((int)result); | |
7364 | return resultobj; | |
7365 | fail: | |
7366 | return NULL; | |
7367 | } | |
7368 | ||
7369 | ||
7370 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7371 | PyObject *resultobj; | |
7372 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7373 | int arg2 ; | |
7374 | PyObject * obj0 = 0 ; | |
7375 | PyObject * obj1 = 0 ; | |
7376 | char *kwnames[] = { | |
7377 | (char *) "self",(char *) "max", NULL | |
7378 | }; | |
7379 | ||
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7383 | arg2 = (int) SWIG_AsInt(obj1); | |
7384 | if (PyErr_Occurred()) SWIG_fail; | |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | (arg1)->SetMaximumSizeX(arg2); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
7392 | Py_INCREF(Py_None); resultobj = Py_None; | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
7399 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7402 | int arg2 ; | |
7403 | PyObject * obj0 = 0 ; | |
7404 | PyObject * obj1 = 0 ; | |
7405 | char *kwnames[] = { | |
7406 | (char *) "self",(char *) "max", NULL | |
7407 | }; | |
7408 | ||
7409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7412 | arg2 = (int) SWIG_AsInt(obj1); | |
7413 | if (PyErr_Occurred()) SWIG_fail; | |
7414 | { | |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | (arg1)->SetMaximumSizeY(arg2); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | Py_INCREF(Py_None); resultobj = Py_None; | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
7428 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7429 | PyObject *resultobj; | |
7430 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7431 | int result; | |
7432 | PyObject * obj0 = 0 ; | |
7433 | char *kwnames[] = { | |
7434 | (char *) "self", NULL | |
7435 | }; | |
7436 | ||
7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7440 | { | |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
7447 | resultobj = SWIG_FromInt((int)result); | |
7448 | return resultobj; | |
7449 | fail: | |
7450 | return NULL; | |
7451 | } | |
7452 | ||
7453 | ||
7454 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7455 | PyObject *resultobj; | |
7456 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7457 | int result; | |
7458 | PyObject * obj0 = 0 ; | |
7459 | char *kwnames[] = { | |
7460 | (char *) "self", NULL | |
7461 | }; | |
7462 | ||
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7466 | { | |
7467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7468 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7469 | ||
7470 | wxPyEndAllowThreads(__tstate); | |
7471 | if (PyErr_Occurred()) SWIG_fail; | |
7472 | } | |
7473 | resultobj = SWIG_FromInt((int)result); | |
7474 | return resultobj; | |
7475 | fail: | |
7476 | return NULL; | |
7477 | } | |
7478 | ||
7479 | ||
7480 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7481 | PyObject *resultobj; | |
7482 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7483 | int arg2 ; | |
7484 | int arg3 ; | |
7485 | int arg4 = (int) 2 ; | |
7486 | int result; | |
7487 | PyObject * obj0 = 0 ; | |
7488 | PyObject * obj1 = 0 ; | |
7489 | PyObject * obj2 = 0 ; | |
7490 | PyObject * obj3 = 0 ; | |
7491 | char *kwnames[] = { | |
7492 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7493 | }; | |
7494 | ||
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7498 | arg2 = (int) SWIG_AsInt(obj1); | |
7499 | if (PyErr_Occurred()) SWIG_fail; | |
7500 | arg3 = (int) SWIG_AsInt(obj2); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | if (obj3) { | |
7503 | arg4 = (int) SWIG_AsInt(obj3); | |
7504 | if (PyErr_Occurred()) SWIG_fail; | |
7505 | } | |
7506 | { | |
7507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7508 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7509 | ||
7510 | wxPyEndAllowThreads(__tstate); | |
7511 | if (PyErr_Occurred()) SWIG_fail; | |
7512 | } | |
7513 | resultobj = SWIG_FromInt((int)result); | |
7514 | return resultobj; | |
7515 | fail: | |
7516 | return NULL; | |
7517 | } | |
7518 | ||
7519 | ||
7520 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7521 | PyObject *resultobj; | |
7522 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7523 | PyObject * obj0 = 0 ; | |
7524 | char *kwnames[] = { | |
7525 | (char *) "self", NULL | |
7526 | }; | |
7527 | ||
7528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7531 | { | |
7532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7533 | (arg1)->SizeWindows(); | |
7534 | ||
7535 | wxPyEndAllowThreads(__tstate); | |
7536 | if (PyErr_Occurred()) SWIG_fail; | |
7537 | } | |
7538 | Py_INCREF(Py_None); resultobj = Py_None; | |
7539 | return resultobj; | |
7540 | fail: | |
7541 | return NULL; | |
7542 | } | |
7543 | ||
7544 | ||
7545 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7546 | PyObject *obj; | |
7547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7548 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7549 | Py_INCREF(obj); | |
7550 | return Py_BuildValue((char *)""); | |
7551 | } | |
7552 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject *resultobj; | |
7554 | int arg1 = (int) 0 ; | |
7555 | int arg2 = (int) wxSASH_NONE ; | |
7556 | wxSashEvent *result; | |
7557 | PyObject * obj0 = 0 ; | |
7558 | PyObject * obj1 = 0 ; | |
7559 | char *kwnames[] = { | |
7560 | (char *) "id",(char *) "edge", NULL | |
7561 | }; | |
7562 | ||
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7564 | if (obj0) { | |
7565 | arg1 = (int) SWIG_AsInt(obj0); | |
7566 | if (PyErr_Occurred()) SWIG_fail; | |
7567 | } | |
7568 | if (obj1) { | |
7569 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | { | |
7573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7574 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7575 | ||
7576 | wxPyEndAllowThreads(__tstate); | |
7577 | if (PyErr_Occurred()) SWIG_fail; | |
7578 | } | |
7579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7580 | return resultobj; | |
7581 | fail: | |
7582 | return NULL; | |
7583 | } | |
7584 | ||
7585 | ||
7586 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7587 | PyObject *resultobj; | |
7588 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7589 | int arg2 ; | |
7590 | PyObject * obj0 = 0 ; | |
7591 | PyObject * obj1 = 0 ; | |
7592 | char *kwnames[] = { | |
7593 | (char *) "self",(char *) "edge", NULL | |
7594 | }; | |
7595 | ||
7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7599 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | { | |
7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7603 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7604 | ||
7605 | wxPyEndAllowThreads(__tstate); | |
7606 | if (PyErr_Occurred()) SWIG_fail; | |
7607 | } | |
7608 | Py_INCREF(Py_None); resultobj = Py_None; | |
7609 | return resultobj; | |
7610 | fail: | |
7611 | return NULL; | |
7612 | } | |
7613 | ||
7614 | ||
7615 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject *resultobj; | |
7617 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7618 | int result; | |
7619 | PyObject * obj0 = 0 ; | |
7620 | char *kwnames[] = { | |
7621 | (char *) "self", NULL | |
7622 | }; | |
7623 | ||
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7627 | { | |
7628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7629 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7630 | ||
7631 | wxPyEndAllowThreads(__tstate); | |
7632 | if (PyErr_Occurred()) SWIG_fail; | |
7633 | } | |
7634 | resultobj = SWIG_FromInt((int)result); | |
7635 | return resultobj; | |
7636 | fail: | |
7637 | return NULL; | |
7638 | } | |
7639 | ||
7640 | ||
7641 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7642 | PyObject *resultobj; | |
7643 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7644 | wxRect *arg2 = 0 ; | |
7645 | wxRect temp2 ; | |
7646 | PyObject * obj0 = 0 ; | |
7647 | PyObject * obj1 = 0 ; | |
7648 | char *kwnames[] = { | |
7649 | (char *) "self",(char *) "rect", NULL | |
7650 | }; | |
7651 | ||
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7655 | { | |
7656 | arg2 = &temp2; | |
7657 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7658 | } | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | Py_INCREF(Py_None); resultobj = Py_None; | |
7667 | return resultobj; | |
7668 | fail: | |
7669 | return NULL; | |
7670 | } | |
7671 | ||
7672 | ||
7673 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7674 | PyObject *resultobj; | |
7675 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7676 | wxRect result; | |
7677 | PyObject * obj0 = 0 ; | |
7678 | char *kwnames[] = { | |
7679 | (char *) "self", NULL | |
7680 | }; | |
7681 | ||
7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7685 | { | |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
7691 | } | |
7692 | { | |
7693 | wxRect * resultptr; | |
7694 | resultptr = new wxRect((wxRect &) result); | |
7695 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7696 | } | |
7697 | return resultobj; | |
7698 | fail: | |
7699 | return NULL; | |
7700 | } | |
7701 | ||
7702 | ||
7703 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7704 | PyObject *resultobj; | |
7705 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7706 | int arg2 ; | |
7707 | PyObject * obj0 = 0 ; | |
7708 | PyObject * obj1 = 0 ; | |
7709 | char *kwnames[] = { | |
7710 | (char *) "self",(char *) "status", NULL | |
7711 | }; | |
7712 | ||
7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7716 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | { | |
7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7720 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7721 | ||
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
7725 | Py_INCREF(Py_None); resultobj = Py_None; | |
7726 | return resultobj; | |
7727 | fail: | |
7728 | return NULL; | |
7729 | } | |
7730 | ||
7731 | ||
7732 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7733 | PyObject *resultobj; | |
7734 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7735 | int result; | |
7736 | PyObject * obj0 = 0 ; | |
7737 | char *kwnames[] = { | |
7738 | (char *) "self", NULL | |
7739 | }; | |
7740 | ||
7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7744 | { | |
7745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7746 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7747 | ||
7748 | wxPyEndAllowThreads(__tstate); | |
7749 | if (PyErr_Occurred()) SWIG_fail; | |
7750 | } | |
7751 | resultobj = SWIG_FromInt((int)result); | |
7752 | return resultobj; | |
7753 | fail: | |
7754 | return NULL; | |
7755 | } | |
7756 | ||
7757 | ||
7758 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7759 | PyObject *obj; | |
7760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7761 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7762 | Py_INCREF(obj); | |
7763 | return Py_BuildValue((char *)""); | |
7764 | } | |
7765 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7766 | PyObject *resultobj; | |
7767 | int arg1 = (int) 0 ; | |
7768 | wxQueryLayoutInfoEvent *result; | |
7769 | PyObject * obj0 = 0 ; | |
7770 | char *kwnames[] = { | |
7771 | (char *) "id", NULL | |
7772 | }; | |
7773 | ||
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7775 | if (obj0) { | |
7776 | arg1 = (int) SWIG_AsInt(obj0); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
7793 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7794 | PyObject *resultobj; | |
7795 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7796 | int arg2 ; | |
7797 | PyObject * obj0 = 0 ; | |
7798 | PyObject * obj1 = 0 ; | |
7799 | char *kwnames[] = { | |
7800 | (char *) "self",(char *) "length", NULL | |
7801 | }; | |
7802 | ||
7803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7806 | arg2 = (int) SWIG_AsInt(obj1); | |
7807 | if (PyErr_Occurred()) SWIG_fail; | |
7808 | { | |
7809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7810 | (arg1)->SetRequestedLength(arg2); | |
7811 | ||
7812 | wxPyEndAllowThreads(__tstate); | |
7813 | if (PyErr_Occurred()) SWIG_fail; | |
7814 | } | |
7815 | Py_INCREF(Py_None); resultobj = Py_None; | |
7816 | return resultobj; | |
7817 | fail: | |
7818 | return NULL; | |
7819 | } | |
7820 | ||
7821 | ||
7822 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7823 | PyObject *resultobj; | |
7824 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7825 | int result; | |
7826 | PyObject * obj0 = 0 ; | |
7827 | char *kwnames[] = { | |
7828 | (char *) "self", NULL | |
7829 | }; | |
7830 | ||
7831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7834 | { | |
7835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7836 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7837 | ||
7838 | wxPyEndAllowThreads(__tstate); | |
7839 | if (PyErr_Occurred()) SWIG_fail; | |
7840 | } | |
7841 | resultobj = SWIG_FromInt((int)result); | |
7842 | return resultobj; | |
7843 | fail: | |
7844 | return NULL; | |
7845 | } | |
7846 | ||
7847 | ||
7848 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7849 | PyObject *resultobj; | |
7850 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7851 | int arg2 ; | |
7852 | PyObject * obj0 = 0 ; | |
7853 | PyObject * obj1 = 0 ; | |
7854 | char *kwnames[] = { | |
7855 | (char *) "self",(char *) "flags", NULL | |
7856 | }; | |
7857 | ||
7858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7861 | arg2 = (int) SWIG_AsInt(obj1); | |
7862 | if (PyErr_Occurred()) SWIG_fail; | |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | (arg1)->SetFlags(arg2); | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | Py_INCREF(Py_None); resultobj = Py_None; | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj; | |
7879 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7880 | int result; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | char *kwnames[] = { | |
7883 | (char *) "self", NULL | |
7884 | }; | |
7885 | ||
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7889 | { | |
7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7891 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7892 | ||
7893 | wxPyEndAllowThreads(__tstate); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
7896 | resultobj = SWIG_FromInt((int)result); | |
7897 | return resultobj; | |
7898 | fail: | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
7903 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7904 | PyObject *resultobj; | |
7905 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7906 | wxSize *arg2 = 0 ; | |
7907 | wxSize temp2 ; | |
7908 | PyObject * obj0 = 0 ; | |
7909 | PyObject * obj1 = 0 ; | |
7910 | char *kwnames[] = { | |
7911 | (char *) "self",(char *) "size", NULL | |
7912 | }; | |
7913 | ||
7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7917 | { | |
7918 | arg2 = &temp2; | |
7919 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7920 | } | |
7921 | { | |
7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7923 | (arg1)->SetSize((wxSize const &)*arg2); | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | Py_INCREF(Py_None); resultobj = Py_None; | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | return NULL; | |
7932 | } | |
7933 | ||
7934 | ||
7935 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject *resultobj; | |
7937 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7938 | wxSize result; | |
7939 | PyObject * obj0 = 0 ; | |
7940 | char *kwnames[] = { | |
7941 | (char *) "self", NULL | |
7942 | }; | |
7943 | ||
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7947 | { | |
7948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7949 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7950 | ||
7951 | wxPyEndAllowThreads(__tstate); | |
7952 | if (PyErr_Occurred()) SWIG_fail; | |
7953 | } | |
7954 | { | |
7955 | wxSize * resultptr; | |
7956 | resultptr = new wxSize((wxSize &) result); | |
7957 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7958 | } | |
7959 | return resultobj; | |
7960 | fail: | |
7961 | return NULL; | |
7962 | } | |
7963 | ||
7964 | ||
7965 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7966 | PyObject *resultobj; | |
7967 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7968 | int arg2 ; | |
7969 | PyObject * obj0 = 0 ; | |
7970 | PyObject * obj1 = 0 ; | |
7971 | char *kwnames[] = { | |
7972 | (char *) "self",(char *) "orient", NULL | |
7973 | }; | |
7974 | ||
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
7976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7978 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | { | |
7981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7982 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7983 | ||
7984 | wxPyEndAllowThreads(__tstate); | |
7985 | if (PyErr_Occurred()) SWIG_fail; | |
7986 | } | |
7987 | Py_INCREF(Py_None); resultobj = Py_None; | |
7988 | return resultobj; | |
7989 | fail: | |
7990 | return NULL; | |
7991 | } | |
7992 | ||
7993 | ||
7994 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7995 | PyObject *resultobj; | |
7996 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7997 | int result; | |
7998 | PyObject * obj0 = 0 ; | |
7999 | char *kwnames[] = { | |
8000 | (char *) "self", NULL | |
8001 | }; | |
8002 | ||
8003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
8004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8006 | { | |
8007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8008 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
8009 | ||
8010 | wxPyEndAllowThreads(__tstate); | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | } | |
8013 | resultobj = SWIG_FromInt((int)result); | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8021 | PyObject *resultobj; | |
8022 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8023 | int arg2 ; | |
8024 | PyObject * obj0 = 0 ; | |
8025 | PyObject * obj1 = 0 ; | |
8026 | char *kwnames[] = { | |
8027 | (char *) "self",(char *) "align", NULL | |
8028 | }; | |
8029 | ||
8030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8033 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | { | |
8036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8037 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8038 | ||
8039 | wxPyEndAllowThreads(__tstate); | |
8040 | if (PyErr_Occurred()) SWIG_fail; | |
8041 | } | |
8042 | Py_INCREF(Py_None); resultobj = Py_None; | |
8043 | return resultobj; | |
8044 | fail: | |
8045 | return NULL; | |
8046 | } | |
8047 | ||
8048 | ||
8049 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8050 | PyObject *resultobj; | |
8051 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8052 | int result; | |
8053 | PyObject * obj0 = 0 ; | |
8054 | char *kwnames[] = { | |
8055 | (char *) "self", NULL | |
8056 | }; | |
8057 | ||
8058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
8059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8061 | { | |
8062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8063 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
8064 | ||
8065 | wxPyEndAllowThreads(__tstate); | |
8066 | if (PyErr_Occurred()) SWIG_fail; | |
8067 | } | |
8068 | resultobj = SWIG_FromInt((int)result); | |
8069 | return resultobj; | |
8070 | fail: | |
8071 | return NULL; | |
8072 | } | |
8073 | ||
8074 | ||
8075 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
8076 | PyObject *obj; | |
8077 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8078 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
8079 | Py_INCREF(obj); | |
8080 | return Py_BuildValue((char *)""); | |
8081 | } | |
8082 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8083 | PyObject *resultobj; | |
8084 | int arg1 = (int) 0 ; | |
8085 | wxCalculateLayoutEvent *result; | |
8086 | PyObject * obj0 = 0 ; | |
8087 | char *kwnames[] = { | |
8088 | (char *) "id", NULL | |
8089 | }; | |
8090 | ||
8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
8092 | if (obj0) { | |
8093 | arg1 = (int) SWIG_AsInt(obj0); | |
8094 | if (PyErr_Occurred()) SWIG_fail; | |
8095 | } | |
8096 | { | |
8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8098 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
8099 | ||
8100 | wxPyEndAllowThreads(__tstate); | |
8101 | if (PyErr_Occurred()) SWIG_fail; | |
8102 | } | |
8103 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
8104 | return resultobj; | |
8105 | fail: | |
8106 | return NULL; | |
8107 | } | |
8108 | ||
8109 | ||
8110 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8111 | PyObject *resultobj; | |
8112 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8113 | int arg2 ; | |
8114 | PyObject * obj0 = 0 ; | |
8115 | PyObject * obj1 = 0 ; | |
8116 | char *kwnames[] = { | |
8117 | (char *) "self",(char *) "flags", NULL | |
8118 | }; | |
8119 | ||
8120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8123 | arg2 = (int) SWIG_AsInt(obj1); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | { | |
8126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8127 | (arg1)->SetFlags(arg2); | |
8128 | ||
8129 | wxPyEndAllowThreads(__tstate); | |
8130 | if (PyErr_Occurred()) SWIG_fail; | |
8131 | } | |
8132 | Py_INCREF(Py_None); resultobj = Py_None; | |
8133 | return resultobj; | |
8134 | fail: | |
8135 | return NULL; | |
8136 | } | |
8137 | ||
8138 | ||
8139 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8140 | PyObject *resultobj; | |
8141 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8142 | int result; | |
8143 | PyObject * obj0 = 0 ; | |
8144 | char *kwnames[] = { | |
8145 | (char *) "self", NULL | |
8146 | }; | |
8147 | ||
8148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8151 | { | |
8152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8153 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8154 | ||
8155 | wxPyEndAllowThreads(__tstate); | |
8156 | if (PyErr_Occurred()) SWIG_fail; | |
8157 | } | |
8158 | resultobj = SWIG_FromInt((int)result); | |
8159 | return resultobj; | |
8160 | fail: | |
8161 | return NULL; | |
8162 | } | |
8163 | ||
8164 | ||
8165 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8166 | PyObject *resultobj; | |
8167 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8168 | wxRect *arg2 = 0 ; | |
8169 | wxRect temp2 ; | |
8170 | PyObject * obj0 = 0 ; | |
8171 | PyObject * obj1 = 0 ; | |
8172 | char *kwnames[] = { | |
8173 | (char *) "self",(char *) "rect", NULL | |
8174 | }; | |
8175 | ||
8176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8179 | { | |
8180 | arg2 = &temp2; | |
8181 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8182 | } | |
8183 | { | |
8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8185 | (arg1)->SetRect((wxRect const &)*arg2); | |
8186 | ||
8187 | wxPyEndAllowThreads(__tstate); | |
8188 | if (PyErr_Occurred()) SWIG_fail; | |
8189 | } | |
8190 | Py_INCREF(Py_None); resultobj = Py_None; | |
8191 | return resultobj; | |
8192 | fail: | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
8197 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8200 | wxRect result; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | char *kwnames[] = { | |
8203 | (char *) "self", NULL | |
8204 | }; | |
8205 | ||
8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | { | |
8217 | wxRect * resultptr; | |
8218 | resultptr = new wxRect((wxRect &) result); | |
8219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8220 | } | |
8221 | return resultobj; | |
8222 | fail: | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
8227 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8228 | PyObject *obj; | |
8229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8230 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8231 | Py_INCREF(obj); | |
8232 | return Py_BuildValue((char *)""); | |
8233 | } | |
8234 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8235 | PyObject *resultobj; | |
8236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8237 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8238 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8239 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8240 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8241 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8242 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8243 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8244 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8245 | wxSashLayoutWindow *result; | |
8246 | wxPoint temp3 ; | |
8247 | wxSize temp4 ; | |
8248 | bool temp6 = False ; | |
8249 | PyObject * obj0 = 0 ; | |
8250 | PyObject * obj1 = 0 ; | |
8251 | PyObject * obj2 = 0 ; | |
8252 | PyObject * obj3 = 0 ; | |
8253 | PyObject * obj4 = 0 ; | |
8254 | PyObject * obj5 = 0 ; | |
8255 | char *kwnames[] = { | |
8256 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8257 | }; | |
8258 | ||
248ed943 | 8259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
8260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8262 | if (obj1) { |
8263 | arg2 = (int) SWIG_AsInt(obj1); | |
8264 | if (PyErr_Occurred()) SWIG_fail; | |
8265 | } | |
d55e5bfc RD |
8266 | if (obj2) { |
8267 | { | |
8268 | arg3 = &temp3; | |
8269 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8270 | } | |
8271 | } | |
8272 | if (obj3) { | |
8273 | { | |
8274 | arg4 = &temp4; | |
8275 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8276 | } | |
8277 | } | |
8278 | if (obj4) { | |
8279 | arg5 = (long) SWIG_AsLong(obj4); | |
8280 | if (PyErr_Occurred()) SWIG_fail; | |
8281 | } | |
8282 | if (obj5) { | |
8283 | { | |
8284 | arg6 = wxString_in_helper(obj5); | |
8285 | if (arg6 == NULL) SWIG_fail; | |
8286 | temp6 = True; | |
8287 | } | |
8288 | } | |
8289 | { | |
0439c23b | 8290 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8292 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8293 | ||
8294 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8295 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8296 | } |
8297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8298 | { | |
8299 | if (temp6) | |
8300 | delete arg6; | |
8301 | } | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | { | |
8305 | if (temp6) | |
8306 | delete arg6; | |
8307 | } | |
8308 | return NULL; | |
8309 | } | |
8310 | ||
8311 | ||
8312 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8313 | PyObject *resultobj; | |
8314 | wxSashLayoutWindow *result; | |
8315 | char *kwnames[] = { | |
8316 | NULL | |
8317 | }; | |
8318 | ||
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8320 | { | |
0439c23b | 8321 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8323 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8324 | ||
8325 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8326 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8327 | } |
8328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8329 | return resultobj; | |
8330 | fail: | |
8331 | return NULL; | |
8332 | } | |
8333 | ||
8334 | ||
8335 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8336 | PyObject *resultobj; | |
8337 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8338 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8339 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8340 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8341 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8342 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8343 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8344 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8345 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8346 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8347 | bool result; | |
8348 | wxPoint temp4 ; | |
8349 | wxSize temp5 ; | |
8350 | bool temp7 = False ; | |
8351 | PyObject * obj0 = 0 ; | |
8352 | PyObject * obj1 = 0 ; | |
8353 | PyObject * obj2 = 0 ; | |
8354 | PyObject * obj3 = 0 ; | |
8355 | PyObject * obj4 = 0 ; | |
8356 | PyObject * obj5 = 0 ; | |
8357 | PyObject * obj6 = 0 ; | |
8358 | char *kwnames[] = { | |
8359 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8360 | }; | |
8361 | ||
248ed943 | 8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
8363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, |
8364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8367 | if (obj2) { |
8368 | arg3 = (int) SWIG_AsInt(obj2); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
d55e5bfc RD |
8371 | if (obj3) { |
8372 | { | |
8373 | arg4 = &temp4; | |
8374 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8375 | } | |
8376 | } | |
8377 | if (obj4) { | |
8378 | { | |
8379 | arg5 = &temp5; | |
8380 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8381 | } | |
8382 | } | |
8383 | if (obj5) { | |
8384 | arg6 = (long) SWIG_AsLong(obj5); | |
8385 | if (PyErr_Occurred()) SWIG_fail; | |
8386 | } | |
8387 | if (obj6) { | |
8388 | { | |
8389 | arg7 = wxString_in_helper(obj6); | |
8390 | if (arg7 == NULL) SWIG_fail; | |
8391 | temp7 = True; | |
8392 | } | |
8393 | } | |
8394 | { | |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8396 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8397 | ||
8398 | wxPyEndAllowThreads(__tstate); | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
8401 | { | |
8402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8403 | } | |
8404 | { | |
8405 | if (temp7) | |
8406 | delete arg7; | |
8407 | } | |
8408 | return resultobj; | |
8409 | fail: | |
8410 | { | |
8411 | if (temp7) | |
8412 | delete arg7; | |
8413 | } | |
8414 | return NULL; | |
8415 | } | |
8416 | ||
8417 | ||
8418 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8419 | PyObject *resultobj; | |
8420 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8421 | int result; | |
8422 | PyObject * obj0 = 0 ; | |
8423 | char *kwnames[] = { | |
8424 | (char *) "self", NULL | |
8425 | }; | |
8426 | ||
8427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8430 | { | |
8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8432 | result = (int)(arg1)->GetAlignment(); | |
8433 | ||
8434 | wxPyEndAllowThreads(__tstate); | |
8435 | if (PyErr_Occurred()) SWIG_fail; | |
8436 | } | |
8437 | resultobj = SWIG_FromInt((int)result); | |
8438 | return resultobj; | |
8439 | fail: | |
8440 | return NULL; | |
8441 | } | |
8442 | ||
8443 | ||
8444 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8445 | PyObject *resultobj; | |
8446 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8447 | int result; | |
8448 | PyObject * obj0 = 0 ; | |
8449 | char *kwnames[] = { | |
8450 | (char *) "self", NULL | |
8451 | }; | |
8452 | ||
8453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8456 | { | |
8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8458 | result = (int)(arg1)->GetOrientation(); | |
8459 | ||
8460 | wxPyEndAllowThreads(__tstate); | |
8461 | if (PyErr_Occurred()) SWIG_fail; | |
8462 | } | |
8463 | resultobj = SWIG_FromInt((int)result); | |
8464 | return resultobj; | |
8465 | fail: | |
8466 | return NULL; | |
8467 | } | |
8468 | ||
8469 | ||
8470 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8471 | PyObject *resultobj; | |
8472 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8473 | int arg2 ; | |
8474 | PyObject * obj0 = 0 ; | |
8475 | PyObject * obj1 = 0 ; | |
8476 | char *kwnames[] = { | |
8477 | (char *) "self",(char *) "alignment", NULL | |
8478 | }; | |
8479 | ||
8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8483 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | { | |
8486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8487 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8488 | ||
8489 | wxPyEndAllowThreads(__tstate); | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
8492 | Py_INCREF(Py_None); resultobj = Py_None; | |
8493 | return resultobj; | |
8494 | fail: | |
8495 | return NULL; | |
8496 | } | |
8497 | ||
8498 | ||
8499 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8500 | PyObject *resultobj; | |
8501 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8502 | wxSize *arg2 = 0 ; | |
8503 | wxSize temp2 ; | |
8504 | PyObject * obj0 = 0 ; | |
8505 | PyObject * obj1 = 0 ; | |
8506 | char *kwnames[] = { | |
8507 | (char *) "self",(char *) "size", NULL | |
8508 | }; | |
8509 | ||
8510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8513 | { | |
8514 | arg2 = &temp2; | |
8515 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8516 | } | |
8517 | { | |
8518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8519 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8520 | ||
8521 | wxPyEndAllowThreads(__tstate); | |
8522 | if (PyErr_Occurred()) SWIG_fail; | |
8523 | } | |
8524 | Py_INCREF(Py_None); resultobj = Py_None; | |
8525 | return resultobj; | |
8526 | fail: | |
8527 | return NULL; | |
8528 | } | |
8529 | ||
8530 | ||
8531 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8532 | PyObject *resultobj; | |
8533 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8534 | int arg2 ; | |
8535 | PyObject * obj0 = 0 ; | |
8536 | PyObject * obj1 = 0 ; | |
8537 | char *kwnames[] = { | |
8538 | (char *) "self",(char *) "orientation", NULL | |
8539 | }; | |
8540 | ||
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8544 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
8546 | { | |
8547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8548 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8549 | ||
8550 | wxPyEndAllowThreads(__tstate); | |
8551 | if (PyErr_Occurred()) SWIG_fail; | |
8552 | } | |
8553 | Py_INCREF(Py_None); resultobj = Py_None; | |
8554 | return resultobj; | |
8555 | fail: | |
8556 | return NULL; | |
8557 | } | |
8558 | ||
8559 | ||
8560 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8561 | PyObject *obj; | |
8562 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8563 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8564 | Py_INCREF(obj); | |
8565 | return Py_BuildValue((char *)""); | |
8566 | } | |
8567 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8568 | PyObject *resultobj; | |
8569 | wxLayoutAlgorithm *result; | |
8570 | char *kwnames[] = { | |
8571 | NULL | |
8572 | }; | |
8573 | ||
8574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8575 | { | |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
8582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8583 | return resultobj; | |
8584 | fail: | |
8585 | return NULL; | |
8586 | } | |
8587 | ||
8588 | ||
8589 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj; | |
8591 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8592 | PyObject * obj0 = 0 ; | |
8593 | char *kwnames[] = { | |
8594 | (char *) "self", NULL | |
8595 | }; | |
8596 | ||
8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8600 | { | |
8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8602 | delete arg1; | |
8603 | ||
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) SWIG_fail; | |
8606 | } | |
8607 | Py_INCREF(Py_None); resultobj = Py_None; | |
8608 | return resultobj; | |
8609 | fail: | |
8610 | return NULL; | |
8611 | } | |
8612 | ||
8613 | ||
8614 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject *resultobj; | |
8616 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8617 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8618 | wxRect *arg3 = (wxRect *) NULL ; | |
8619 | bool result; | |
8620 | PyObject * obj0 = 0 ; | |
8621 | PyObject * obj1 = 0 ; | |
8622 | PyObject * obj2 = 0 ; | |
8623 | char *kwnames[] = { | |
8624 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8625 | }; | |
8626 | ||
8627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8632 | if (obj2) { | |
8633 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8635 | } | |
8636 | { | |
8637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8638 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8639 | ||
8640 | wxPyEndAllowThreads(__tstate); | |
8641 | if (PyErr_Occurred()) SWIG_fail; | |
8642 | } | |
8643 | { | |
8644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8645 | } | |
8646 | return resultobj; | |
8647 | fail: | |
8648 | return NULL; | |
8649 | } | |
8650 | ||
8651 | ||
8652 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj; | |
8654 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8655 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8656 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8657 | bool result; | |
8658 | PyObject * obj0 = 0 ; | |
8659 | PyObject * obj1 = 0 ; | |
8660 | PyObject * obj2 = 0 ; | |
8661 | char *kwnames[] = { | |
8662 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8663 | }; | |
8664 | ||
8665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8670 | if (obj2) { | |
8671 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8673 | } | |
8674 | { | |
8675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8676 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8677 | ||
8678 | wxPyEndAllowThreads(__tstate); | |
8679 | if (PyErr_Occurred()) SWIG_fail; | |
8680 | } | |
8681 | { | |
8682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8683 | } | |
8684 | return resultobj; | |
8685 | fail: | |
8686 | return NULL; | |
8687 | } | |
8688 | ||
8689 | ||
8690 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8691 | PyObject *resultobj; | |
8692 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8693 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8694 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8695 | bool result; | |
8696 | PyObject * obj0 = 0 ; | |
8697 | PyObject * obj1 = 0 ; | |
8698 | PyObject * obj2 = 0 ; | |
8699 | char *kwnames[] = { | |
8700 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8701 | }; | |
8702 | ||
8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8708 | if (obj2) { | |
8709 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8711 | } | |
8712 | { | |
8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8714 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8715 | ||
8716 | wxPyEndAllowThreads(__tstate); | |
8717 | if (PyErr_Occurred()) SWIG_fail; | |
8718 | } | |
8719 | { | |
8720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8721 | } | |
8722 | return resultobj; | |
8723 | fail: | |
8724 | return NULL; | |
8725 | } | |
8726 | ||
8727 | ||
8728 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8729 | PyObject *obj; | |
8730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8731 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8732 | Py_INCREF(obj); | |
8733 | return Py_BuildValue((char *)""); | |
8734 | } | |
8735 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8736 | PyObject *resultobj; | |
8737 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8738 | int arg2 = (int) wxBORDER_NONE ; | |
8739 | wxPopupWindow *result; | |
8740 | PyObject * obj0 = 0 ; | |
8741 | PyObject * obj1 = 0 ; | |
8742 | char *kwnames[] = { | |
8743 | (char *) "parent",(char *) "flags", NULL | |
8744 | }; | |
8745 | ||
8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8749 | if (obj1) { | |
8750 | arg2 = (int) SWIG_AsInt(obj1); | |
8751 | if (PyErr_Occurred()) SWIG_fail; | |
8752 | } | |
8753 | { | |
0439c23b | 8754 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8756 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8757 | ||
8758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8759 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8760 | } |
8761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8762 | return resultobj; | |
8763 | fail: | |
8764 | return NULL; | |
8765 | } | |
8766 | ||
8767 | ||
8768 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8769 | PyObject *resultobj; | |
8770 | wxPopupWindow *result; | |
8771 | char *kwnames[] = { | |
8772 | NULL | |
8773 | }; | |
8774 | ||
8775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8776 | { | |
0439c23b | 8777 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8779 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8780 | ||
8781 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8782 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8783 | } |
8784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | return NULL; | |
8788 | } | |
8789 | ||
8790 | ||
8791 | static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8792 | PyObject *resultobj; | |
8793 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8794 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8795 | int arg3 = (int) wxBORDER_NONE ; | |
8796 | bool result; | |
8797 | PyObject * obj0 = 0 ; | |
8798 | PyObject * obj1 = 0 ; | |
8799 | PyObject * obj2 = 0 ; | |
8800 | char *kwnames[] = { | |
8801 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
8802 | }; | |
8803 | ||
8804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8809 | if (obj2) { | |
8810 | arg3 = (int) SWIG_AsInt(obj2); | |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
8812 | } | |
8813 | { | |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | result = (bool)(arg1)->Create(arg2,arg3); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
8820 | { | |
8821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8822 | } | |
8823 | return resultobj; | |
8824 | fail: | |
8825 | return NULL; | |
8826 | } | |
8827 | ||
8828 | ||
8829 | static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8830 | PyObject *resultobj; | |
8831 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8832 | wxPoint *arg2 = 0 ; | |
8833 | wxSize *arg3 = 0 ; | |
8834 | wxPoint temp2 ; | |
8835 | wxSize temp3 ; | |
8836 | PyObject * obj0 = 0 ; | |
8837 | PyObject * obj1 = 0 ; | |
8838 | PyObject * obj2 = 0 ; | |
8839 | char *kwnames[] = { | |
8840 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
8841 | }; | |
8842 | ||
8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8846 | { | |
8847 | arg2 = &temp2; | |
8848 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8849 | } | |
8850 | { | |
8851 | arg3 = &temp3; | |
8852 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
8853 | } | |
8854 | { | |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | Py_INCREF(Py_None); resultobj = Py_None; | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8869 | PyObject *obj; | |
8870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8871 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8872 | Py_INCREF(obj); | |
8873 | return Py_BuildValue((char *)""); | |
8874 | } | |
8875 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8876 | PyObject *resultobj; | |
8877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8878 | int arg2 = (int) wxBORDER_NONE ; | |
8879 | wxPyPopupTransientWindow *result; | |
8880 | PyObject * obj0 = 0 ; | |
8881 | PyObject * obj1 = 0 ; | |
8882 | char *kwnames[] = { | |
8883 | (char *) "parent",(char *) "style", NULL | |
8884 | }; | |
8885 | ||
8886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8889 | if (obj1) { | |
8890 | arg2 = (int) SWIG_AsInt(obj1); | |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
8892 | } | |
8893 | { | |
0439c23b | 8894 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8896 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8897 | ||
8898 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8899 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8900 | } |
8901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8902 | return resultobj; | |
8903 | fail: | |
8904 | return NULL; | |
8905 | } | |
8906 | ||
8907 | ||
8908 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8909 | PyObject *resultobj; | |
8910 | wxPyPopupTransientWindow *result; | |
8911 | char *kwnames[] = { | |
8912 | NULL | |
8913 | }; | |
8914 | ||
8915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8916 | { | |
0439c23b | 8917 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8919 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8920 | ||
8921 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8922 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8923 | } |
8924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8925 | return resultobj; | |
8926 | fail: | |
8927 | return NULL; | |
8928 | } | |
8929 | ||
8930 | ||
8931 | static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8932 | PyObject *resultobj; | |
8933 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8934 | PyObject *arg2 = (PyObject *) 0 ; | |
8935 | PyObject *arg3 = (PyObject *) 0 ; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | PyObject * obj1 = 0 ; | |
8938 | PyObject * obj2 = 0 ; | |
8939 | char *kwnames[] = { | |
8940 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8941 | }; | |
8942 | ||
8943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
8945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8946 | arg2 = obj1; | |
8947 | arg3 = obj2; | |
8948 | { | |
8949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8950 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8951 | ||
8952 | wxPyEndAllowThreads(__tstate); | |
8953 | if (PyErr_Occurred()) SWIG_fail; | |
8954 | } | |
8955 | Py_INCREF(Py_None); resultobj = Py_None; | |
8956 | return resultobj; | |
8957 | fail: | |
8958 | return NULL; | |
8959 | } | |
8960 | ||
8961 | ||
8962 | static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8963 | PyObject *resultobj; | |
8964 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8965 | wxWindow *arg2 = (wxWindow *) NULL ; | |
8966 | PyObject * obj0 = 0 ; | |
8967 | PyObject * obj1 = 0 ; | |
8968 | char *kwnames[] = { | |
8969 | (char *) "self",(char *) "focus", NULL | |
8970 | }; | |
8971 | ||
8972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; | |
8973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
8974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8975 | if (obj1) { | |
8976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8978 | } | |
8979 | { | |
8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8981 | (arg1)->Popup(arg2); | |
8982 | ||
8983 | wxPyEndAllowThreads(__tstate); | |
8984 | if (PyErr_Occurred()) SWIG_fail; | |
8985 | } | |
8986 | Py_INCREF(Py_None); resultobj = Py_None; | |
8987 | return resultobj; | |
8988 | fail: | |
8989 | return NULL; | |
8990 | } | |
8991 | ||
8992 | ||
8993 | static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8994 | PyObject *resultobj; | |
8995 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8996 | PyObject * obj0 = 0 ; | |
8997 | char *kwnames[] = { | |
8998 | (char *) "self", NULL | |
8999 | }; | |
9000 | ||
9001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; | |
9002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
9003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9004 | { | |
9005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9006 | (arg1)->Dismiss(); | |
9007 | ||
9008 | wxPyEndAllowThreads(__tstate); | |
9009 | if (PyErr_Occurred()) SWIG_fail; | |
9010 | } | |
9011 | Py_INCREF(Py_None); resultobj = Py_None; | |
9012 | return resultobj; | |
9013 | fail: | |
9014 | return NULL; | |
9015 | } | |
9016 | ||
9017 | ||
9018 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
9019 | PyObject *obj; | |
9020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9021 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
9022 | Py_INCREF(obj); | |
9023 | return Py_BuildValue((char *)""); | |
9024 | } | |
9025 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9026 | PyObject *resultobj; | |
9027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9028 | wxString *arg2 = 0 ; | |
9029 | int arg3 = (int) 100 ; | |
9030 | wxRect *arg4 = (wxRect *) NULL ; | |
9031 | wxTipWindow *result; | |
9032 | bool temp2 = False ; | |
9033 | PyObject * obj0 = 0 ; | |
9034 | PyObject * obj1 = 0 ; | |
9035 | PyObject * obj2 = 0 ; | |
9036 | PyObject * obj3 = 0 ; | |
9037 | char *kwnames[] = { | |
9038 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
9039 | }; | |
9040 | ||
9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9044 | { | |
9045 | arg2 = wxString_in_helper(obj1); | |
9046 | if (arg2 == NULL) SWIG_fail; | |
9047 | temp2 = True; | |
9048 | } | |
9049 | if (obj2) { | |
9050 | arg3 = (int) SWIG_AsInt(obj2); | |
9051 | if (PyErr_Occurred()) SWIG_fail; | |
9052 | } | |
9053 | if (obj3) { | |
9054 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
9055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9056 | } | |
9057 | { | |
0439c23b | 9058 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9060 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
9061 | ||
9062 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9063 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9064 | } |
9065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
9066 | { | |
9067 | if (temp2) | |
9068 | delete arg2; | |
9069 | } | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | { | |
9073 | if (temp2) | |
9074 | delete arg2; | |
9075 | } | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
9080 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9081 | PyObject *resultobj; | |
9082 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
9083 | wxRect *arg2 = 0 ; | |
9084 | wxRect temp2 ; | |
9085 | PyObject * obj0 = 0 ; | |
9086 | PyObject * obj1 = 0 ; | |
9087 | char *kwnames[] = { | |
9088 | (char *) "self",(char *) "rectBound", NULL | |
9089 | }; | |
9090 | ||
9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
9092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
9093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9094 | { | |
9095 | arg2 = &temp2; | |
9096 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9097 | } | |
9098 | { | |
9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9100 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
9101 | ||
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | Py_INCREF(Py_None); resultobj = Py_None; | |
9106 | return resultobj; | |
9107 | fail: | |
9108 | return NULL; | |
9109 | } | |
9110 | ||
9111 | ||
9112 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9113 | PyObject *resultobj; | |
9114 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
9115 | PyObject * obj0 = 0 ; | |
9116 | char *kwnames[] = { | |
9117 | (char *) "self", NULL | |
9118 | }; | |
9119 | ||
9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
9121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
9122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9123 | { | |
9124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9125 | (arg1)->Close(); | |
9126 | ||
9127 | wxPyEndAllowThreads(__tstate); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | } | |
9130 | Py_INCREF(Py_None); resultobj = Py_None; | |
9131 | return resultobj; | |
9132 | fail: | |
9133 | return NULL; | |
9134 | } | |
9135 | ||
9136 | ||
9137 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
9138 | PyObject *obj; | |
9139 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9140 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
9141 | Py_INCREF(obj); | |
9142 | return Py_BuildValue((char *)""); | |
9143 | } | |
9144 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj; | |
9146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9147 | int arg2 = (int) wxID_ANY ; | |
9148 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9149 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9150 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9151 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9152 | long arg5 = (long) 0 ; | |
9153 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
9154 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9155 | wxPyVScrolledWindow *result; | |
9156 | wxPoint temp3 ; | |
9157 | wxSize temp4 ; | |
9158 | bool temp6 = False ; | |
9159 | PyObject * obj0 = 0 ; | |
9160 | PyObject * obj1 = 0 ; | |
9161 | PyObject * obj2 = 0 ; | |
9162 | PyObject * obj3 = 0 ; | |
9163 | PyObject * obj4 = 0 ; | |
9164 | PyObject * obj5 = 0 ; | |
9165 | char *kwnames[] = { | |
9166 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9167 | }; | |
9168 | ||
9169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9172 | if (obj1) { | |
9173 | arg2 = (int) SWIG_AsInt(obj1); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | if (obj2) { | |
9177 | { | |
9178 | arg3 = &temp3; | |
9179 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9180 | } | |
9181 | } | |
9182 | if (obj3) { | |
9183 | { | |
9184 | arg4 = &temp4; | |
9185 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9186 | } | |
9187 | } | |
9188 | if (obj4) { | |
9189 | arg5 = (long) SWIG_AsLong(obj4); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
9192 | if (obj5) { | |
9193 | { | |
9194 | arg6 = wxString_in_helper(obj5); | |
9195 | if (arg6 == NULL) SWIG_fail; | |
9196 | temp6 = True; | |
9197 | } | |
9198 | } | |
9199 | { | |
0439c23b | 9200 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9202 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9203 | ||
9204 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9205 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9206 | } |
9207 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9208 | { | |
9209 | if (temp6) | |
9210 | delete arg6; | |
9211 | } | |
9212 | return resultobj; | |
9213 | fail: | |
9214 | { | |
9215 | if (temp6) | |
9216 | delete arg6; | |
9217 | } | |
9218 | return NULL; | |
9219 | } | |
9220 | ||
9221 | ||
9222 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9223 | PyObject *resultobj; | |
9224 | wxPyVScrolledWindow *result; | |
9225 | char *kwnames[] = { | |
9226 | NULL | |
9227 | }; | |
9228 | ||
9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
9230 | { | |
0439c23b | 9231 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9233 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
9234 | ||
9235 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9236 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9237 | } |
9238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9239 | return resultobj; | |
9240 | fail: | |
9241 | return NULL; | |
9242 | } | |
9243 | ||
9244 | ||
9245 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9246 | PyObject *resultobj; | |
9247 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9248 | PyObject *arg2 = (PyObject *) 0 ; | |
9249 | PyObject *arg3 = (PyObject *) 0 ; | |
9250 | PyObject * obj0 = 0 ; | |
9251 | PyObject * obj1 = 0 ; | |
9252 | PyObject * obj2 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9260 | arg2 = obj1; | |
9261 | arg3 = obj2; | |
9262 | { | |
9263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9264 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9265 | ||
9266 | wxPyEndAllowThreads(__tstate); | |
9267 | if (PyErr_Occurred()) SWIG_fail; | |
9268 | } | |
9269 | Py_INCREF(Py_None); resultobj = Py_None; | |
9270 | return resultobj; | |
9271 | fail: | |
9272 | return NULL; | |
9273 | } | |
9274 | ||
9275 | ||
9276 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9277 | PyObject *resultobj; | |
9278 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9280 | int arg3 = (int) wxID_ANY ; | |
9281 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9282 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9283 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9284 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9285 | long arg6 = (long) 0 ; | |
9286 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9287 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9288 | bool result; | |
9289 | wxPoint temp4 ; | |
9290 | wxSize temp5 ; | |
9291 | bool temp7 = False ; | |
9292 | PyObject * obj0 = 0 ; | |
9293 | PyObject * obj1 = 0 ; | |
9294 | PyObject * obj2 = 0 ; | |
9295 | PyObject * obj3 = 0 ; | |
9296 | PyObject * obj4 = 0 ; | |
9297 | PyObject * obj5 = 0 ; | |
9298 | PyObject * obj6 = 0 ; | |
9299 | char *kwnames[] = { | |
9300 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9301 | }; | |
9302 | ||
9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9306 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9308 | if (obj2) { | |
9309 | arg3 = (int) SWIG_AsInt(obj2); | |
9310 | if (PyErr_Occurred()) SWIG_fail; | |
9311 | } | |
9312 | if (obj3) { | |
9313 | { | |
9314 | arg4 = &temp4; | |
9315 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9316 | } | |
9317 | } | |
9318 | if (obj4) { | |
9319 | { | |
9320 | arg5 = &temp5; | |
9321 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9322 | } | |
9323 | } | |
9324 | if (obj5) { | |
9325 | arg6 = (long) SWIG_AsLong(obj5); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | if (obj6) { | |
9329 | { | |
9330 | arg7 = wxString_in_helper(obj6); | |
9331 | if (arg7 == NULL) SWIG_fail; | |
9332 | temp7 = True; | |
9333 | } | |
9334 | } | |
9335 | { | |
9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9337 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9338 | ||
9339 | wxPyEndAllowThreads(__tstate); | |
9340 | if (PyErr_Occurred()) SWIG_fail; | |
9341 | } | |
9342 | { | |
9343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9344 | } | |
9345 | { | |
9346 | if (temp7) | |
9347 | delete arg7; | |
9348 | } | |
9349 | return resultobj; | |
9350 | fail: | |
9351 | { | |
9352 | if (temp7) | |
9353 | delete arg7; | |
9354 | } | |
9355 | return NULL; | |
9356 | } | |
9357 | ||
9358 | ||
9359 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject *resultobj; | |
9361 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9362 | size_t arg2 ; | |
9363 | PyObject * obj0 = 0 ; | |
9364 | PyObject * obj1 = 0 ; | |
9365 | char *kwnames[] = { | |
9366 | (char *) "self",(char *) "count", NULL | |
9367 | }; | |
9368 | ||
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9372 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | { | |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | (arg1)->SetLineCount(arg2); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | Py_INCREF(Py_None); resultobj = Py_None; | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj; | |
9390 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9391 | size_t arg2 ; | |
9392 | bool result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | PyObject * obj1 = 0 ; | |
9395 | char *kwnames[] = { | |
9396 | (char *) "self",(char *) "line", NULL | |
9397 | }; | |
9398 | ||
9399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9402 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | { | |
9405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9406 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9407 | ||
9408 | wxPyEndAllowThreads(__tstate); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | { | |
9412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9413 | } | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
9420 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj; | |
9422 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9423 | int arg2 ; | |
9424 | bool result; | |
9425 | PyObject * obj0 = 0 ; | |
9426 | PyObject * obj1 = 0 ; | |
9427 | char *kwnames[] = { | |
9428 | (char *) "self",(char *) "lines", NULL | |
9429 | }; | |
9430 | ||
9431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9434 | arg2 = (int) SWIG_AsInt(obj1); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | { | |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9438 | result = (bool)(arg1)->ScrollLines(arg2); | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | } | |
9443 | { | |
9444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9445 | } | |
9446 | return resultobj; | |
9447 | fail: | |
9448 | return NULL; | |
9449 | } | |
9450 | ||
9451 | ||
9452 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9453 | PyObject *resultobj; | |
9454 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9455 | int arg2 ; | |
9456 | bool result; | |
9457 | PyObject * obj0 = 0 ; | |
9458 | PyObject * obj1 = 0 ; | |
9459 | char *kwnames[] = { | |
9460 | (char *) "self",(char *) "pages", NULL | |
9461 | }; | |
9462 | ||
9463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9466 | arg2 = (int) SWIG_AsInt(obj1); | |
9467 | if (PyErr_Occurred()) SWIG_fail; | |
9468 | { | |
9469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9470 | result = (bool)(arg1)->ScrollPages(arg2); | |
9471 | ||
9472 | wxPyEndAllowThreads(__tstate); | |
9473 | if (PyErr_Occurred()) SWIG_fail; | |
9474 | } | |
9475 | { | |
9476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9477 | } | |
9478 | return resultobj; | |
9479 | fail: | |
9480 | return NULL; | |
9481 | } | |
9482 | ||
9483 | ||
9484 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9485 | PyObject *resultobj; | |
9486 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9487 | size_t arg2 ; | |
9488 | PyObject * obj0 = 0 ; | |
9489 | PyObject * obj1 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "self",(char *) "line", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9497 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | { | |
9500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9501 | (arg1)->RefreshLine(arg2); | |
9502 | ||
9503 | wxPyEndAllowThreads(__tstate); | |
9504 | if (PyErr_Occurred()) SWIG_fail; | |
9505 | } | |
9506 | Py_INCREF(Py_None); resultobj = Py_None; | |
9507 | return resultobj; | |
9508 | fail: | |
9509 | return NULL; | |
9510 | } | |
9511 | ||
9512 | ||
9513 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9514 | PyObject *resultobj; | |
9515 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9516 | size_t arg2 ; | |
9517 | size_t arg3 ; | |
9518 | PyObject * obj0 = 0 ; | |
9519 | PyObject * obj1 = 0 ; | |
9520 | PyObject * obj2 = 0 ; | |
9521 | char *kwnames[] = { | |
9522 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9523 | }; | |
9524 | ||
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9528 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9531 | if (PyErr_Occurred()) SWIG_fail; | |
9532 | { | |
9533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9534 | (arg1)->RefreshLines(arg2,arg3); | |
9535 | ||
9536 | wxPyEndAllowThreads(__tstate); | |
9537 | if (PyErr_Occurred()) SWIG_fail; | |
9538 | } | |
9539 | Py_INCREF(Py_None); resultobj = Py_None; | |
9540 | return resultobj; | |
9541 | fail: | |
9542 | return NULL; | |
9543 | } | |
9544 | ||
9545 | ||
9546 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject *resultobj; | |
9548 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9549 | int arg2 ; | |
9550 | int arg3 ; | |
9551 | int result; | |
9552 | PyObject * obj0 = 0 ; | |
9553 | PyObject * obj1 = 0 ; | |
9554 | PyObject * obj2 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9562 | arg2 = (int) SWIG_AsInt(obj1); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | arg3 = (int) SWIG_AsInt(obj2); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | { | |
9567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9568 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9569 | ||
9570 | wxPyEndAllowThreads(__tstate); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | } | |
9573 | resultobj = SWIG_FromInt((int)result); | |
9574 | return resultobj; | |
9575 | fail: | |
9576 | return NULL; | |
9577 | } | |
9578 | ||
9579 | ||
9580 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9581 | PyObject *resultobj; | |
9582 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9583 | wxPoint *arg2 = 0 ; | |
9584 | int result; | |
9585 | wxPoint temp2 ; | |
9586 | PyObject * obj0 = 0 ; | |
9587 | PyObject * obj1 = 0 ; | |
9588 | char *kwnames[] = { | |
9589 | (char *) "self",(char *) "pt", NULL | |
9590 | }; | |
9591 | ||
9592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9595 | { | |
9596 | arg2 = &temp2; | |
9597 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9598 | } | |
9599 | { | |
9600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9601 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9602 | ||
9603 | wxPyEndAllowThreads(__tstate); | |
9604 | if (PyErr_Occurred()) SWIG_fail; | |
9605 | } | |
9606 | resultobj = SWIG_FromInt((int)result); | |
9607 | return resultobj; | |
9608 | fail: | |
9609 | return NULL; | |
9610 | } | |
9611 | ||
9612 | ||
9613 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9614 | PyObject *resultobj; | |
9615 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9616 | PyObject * obj0 = 0 ; | |
9617 | char *kwnames[] = { | |
9618 | (char *) "self", NULL | |
9619 | }; | |
9620 | ||
9621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9624 | { | |
9625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9626 | (arg1)->RefreshAll(); | |
9627 | ||
9628 | wxPyEndAllowThreads(__tstate); | |
9629 | if (PyErr_Occurred()) SWIG_fail; | |
9630 | } | |
9631 | Py_INCREF(Py_None); resultobj = Py_None; | |
9632 | return resultobj; | |
9633 | fail: | |
9634 | return NULL; | |
9635 | } | |
9636 | ||
9637 | ||
9638 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9639 | PyObject *resultobj; | |
9640 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9641 | size_t result; | |
9642 | PyObject * obj0 = 0 ; | |
9643 | char *kwnames[] = { | |
9644 | (char *) "self", NULL | |
9645 | }; | |
9646 | ||
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9650 | { | |
9651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9652 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9653 | ||
9654 | wxPyEndAllowThreads(__tstate); | |
9655 | if (PyErr_Occurred()) SWIG_fail; | |
9656 | } | |
9657 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9658 | return resultobj; | |
9659 | fail: | |
9660 | return NULL; | |
9661 | } | |
9662 | ||
9663 | ||
9664 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9665 | PyObject *resultobj; | |
9666 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9667 | size_t result; | |
9668 | PyObject * obj0 = 0 ; | |
9669 | char *kwnames[] = { | |
9670 | (char *) "self", NULL | |
9671 | }; | |
9672 | ||
9673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9676 | { | |
9677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9678 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9679 | ||
9680 | wxPyEndAllowThreads(__tstate); | |
9681 | if (PyErr_Occurred()) SWIG_fail; | |
9682 | } | |
9683 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9684 | return resultobj; | |
9685 | fail: | |
9686 | return NULL; | |
9687 | } | |
9688 | ||
9689 | ||
9690 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9691 | PyObject *resultobj; | |
9692 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9693 | size_t result; | |
9694 | PyObject * obj0 = 0 ; | |
9695 | char *kwnames[] = { | |
9696 | (char *) "self", NULL | |
9697 | }; | |
9698 | ||
9699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9702 | { | |
9703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9704 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9705 | ||
9706 | wxPyEndAllowThreads(__tstate); | |
9707 | if (PyErr_Occurred()) SWIG_fail; | |
9708 | } | |
9709 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9710 | return resultobj; | |
9711 | fail: | |
9712 | return NULL; | |
9713 | } | |
9714 | ||
9715 | ||
9716 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9717 | PyObject *resultobj; | |
9718 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9719 | size_t arg2 ; | |
9720 | bool result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | PyObject * obj1 = 0 ; | |
9723 | char *kwnames[] = { | |
9724 | (char *) "self",(char *) "line", NULL | |
9725 | }; | |
9726 | ||
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9730 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9731 | if (PyErr_Occurred()) SWIG_fail; | |
9732 | { | |
9733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9734 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9735 | ||
9736 | wxPyEndAllowThreads(__tstate); | |
9737 | if (PyErr_Occurred()) SWIG_fail; | |
9738 | } | |
9739 | { | |
9740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9741 | } | |
9742 | return resultobj; | |
9743 | fail: | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9749 | PyObject *obj; | |
9750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9751 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9752 | Py_INCREF(obj); | |
9753 | return Py_BuildValue((char *)""); | |
9754 | } | |
9755 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9756 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9757 | return 1; | |
9758 | } | |
9759 | ||
9760 | ||
9761 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9762 | PyObject *pyobj; | |
9763 | ||
9764 | { | |
9765 | #if wxUSE_UNICODE | |
9766 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9767 | #else | |
9768 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9769 | #endif | |
9770 | } | |
9771 | return pyobj; | |
9772 | } | |
9773 | ||
9774 | ||
9775 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9776 | PyObject *resultobj; | |
9777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9778 | int arg2 = (int) wxID_ANY ; | |
9779 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9780 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9781 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9782 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9783 | long arg5 = (long) 0 ; | |
9784 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9785 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9786 | wxPyVListBox *result; | |
9787 | wxPoint temp3 ; | |
9788 | wxSize temp4 ; | |
9789 | bool temp6 = False ; | |
9790 | PyObject * obj0 = 0 ; | |
9791 | PyObject * obj1 = 0 ; | |
9792 | PyObject * obj2 = 0 ; | |
9793 | PyObject * obj3 = 0 ; | |
9794 | PyObject * obj4 = 0 ; | |
9795 | PyObject * obj5 = 0 ; | |
9796 | char *kwnames[] = { | |
9797 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9798 | }; | |
9799 | ||
9800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9803 | if (obj1) { | |
9804 | arg2 = (int) SWIG_AsInt(obj1); | |
9805 | if (PyErr_Occurred()) SWIG_fail; | |
9806 | } | |
9807 | if (obj2) { | |
9808 | { | |
9809 | arg3 = &temp3; | |
9810 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9811 | } | |
9812 | } | |
9813 | if (obj3) { | |
9814 | { | |
9815 | arg4 = &temp4; | |
9816 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9817 | } | |
9818 | } | |
9819 | if (obj4) { | |
9820 | arg5 = (long) SWIG_AsLong(obj4); | |
9821 | if (PyErr_Occurred()) SWIG_fail; | |
9822 | } | |
9823 | if (obj5) { | |
9824 | { | |
9825 | arg6 = wxString_in_helper(obj5); | |
9826 | if (arg6 == NULL) SWIG_fail; | |
9827 | temp6 = True; | |
9828 | } | |
9829 | } | |
9830 | { | |
0439c23b | 9831 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9833 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9836 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9837 | } |
9838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9839 | { | |
9840 | if (temp6) | |
9841 | delete arg6; | |
9842 | } | |
9843 | return resultobj; | |
9844 | fail: | |
9845 | { | |
9846 | if (temp6) | |
9847 | delete arg6; | |
9848 | } | |
9849 | return NULL; | |
9850 | } | |
9851 | ||
9852 | ||
9853 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9854 | PyObject *resultobj; | |
9855 | wxPyVListBox *result; | |
9856 | char *kwnames[] = { | |
9857 | NULL | |
9858 | }; | |
9859 | ||
9860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9861 | { | |
0439c23b | 9862 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9864 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9865 | ||
9866 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9867 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9868 | } |
9869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9870 | return resultobj; | |
9871 | fail: | |
9872 | return NULL; | |
9873 | } | |
9874 | ||
9875 | ||
9876 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9877 | PyObject *resultobj; | |
9878 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9879 | PyObject *arg2 = (PyObject *) 0 ; | |
9880 | PyObject *arg3 = (PyObject *) 0 ; | |
9881 | PyObject * obj0 = 0 ; | |
9882 | PyObject * obj1 = 0 ; | |
9883 | PyObject * obj2 = 0 ; | |
9884 | char *kwnames[] = { | |
9885 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9886 | }; | |
9887 | ||
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9891 | arg2 = obj1; | |
9892 | arg3 = obj2; | |
9893 | { | |
9894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9895 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9896 | ||
9897 | wxPyEndAllowThreads(__tstate); | |
9898 | if (PyErr_Occurred()) SWIG_fail; | |
9899 | } | |
9900 | Py_INCREF(Py_None); resultobj = Py_None; | |
9901 | return resultobj; | |
9902 | fail: | |
9903 | return NULL; | |
9904 | } | |
9905 | ||
9906 | ||
9907 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9908 | PyObject *resultobj; | |
9909 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9911 | int arg3 = (int) wxID_ANY ; | |
9912 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9913 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9914 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9915 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9916 | long arg6 = (long) 0 ; | |
9917 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9918 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9919 | bool result; | |
9920 | wxPoint temp4 ; | |
9921 | wxSize temp5 ; | |
9922 | bool temp7 = False ; | |
9923 | PyObject * obj0 = 0 ; | |
9924 | PyObject * obj1 = 0 ; | |
9925 | PyObject * obj2 = 0 ; | |
9926 | PyObject * obj3 = 0 ; | |
9927 | PyObject * obj4 = 0 ; | |
9928 | PyObject * obj5 = 0 ; | |
9929 | PyObject * obj6 = 0 ; | |
9930 | char *kwnames[] = { | |
9931 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9932 | }; | |
9933 | ||
9934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9939 | if (obj2) { | |
9940 | arg3 = (int) SWIG_AsInt(obj2); | |
9941 | if (PyErr_Occurred()) SWIG_fail; | |
9942 | } | |
9943 | if (obj3) { | |
9944 | { | |
9945 | arg4 = &temp4; | |
9946 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9947 | } | |
9948 | } | |
9949 | if (obj4) { | |
9950 | { | |
9951 | arg5 = &temp5; | |
9952 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9953 | } | |
9954 | } | |
9955 | if (obj5) { | |
9956 | arg6 = (long) SWIG_AsLong(obj5); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | } | |
9959 | if (obj6) { | |
9960 | { | |
9961 | arg7 = wxString_in_helper(obj6); | |
9962 | if (arg7 == NULL) SWIG_fail; | |
9963 | temp7 = True; | |
9964 | } | |
9965 | } | |
9966 | { | |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9968 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9969 | ||
9970 | wxPyEndAllowThreads(__tstate); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | { | |
9974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9975 | } | |
9976 | { | |
9977 | if (temp7) | |
9978 | delete arg7; | |
9979 | } | |
9980 | return resultobj; | |
9981 | fail: | |
9982 | { | |
9983 | if (temp7) | |
9984 | delete arg7; | |
9985 | } | |
9986 | return NULL; | |
9987 | } | |
9988 | ||
9989 | ||
9990 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9991 | PyObject *resultobj; | |
9992 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9993 | size_t result; | |
9994 | PyObject * obj0 = 0 ; | |
9995 | char *kwnames[] = { | |
9996 | (char *) "self", NULL | |
9997 | }; | |
9998 | ||
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
10000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10002 | { | |
10003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10004 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
10005 | ||
10006 | wxPyEndAllowThreads(__tstate); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | } | |
10009 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10010 | return resultobj; | |
10011 | fail: | |
10012 | return NULL; | |
10013 | } | |
10014 | ||
10015 | ||
10016 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10017 | PyObject *resultobj; | |
10018 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10019 | bool result; | |
10020 | PyObject * obj0 = 0 ; | |
10021 | char *kwnames[] = { | |
10022 | (char *) "self", NULL | |
10023 | }; | |
10024 | ||
10025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
10026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10028 | { | |
10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10030 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
10035 | { | |
10036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10037 | } | |
10038 | return resultobj; | |
10039 | fail: | |
10040 | return NULL; | |
10041 | } | |
10042 | ||
10043 | ||
10044 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10045 | PyObject *resultobj; | |
10046 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10047 | int result; | |
10048 | PyObject * obj0 = 0 ; | |
10049 | char *kwnames[] = { | |
10050 | (char *) "self", NULL | |
10051 | }; | |
10052 | ||
10053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
10054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10056 | { | |
10057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10058 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
10059 | ||
10060 | wxPyEndAllowThreads(__tstate); | |
10061 | if (PyErr_Occurred()) SWIG_fail; | |
10062 | } | |
10063 | resultobj = SWIG_FromInt((int)result); | |
10064 | return resultobj; | |
10065 | fail: | |
10066 | return NULL; | |
10067 | } | |
10068 | ||
10069 | ||
10070 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10071 | PyObject *resultobj; | |
10072 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10073 | size_t arg2 ; | |
10074 | bool result; | |
10075 | PyObject * obj0 = 0 ; | |
10076 | PyObject * obj1 = 0 ; | |
10077 | char *kwnames[] = { | |
10078 | (char *) "self",(char *) "item", NULL | |
10079 | }; | |
10080 | ||
10081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
10082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10084 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | { | |
10087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10088 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
10089 | ||
10090 | wxPyEndAllowThreads(__tstate); | |
10091 | if (PyErr_Occurred()) SWIG_fail; | |
10092 | } | |
10093 | { | |
10094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10095 | } | |
10096 | return resultobj; | |
10097 | fail: | |
10098 | return NULL; | |
10099 | } | |
10100 | ||
10101 | ||
10102 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10103 | PyObject *resultobj; | |
10104 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10105 | size_t arg2 ; | |
10106 | bool result; | |
10107 | PyObject * obj0 = 0 ; | |
10108 | PyObject * obj1 = 0 ; | |
10109 | char *kwnames[] = { | |
10110 | (char *) "self",(char *) "item", NULL | |
10111 | }; | |
10112 | ||
10113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
10114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10116 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10117 | if (PyErr_Occurred()) SWIG_fail; | |
10118 | { | |
10119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10120 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
10121 | ||
10122 | wxPyEndAllowThreads(__tstate); | |
10123 | if (PyErr_Occurred()) SWIG_fail; | |
10124 | } | |
10125 | { | |
10126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10127 | } | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj; | |
10136 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10137 | size_t result; | |
10138 | PyObject * obj0 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "self", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
10144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10146 | { | |
10147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10148 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
10149 | ||
10150 | wxPyEndAllowThreads(__tstate); | |
10151 | if (PyErr_Occurred()) SWIG_fail; | |
10152 | } | |
10153 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10154 | return resultobj; | |
10155 | fail: | |
10156 | return NULL; | |
10157 | } | |
10158 | ||
10159 | ||
10160 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject *resultobj; | |
10162 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
09c21d3b | 10163 | PyObject *result; |
d55e5bfc | 10164 | PyObject * obj0 = 0 ; |
d55e5bfc | 10165 | char *kwnames[] = { |
09c21d3b | 10166 | (char *) "self", NULL |
d55e5bfc RD |
10167 | }; |
10168 | ||
09c21d3b | 10169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetFirstSelected",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
10170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, |
10171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
10172 | { |
10173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
09c21d3b | 10174 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); |
d55e5bfc RD |
10175 | |
10176 | wxPyEndAllowThreads(__tstate); | |
10177 | if (PyErr_Occurred()) SWIG_fail; | |
10178 | } | |
09c21d3b | 10179 | resultobj = result; |
d55e5bfc RD |
10180 | return resultobj; |
10181 | fail: | |
10182 | return NULL; | |
10183 | } | |
10184 | ||
10185 | ||
10186 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10187 | PyObject *resultobj; | |
10188 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
09c21d3b RD |
10189 | unsigned long arg2 ; |
10190 | PyObject *result; | |
d55e5bfc RD |
10191 | PyObject * obj0 = 0 ; |
10192 | PyObject * obj1 = 0 ; | |
10193 | char *kwnames[] = { | |
10194 | (char *) "self",(char *) "cookie", NULL | |
10195 | }; | |
10196 | ||
10197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
10198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
09c21d3b RD |
10200 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
10202 | { |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
09c21d3b | 10204 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); |
d55e5bfc RD |
10205 | |
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
09c21d3b | 10209 | resultobj = result; |
d55e5bfc RD |
10210 | return resultobj; |
10211 | fail: | |
10212 | return NULL; | |
10213 | } | |
10214 | ||
10215 | ||
10216 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject *resultobj; | |
10218 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10219 | wxPoint result; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | char *kwnames[] = { | |
10222 | (char *) "self", NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
10226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10228 | { | |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
10235 | { | |
10236 | wxPoint * resultptr; | |
10237 | resultptr = new wxPoint((wxPoint &) result); | |
10238 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10239 | } | |
10240 | return resultobj; | |
10241 | fail: | |
10242 | return NULL; | |
10243 | } | |
10244 | ||
10245 | ||
10246 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10247 | PyObject *resultobj; | |
10248 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10249 | wxColour *result; | |
10250 | PyObject * obj0 = 0 ; | |
10251 | char *kwnames[] = { | |
10252 | (char *) "self", NULL | |
10253 | }; | |
10254 | ||
10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10258 | { | |
10259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10260 | { | |
10261 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10262 | result = (wxColour *) &_result_ref; | |
10263 | } | |
10264 | ||
10265 | wxPyEndAllowThreads(__tstate); | |
10266 | if (PyErr_Occurred()) SWIG_fail; | |
10267 | } | |
10268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10269 | return resultobj; | |
10270 | fail: | |
10271 | return NULL; | |
10272 | } | |
10273 | ||
10274 | ||
10275 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10276 | PyObject *resultobj; | |
10277 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10278 | size_t arg2 ; | |
10279 | PyObject * obj0 = 0 ; | |
10280 | PyObject * obj1 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self",(char *) "count", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10288 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | { | |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | (arg1)->SetItemCount(arg2); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | Py_INCREF(Py_None); resultobj = Py_None; | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
10304 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10305 | PyObject *resultobj; | |
10306 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10307 | PyObject * obj0 = 0 ; | |
10308 | char *kwnames[] = { | |
10309 | (char *) "self", NULL | |
10310 | }; | |
10311 | ||
10312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10315 | { | |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10317 | (arg1)->Clear(); | |
10318 | ||
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | } | |
10322 | Py_INCREF(Py_None); resultobj = Py_None; | |
10323 | return resultobj; | |
10324 | fail: | |
10325 | return NULL; | |
10326 | } | |
10327 | ||
10328 | ||
10329 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10330 | PyObject *resultobj; | |
10331 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10332 | int arg2 ; | |
10333 | PyObject * obj0 = 0 ; | |
10334 | PyObject * obj1 = 0 ; | |
10335 | char *kwnames[] = { | |
10336 | (char *) "self",(char *) "selection", NULL | |
10337 | }; | |
10338 | ||
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10342 | arg2 = (int) SWIG_AsInt(obj1); | |
10343 | if (PyErr_Occurred()) SWIG_fail; | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | (arg1)->SetSelection(arg2); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | Py_INCREF(Py_None); resultobj = Py_None; | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj; | |
10360 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10361 | size_t arg2 ; | |
10362 | bool arg3 = (bool) True ; | |
10363 | bool result; | |
10364 | PyObject * obj0 = 0 ; | |
10365 | PyObject * obj1 = 0 ; | |
10366 | PyObject * obj2 = 0 ; | |
10367 | char *kwnames[] = { | |
10368 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10369 | }; | |
10370 | ||
10371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10374 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | if (obj2) { | |
10377 | arg3 = (bool) SWIG_AsBool(obj2); | |
10378 | if (PyErr_Occurred()) SWIG_fail; | |
10379 | } | |
10380 | { | |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (bool)(arg1)->Select(arg2,arg3); | |
10383 | ||
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
10387 | { | |
10388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10389 | } | |
10390 | return resultobj; | |
10391 | fail: | |
10392 | return NULL; | |
10393 | } | |
10394 | ||
10395 | ||
10396 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10397 | PyObject *resultobj; | |
10398 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10399 | size_t arg2 ; | |
10400 | size_t arg3 ; | |
10401 | bool result; | |
10402 | PyObject * obj0 = 0 ; | |
10403 | PyObject * obj1 = 0 ; | |
10404 | PyObject * obj2 = 0 ; | |
10405 | char *kwnames[] = { | |
10406 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10407 | }; | |
10408 | ||
10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10412 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
10416 | { | |
10417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10418 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10419 | ||
10420 | wxPyEndAllowThreads(__tstate); | |
10421 | if (PyErr_Occurred()) SWIG_fail; | |
10422 | } | |
10423 | { | |
10424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10425 | } | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | return NULL; | |
10429 | } | |
10430 | ||
10431 | ||
10432 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10433 | PyObject *resultobj; | |
10434 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10435 | size_t arg2 ; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self",(char *) "item", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10445 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | { | |
10448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10449 | (arg1)->Toggle(arg2); | |
10450 | ||
10451 | wxPyEndAllowThreads(__tstate); | |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
10453 | } | |
10454 | Py_INCREF(Py_None); resultobj = Py_None; | |
10455 | return resultobj; | |
10456 | fail: | |
10457 | return NULL; | |
10458 | } | |
10459 | ||
10460 | ||
10461 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10462 | PyObject *resultobj; | |
10463 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10464 | bool result; | |
10465 | PyObject * obj0 = 0 ; | |
10466 | char *kwnames[] = { | |
10467 | (char *) "self", NULL | |
10468 | }; | |
10469 | ||
10470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10473 | { | |
10474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10475 | result = (bool)(arg1)->SelectAll(); | |
10476 | ||
10477 | wxPyEndAllowThreads(__tstate); | |
10478 | if (PyErr_Occurred()) SWIG_fail; | |
10479 | } | |
10480 | { | |
10481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10482 | } | |
10483 | return resultobj; | |
10484 | fail: | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
10489 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject *resultobj; | |
10491 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10492 | bool result; | |
10493 | PyObject * obj0 = 0 ; | |
10494 | char *kwnames[] = { | |
10495 | (char *) "self", NULL | |
10496 | }; | |
10497 | ||
10498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10501 | { | |
10502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10503 | result = (bool)(arg1)->DeselectAll(); | |
10504 | ||
10505 | wxPyEndAllowThreads(__tstate); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
10508 | { | |
10509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10510 | } | |
10511 | return resultobj; | |
10512 | fail: | |
10513 | return NULL; | |
10514 | } | |
10515 | ||
10516 | ||
10517 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10518 | PyObject *resultobj; | |
10519 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10520 | wxPoint *arg2 = 0 ; | |
10521 | wxPoint temp2 ; | |
10522 | PyObject * obj0 = 0 ; | |
10523 | PyObject * obj1 = 0 ; | |
10524 | char *kwnames[] = { | |
10525 | (char *) "self",(char *) "pt", NULL | |
10526 | }; | |
10527 | ||
10528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10531 | { | |
10532 | arg2 = &temp2; | |
10533 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10534 | } | |
10535 | { | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10538 | ||
10539 | wxPyEndAllowThreads(__tstate); | |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
10541 | } | |
10542 | Py_INCREF(Py_None); resultobj = Py_None; | |
10543 | return resultobj; | |
10544 | fail: | |
10545 | return NULL; | |
10546 | } | |
10547 | ||
10548 | ||
10549 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10550 | PyObject *resultobj; | |
10551 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10552 | int arg2 ; | |
10553 | int arg3 ; | |
10554 | PyObject * obj0 = 0 ; | |
10555 | PyObject * obj1 = 0 ; | |
10556 | PyObject * obj2 = 0 ; | |
10557 | char *kwnames[] = { | |
10558 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10559 | }; | |
10560 | ||
10561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10564 | arg2 = (int) SWIG_AsInt(obj1); | |
10565 | if (PyErr_Occurred()) SWIG_fail; | |
10566 | arg3 = (int) SWIG_AsInt(obj2); | |
10567 | if (PyErr_Occurred()) SWIG_fail; | |
10568 | { | |
10569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10570 | (arg1)->SetMargins(arg2,arg3); | |
10571 | ||
10572 | wxPyEndAllowThreads(__tstate); | |
10573 | if (PyErr_Occurred()) SWIG_fail; | |
10574 | } | |
10575 | Py_INCREF(Py_None); resultobj = Py_None; | |
10576 | return resultobj; | |
10577 | fail: | |
10578 | return NULL; | |
10579 | } | |
10580 | ||
10581 | ||
10582 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10583 | PyObject *resultobj; | |
10584 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10585 | wxColour *arg2 = 0 ; | |
10586 | wxColour temp2 ; | |
10587 | PyObject * obj0 = 0 ; | |
10588 | PyObject * obj1 = 0 ; | |
10589 | char *kwnames[] = { | |
10590 | (char *) "self",(char *) "col", NULL | |
10591 | }; | |
10592 | ||
10593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10596 | { | |
10597 | arg2 = &temp2; | |
10598 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10599 | } | |
10600 | { | |
10601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10602 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10603 | ||
10604 | wxPyEndAllowThreads(__tstate); | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
10606 | } | |
10607 | Py_INCREF(Py_None); resultobj = Py_None; | |
10608 | return resultobj; | |
10609 | fail: | |
10610 | return NULL; | |
10611 | } | |
10612 | ||
10613 | ||
10614 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10615 | PyObject *obj; | |
10616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10617 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10618 | Py_INCREF(obj); | |
10619 | return Py_BuildValue((char *)""); | |
10620 | } | |
10621 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10622 | PyObject *resultobj; | |
10623 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10624 | int arg2 = (int) wxID_ANY ; | |
10625 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10626 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10627 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10628 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10629 | long arg5 = (long) 0 ; | |
10630 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10631 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10632 | wxPyHtmlListBox *result; | |
10633 | wxPoint temp3 ; | |
10634 | wxSize temp4 ; | |
10635 | bool temp6 = False ; | |
10636 | PyObject * obj0 = 0 ; | |
10637 | PyObject * obj1 = 0 ; | |
10638 | PyObject * obj2 = 0 ; | |
10639 | PyObject * obj3 = 0 ; | |
10640 | PyObject * obj4 = 0 ; | |
10641 | PyObject * obj5 = 0 ; | |
10642 | char *kwnames[] = { | |
10643 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10644 | }; | |
10645 | ||
10646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10649 | if (obj1) { | |
10650 | arg2 = (int) SWIG_AsInt(obj1); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
10653 | if (obj2) { | |
10654 | { | |
10655 | arg3 = &temp3; | |
10656 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10657 | } | |
10658 | } | |
10659 | if (obj3) { | |
10660 | { | |
10661 | arg4 = &temp4; | |
10662 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10663 | } | |
10664 | } | |
10665 | if (obj4) { | |
10666 | arg5 = (long) SWIG_AsLong(obj4); | |
10667 | if (PyErr_Occurred()) SWIG_fail; | |
10668 | } | |
10669 | if (obj5) { | |
10670 | { | |
10671 | arg6 = wxString_in_helper(obj5); | |
10672 | if (arg6 == NULL) SWIG_fail; | |
10673 | temp6 = True; | |
10674 | } | |
10675 | } | |
10676 | { | |
0439c23b | 10677 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10679 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10682 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10683 | } |
10684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10685 | { | |
10686 | if (temp6) | |
10687 | delete arg6; | |
10688 | } | |
10689 | return resultobj; | |
10690 | fail: | |
10691 | { | |
10692 | if (temp6) | |
10693 | delete arg6; | |
10694 | } | |
10695 | return NULL; | |
10696 | } | |
10697 | ||
10698 | ||
10699 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10700 | PyObject *resultobj; | |
10701 | wxPyHtmlListBox *result; | |
10702 | char *kwnames[] = { | |
10703 | NULL | |
10704 | }; | |
10705 | ||
10706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10707 | { | |
0439c23b | 10708 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10710 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10711 | ||
10712 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10713 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10714 | } |
10715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10716 | return resultobj; | |
10717 | fail: | |
10718 | return NULL; | |
10719 | } | |
10720 | ||
10721 | ||
10722 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10723 | PyObject *resultobj; | |
10724 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10725 | PyObject *arg2 = (PyObject *) 0 ; | |
10726 | PyObject *arg3 = (PyObject *) 0 ; | |
10727 | PyObject * obj0 = 0 ; | |
10728 | PyObject * obj1 = 0 ; | |
10729 | PyObject * obj2 = 0 ; | |
10730 | char *kwnames[] = { | |
10731 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10732 | }; | |
10733 | ||
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10737 | arg2 = obj1; | |
10738 | arg3 = obj2; | |
10739 | { | |
10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10741 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10742 | ||
10743 | wxPyEndAllowThreads(__tstate); | |
10744 | if (PyErr_Occurred()) SWIG_fail; | |
10745 | } | |
10746 | Py_INCREF(Py_None); resultobj = Py_None; | |
10747 | return resultobj; | |
10748 | fail: | |
10749 | return NULL; | |
10750 | } | |
10751 | ||
10752 | ||
10753 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10754 | PyObject *resultobj; | |
10755 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10756 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10757 | int arg3 = (int) wxID_ANY ; | |
10758 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10759 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10760 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10761 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10762 | long arg6 = (long) 0 ; | |
10763 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10764 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10765 | bool result; | |
10766 | wxPoint temp4 ; | |
10767 | wxSize temp5 ; | |
10768 | bool temp7 = False ; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | PyObject * obj1 = 0 ; | |
10771 | PyObject * obj2 = 0 ; | |
10772 | PyObject * obj3 = 0 ; | |
10773 | PyObject * obj4 = 0 ; | |
10774 | PyObject * obj5 = 0 ; | |
10775 | PyObject * obj6 = 0 ; | |
10776 | char *kwnames[] = { | |
10777 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10778 | }; | |
10779 | ||
10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10785 | if (obj2) { | |
10786 | arg3 = (int) SWIG_AsInt(obj2); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | if (obj3) { | |
10790 | { | |
10791 | arg4 = &temp4; | |
10792 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10793 | } | |
10794 | } | |
10795 | if (obj4) { | |
10796 | { | |
10797 | arg5 = &temp5; | |
10798 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10799 | } | |
10800 | } | |
10801 | if (obj5) { | |
10802 | arg6 = (long) SWIG_AsLong(obj5); | |
10803 | if (PyErr_Occurred()) SWIG_fail; | |
10804 | } | |
10805 | if (obj6) { | |
10806 | { | |
10807 | arg7 = wxString_in_helper(obj6); | |
10808 | if (arg7 == NULL) SWIG_fail; | |
10809 | temp7 = True; | |
10810 | } | |
10811 | } | |
10812 | { | |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
10819 | { | |
10820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10821 | } | |
10822 | { | |
10823 | if (temp7) | |
10824 | delete arg7; | |
10825 | } | |
10826 | return resultobj; | |
10827 | fail: | |
10828 | { | |
10829 | if (temp7) | |
10830 | delete arg7; | |
10831 | } | |
10832 | return NULL; | |
10833 | } | |
10834 | ||
10835 | ||
10836 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10837 | PyObject *resultobj; | |
10838 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10839 | PyObject * obj0 = 0 ; | |
10840 | char *kwnames[] = { | |
10841 | (char *) "self", NULL | |
10842 | }; | |
10843 | ||
10844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10847 | { | |
10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10849 | (arg1)->RefreshAll(); | |
10850 | ||
10851 | wxPyEndAllowThreads(__tstate); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
10853 | } | |
10854 | Py_INCREF(Py_None); resultobj = Py_None; | |
10855 | return resultobj; | |
10856 | fail: | |
10857 | return NULL; | |
10858 | } | |
10859 | ||
10860 | ||
10861 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10862 | PyObject *resultobj; | |
10863 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10864 | size_t arg2 ; | |
10865 | PyObject * obj0 = 0 ; | |
10866 | PyObject * obj1 = 0 ; | |
10867 | char *kwnames[] = { | |
10868 | (char *) "self",(char *) "count", NULL | |
10869 | }; | |
10870 | ||
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10874 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10875 | if (PyErr_Occurred()) SWIG_fail; | |
10876 | { | |
10877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10878 | (arg1)->SetItemCount(arg2); | |
10879 | ||
10880 | wxPyEndAllowThreads(__tstate); | |
10881 | if (PyErr_Occurred()) SWIG_fail; | |
10882 | } | |
10883 | Py_INCREF(Py_None); resultobj = Py_None; | |
10884 | return resultobj; | |
10885 | fail: | |
10886 | return NULL; | |
10887 | } | |
10888 | ||
10889 | ||
c24da6d6 RD |
10890 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { |
10891 | PyObject *resultobj; | |
10892 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10893 | wxFileSystem *result; | |
10894 | PyObject * obj0 = 0 ; | |
10895 | char *kwnames[] = { | |
10896 | (char *) "self", NULL | |
10897 | }; | |
10898 | ||
10899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10902 | { | |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10904 | { | |
10905 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10906 | result = (wxFileSystem *) &_result_ref; | |
10907 | } | |
10908 | ||
10909 | wxPyEndAllowThreads(__tstate); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
10911 | } | |
10912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10913 | return resultobj; | |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
d55e5bfc RD |
10919 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { |
10920 | PyObject *obj; | |
10921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10922 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10923 | Py_INCREF(obj); | |
10924 | return Py_BuildValue((char *)""); | |
10925 | } | |
10926 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxTaskBarIcon *result; | |
10929 | char *kwnames[] = { | |
10930 | NULL | |
10931 | }; | |
10932 | ||
10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10934 | { | |
0439c23b | 10935 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10937 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10940 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10941 | } |
10942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject *resultobj; | |
10951 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10952 | PyObject * obj0 = 0 ; | |
10953 | char *kwnames[] = { | |
10954 | (char *) "self", NULL | |
10955 | }; | |
10956 | ||
10957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10960 | { | |
10961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10962 | delete arg1; | |
10963 | ||
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | Py_INCREF(Py_None); resultobj = Py_None; | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
10974 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject *resultobj; | |
10976 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10977 | PyObject * obj0 = 0 ; | |
10978 | char *kwnames[] = { | |
10979 | (char *) "self", NULL | |
10980 | }; | |
10981 | ||
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
10983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10985 | { | |
10986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10987 | wxTaskBarIcon_Destroy(arg1); | |
10988 | ||
10989 | wxPyEndAllowThreads(__tstate); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | Py_INCREF(Py_None); resultobj = Py_None; | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | return NULL; | |
10996 | } | |
10997 | ||
10998 | ||
10999 | static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11000 | PyObject *resultobj; | |
11001 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11002 | bool result; | |
11003 | PyObject * obj0 = 0 ; | |
11004 | char *kwnames[] = { | |
11005 | (char *) "self", NULL | |
11006 | }; | |
11007 | ||
11008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; | |
11009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11011 | { | |
11012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11013 | result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); | |
11014 | ||
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
11018 | { | |
11019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11020 | } | |
11021 | return resultobj; | |
11022 | fail: | |
11023 | return NULL; | |
11024 | } | |
11025 | ||
11026 | ||
11027 | static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11028 | PyObject *resultobj; | |
11029 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11030 | bool result; | |
11031 | PyObject * obj0 = 0 ; | |
11032 | char *kwnames[] = { | |
11033 | (char *) "self", NULL | |
11034 | }; | |
11035 | ||
11036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; | |
11037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11039 | { | |
11040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11041 | result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); | |
11042 | ||
11043 | wxPyEndAllowThreads(__tstate); | |
11044 | if (PyErr_Occurred()) SWIG_fail; | |
11045 | } | |
11046 | { | |
11047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11048 | } | |
11049 | return resultobj; | |
11050 | fail: | |
11051 | return NULL; | |
11052 | } | |
11053 | ||
11054 | ||
11055 | static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11056 | PyObject *resultobj; | |
11057 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11058 | wxIcon *arg2 = 0 ; | |
11059 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11060 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11061 | bool result; | |
11062 | bool temp3 = False ; | |
11063 | PyObject * obj0 = 0 ; | |
11064 | PyObject * obj1 = 0 ; | |
11065 | PyObject * obj2 = 0 ; | |
11066 | char *kwnames[] = { | |
11067 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
11068 | }; | |
11069 | ||
11070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11074 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11075 | SWIG_fail; | |
11076 | if (arg2 == NULL) { | |
11077 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11078 | SWIG_fail; | |
11079 | } | |
11080 | if (obj2) { | |
11081 | { | |
11082 | arg3 = wxString_in_helper(obj2); | |
11083 | if (arg3 == NULL) SWIG_fail; | |
11084 | temp3 = True; | |
11085 | } | |
11086 | } | |
11087 | { | |
11088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11089 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
11090 | ||
11091 | wxPyEndAllowThreads(__tstate); | |
11092 | if (PyErr_Occurred()) SWIG_fail; | |
11093 | } | |
11094 | { | |
11095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11096 | } | |
11097 | { | |
11098 | if (temp3) | |
11099 | delete arg3; | |
11100 | } | |
11101 | return resultobj; | |
11102 | fail: | |
11103 | { | |
11104 | if (temp3) | |
11105 | delete arg3; | |
11106 | } | |
11107 | return NULL; | |
11108 | } | |
11109 | ||
11110 | ||
11111 | static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11112 | PyObject *resultobj; | |
11113 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11114 | bool result; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | char *kwnames[] = { | |
11117 | (char *) "self", NULL | |
11118 | }; | |
11119 | ||
11120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; | |
11121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11123 | { | |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | result = (bool)(arg1)->RemoveIcon(); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | { | |
11131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11132 | } | |
11133 | return resultobj; | |
11134 | fail: | |
11135 | return NULL; | |
11136 | } | |
11137 | ||
11138 | ||
11139 | static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11140 | PyObject *resultobj; | |
11141 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11142 | wxMenu *arg2 = (wxMenu *) 0 ; | |
11143 | bool result; | |
11144 | PyObject * obj0 = 0 ; | |
11145 | PyObject * obj1 = 0 ; | |
11146 | char *kwnames[] = { | |
11147 | (char *) "self",(char *) "menu", NULL | |
11148 | }; | |
11149 | ||
11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; | |
11151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
11154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11155 | { | |
11156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11157 | result = (bool)(arg1)->PopupMenu(arg2); | |
11158 | ||
11159 | wxPyEndAllowThreads(__tstate); | |
11160 | if (PyErr_Occurred()) SWIG_fail; | |
11161 | } | |
11162 | { | |
11163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11164 | } | |
11165 | return resultobj; | |
11166 | fail: | |
11167 | return NULL; | |
11168 | } | |
11169 | ||
11170 | ||
11171 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
11172 | PyObject *obj; | |
11173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11174 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
11175 | Py_INCREF(obj); | |
11176 | return Py_BuildValue((char *)""); | |
11177 | } | |
11178 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11179 | PyObject *resultobj; | |
11180 | wxEventType arg1 ; | |
11181 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
11182 | wxTaskBarIconEvent *result; | |
11183 | PyObject * obj0 = 0 ; | |
11184 | PyObject * obj1 = 0 ; | |
11185 | char *kwnames[] = { | |
11186 | (char *) "evtType",(char *) "tbIcon", NULL | |
11187 | }; | |
11188 | ||
11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
11190 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11191 | if (PyErr_Occurred()) SWIG_fail; | |
11192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
11193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11194 | { | |
11195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11196 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
11197 | ||
11198 | wxPyEndAllowThreads(__tstate); | |
11199 | if (PyErr_Occurred()) SWIG_fail; | |
11200 | } | |
11201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
11202 | return resultobj; | |
11203 | fail: | |
11204 | return NULL; | |
11205 | } | |
11206 | ||
11207 | ||
11208 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
11209 | PyObject *obj; | |
11210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11211 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
11212 | Py_INCREF(obj); | |
11213 | return Py_BuildValue((char *)""); | |
11214 | } | |
11215 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
11216 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
11217 | return 1; | |
11218 | } | |
11219 | ||
11220 | ||
11221 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
11222 | PyObject *pyobj; | |
11223 | ||
11224 | { | |
11225 | #if wxUSE_UNICODE | |
11226 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11227 | #else | |
11228 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11229 | #endif | |
11230 | } | |
11231 | return pyobj; | |
11232 | } | |
11233 | ||
11234 | ||
11235 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
11236 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
11237 | return 1; | |
11238 | } | |
11239 | ||
11240 | ||
11241 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
11242 | PyObject *pyobj; | |
11243 | ||
11244 | { | |
11245 | #if wxUSE_UNICODE | |
11246 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11247 | #else | |
11248 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11249 | #endif | |
11250 | } | |
11251 | return pyobj; | |
11252 | } | |
11253 | ||
11254 | ||
11255 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
11256 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
11257 | return 1; | |
11258 | } | |
11259 | ||
11260 | ||
11261 | static PyObject *_wrap_DirDialogNameStr_get() { | |
11262 | PyObject *pyobj; | |
11263 | ||
11264 | { | |
11265 | #if wxUSE_UNICODE | |
11266 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11267 | #else | |
11268 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11269 | #endif | |
11270 | } | |
11271 | return pyobj; | |
11272 | } | |
11273 | ||
11274 | ||
11275 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
11276 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
11277 | return 1; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
11282 | PyObject *pyobj; | |
11283 | ||
11284 | { | |
11285 | #if wxUSE_UNICODE | |
11286 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11287 | #else | |
11288 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11289 | #endif | |
11290 | } | |
11291 | return pyobj; | |
11292 | } | |
11293 | ||
11294 | ||
11295 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
11296 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
11297 | return 1; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
11302 | PyObject *pyobj; | |
11303 | ||
11304 | { | |
11305 | #if wxUSE_UNICODE | |
11306 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11307 | #else | |
11308 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11309 | #endif | |
11310 | } | |
11311 | return pyobj; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
11316 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
11317 | return 1; | |
11318 | } | |
11319 | ||
11320 | ||
11321 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
11322 | PyObject *pyobj; | |
11323 | ||
11324 | { | |
11325 | #if wxUSE_UNICODE | |
11326 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11327 | #else | |
11328 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11329 | #endif | |
11330 | } | |
11331 | return pyobj; | |
11332 | } | |
11333 | ||
11334 | ||
11335 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11336 | PyObject *resultobj; | |
11337 | wxColourData *result; | |
11338 | char *kwnames[] = { | |
11339 | NULL | |
11340 | }; | |
11341 | ||
11342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
11343 | { | |
11344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11345 | result = (wxColourData *)new wxColourData(); | |
11346 | ||
11347 | wxPyEndAllowThreads(__tstate); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | } | |
11350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
11357 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11358 | PyObject *resultobj; | |
11359 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11360 | PyObject * obj0 = 0 ; | |
11361 | char *kwnames[] = { | |
11362 | (char *) "self", NULL | |
11363 | }; | |
11364 | ||
11365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
11366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11368 | { | |
11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11370 | delete arg1; | |
11371 | ||
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | Py_INCREF(Py_None); resultobj = Py_None; | |
11376 | return resultobj; | |
11377 | fail: | |
11378 | return NULL; | |
11379 | } | |
11380 | ||
11381 | ||
11382 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11383 | PyObject *resultobj; | |
11384 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11385 | bool result; | |
11386 | PyObject * obj0 = 0 ; | |
11387 | char *kwnames[] = { | |
11388 | (char *) "self", NULL | |
11389 | }; | |
11390 | ||
11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
11392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11394 | { | |
11395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11396 | result = (bool)(arg1)->GetChooseFull(); | |
11397 | ||
11398 | wxPyEndAllowThreads(__tstate); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | } | |
11401 | { | |
11402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11403 | } | |
11404 | return resultobj; | |
11405 | fail: | |
11406 | return NULL; | |
11407 | } | |
11408 | ||
11409 | ||
11410 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11411 | PyObject *resultobj; | |
11412 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11413 | wxColour result; | |
11414 | PyObject * obj0 = 0 ; | |
11415 | char *kwnames[] = { | |
11416 | (char *) "self", NULL | |
11417 | }; | |
11418 | ||
11419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11422 | { | |
11423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11424 | result = (arg1)->GetColour(); | |
11425 | ||
11426 | wxPyEndAllowThreads(__tstate); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | } | |
11429 | { | |
11430 | wxColour * resultptr; | |
11431 | resultptr = new wxColour((wxColour &) result); | |
11432 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11433 | } | |
11434 | return resultobj; | |
11435 | fail: | |
11436 | return NULL; | |
11437 | } | |
11438 | ||
11439 | ||
11440 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11441 | PyObject *resultobj; | |
11442 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11443 | int arg2 ; | |
11444 | wxColour result; | |
11445 | PyObject * obj0 = 0 ; | |
11446 | PyObject * obj1 = 0 ; | |
11447 | char *kwnames[] = { | |
11448 | (char *) "self",(char *) "i", NULL | |
11449 | }; | |
11450 | ||
11451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11454 | arg2 = (int) SWIG_AsInt(obj1); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | result = (arg1)->GetCustomColour(arg2); | |
11459 | ||
11460 | wxPyEndAllowThreads(__tstate); | |
11461 | if (PyErr_Occurred()) SWIG_fail; | |
11462 | } | |
11463 | { | |
11464 | wxColour * resultptr; | |
11465 | resultptr = new wxColour((wxColour &) result); | |
11466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11467 | } | |
11468 | return resultobj; | |
11469 | fail: | |
11470 | return NULL; | |
11471 | } | |
11472 | ||
11473 | ||
11474 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11475 | PyObject *resultobj; | |
11476 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11477 | int arg2 ; | |
11478 | PyObject * obj0 = 0 ; | |
11479 | PyObject * obj1 = 0 ; | |
11480 | char *kwnames[] = { | |
11481 | (char *) "self",(char *) "flag", NULL | |
11482 | }; | |
11483 | ||
11484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11487 | arg2 = (int) SWIG_AsInt(obj1); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | { | |
11490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11491 | (arg1)->SetChooseFull(arg2); | |
11492 | ||
11493 | wxPyEndAllowThreads(__tstate); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | } | |
11496 | Py_INCREF(Py_None); resultobj = Py_None; | |
11497 | return resultobj; | |
11498 | fail: | |
11499 | return NULL; | |
11500 | } | |
11501 | ||
11502 | ||
11503 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11504 | PyObject *resultobj; | |
11505 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11506 | wxColour *arg2 = 0 ; | |
11507 | wxColour temp2 ; | |
11508 | PyObject * obj0 = 0 ; | |
11509 | PyObject * obj1 = 0 ; | |
11510 | char *kwnames[] = { | |
11511 | (char *) "self",(char *) "colour", NULL | |
11512 | }; | |
11513 | ||
11514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11517 | { | |
11518 | arg2 = &temp2; | |
11519 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11520 | } | |
11521 | { | |
11522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11523 | (arg1)->SetColour((wxColour const &)*arg2); | |
11524 | ||
11525 | wxPyEndAllowThreads(__tstate); | |
11526 | if (PyErr_Occurred()) SWIG_fail; | |
11527 | } | |
11528 | Py_INCREF(Py_None); resultobj = Py_None; | |
11529 | return resultobj; | |
11530 | fail: | |
11531 | return NULL; | |
11532 | } | |
11533 | ||
11534 | ||
11535 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11536 | PyObject *resultobj; | |
11537 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11538 | int arg2 ; | |
11539 | wxColour *arg3 = 0 ; | |
11540 | wxColour temp3 ; | |
11541 | PyObject * obj0 = 0 ; | |
11542 | PyObject * obj1 = 0 ; | |
11543 | PyObject * obj2 = 0 ; | |
11544 | char *kwnames[] = { | |
11545 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11546 | }; | |
11547 | ||
11548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11551 | arg2 = (int) SWIG_AsInt(obj1); | |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
11553 | { | |
11554 | arg3 = &temp3; | |
11555 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11556 | } | |
11557 | { | |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | Py_INCREF(Py_None); resultobj = Py_None; | |
11565 | return resultobj; | |
11566 | fail: | |
11567 | return NULL; | |
11568 | } | |
11569 | ||
11570 | ||
11571 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11572 | PyObject *obj; | |
11573 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11574 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11575 | Py_INCREF(obj); | |
11576 | return Py_BuildValue((char *)""); | |
11577 | } | |
11578 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11579 | PyObject *resultobj; | |
11580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11581 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11582 | wxColourDialog *result; | |
11583 | PyObject * obj0 = 0 ; | |
11584 | PyObject * obj1 = 0 ; | |
11585 | char *kwnames[] = { | |
11586 | (char *) "parent",(char *) "data", NULL | |
11587 | }; | |
11588 | ||
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11592 | if (obj1) { | |
11593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11595 | } | |
11596 | { | |
0439c23b | 11597 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11599 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11600 | ||
11601 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11602 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11603 | } |
11604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11605 | return resultobj; | |
11606 | fail: | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
11611 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11612 | PyObject *resultobj; | |
11613 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11614 | wxColourData *result; | |
11615 | PyObject * obj0 = 0 ; | |
11616 | char *kwnames[] = { | |
11617 | (char *) "self", NULL | |
11618 | }; | |
11619 | ||
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11623 | { | |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11625 | { | |
11626 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11627 | result = (wxColourData *) &_result_ref; | |
11628 | } | |
11629 | ||
11630 | wxPyEndAllowThreads(__tstate); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11634 | return resultobj; | |
11635 | fail: | |
11636 | return NULL; | |
11637 | } | |
11638 | ||
11639 | ||
11640 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11641 | PyObject *obj; | |
11642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11643 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11644 | Py_INCREF(obj); | |
11645 | return Py_BuildValue((char *)""); | |
11646 | } | |
11647 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11648 | PyObject *resultobj; | |
11649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11650 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11651 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11652 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11653 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11654 | long arg4 = (long) 0 ; | |
11655 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11656 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11657 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11658 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11659 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11660 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11661 | wxDirDialog *result; | |
11662 | bool temp2 = False ; | |
11663 | bool temp3 = False ; | |
11664 | wxPoint temp5 ; | |
11665 | wxSize temp6 ; | |
11666 | bool temp7 = False ; | |
11667 | PyObject * obj0 = 0 ; | |
11668 | PyObject * obj1 = 0 ; | |
11669 | PyObject * obj2 = 0 ; | |
11670 | PyObject * obj3 = 0 ; | |
11671 | PyObject * obj4 = 0 ; | |
11672 | PyObject * obj5 = 0 ; | |
11673 | PyObject * obj6 = 0 ; | |
11674 | char *kwnames[] = { | |
11675 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11676 | }; | |
11677 | ||
11678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11681 | if (obj1) { | |
11682 | { | |
11683 | arg2 = wxString_in_helper(obj1); | |
11684 | if (arg2 == NULL) SWIG_fail; | |
11685 | temp2 = True; | |
11686 | } | |
11687 | } | |
11688 | if (obj2) { | |
11689 | { | |
11690 | arg3 = wxString_in_helper(obj2); | |
11691 | if (arg3 == NULL) SWIG_fail; | |
11692 | temp3 = True; | |
11693 | } | |
11694 | } | |
11695 | if (obj3) { | |
11696 | arg4 = (long) SWIG_AsLong(obj3); | |
11697 | if (PyErr_Occurred()) SWIG_fail; | |
11698 | } | |
11699 | if (obj4) { | |
11700 | { | |
11701 | arg5 = &temp5; | |
11702 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11703 | } | |
11704 | } | |
11705 | if (obj5) { | |
11706 | { | |
11707 | arg6 = &temp6; | |
11708 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11709 | } | |
11710 | } | |
11711 | if (obj6) { | |
11712 | { | |
11713 | arg7 = wxString_in_helper(obj6); | |
11714 | if (arg7 == NULL) SWIG_fail; | |
11715 | temp7 = True; | |
11716 | } | |
11717 | } | |
11718 | { | |
0439c23b | 11719 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11721 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11722 | ||
11723 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11724 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11725 | } |
11726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11727 | { | |
11728 | if (temp2) | |
11729 | delete arg2; | |
11730 | } | |
11731 | { | |
11732 | if (temp3) | |
11733 | delete arg3; | |
11734 | } | |
11735 | { | |
11736 | if (temp7) | |
11737 | delete arg7; | |
11738 | } | |
11739 | return resultobj; | |
11740 | fail: | |
11741 | { | |
11742 | if (temp2) | |
11743 | delete arg2; | |
11744 | } | |
11745 | { | |
11746 | if (temp3) | |
11747 | delete arg3; | |
11748 | } | |
11749 | { | |
11750 | if (temp7) | |
11751 | delete arg7; | |
11752 | } | |
11753 | return NULL; | |
11754 | } | |
11755 | ||
11756 | ||
11757 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11758 | PyObject *resultobj; | |
11759 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11760 | wxString result; | |
11761 | PyObject * obj0 = 0 ; | |
11762 | char *kwnames[] = { | |
11763 | (char *) "self", NULL | |
11764 | }; | |
11765 | ||
11766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11769 | { | |
11770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11771 | result = (arg1)->GetPath(); | |
11772 | ||
11773 | wxPyEndAllowThreads(__tstate); | |
11774 | if (PyErr_Occurred()) SWIG_fail; | |
11775 | } | |
11776 | { | |
11777 | #if wxUSE_UNICODE | |
11778 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11779 | #else | |
11780 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11781 | #endif | |
11782 | } | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11790 | PyObject *resultobj; | |
11791 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11792 | wxString result; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | char *kwnames[] = { | |
11795 | (char *) "self", NULL | |
11796 | }; | |
11797 | ||
11798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11801 | { | |
11802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11803 | result = (arg1)->GetMessage(); | |
11804 | ||
11805 | wxPyEndAllowThreads(__tstate); | |
11806 | if (PyErr_Occurred()) SWIG_fail; | |
11807 | } | |
11808 | { | |
11809 | #if wxUSE_UNICODE | |
11810 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11811 | #else | |
11812 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11813 | #endif | |
11814 | } | |
11815 | return resultobj; | |
11816 | fail: | |
11817 | return NULL; | |
11818 | } | |
11819 | ||
11820 | ||
11821 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11822 | PyObject *resultobj; | |
11823 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11824 | long result; | |
11825 | PyObject * obj0 = 0 ; | |
11826 | char *kwnames[] = { | |
11827 | (char *) "self", NULL | |
11828 | }; | |
11829 | ||
11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11833 | { | |
11834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11835 | result = (long)(arg1)->GetStyle(); | |
11836 | ||
11837 | wxPyEndAllowThreads(__tstate); | |
11838 | if (PyErr_Occurred()) SWIG_fail; | |
11839 | } | |
11840 | resultobj = SWIG_FromLong((long)result); | |
11841 | return resultobj; | |
11842 | fail: | |
11843 | return NULL; | |
11844 | } | |
11845 | ||
11846 | ||
11847 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11848 | PyObject *resultobj; | |
11849 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11850 | wxString *arg2 = 0 ; | |
11851 | bool temp2 = False ; | |
11852 | PyObject * obj0 = 0 ; | |
11853 | PyObject * obj1 = 0 ; | |
11854 | char *kwnames[] = { | |
11855 | (char *) "self",(char *) "message", NULL | |
11856 | }; | |
11857 | ||
11858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11861 | { | |
11862 | arg2 = wxString_in_helper(obj1); | |
11863 | if (arg2 == NULL) SWIG_fail; | |
11864 | temp2 = True; | |
11865 | } | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | (arg1)->SetMessage((wxString const &)*arg2); | |
11869 | ||
11870 | wxPyEndAllowThreads(__tstate); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | Py_INCREF(Py_None); resultobj = Py_None; | |
11874 | { | |
11875 | if (temp2) | |
11876 | delete arg2; | |
11877 | } | |
11878 | return resultobj; | |
11879 | fail: | |
11880 | { | |
11881 | if (temp2) | |
11882 | delete arg2; | |
11883 | } | |
11884 | return NULL; | |
11885 | } | |
11886 | ||
11887 | ||
11888 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11889 | PyObject *resultobj; | |
11890 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11891 | wxString *arg2 = 0 ; | |
11892 | bool temp2 = False ; | |
11893 | PyObject * obj0 = 0 ; | |
11894 | PyObject * obj1 = 0 ; | |
11895 | char *kwnames[] = { | |
11896 | (char *) "self",(char *) "path", NULL | |
11897 | }; | |
11898 | ||
11899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11902 | { | |
11903 | arg2 = wxString_in_helper(obj1); | |
11904 | if (arg2 == NULL) SWIG_fail; | |
11905 | temp2 = True; | |
11906 | } | |
11907 | { | |
11908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11909 | (arg1)->SetPath((wxString const &)*arg2); | |
11910 | ||
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | Py_INCREF(Py_None); resultobj = Py_None; | |
11915 | { | |
11916 | if (temp2) | |
11917 | delete arg2; | |
11918 | } | |
11919 | return resultobj; | |
11920 | fail: | |
11921 | { | |
11922 | if (temp2) | |
11923 | delete arg2; | |
11924 | } | |
11925 | return NULL; | |
11926 | } | |
11927 | ||
11928 | ||
11929 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11930 | PyObject *obj; | |
11931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11932 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11933 | Py_INCREF(obj); | |
11934 | return Py_BuildValue((char *)""); | |
11935 | } | |
11936 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11937 | PyObject *resultobj; | |
11938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11939 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11940 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11941 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11942 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11943 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11944 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11945 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11946 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11947 | long arg6 = (long) 0 ; | |
11948 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11949 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11950 | wxFileDialog *result; | |
11951 | bool temp2 = False ; | |
11952 | bool temp3 = False ; | |
11953 | bool temp4 = False ; | |
11954 | bool temp5 = False ; | |
11955 | wxPoint temp7 ; | |
11956 | PyObject * obj0 = 0 ; | |
11957 | PyObject * obj1 = 0 ; | |
11958 | PyObject * obj2 = 0 ; | |
11959 | PyObject * obj3 = 0 ; | |
11960 | PyObject * obj4 = 0 ; | |
11961 | PyObject * obj5 = 0 ; | |
11962 | PyObject * obj6 = 0 ; | |
11963 | char *kwnames[] = { | |
11964 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11965 | }; | |
11966 | ||
11967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11970 | if (obj1) { | |
11971 | { | |
11972 | arg2 = wxString_in_helper(obj1); | |
11973 | if (arg2 == NULL) SWIG_fail; | |
11974 | temp2 = True; | |
11975 | } | |
11976 | } | |
11977 | if (obj2) { | |
11978 | { | |
11979 | arg3 = wxString_in_helper(obj2); | |
11980 | if (arg3 == NULL) SWIG_fail; | |
11981 | temp3 = True; | |
11982 | } | |
11983 | } | |
11984 | if (obj3) { | |
11985 | { | |
11986 | arg4 = wxString_in_helper(obj3); | |
11987 | if (arg4 == NULL) SWIG_fail; | |
11988 | temp4 = True; | |
11989 | } | |
11990 | } | |
11991 | if (obj4) { | |
11992 | { | |
11993 | arg5 = wxString_in_helper(obj4); | |
11994 | if (arg5 == NULL) SWIG_fail; | |
11995 | temp5 = True; | |
11996 | } | |
11997 | } | |
11998 | if (obj5) { | |
11999 | arg6 = (long) SWIG_AsLong(obj5); | |
12000 | if (PyErr_Occurred()) SWIG_fail; | |
12001 | } | |
12002 | if (obj6) { | |
12003 | { | |
12004 | arg7 = &temp7; | |
12005 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12006 | } | |
12007 | } | |
12008 | { | |
0439c23b | 12009 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12011 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
12012 | ||
12013 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12014 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12015 | } |
12016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
12017 | { | |
12018 | if (temp2) | |
12019 | delete arg2; | |
12020 | } | |
12021 | { | |
12022 | if (temp3) | |
12023 | delete arg3; | |
12024 | } | |
12025 | { | |
12026 | if (temp4) | |
12027 | delete arg4; | |
12028 | } | |
12029 | { | |
12030 | if (temp5) | |
12031 | delete arg5; | |
12032 | } | |
12033 | return resultobj; | |
12034 | fail: | |
12035 | { | |
12036 | if (temp2) | |
12037 | delete arg2; | |
12038 | } | |
12039 | { | |
12040 | if (temp3) | |
12041 | delete arg3; | |
12042 | } | |
12043 | { | |
12044 | if (temp4) | |
12045 | delete arg4; | |
12046 | } | |
12047 | { | |
12048 | if (temp5) | |
12049 | delete arg5; | |
12050 | } | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12058 | wxString *arg2 = 0 ; | |
12059 | bool temp2 = False ; | |
12060 | PyObject * obj0 = 0 ; | |
12061 | PyObject * obj1 = 0 ; | |
12062 | char *kwnames[] = { | |
12063 | (char *) "self",(char *) "message", NULL | |
12064 | }; | |
12065 | ||
12066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
12067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12069 | { | |
12070 | arg2 = wxString_in_helper(obj1); | |
12071 | if (arg2 == NULL) SWIG_fail; | |
12072 | temp2 = True; | |
12073 | } | |
12074 | { | |
12075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12076 | (arg1)->SetMessage((wxString const &)*arg2); | |
12077 | ||
12078 | wxPyEndAllowThreads(__tstate); | |
12079 | if (PyErr_Occurred()) SWIG_fail; | |
12080 | } | |
12081 | Py_INCREF(Py_None); resultobj = Py_None; | |
12082 | { | |
12083 | if (temp2) | |
12084 | delete arg2; | |
12085 | } | |
12086 | return resultobj; | |
12087 | fail: | |
12088 | { | |
12089 | if (temp2) | |
12090 | delete arg2; | |
12091 | } | |
12092 | return NULL; | |
12093 | } | |
12094 | ||
12095 | ||
12096 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12097 | PyObject *resultobj; | |
12098 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12099 | wxString *arg2 = 0 ; | |
12100 | bool temp2 = False ; | |
12101 | PyObject * obj0 = 0 ; | |
12102 | PyObject * obj1 = 0 ; | |
12103 | char *kwnames[] = { | |
12104 | (char *) "self",(char *) "path", NULL | |
12105 | }; | |
12106 | ||
12107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
12108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12110 | { | |
12111 | arg2 = wxString_in_helper(obj1); | |
12112 | if (arg2 == NULL) SWIG_fail; | |
12113 | temp2 = True; | |
12114 | } | |
12115 | { | |
12116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12117 | (arg1)->SetPath((wxString const &)*arg2); | |
12118 | ||
12119 | wxPyEndAllowThreads(__tstate); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | Py_INCREF(Py_None); resultobj = Py_None; | |
12123 | { | |
12124 | if (temp2) | |
12125 | delete arg2; | |
12126 | } | |
12127 | return resultobj; | |
12128 | fail: | |
12129 | { | |
12130 | if (temp2) | |
12131 | delete arg2; | |
12132 | } | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12140 | wxString *arg2 = 0 ; | |
12141 | bool temp2 = False ; | |
12142 | PyObject * obj0 = 0 ; | |
12143 | PyObject * obj1 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self",(char *) "dir", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12151 | { | |
12152 | arg2 = wxString_in_helper(obj1); | |
12153 | if (arg2 == NULL) SWIG_fail; | |
12154 | temp2 = True; | |
12155 | } | |
12156 | { | |
12157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12158 | (arg1)->SetDirectory((wxString const &)*arg2); | |
12159 | ||
12160 | wxPyEndAllowThreads(__tstate); | |
12161 | if (PyErr_Occurred()) SWIG_fail; | |
12162 | } | |
12163 | Py_INCREF(Py_None); resultobj = Py_None; | |
12164 | { | |
12165 | if (temp2) | |
12166 | delete arg2; | |
12167 | } | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | { | |
12171 | if (temp2) | |
12172 | delete arg2; | |
12173 | } | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
12178 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12181 | wxString *arg2 = 0 ; | |
12182 | bool temp2 = False ; | |
12183 | PyObject * obj0 = 0 ; | |
12184 | PyObject * obj1 = 0 ; | |
12185 | char *kwnames[] = { | |
12186 | (char *) "self",(char *) "name", NULL | |
12187 | }; | |
12188 | ||
12189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
12190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12192 | { | |
12193 | arg2 = wxString_in_helper(obj1); | |
12194 | if (arg2 == NULL) SWIG_fail; | |
12195 | temp2 = True; | |
12196 | } | |
12197 | { | |
12198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12199 | (arg1)->SetFilename((wxString const &)*arg2); | |
12200 | ||
12201 | wxPyEndAllowThreads(__tstate); | |
12202 | if (PyErr_Occurred()) SWIG_fail; | |
12203 | } | |
12204 | Py_INCREF(Py_None); resultobj = Py_None; | |
12205 | { | |
12206 | if (temp2) | |
12207 | delete arg2; | |
12208 | } | |
12209 | return resultobj; | |
12210 | fail: | |
12211 | { | |
12212 | if (temp2) | |
12213 | delete arg2; | |
12214 | } | |
12215 | return NULL; | |
12216 | } | |
12217 | ||
12218 | ||
12219 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12220 | PyObject *resultobj; | |
12221 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12222 | wxString *arg2 = 0 ; | |
12223 | bool temp2 = False ; | |
12224 | PyObject * obj0 = 0 ; | |
12225 | PyObject * obj1 = 0 ; | |
12226 | char *kwnames[] = { | |
12227 | (char *) "self",(char *) "wildCard", NULL | |
12228 | }; | |
12229 | ||
12230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
12231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12233 | { | |
12234 | arg2 = wxString_in_helper(obj1); | |
12235 | if (arg2 == NULL) SWIG_fail; | |
12236 | temp2 = True; | |
12237 | } | |
12238 | { | |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12240 | (arg1)->SetWildcard((wxString const &)*arg2); | |
12241 | ||
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
12245 | Py_INCREF(Py_None); resultobj = Py_None; | |
12246 | { | |
12247 | if (temp2) | |
12248 | delete arg2; | |
12249 | } | |
12250 | return resultobj; | |
12251 | fail: | |
12252 | { | |
12253 | if (temp2) | |
12254 | delete arg2; | |
12255 | } | |
12256 | return NULL; | |
12257 | } | |
12258 | ||
12259 | ||
12260 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12261 | PyObject *resultobj; | |
12262 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12263 | long arg2 ; | |
12264 | PyObject * obj0 = 0 ; | |
12265 | PyObject * obj1 = 0 ; | |
12266 | char *kwnames[] = { | |
12267 | (char *) "self",(char *) "style", NULL | |
12268 | }; | |
12269 | ||
12270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
12271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12273 | arg2 = (long) SWIG_AsLong(obj1); | |
12274 | if (PyErr_Occurred()) SWIG_fail; | |
12275 | { | |
12276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12277 | (arg1)->SetStyle(arg2); | |
12278 | ||
12279 | wxPyEndAllowThreads(__tstate); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | } | |
12282 | Py_INCREF(Py_None); resultobj = Py_None; | |
12283 | return resultobj; | |
12284 | fail: | |
12285 | return NULL; | |
12286 | } | |
12287 | ||
12288 | ||
12289 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12290 | PyObject *resultobj; | |
12291 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12292 | int arg2 ; | |
12293 | PyObject * obj0 = 0 ; | |
12294 | PyObject * obj1 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "self",(char *) "filterIndex", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
12300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12302 | arg2 = (int) SWIG_AsInt(obj1); | |
12303 | if (PyErr_Occurred()) SWIG_fail; | |
12304 | { | |
12305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12306 | (arg1)->SetFilterIndex(arg2); | |
12307 | ||
12308 | wxPyEndAllowThreads(__tstate); | |
12309 | if (PyErr_Occurred()) SWIG_fail; | |
12310 | } | |
12311 | Py_INCREF(Py_None); resultobj = Py_None; | |
12312 | return resultobj; | |
12313 | fail: | |
12314 | return NULL; | |
12315 | } | |
12316 | ||
12317 | ||
12318 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12319 | PyObject *resultobj; | |
12320 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12321 | wxString result; | |
12322 | PyObject * obj0 = 0 ; | |
12323 | char *kwnames[] = { | |
12324 | (char *) "self", NULL | |
12325 | }; | |
12326 | ||
12327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
12328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12330 | { | |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12332 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
12333 | ||
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | { | |
12338 | #if wxUSE_UNICODE | |
12339 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12340 | #else | |
12341 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12342 | #endif | |
12343 | } | |
12344 | return resultobj; | |
12345 | fail: | |
12346 | return NULL; | |
12347 | } | |
12348 | ||
12349 | ||
12350 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12351 | PyObject *resultobj; | |
12352 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12353 | wxString result; | |
12354 | PyObject * obj0 = 0 ; | |
12355 | char *kwnames[] = { | |
12356 | (char *) "self", NULL | |
12357 | }; | |
12358 | ||
12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
12360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
12365 | ||
12366 | wxPyEndAllowThreads(__tstate); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
12369 | { | |
12370 | #if wxUSE_UNICODE | |
12371 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12372 | #else | |
12373 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12374 | #endif | |
12375 | } | |
12376 | return resultobj; | |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject *resultobj; | |
12384 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12385 | wxString result; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | char *kwnames[] = { | |
12388 | (char *) "self", NULL | |
12389 | }; | |
12390 | ||
12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
12392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12394 | { | |
12395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12396 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
12397 | ||
12398 | wxPyEndAllowThreads(__tstate); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
12400 | } | |
12401 | { | |
12402 | #if wxUSE_UNICODE | |
12403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12404 | #else | |
12405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12406 | #endif | |
12407 | } | |
12408 | return resultobj; | |
12409 | fail: | |
12410 | return NULL; | |
12411 | } | |
12412 | ||
12413 | ||
12414 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12415 | PyObject *resultobj; | |
12416 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12417 | wxString result; | |
12418 | PyObject * obj0 = 0 ; | |
12419 | char *kwnames[] = { | |
12420 | (char *) "self", NULL | |
12421 | }; | |
12422 | ||
12423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12426 | { | |
12427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12428 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12429 | ||
12430 | wxPyEndAllowThreads(__tstate); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | } | |
12433 | { | |
12434 | #if wxUSE_UNICODE | |
12435 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12436 | #else | |
12437 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12438 | #endif | |
12439 | } | |
12440 | return resultobj; | |
12441 | fail: | |
12442 | return NULL; | |
12443 | } | |
12444 | ||
12445 | ||
12446 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12447 | PyObject *resultobj; | |
12448 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12449 | wxString result; | |
12450 | PyObject * obj0 = 0 ; | |
12451 | char *kwnames[] = { | |
12452 | (char *) "self", NULL | |
12453 | }; | |
12454 | ||
12455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12458 | { | |
12459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12460 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12461 | ||
12462 | wxPyEndAllowThreads(__tstate); | |
12463 | if (PyErr_Occurred()) SWIG_fail; | |
12464 | } | |
12465 | { | |
12466 | #if wxUSE_UNICODE | |
12467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12468 | #else | |
12469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12470 | #endif | |
12471 | } | |
12472 | return resultobj; | |
12473 | fail: | |
12474 | return NULL; | |
12475 | } | |
12476 | ||
12477 | ||
12478 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12479 | PyObject *resultobj; | |
12480 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12481 | long result; | |
12482 | PyObject * obj0 = 0 ; | |
12483 | char *kwnames[] = { | |
12484 | (char *) "self", NULL | |
12485 | }; | |
12486 | ||
12487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12490 | { | |
12491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12492 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12493 | ||
12494 | wxPyEndAllowThreads(__tstate); | |
12495 | if (PyErr_Occurred()) SWIG_fail; | |
12496 | } | |
12497 | resultobj = SWIG_FromLong((long)result); | |
12498 | return resultobj; | |
12499 | fail: | |
12500 | return NULL; | |
12501 | } | |
12502 | ||
12503 | ||
12504 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12505 | PyObject *resultobj; | |
12506 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12507 | int result; | |
12508 | PyObject * obj0 = 0 ; | |
12509 | char *kwnames[] = { | |
12510 | (char *) "self", NULL | |
12511 | }; | |
12512 | ||
12513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12516 | { | |
12517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12518 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12519 | ||
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | resultobj = SWIG_FromInt((int)result); | |
12524 | return resultobj; | |
12525 | fail: | |
12526 | return NULL; | |
12527 | } | |
12528 | ||
12529 | ||
12530 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12531 | PyObject *resultobj; | |
12532 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12533 | PyObject *result; | |
12534 | PyObject * obj0 = 0 ; | |
12535 | char *kwnames[] = { | |
12536 | (char *) "self", NULL | |
12537 | }; | |
12538 | ||
12539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12542 | { | |
12543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12544 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12545 | ||
12546 | wxPyEndAllowThreads(__tstate); | |
12547 | if (PyErr_Occurred()) SWIG_fail; | |
12548 | } | |
12549 | resultobj = result; | |
12550 | return resultobj; | |
12551 | fail: | |
12552 | return NULL; | |
12553 | } | |
12554 | ||
12555 | ||
12556 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12557 | PyObject *resultobj; | |
12558 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12559 | PyObject *result; | |
12560 | PyObject * obj0 = 0 ; | |
12561 | char *kwnames[] = { | |
12562 | (char *) "self", NULL | |
12563 | }; | |
12564 | ||
12565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12568 | { | |
12569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12570 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12571 | ||
12572 | wxPyEndAllowThreads(__tstate); | |
12573 | if (PyErr_Occurred()) SWIG_fail; | |
12574 | } | |
12575 | resultobj = result; | |
12576 | return resultobj; | |
12577 | fail: | |
12578 | return NULL; | |
12579 | } | |
12580 | ||
12581 | ||
12582 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12583 | PyObject *obj; | |
12584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12585 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12586 | Py_INCREF(obj); | |
12587 | return Py_BuildValue((char *)""); | |
12588 | } | |
12589 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12590 | PyObject *resultobj; | |
12591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12592 | wxString *arg2 = 0 ; | |
12593 | wxString *arg3 = 0 ; | |
12594 | int arg4 = (int) 0 ; | |
248ed943 | 12595 | wxString *arg5 = (wxString *) NULL ; |
d55e5bfc RD |
12596 | long arg6 = (long) wxCHOICEDLG_STYLE ; |
12597 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12598 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12599 | wxMultiChoiceDialog *result; | |
12600 | bool temp2 = False ; | |
12601 | bool temp3 = False ; | |
12602 | wxPoint temp6 ; | |
12603 | PyObject * obj0 = 0 ; | |
12604 | PyObject * obj1 = 0 ; | |
12605 | PyObject * obj2 = 0 ; | |
12606 | PyObject * obj3 = 0 ; | |
12607 | PyObject * obj4 = 0 ; | |
12608 | PyObject * obj5 = 0 ; | |
12609 | char *kwnames[] = { | |
12610 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12611 | }; | |
12612 | ||
12613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12616 | { | |
12617 | arg2 = wxString_in_helper(obj1); | |
12618 | if (arg2 == NULL) SWIG_fail; | |
12619 | temp2 = True; | |
12620 | } | |
12621 | { | |
12622 | arg3 = wxString_in_helper(obj2); | |
12623 | if (arg3 == NULL) SWIG_fail; | |
12624 | temp3 = True; | |
12625 | } | |
12626 | if (obj3) { | |
12627 | { | |
12628 | arg4 = PyList_Size(obj3); | |
12629 | arg5 = wxString_LIST_helper(obj3); | |
12630 | if (arg5 == NULL) SWIG_fail; | |
12631 | } | |
12632 | } | |
12633 | if (obj4) { | |
12634 | arg6 = (long) SWIG_AsLong(obj4); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
12637 | if (obj5) { | |
12638 | { | |
12639 | arg7 = &temp6; | |
12640 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12641 | } | |
12642 | } | |
12643 | { | |
0439c23b | 12644 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12646 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12647 | ||
12648 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12649 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12650 | } |
12651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12652 | { | |
12653 | if (temp2) | |
12654 | delete arg2; | |
12655 | } | |
12656 | { | |
12657 | if (temp3) | |
12658 | delete arg3; | |
12659 | } | |
12660 | { | |
12661 | if (arg5) delete [] arg5; | |
12662 | } | |
12663 | return resultobj; | |
12664 | fail: | |
12665 | { | |
12666 | if (temp2) | |
12667 | delete arg2; | |
12668 | } | |
12669 | { | |
12670 | if (temp3) | |
12671 | delete arg3; | |
12672 | } | |
12673 | { | |
12674 | if (arg5) delete [] arg5; | |
12675 | } | |
12676 | return NULL; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12681 | PyObject *resultobj; | |
12682 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12683 | wxArrayInt *arg2 = 0 ; | |
12684 | bool temp2 = False ; | |
12685 | PyObject * obj0 = 0 ; | |
12686 | PyObject * obj1 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self",(char *) "selections", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12694 | { | |
12695 | if (! PySequence_Check(obj1)) { | |
12696 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12697 | SWIG_fail; | |
12698 | } | |
12699 | arg2 = new wxArrayInt; | |
12700 | temp2 = True; | |
12701 | int i, len=PySequence_Length(obj1); | |
12702 | for (i=0; i<len; i++) { | |
12703 | PyObject* item = PySequence_GetItem(obj1, i); | |
12704 | PyObject* number = PyNumber_Int(item); | |
12705 | arg2->Add(PyInt_AS_LONG(number)); | |
12706 | Py_DECREF(item); | |
12707 | Py_DECREF(number); | |
12708 | } | |
12709 | } | |
12710 | { | |
12711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12712 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12713 | ||
12714 | wxPyEndAllowThreads(__tstate); | |
12715 | if (PyErr_Occurred()) SWIG_fail; | |
12716 | } | |
12717 | Py_INCREF(Py_None); resultobj = Py_None; | |
12718 | { | |
12719 | if (temp2) delete arg2; | |
12720 | } | |
12721 | return resultobj; | |
12722 | fail: | |
12723 | { | |
12724 | if (temp2) delete arg2; | |
12725 | } | |
12726 | return NULL; | |
12727 | } | |
12728 | ||
12729 | ||
12730 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12731 | PyObject *resultobj; | |
12732 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12733 | PyObject *result; | |
12734 | PyObject * obj0 = 0 ; | |
12735 | char *kwnames[] = { | |
12736 | (char *) "self", NULL | |
12737 | }; | |
12738 | ||
12739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12742 | { | |
12743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12744 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12745 | ||
12746 | wxPyEndAllowThreads(__tstate); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
12749 | resultobj = result; | |
12750 | return resultobj; | |
12751 | fail: | |
12752 | return NULL; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12757 | PyObject *obj; | |
12758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12759 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12760 | Py_INCREF(obj); | |
12761 | return Py_BuildValue((char *)""); | |
12762 | } | |
12763 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12764 | PyObject *resultobj; | |
12765 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12766 | wxString *arg2 = 0 ; | |
12767 | wxString *arg3 = 0 ; | |
12768 | int arg4 ; | |
12769 | wxString *arg5 = (wxString *) 0 ; | |
12770 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12771 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12772 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12773 | wxSingleChoiceDialog *result; | |
12774 | bool temp2 = False ; | |
12775 | bool temp3 = False ; | |
12776 | wxPoint temp6 ; | |
12777 | PyObject * obj0 = 0 ; | |
12778 | PyObject * obj1 = 0 ; | |
12779 | PyObject * obj2 = 0 ; | |
12780 | PyObject * obj3 = 0 ; | |
12781 | PyObject * obj4 = 0 ; | |
12782 | PyObject * obj5 = 0 ; | |
12783 | char *kwnames[] = { | |
12784 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12785 | }; | |
12786 | ||
12787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12790 | { | |
12791 | arg2 = wxString_in_helper(obj1); | |
12792 | if (arg2 == NULL) SWIG_fail; | |
12793 | temp2 = True; | |
12794 | } | |
12795 | { | |
12796 | arg3 = wxString_in_helper(obj2); | |
12797 | if (arg3 == NULL) SWIG_fail; | |
12798 | temp3 = True; | |
12799 | } | |
12800 | { | |
12801 | arg4 = PyList_Size(obj3); | |
12802 | arg5 = wxString_LIST_helper(obj3); | |
12803 | if (arg5 == NULL) SWIG_fail; | |
12804 | } | |
12805 | if (obj4) { | |
12806 | arg6 = (long) SWIG_AsLong(obj4); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
12809 | if (obj5) { | |
12810 | { | |
12811 | arg7 = &temp6; | |
12812 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12813 | } | |
12814 | } | |
12815 | { | |
0439c23b | 12816 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12818 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12821 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12822 | } |
12823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12824 | { | |
12825 | if (temp2) | |
12826 | delete arg2; | |
12827 | } | |
12828 | { | |
12829 | if (temp3) | |
12830 | delete arg3; | |
12831 | } | |
12832 | { | |
12833 | if (arg5) delete [] arg5; | |
12834 | } | |
12835 | return resultobj; | |
12836 | fail: | |
12837 | { | |
12838 | if (temp2) | |
12839 | delete arg2; | |
12840 | } | |
12841 | { | |
12842 | if (temp3) | |
12843 | delete arg3; | |
12844 | } | |
12845 | { | |
12846 | if (arg5) delete [] arg5; | |
12847 | } | |
12848 | return NULL; | |
12849 | } | |
12850 | ||
12851 | ||
12852 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12853 | PyObject *resultobj; | |
12854 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12855 | int result; | |
12856 | PyObject * obj0 = 0 ; | |
12857 | char *kwnames[] = { | |
12858 | (char *) "self", NULL | |
12859 | }; | |
12860 | ||
12861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12864 | { | |
12865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12866 | result = (int)(arg1)->GetSelection(); | |
12867 | ||
12868 | wxPyEndAllowThreads(__tstate); | |
12869 | if (PyErr_Occurred()) SWIG_fail; | |
12870 | } | |
12871 | resultobj = SWIG_FromInt((int)result); | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | return NULL; | |
12875 | } | |
12876 | ||
12877 | ||
12878 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12879 | PyObject *resultobj; | |
12880 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12881 | wxString result; | |
12882 | PyObject * obj0 = 0 ; | |
12883 | char *kwnames[] = { | |
12884 | (char *) "self", NULL | |
12885 | }; | |
12886 | ||
12887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12890 | { | |
12891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12892 | result = (arg1)->GetStringSelection(); | |
12893 | ||
12894 | wxPyEndAllowThreads(__tstate); | |
12895 | if (PyErr_Occurred()) SWIG_fail; | |
12896 | } | |
12897 | { | |
12898 | #if wxUSE_UNICODE | |
12899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12900 | #else | |
12901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12902 | #endif | |
12903 | } | |
12904 | return resultobj; | |
12905 | fail: | |
12906 | return NULL; | |
12907 | } | |
12908 | ||
12909 | ||
12910 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12911 | PyObject *resultobj; | |
12912 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12913 | int arg2 ; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | PyObject * obj1 = 0 ; | |
12916 | char *kwnames[] = { | |
12917 | (char *) "self",(char *) "sel", NULL | |
12918 | }; | |
12919 | ||
12920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12923 | arg2 = (int) SWIG_AsInt(obj1); | |
12924 | if (PyErr_Occurred()) SWIG_fail; | |
12925 | { | |
12926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12927 | (arg1)->SetSelection(arg2); | |
12928 | ||
12929 | wxPyEndAllowThreads(__tstate); | |
12930 | if (PyErr_Occurred()) SWIG_fail; | |
12931 | } | |
12932 | Py_INCREF(Py_None); resultobj = Py_None; | |
12933 | return resultobj; | |
12934 | fail: | |
12935 | return NULL; | |
12936 | } | |
12937 | ||
12938 | ||
12939 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12940 | PyObject *obj; | |
12941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12942 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12943 | Py_INCREF(obj); | |
12944 | return Py_BuildValue((char *)""); | |
12945 | } | |
12946 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12947 | PyObject *resultobj; | |
12948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12949 | wxString *arg2 = 0 ; | |
12950 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12951 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12952 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12953 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12954 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12955 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12956 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12957 | wxTextEntryDialog *result; | |
12958 | bool temp2 = False ; | |
12959 | bool temp3 = False ; | |
12960 | bool temp4 = False ; | |
12961 | wxPoint temp6 ; | |
12962 | PyObject * obj0 = 0 ; | |
12963 | PyObject * obj1 = 0 ; | |
12964 | PyObject * obj2 = 0 ; | |
12965 | PyObject * obj3 = 0 ; | |
12966 | PyObject * obj4 = 0 ; | |
12967 | PyObject * obj5 = 0 ; | |
12968 | char *kwnames[] = { | |
12969 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12970 | }; | |
12971 | ||
12972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12975 | { | |
12976 | arg2 = wxString_in_helper(obj1); | |
12977 | if (arg2 == NULL) SWIG_fail; | |
12978 | temp2 = True; | |
12979 | } | |
12980 | if (obj2) { | |
12981 | { | |
12982 | arg3 = wxString_in_helper(obj2); | |
12983 | if (arg3 == NULL) SWIG_fail; | |
12984 | temp3 = True; | |
12985 | } | |
12986 | } | |
12987 | if (obj3) { | |
12988 | { | |
12989 | arg4 = wxString_in_helper(obj3); | |
12990 | if (arg4 == NULL) SWIG_fail; | |
12991 | temp4 = True; | |
12992 | } | |
12993 | } | |
12994 | if (obj4) { | |
12995 | arg5 = (long) SWIG_AsLong(obj4); | |
12996 | if (PyErr_Occurred()) SWIG_fail; | |
12997 | } | |
12998 | if (obj5) { | |
12999 | { | |
13000 | arg6 = &temp6; | |
13001 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13002 | } | |
13003 | } | |
13004 | { | |
0439c23b | 13005 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13007 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
13008 | ||
13009 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13010 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13011 | } |
13012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
13013 | { | |
13014 | if (temp2) | |
13015 | delete arg2; | |
13016 | } | |
13017 | { | |
13018 | if (temp3) | |
13019 | delete arg3; | |
13020 | } | |
13021 | { | |
13022 | if (temp4) | |
13023 | delete arg4; | |
13024 | } | |
13025 | return resultobj; | |
13026 | fail: | |
13027 | { | |
13028 | if (temp2) | |
13029 | delete arg2; | |
13030 | } | |
13031 | { | |
13032 | if (temp3) | |
13033 | delete arg3; | |
13034 | } | |
13035 | { | |
13036 | if (temp4) | |
13037 | delete arg4; | |
13038 | } | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
13043 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13044 | PyObject *resultobj; | |
13045 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
13046 | wxString result; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | char *kwnames[] = { | |
13049 | (char *) "self", NULL | |
13050 | }; | |
13051 | ||
13052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
13053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
13054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13055 | { | |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | result = (arg1)->GetValue(); | |
13058 | ||
13059 | wxPyEndAllowThreads(__tstate); | |
13060 | if (PyErr_Occurred()) SWIG_fail; | |
13061 | } | |
13062 | { | |
13063 | #if wxUSE_UNICODE | |
13064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13065 | #else | |
13066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13067 | #endif | |
13068 | } | |
13069 | return resultobj; | |
13070 | fail: | |
13071 | return NULL; | |
13072 | } | |
13073 | ||
13074 | ||
13075 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13076 | PyObject *resultobj; | |
13077 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
13078 | wxString *arg2 = 0 ; | |
13079 | bool temp2 = False ; | |
13080 | PyObject * obj0 = 0 ; | |
13081 | PyObject * obj1 = 0 ; | |
13082 | char *kwnames[] = { | |
13083 | (char *) "self",(char *) "value", NULL | |
13084 | }; | |
13085 | ||
13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
13088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13089 | { | |
13090 | arg2 = wxString_in_helper(obj1); | |
13091 | if (arg2 == NULL) SWIG_fail; | |
13092 | temp2 = True; | |
13093 | } | |
13094 | { | |
13095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13096 | (arg1)->SetValue((wxString const &)*arg2); | |
13097 | ||
13098 | wxPyEndAllowThreads(__tstate); | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | } | |
13101 | Py_INCREF(Py_None); resultobj = Py_None; | |
13102 | { | |
13103 | if (temp2) | |
13104 | delete arg2; | |
13105 | } | |
13106 | return resultobj; | |
13107 | fail: | |
13108 | { | |
13109 | if (temp2) | |
13110 | delete arg2; | |
13111 | } | |
13112 | return NULL; | |
13113 | } | |
13114 | ||
13115 | ||
13116 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
13117 | PyObject *obj; | |
13118 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13119 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
13120 | Py_INCREF(obj); | |
13121 | return Py_BuildValue((char *)""); | |
13122 | } | |
13123 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13124 | PyObject *resultobj; | |
13125 | wxFontData *result; | |
13126 | char *kwnames[] = { | |
13127 | NULL | |
13128 | }; | |
13129 | ||
13130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
13131 | { | |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | result = (wxFontData *)new wxFontData(); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
13139 | return resultobj; | |
13140 | fail: | |
13141 | return NULL; | |
13142 | } | |
13143 | ||
13144 | ||
13145 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13146 | PyObject *resultobj; | |
13147 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13148 | PyObject * obj0 = 0 ; | |
13149 | char *kwnames[] = { | |
13150 | (char *) "self", NULL | |
13151 | }; | |
13152 | ||
13153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
13154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13156 | { | |
13157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13158 | delete arg1; | |
13159 | ||
13160 | wxPyEndAllowThreads(__tstate); | |
13161 | if (PyErr_Occurred()) SWIG_fail; | |
13162 | } | |
13163 | Py_INCREF(Py_None); resultobj = Py_None; | |
13164 | return resultobj; | |
13165 | fail: | |
13166 | return NULL; | |
13167 | } | |
13168 | ||
13169 | ||
13170 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13171 | PyObject *resultobj; | |
13172 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13173 | bool arg2 ; | |
13174 | PyObject * obj0 = 0 ; | |
13175 | PyObject * obj1 = 0 ; | |
13176 | char *kwnames[] = { | |
13177 | (char *) "self",(char *) "enable", NULL | |
13178 | }; | |
13179 | ||
13180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
13181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13183 | arg2 = (bool) SWIG_AsBool(obj1); | |
13184 | if (PyErr_Occurred()) SWIG_fail; | |
13185 | { | |
13186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13187 | (arg1)->EnableEffects(arg2); | |
13188 | ||
13189 | wxPyEndAllowThreads(__tstate); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
13192 | Py_INCREF(Py_None); resultobj = Py_None; | |
13193 | return resultobj; | |
13194 | fail: | |
13195 | return NULL; | |
13196 | } | |
13197 | ||
13198 | ||
13199 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13200 | PyObject *resultobj; | |
13201 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13202 | bool result; | |
13203 | PyObject * obj0 = 0 ; | |
13204 | char *kwnames[] = { | |
13205 | (char *) "self", NULL | |
13206 | }; | |
13207 | ||
13208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
13209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13211 | { | |
13212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13213 | result = (bool)(arg1)->GetAllowSymbols(); | |
13214 | ||
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | { | |
13219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13220 | } | |
13221 | return resultobj; | |
13222 | fail: | |
13223 | return NULL; | |
13224 | } | |
13225 | ||
13226 | ||
13227 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13228 | PyObject *resultobj; | |
13229 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13230 | wxColour result; | |
13231 | PyObject * obj0 = 0 ; | |
13232 | char *kwnames[] = { | |
13233 | (char *) "self", NULL | |
13234 | }; | |
13235 | ||
13236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
13237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13239 | { | |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13241 | result = (arg1)->GetColour(); | |
13242 | ||
13243 | wxPyEndAllowThreads(__tstate); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | { | |
13247 | wxColour * resultptr; | |
13248 | resultptr = new wxColour((wxColour &) result); | |
13249 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
13250 | } | |
13251 | return resultobj; | |
13252 | fail: | |
13253 | return NULL; | |
13254 | } | |
13255 | ||
13256 | ||
13257 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13258 | PyObject *resultobj; | |
13259 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13260 | wxFont result; | |
13261 | PyObject * obj0 = 0 ; | |
13262 | char *kwnames[] = { | |
13263 | (char *) "self", NULL | |
13264 | }; | |
13265 | ||
13266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
13267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13269 | { | |
13270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13271 | result = (arg1)->GetChosenFont(); | |
13272 | ||
13273 | wxPyEndAllowThreads(__tstate); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | } | |
13276 | { | |
13277 | wxFont * resultptr; | |
13278 | resultptr = new wxFont((wxFont &) result); | |
13279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13280 | } | |
13281 | return resultobj; | |
13282 | fail: | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13288 | PyObject *resultobj; | |
13289 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13290 | bool result; | |
13291 | PyObject * obj0 = 0 ; | |
13292 | char *kwnames[] = { | |
13293 | (char *) "self", NULL | |
13294 | }; | |
13295 | ||
13296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
13297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | result = (bool)(arg1)->GetEnableEffects(); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
13306 | { | |
13307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13308 | } | |
13309 | return resultobj; | |
13310 | fail: | |
13311 | return NULL; | |
13312 | } | |
13313 | ||
13314 | ||
13315 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13316 | PyObject *resultobj; | |
13317 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13318 | wxFont result; | |
13319 | PyObject * obj0 = 0 ; | |
13320 | char *kwnames[] = { | |
13321 | (char *) "self", NULL | |
13322 | }; | |
13323 | ||
13324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
13325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13327 | { | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | result = (arg1)->GetInitialFont(); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
13334 | { | |
13335 | wxFont * resultptr; | |
13336 | resultptr = new wxFont((wxFont &) result); | |
13337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13338 | } | |
13339 | return resultobj; | |
13340 | fail: | |
13341 | return NULL; | |
13342 | } | |
13343 | ||
13344 | ||
13345 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13346 | PyObject *resultobj; | |
13347 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13348 | bool result; | |
13349 | PyObject * obj0 = 0 ; | |
13350 | char *kwnames[] = { | |
13351 | (char *) "self", NULL | |
13352 | }; | |
13353 | ||
13354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
13355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13357 | { | |
13358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13359 | result = (bool)(arg1)->GetShowHelp(); | |
13360 | ||
13361 | wxPyEndAllowThreads(__tstate); | |
13362 | if (PyErr_Occurred()) SWIG_fail; | |
13363 | } | |
13364 | { | |
13365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13366 | } | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
13373 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13374 | PyObject *resultobj; | |
13375 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13376 | bool arg2 ; | |
13377 | PyObject * obj0 = 0 ; | |
13378 | PyObject * obj1 = 0 ; | |
13379 | char *kwnames[] = { | |
13380 | (char *) "self",(char *) "allowSymbols", NULL | |
13381 | }; | |
13382 | ||
13383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
13384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13386 | arg2 = (bool) SWIG_AsBool(obj1); | |
13387 | if (PyErr_Occurred()) SWIG_fail; | |
13388 | { | |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | (arg1)->SetAllowSymbols(arg2); | |
13391 | ||
13392 | wxPyEndAllowThreads(__tstate); | |
13393 | if (PyErr_Occurred()) SWIG_fail; | |
13394 | } | |
13395 | Py_INCREF(Py_None); resultobj = Py_None; | |
13396 | return resultobj; | |
13397 | fail: | |
13398 | return NULL; | |
13399 | } | |
13400 | ||
13401 | ||
13402 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13403 | PyObject *resultobj; | |
13404 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13405 | wxFont *arg2 = 0 ; | |
13406 | PyObject * obj0 = 0 ; | |
13407 | PyObject * obj1 = 0 ; | |
13408 | char *kwnames[] = { | |
13409 | (char *) "self",(char *) "font", NULL | |
13410 | }; | |
13411 | ||
13412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
13413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13416 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13417 | SWIG_fail; | |
13418 | if (arg2 == NULL) { | |
13419 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13420 | SWIG_fail; | |
13421 | } | |
13422 | { | |
13423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13424 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13425 | ||
13426 | wxPyEndAllowThreads(__tstate); | |
13427 | if (PyErr_Occurred()) SWIG_fail; | |
13428 | } | |
13429 | Py_INCREF(Py_None); resultobj = Py_None; | |
13430 | return resultobj; | |
13431 | fail: | |
13432 | return NULL; | |
13433 | } | |
13434 | ||
13435 | ||
13436 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13437 | PyObject *resultobj; | |
13438 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13439 | wxColour *arg2 = 0 ; | |
13440 | wxColour temp2 ; | |
13441 | PyObject * obj0 = 0 ; | |
13442 | PyObject * obj1 = 0 ; | |
13443 | char *kwnames[] = { | |
13444 | (char *) "self",(char *) "colour", NULL | |
13445 | }; | |
13446 | ||
13447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13450 | { | |
13451 | arg2 = &temp2; | |
13452 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13453 | } | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | (arg1)->SetColour((wxColour const &)*arg2); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
13461 | Py_INCREF(Py_None); resultobj = Py_None; | |
13462 | return resultobj; | |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
13468 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj; | |
13470 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13471 | wxFont *arg2 = 0 ; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | PyObject * obj1 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self",(char *) "font", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13481 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13483 | SWIG_fail; | |
13484 | if (arg2 == NULL) { | |
13485 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13486 | SWIG_fail; | |
13487 | } | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13491 | ||
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | Py_INCREF(Py_None); resultobj = Py_None; | |
13496 | return resultobj; | |
13497 | fail: | |
13498 | return NULL; | |
13499 | } | |
13500 | ||
13501 | ||
13502 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13503 | PyObject *resultobj; | |
13504 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13505 | int arg2 ; | |
13506 | int arg3 ; | |
13507 | PyObject * obj0 = 0 ; | |
13508 | PyObject * obj1 = 0 ; | |
13509 | PyObject * obj2 = 0 ; | |
13510 | char *kwnames[] = { | |
13511 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13512 | }; | |
13513 | ||
13514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13517 | arg2 = (int) SWIG_AsInt(obj1); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | arg3 = (int) SWIG_AsInt(obj2); | |
13520 | if (PyErr_Occurred()) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | (arg1)->SetRange(arg2,arg3); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | Py_INCREF(Py_None); resultobj = Py_None; | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13538 | bool arg2 ; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | PyObject * obj1 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self",(char *) "showHelp", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13548 | arg2 = (bool) SWIG_AsBool(obj1); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | (arg1)->SetShowHelp(arg2); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | Py_INCREF(Py_None); resultobj = Py_None; | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13565 | PyObject *obj; | |
13566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13567 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13568 | Py_INCREF(obj); | |
13569 | return Py_BuildValue((char *)""); | |
13570 | } | |
13571 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13572 | PyObject *resultobj; | |
13573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13574 | wxFontData *arg2 = 0 ; | |
13575 | wxFontDialog *result; | |
13576 | PyObject * obj0 = 0 ; | |
13577 | PyObject * obj1 = 0 ; | |
13578 | char *kwnames[] = { | |
13579 | (char *) "parent",(char *) "data", NULL | |
13580 | }; | |
13581 | ||
13582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13586 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13587 | SWIG_fail; | |
13588 | if (arg2 == NULL) { | |
13589 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13590 | SWIG_fail; | |
13591 | } | |
13592 | { | |
0439c23b | 13593 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13595 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13596 | ||
13597 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13598 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13599 | } |
13600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13601 | return resultobj; | |
13602 | fail: | |
13603 | return NULL; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13608 | PyObject *resultobj; | |
13609 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13610 | wxFontData *result; | |
13611 | PyObject * obj0 = 0 ; | |
13612 | char *kwnames[] = { | |
13613 | (char *) "self", NULL | |
13614 | }; | |
13615 | ||
13616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13619 | { | |
13620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13621 | { | |
13622 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13623 | result = (wxFontData *) &_result_ref; | |
13624 | } | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
13629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13630 | return resultobj; | |
13631 | fail: | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
13636 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13637 | PyObject *obj; | |
13638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13639 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13640 | Py_INCREF(obj); | |
13641 | return Py_BuildValue((char *)""); | |
13642 | } | |
13643 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13644 | PyObject *resultobj; | |
13645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13646 | wxString *arg2 = 0 ; | |
13647 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13648 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13649 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13650 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13651 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13652 | wxMessageDialog *result; | |
13653 | bool temp2 = False ; | |
13654 | bool temp3 = False ; | |
13655 | wxPoint temp5 ; | |
13656 | PyObject * obj0 = 0 ; | |
13657 | PyObject * obj1 = 0 ; | |
13658 | PyObject * obj2 = 0 ; | |
13659 | PyObject * obj3 = 0 ; | |
13660 | PyObject * obj4 = 0 ; | |
13661 | char *kwnames[] = { | |
13662 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13663 | }; | |
13664 | ||
13665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13668 | { | |
13669 | arg2 = wxString_in_helper(obj1); | |
13670 | if (arg2 == NULL) SWIG_fail; | |
13671 | temp2 = True; | |
13672 | } | |
13673 | if (obj2) { | |
13674 | { | |
13675 | arg3 = wxString_in_helper(obj2); | |
13676 | if (arg3 == NULL) SWIG_fail; | |
13677 | temp3 = True; | |
13678 | } | |
13679 | } | |
13680 | if (obj3) { | |
13681 | arg4 = (long) SWIG_AsLong(obj3); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
13684 | if (obj4) { | |
13685 | { | |
13686 | arg5 = &temp5; | |
13687 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13688 | } | |
13689 | } | |
13690 | { | |
0439c23b | 13691 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13693 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13694 | ||
13695 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13696 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13697 | } |
13698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13699 | { | |
13700 | if (temp2) | |
13701 | delete arg2; | |
13702 | } | |
13703 | { | |
13704 | if (temp3) | |
13705 | delete arg3; | |
13706 | } | |
13707 | return resultobj; | |
13708 | fail: | |
13709 | { | |
13710 | if (temp2) | |
13711 | delete arg2; | |
13712 | } | |
13713 | { | |
13714 | if (temp3) | |
13715 | delete arg3; | |
13716 | } | |
13717 | return NULL; | |
13718 | } | |
13719 | ||
13720 | ||
13721 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13722 | PyObject *obj; | |
13723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13724 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13725 | Py_INCREF(obj); | |
13726 | return Py_BuildValue((char *)""); | |
13727 | } | |
13728 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13729 | PyObject *resultobj; | |
13730 | wxString *arg1 = 0 ; | |
13731 | wxString *arg2 = 0 ; | |
13732 | int arg3 = (int) 100 ; | |
13733 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13734 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13735 | wxProgressDialog *result; | |
13736 | bool temp1 = False ; | |
13737 | bool temp2 = False ; | |
13738 | PyObject * obj0 = 0 ; | |
13739 | PyObject * obj1 = 0 ; | |
13740 | PyObject * obj2 = 0 ; | |
13741 | PyObject * obj3 = 0 ; | |
13742 | PyObject * obj4 = 0 ; | |
13743 | char *kwnames[] = { | |
13744 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13745 | }; | |
13746 | ||
13747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13748 | { | |
13749 | arg1 = wxString_in_helper(obj0); | |
13750 | if (arg1 == NULL) SWIG_fail; | |
13751 | temp1 = True; | |
13752 | } | |
13753 | { | |
13754 | arg2 = wxString_in_helper(obj1); | |
13755 | if (arg2 == NULL) SWIG_fail; | |
13756 | temp2 = True; | |
13757 | } | |
13758 | if (obj2) { | |
13759 | arg3 = (int) SWIG_AsInt(obj2); | |
13760 | if (PyErr_Occurred()) SWIG_fail; | |
13761 | } | |
13762 | if (obj3) { | |
13763 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13765 | } | |
13766 | if (obj4) { | |
13767 | arg5 = (int) SWIG_AsInt(obj4); | |
13768 | if (PyErr_Occurred()) SWIG_fail; | |
13769 | } | |
13770 | { | |
0439c23b | 13771 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13773 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13774 | ||
13775 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13776 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13777 | } |
13778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13779 | { | |
13780 | if (temp1) | |
13781 | delete arg1; | |
13782 | } | |
13783 | { | |
13784 | if (temp2) | |
13785 | delete arg2; | |
13786 | } | |
13787 | return resultobj; | |
13788 | fail: | |
13789 | { | |
13790 | if (temp1) | |
13791 | delete arg1; | |
13792 | } | |
13793 | { | |
13794 | if (temp2) | |
13795 | delete arg2; | |
13796 | } | |
13797 | return NULL; | |
13798 | } | |
13799 | ||
13800 | ||
13801 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13802 | PyObject *resultobj; | |
13803 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13804 | int arg2 ; | |
13805 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13806 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13807 | bool result; | |
13808 | bool temp3 = False ; | |
13809 | PyObject * obj0 = 0 ; | |
13810 | PyObject * obj1 = 0 ; | |
13811 | PyObject * obj2 = 0 ; | |
13812 | char *kwnames[] = { | |
13813 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13814 | }; | |
13815 | ||
13816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13819 | arg2 = (int) SWIG_AsInt(obj1); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | if (obj2) { | |
13822 | { | |
13823 | arg3 = wxString_in_helper(obj2); | |
13824 | if (arg3 == NULL) SWIG_fail; | |
13825 | temp3 = True; | |
13826 | } | |
13827 | } | |
13828 | { | |
13829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13830 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13831 | ||
13832 | wxPyEndAllowThreads(__tstate); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | { | |
13836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13837 | } | |
13838 | { | |
13839 | if (temp3) | |
13840 | delete arg3; | |
13841 | } | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | { | |
13845 | if (temp3) | |
13846 | delete arg3; | |
13847 | } | |
13848 | return NULL; | |
13849 | } | |
13850 | ||
13851 | ||
13852 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13853 | PyObject *resultobj; | |
13854 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13855 | PyObject * obj0 = 0 ; | |
13856 | char *kwnames[] = { | |
13857 | (char *) "self", NULL | |
13858 | }; | |
13859 | ||
13860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | (arg1)->Resume(); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | Py_INCREF(Py_None); resultobj = Py_None; | |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13878 | PyObject *obj; | |
13879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13880 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13881 | Py_INCREF(obj); | |
13882 | return Py_BuildValue((char *)""); | |
13883 | } | |
13884 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13885 | PyObject *resultobj; | |
13886 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13887 | int arg2 = (int) 0 ; | |
13888 | wxFindDialogEvent *result; | |
13889 | PyObject * obj0 = 0 ; | |
13890 | PyObject * obj1 = 0 ; | |
13891 | char *kwnames[] = { | |
13892 | (char *) "commandType",(char *) "id", NULL | |
13893 | }; | |
13894 | ||
13895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13896 | if (obj0) { | |
13897 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
13900 | if (obj1) { | |
13901 | arg2 = (int) SWIG_AsInt(obj1); | |
13902 | if (PyErr_Occurred()) SWIG_fail; | |
13903 | } | |
13904 | { | |
13905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13906 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13907 | ||
13908 | wxPyEndAllowThreads(__tstate); | |
13909 | if (PyErr_Occurred()) SWIG_fail; | |
13910 | } | |
13911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13912 | return resultobj; | |
13913 | fail: | |
13914 | return NULL; | |
13915 | } | |
13916 | ||
13917 | ||
13918 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13919 | PyObject *resultobj; | |
13920 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13921 | int result; | |
13922 | PyObject * obj0 = 0 ; | |
13923 | char *kwnames[] = { | |
13924 | (char *) "self", NULL | |
13925 | }; | |
13926 | ||
13927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | result = (int)(arg1)->GetFlags(); | |
13933 | ||
13934 | wxPyEndAllowThreads(__tstate); | |
13935 | if (PyErr_Occurred()) SWIG_fail; | |
13936 | } | |
13937 | resultobj = SWIG_FromInt((int)result); | |
13938 | return resultobj; | |
13939 | fail: | |
13940 | return NULL; | |
13941 | } | |
13942 | ||
13943 | ||
13944 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13945 | PyObject *resultobj; | |
13946 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13947 | wxString *result; | |
13948 | PyObject * obj0 = 0 ; | |
13949 | char *kwnames[] = { | |
13950 | (char *) "self", NULL | |
13951 | }; | |
13952 | ||
13953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13956 | { | |
13957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13958 | { | |
13959 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13960 | result = (wxString *) &_result_ref; | |
13961 | } | |
13962 | ||
13963 | wxPyEndAllowThreads(__tstate); | |
13964 | if (PyErr_Occurred()) SWIG_fail; | |
13965 | } | |
13966 | { | |
13967 | #if wxUSE_UNICODE | |
13968 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13969 | #else | |
13970 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13971 | #endif | |
13972 | } | |
13973 | return resultobj; | |
13974 | fail: | |
13975 | return NULL; | |
13976 | } | |
13977 | ||
13978 | ||
13979 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13980 | PyObject *resultobj; | |
13981 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13982 | wxString *result; | |
13983 | PyObject * obj0 = 0 ; | |
13984 | char *kwnames[] = { | |
13985 | (char *) "self", NULL | |
13986 | }; | |
13987 | ||
13988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13991 | { | |
13992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13993 | { | |
13994 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13995 | result = (wxString *) &_result_ref; | |
13996 | } | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | { | |
14002 | #if wxUSE_UNICODE | |
14003 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14004 | #else | |
14005 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14006 | #endif | |
14007 | } | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14015 | PyObject *resultobj; | |
14016 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14017 | wxFindReplaceDialog *result; | |
14018 | PyObject * obj0 = 0 ; | |
14019 | char *kwnames[] = { | |
14020 | (char *) "self", NULL | |
14021 | }; | |
14022 | ||
14023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
14024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14026 | { | |
14027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14028 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
14029 | ||
14030 | wxPyEndAllowThreads(__tstate); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | } | |
14033 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
14034 | return resultobj; | |
14035 | fail: | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
14040 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14041 | PyObject *resultobj; | |
14042 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14043 | int arg2 ; | |
14044 | PyObject * obj0 = 0 ; | |
14045 | PyObject * obj1 = 0 ; | |
14046 | char *kwnames[] = { | |
14047 | (char *) "self",(char *) "flags", NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14053 | arg2 = (int) SWIG_AsInt(obj1); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | { | |
14056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14057 | (arg1)->SetFlags(arg2); | |
14058 | ||
14059 | wxPyEndAllowThreads(__tstate); | |
14060 | if (PyErr_Occurred()) SWIG_fail; | |
14061 | } | |
14062 | Py_INCREF(Py_None); resultobj = Py_None; | |
14063 | return resultobj; | |
14064 | fail: | |
14065 | return NULL; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14070 | PyObject *resultobj; | |
14071 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14072 | wxString *arg2 = 0 ; | |
14073 | bool temp2 = False ; | |
14074 | PyObject * obj0 = 0 ; | |
14075 | PyObject * obj1 = 0 ; | |
14076 | char *kwnames[] = { | |
14077 | (char *) "self",(char *) "str", NULL | |
14078 | }; | |
14079 | ||
14080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14083 | { | |
14084 | arg2 = wxString_in_helper(obj1); | |
14085 | if (arg2 == NULL) SWIG_fail; | |
14086 | temp2 = True; | |
14087 | } | |
14088 | { | |
14089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14090 | (arg1)->SetFindString((wxString const &)*arg2); | |
14091 | ||
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
14095 | Py_INCREF(Py_None); resultobj = Py_None; | |
14096 | { | |
14097 | if (temp2) | |
14098 | delete arg2; | |
14099 | } | |
14100 | return resultobj; | |
14101 | fail: | |
14102 | { | |
14103 | if (temp2) | |
14104 | delete arg2; | |
14105 | } | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14113 | wxString *arg2 = 0 ; | |
14114 | bool temp2 = False ; | |
14115 | PyObject * obj0 = 0 ; | |
14116 | PyObject * obj1 = 0 ; | |
14117 | char *kwnames[] = { | |
14118 | (char *) "self",(char *) "str", NULL | |
14119 | }; | |
14120 | ||
14121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14124 | { | |
14125 | arg2 = wxString_in_helper(obj1); | |
14126 | if (arg2 == NULL) SWIG_fail; | |
14127 | temp2 = True; | |
14128 | } | |
14129 | { | |
14130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14131 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14132 | ||
14133 | wxPyEndAllowThreads(__tstate); | |
14134 | if (PyErr_Occurred()) SWIG_fail; | |
14135 | } | |
14136 | Py_INCREF(Py_None); resultobj = Py_None; | |
14137 | { | |
14138 | if (temp2) | |
14139 | delete arg2; | |
14140 | } | |
14141 | return resultobj; | |
14142 | fail: | |
14143 | { | |
14144 | if (temp2) | |
14145 | delete arg2; | |
14146 | } | |
14147 | return NULL; | |
14148 | } | |
14149 | ||
14150 | ||
14151 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
14152 | PyObject *obj; | |
14153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14154 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
14155 | Py_INCREF(obj); | |
14156 | return Py_BuildValue((char *)""); | |
14157 | } | |
14158 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14159 | PyObject *resultobj; | |
14160 | int arg1 = (int) 0 ; | |
14161 | wxFindReplaceData *result; | |
14162 | PyObject * obj0 = 0 ; | |
14163 | char *kwnames[] = { | |
14164 | (char *) "flags", NULL | |
14165 | }; | |
14166 | ||
14167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
14168 | if (obj0) { | |
14169 | arg1 = (int) SWIG_AsInt(obj0); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
14172 | { | |
14173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14174 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
14175 | ||
14176 | wxPyEndAllowThreads(__tstate); | |
14177 | if (PyErr_Occurred()) SWIG_fail; | |
14178 | } | |
14179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
14180 | return resultobj; | |
14181 | fail: | |
14182 | return NULL; | |
14183 | } | |
14184 | ||
14185 | ||
14186 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14187 | PyObject *resultobj; | |
14188 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14189 | PyObject * obj0 = 0 ; | |
14190 | char *kwnames[] = { | |
14191 | (char *) "self", NULL | |
14192 | }; | |
14193 | ||
14194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
14195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14197 | { | |
14198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14199 | delete arg1; | |
14200 | ||
14201 | wxPyEndAllowThreads(__tstate); | |
14202 | if (PyErr_Occurred()) SWIG_fail; | |
14203 | } | |
14204 | Py_INCREF(Py_None); resultobj = Py_None; | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | return NULL; | |
14208 | } | |
14209 | ||
14210 | ||
14211 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14212 | PyObject *resultobj; | |
14213 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14214 | wxString *result; | |
14215 | PyObject * obj0 = 0 ; | |
14216 | char *kwnames[] = { | |
14217 | (char *) "self", NULL | |
14218 | }; | |
14219 | ||
14220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
14221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14223 | { | |
14224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14225 | { | |
14226 | wxString const &_result_ref = (arg1)->GetFindString(); | |
14227 | result = (wxString *) &_result_ref; | |
14228 | } | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | { | |
14234 | #if wxUSE_UNICODE | |
14235 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14236 | #else | |
14237 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14238 | #endif | |
14239 | } | |
14240 | return resultobj; | |
14241 | fail: | |
14242 | return NULL; | |
14243 | } | |
14244 | ||
14245 | ||
14246 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14247 | PyObject *resultobj; | |
14248 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14249 | wxString *result; | |
14250 | PyObject * obj0 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14258 | { | |
14259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14260 | { | |
14261 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
14262 | result = (wxString *) &_result_ref; | |
14263 | } | |
14264 | ||
14265 | wxPyEndAllowThreads(__tstate); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
14267 | } | |
14268 | { | |
14269 | #if wxUSE_UNICODE | |
14270 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14271 | #else | |
14272 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14273 | #endif | |
14274 | } | |
14275 | return resultobj; | |
14276 | fail: | |
14277 | return NULL; | |
14278 | } | |
14279 | ||
14280 | ||
14281 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14282 | PyObject *resultobj; | |
14283 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14284 | int result; | |
14285 | PyObject * obj0 = 0 ; | |
14286 | char *kwnames[] = { | |
14287 | (char *) "self", NULL | |
14288 | }; | |
14289 | ||
14290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
14291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14293 | { | |
14294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14295 | result = (int)(arg1)->GetFlags(); | |
14296 | ||
14297 | wxPyEndAllowThreads(__tstate); | |
14298 | if (PyErr_Occurred()) SWIG_fail; | |
14299 | } | |
14300 | resultobj = SWIG_FromInt((int)result); | |
14301 | return resultobj; | |
14302 | fail: | |
14303 | return NULL; | |
14304 | } | |
14305 | ||
14306 | ||
14307 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14308 | PyObject *resultobj; | |
14309 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14310 | int arg2 ; | |
14311 | PyObject * obj0 = 0 ; | |
14312 | PyObject * obj1 = 0 ; | |
14313 | char *kwnames[] = { | |
14314 | (char *) "self",(char *) "flags", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14320 | arg2 = (int) SWIG_AsInt(obj1); | |
14321 | if (PyErr_Occurred()) SWIG_fail; | |
14322 | { | |
14323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14324 | (arg1)->SetFlags(arg2); | |
14325 | ||
14326 | wxPyEndAllowThreads(__tstate); | |
14327 | if (PyErr_Occurred()) SWIG_fail; | |
14328 | } | |
14329 | Py_INCREF(Py_None); resultobj = Py_None; | |
14330 | return resultobj; | |
14331 | fail: | |
14332 | return NULL; | |
14333 | } | |
14334 | ||
14335 | ||
14336 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14337 | PyObject *resultobj; | |
14338 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14339 | wxString *arg2 = 0 ; | |
14340 | bool temp2 = False ; | |
14341 | PyObject * obj0 = 0 ; | |
14342 | PyObject * obj1 = 0 ; | |
14343 | char *kwnames[] = { | |
14344 | (char *) "self",(char *) "str", NULL | |
14345 | }; | |
14346 | ||
14347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14350 | { | |
14351 | arg2 = wxString_in_helper(obj1); | |
14352 | if (arg2 == NULL) SWIG_fail; | |
14353 | temp2 = True; | |
14354 | } | |
14355 | { | |
14356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14357 | (arg1)->SetFindString((wxString const &)*arg2); | |
14358 | ||
14359 | wxPyEndAllowThreads(__tstate); | |
14360 | if (PyErr_Occurred()) SWIG_fail; | |
14361 | } | |
14362 | Py_INCREF(Py_None); resultobj = Py_None; | |
14363 | { | |
14364 | if (temp2) | |
14365 | delete arg2; | |
14366 | } | |
14367 | return resultobj; | |
14368 | fail: | |
14369 | { | |
14370 | if (temp2) | |
14371 | delete arg2; | |
14372 | } | |
14373 | return NULL; | |
14374 | } | |
14375 | ||
14376 | ||
14377 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14378 | PyObject *resultobj; | |
14379 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14380 | wxString *arg2 = 0 ; | |
14381 | bool temp2 = False ; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | PyObject * obj1 = 0 ; | |
14384 | char *kwnames[] = { | |
14385 | (char *) "self",(char *) "str", NULL | |
14386 | }; | |
14387 | ||
14388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14391 | { | |
14392 | arg2 = wxString_in_helper(obj1); | |
14393 | if (arg2 == NULL) SWIG_fail; | |
14394 | temp2 = True; | |
14395 | } | |
14396 | { | |
14397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14398 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14399 | ||
14400 | wxPyEndAllowThreads(__tstate); | |
14401 | if (PyErr_Occurred()) SWIG_fail; | |
14402 | } | |
14403 | Py_INCREF(Py_None); resultobj = Py_None; | |
14404 | { | |
14405 | if (temp2) | |
14406 | delete arg2; | |
14407 | } | |
14408 | return resultobj; | |
14409 | fail: | |
14410 | { | |
14411 | if (temp2) | |
14412 | delete arg2; | |
14413 | } | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14419 | PyObject *obj; | |
14420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14421 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14422 | Py_INCREF(obj); | |
14423 | return Py_BuildValue((char *)""); | |
14424 | } | |
14425 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14426 | PyObject *resultobj; | |
14427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14428 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14429 | wxString *arg3 = 0 ; | |
14430 | int arg4 = (int) 0 ; | |
14431 | wxFindReplaceDialog *result; | |
14432 | bool temp3 = False ; | |
14433 | PyObject * obj0 = 0 ; | |
14434 | PyObject * obj1 = 0 ; | |
14435 | PyObject * obj2 = 0 ; | |
14436 | PyObject * obj3 = 0 ; | |
14437 | char *kwnames[] = { | |
14438 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14439 | }; | |
14440 | ||
14441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14446 | { | |
14447 | arg3 = wxString_in_helper(obj2); | |
14448 | if (arg3 == NULL) SWIG_fail; | |
14449 | temp3 = True; | |
14450 | } | |
14451 | if (obj3) { | |
14452 | arg4 = (int) SWIG_AsInt(obj3); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | { | |
0439c23b | 14456 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14458 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14459 | ||
14460 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14461 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14462 | } |
14463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14464 | { | |
14465 | if (temp3) | |
14466 | delete arg3; | |
14467 | } | |
14468 | return resultobj; | |
14469 | fail: | |
14470 | { | |
14471 | if (temp3) | |
14472 | delete arg3; | |
14473 | } | |
14474 | return NULL; | |
14475 | } | |
14476 | ||
14477 | ||
14478 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14479 | PyObject *resultobj; | |
14480 | wxFindReplaceDialog *result; | |
14481 | char *kwnames[] = { | |
14482 | NULL | |
14483 | }; | |
14484 | ||
14485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14486 | { | |
0439c23b | 14487 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14489 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14490 | ||
14491 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14492 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14493 | } |
14494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14495 | return resultobj; | |
14496 | fail: | |
14497 | return NULL; | |
14498 | } | |
14499 | ||
14500 | ||
14501 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14502 | PyObject *resultobj; | |
14503 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14504 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14505 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14506 | wxString *arg4 = 0 ; | |
14507 | int arg5 = (int) 0 ; | |
14508 | bool result; | |
14509 | bool temp4 = False ; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | PyObject * obj1 = 0 ; | |
14512 | PyObject * obj2 = 0 ; | |
14513 | PyObject * obj3 = 0 ; | |
14514 | PyObject * obj4 = 0 ; | |
14515 | char *kwnames[] = { | |
14516 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14517 | }; | |
14518 | ||
14519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14524 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14526 | { | |
14527 | arg4 = wxString_in_helper(obj3); | |
14528 | if (arg4 == NULL) SWIG_fail; | |
14529 | temp4 = True; | |
14530 | } | |
14531 | if (obj4) { | |
14532 | arg5 = (int) SWIG_AsInt(obj4); | |
14533 | if (PyErr_Occurred()) SWIG_fail; | |
14534 | } | |
14535 | { | |
14536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14537 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14538 | ||
14539 | wxPyEndAllowThreads(__tstate); | |
14540 | if (PyErr_Occurred()) SWIG_fail; | |
14541 | } | |
14542 | { | |
14543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14544 | } | |
14545 | { | |
14546 | if (temp4) | |
14547 | delete arg4; | |
14548 | } | |
14549 | return resultobj; | |
14550 | fail: | |
14551 | { | |
14552 | if (temp4) | |
14553 | delete arg4; | |
14554 | } | |
14555 | return NULL; | |
14556 | } | |
14557 | ||
14558 | ||
14559 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14560 | PyObject *resultobj; | |
14561 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14562 | wxFindReplaceData *result; | |
14563 | PyObject * obj0 = 0 ; | |
14564 | char *kwnames[] = { | |
14565 | (char *) "self", NULL | |
14566 | }; | |
14567 | ||
14568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14571 | { | |
14572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14573 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14574 | ||
14575 | wxPyEndAllowThreads(__tstate); | |
14576 | if (PyErr_Occurred()) SWIG_fail; | |
14577 | } | |
14578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14579 | return resultobj; | |
14580 | fail: | |
14581 | return NULL; | |
14582 | } | |
14583 | ||
14584 | ||
14585 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14586 | PyObject *resultobj; | |
14587 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14588 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14589 | PyObject * obj0 = 0 ; | |
14590 | PyObject * obj1 = 0 ; | |
14591 | char *kwnames[] = { | |
14592 | (char *) "self",(char *) "data", NULL | |
14593 | }; | |
14594 | ||
14595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14600 | { | |
14601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14602 | (arg1)->SetData(arg2); | |
14603 | ||
14604 | wxPyEndAllowThreads(__tstate); | |
14605 | if (PyErr_Occurred()) SWIG_fail; | |
14606 | } | |
14607 | Py_INCREF(Py_None); resultobj = Py_None; | |
14608 | return resultobj; | |
14609 | fail: | |
14610 | return NULL; | |
14611 | } | |
14612 | ||
14613 | ||
14614 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14615 | PyObject *obj; | |
14616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14617 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14618 | Py_INCREF(obj); | |
14619 | return Py_BuildValue((char *)""); | |
14620 | } | |
14621 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14622 | PyObject *resultobj; | |
14623 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14624 | int arg2 = (int) (int)-1 ; |
14625 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14626 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
14627 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14628 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14629 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14630 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14631 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14632 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14633 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14634 | wxMDIParentFrame *result; | |
14635 | bool temp3 = False ; | |
14636 | wxPoint temp4 ; | |
14637 | wxSize temp5 ; | |
14638 | bool temp7 = False ; | |
14639 | PyObject * obj0 = 0 ; | |
14640 | PyObject * obj1 = 0 ; | |
14641 | PyObject * obj2 = 0 ; | |
14642 | PyObject * obj3 = 0 ; | |
14643 | PyObject * obj4 = 0 ; | |
14644 | PyObject * obj5 = 0 ; | |
14645 | PyObject * obj6 = 0 ; | |
14646 | char *kwnames[] = { | |
14647 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14648 | }; | |
14649 | ||
248ed943 | 14650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
14651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
14653 | if (obj1) { |
14654 | arg2 = (int const) SWIG_AsInt(obj1); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
14657 | if (obj2) { | |
14658 | { | |
14659 | arg3 = wxString_in_helper(obj2); | |
14660 | if (arg3 == NULL) SWIG_fail; | |
14661 | temp3 = True; | |
14662 | } | |
d55e5bfc RD |
14663 | } |
14664 | if (obj3) { | |
14665 | { | |
14666 | arg4 = &temp4; | |
14667 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14668 | } | |
14669 | } | |
14670 | if (obj4) { | |
14671 | { | |
14672 | arg5 = &temp5; | |
14673 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14674 | } | |
14675 | } | |
14676 | if (obj5) { | |
14677 | arg6 = (long) SWIG_AsLong(obj5); | |
14678 | if (PyErr_Occurred()) SWIG_fail; | |
14679 | } | |
14680 | if (obj6) { | |
14681 | { | |
14682 | arg7 = wxString_in_helper(obj6); | |
14683 | if (arg7 == NULL) SWIG_fail; | |
14684 | temp7 = True; | |
14685 | } | |
14686 | } | |
14687 | { | |
0439c23b | 14688 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14690 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14691 | ||
14692 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14693 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14694 | } |
14695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14696 | { | |
14697 | if (temp3) | |
14698 | delete arg3; | |
14699 | } | |
14700 | { | |
14701 | if (temp7) | |
14702 | delete arg7; | |
14703 | } | |
14704 | return resultobj; | |
14705 | fail: | |
14706 | { | |
14707 | if (temp3) | |
14708 | delete arg3; | |
14709 | } | |
14710 | { | |
14711 | if (temp7) | |
14712 | delete arg7; | |
14713 | } | |
14714 | return NULL; | |
14715 | } | |
14716 | ||
14717 | ||
14718 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14719 | PyObject *resultobj; | |
14720 | wxMDIParentFrame *result; | |
14721 | char *kwnames[] = { | |
14722 | NULL | |
14723 | }; | |
14724 | ||
14725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14726 | { | |
0439c23b | 14727 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14729 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14730 | ||
14731 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14732 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14733 | } |
14734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14735 | return resultobj; | |
14736 | fail: | |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
14741 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14742 | PyObject *resultobj; | |
14743 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14744 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14745 | int arg3 = (int) (int)-1 ; |
14746 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14747 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
14748 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14749 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14750 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14751 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14752 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14753 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14754 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14755 | bool result; | |
14756 | bool temp4 = False ; | |
14757 | wxPoint temp5 ; | |
14758 | wxSize temp6 ; | |
14759 | bool temp8 = False ; | |
14760 | PyObject * obj0 = 0 ; | |
14761 | PyObject * obj1 = 0 ; | |
14762 | PyObject * obj2 = 0 ; | |
14763 | PyObject * obj3 = 0 ; | |
14764 | PyObject * obj4 = 0 ; | |
14765 | PyObject * obj5 = 0 ; | |
14766 | PyObject * obj6 = 0 ; | |
14767 | PyObject * obj7 = 0 ; | |
14768 | char *kwnames[] = { | |
14769 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14770 | }; | |
14771 | ||
248ed943 | 14772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
14773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, |
14774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
14777 | if (obj2) { |
14778 | arg3 = (int const) SWIG_AsInt(obj2); | |
14779 | if (PyErr_Occurred()) SWIG_fail; | |
14780 | } | |
14781 | if (obj3) { | |
14782 | { | |
14783 | arg4 = wxString_in_helper(obj3); | |
14784 | if (arg4 == NULL) SWIG_fail; | |
14785 | temp4 = True; | |
14786 | } | |
d55e5bfc RD |
14787 | } |
14788 | if (obj4) { | |
14789 | { | |
14790 | arg5 = &temp5; | |
14791 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14792 | } | |
14793 | } | |
14794 | if (obj5) { | |
14795 | { | |
14796 | arg6 = &temp6; | |
14797 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14798 | } | |
14799 | } | |
14800 | if (obj6) { | |
14801 | arg7 = (long) SWIG_AsLong(obj6); | |
14802 | if (PyErr_Occurred()) SWIG_fail; | |
14803 | } | |
14804 | if (obj7) { | |
14805 | { | |
14806 | arg8 = wxString_in_helper(obj7); | |
14807 | if (arg8 == NULL) SWIG_fail; | |
14808 | temp8 = True; | |
14809 | } | |
14810 | } | |
14811 | { | |
14812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14813 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14814 | ||
14815 | wxPyEndAllowThreads(__tstate); | |
14816 | if (PyErr_Occurred()) SWIG_fail; | |
14817 | } | |
14818 | { | |
14819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14820 | } | |
14821 | { | |
14822 | if (temp4) | |
14823 | delete arg4; | |
14824 | } | |
14825 | { | |
14826 | if (temp8) | |
14827 | delete arg8; | |
14828 | } | |
14829 | return resultobj; | |
14830 | fail: | |
14831 | { | |
14832 | if (temp4) | |
14833 | delete arg4; | |
14834 | } | |
14835 | { | |
14836 | if (temp8) | |
14837 | delete arg8; | |
14838 | } | |
14839 | return NULL; | |
14840 | } | |
14841 | ||
14842 | ||
14843 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14844 | PyObject *resultobj; | |
14845 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14846 | PyObject * obj0 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14854 | { | |
14855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14856 | (arg1)->ActivateNext(); | |
14857 | ||
14858 | wxPyEndAllowThreads(__tstate); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | } | |
14861 | Py_INCREF(Py_None); resultobj = Py_None; | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
14868 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14869 | PyObject *resultobj; | |
14870 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | char *kwnames[] = { | |
14873 | (char *) "self", NULL | |
14874 | }; | |
14875 | ||
14876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14879 | { | |
14880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14881 | (arg1)->ActivatePrevious(); | |
14882 | ||
14883 | wxPyEndAllowThreads(__tstate); | |
14884 | if (PyErr_Occurred()) SWIG_fail; | |
14885 | } | |
14886 | Py_INCREF(Py_None); resultobj = Py_None; | |
14887 | return resultobj; | |
14888 | fail: | |
14889 | return NULL; | |
14890 | } | |
14891 | ||
14892 | ||
14893 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14894 | PyObject *resultobj; | |
14895 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14896 | PyObject * obj0 = 0 ; | |
14897 | char *kwnames[] = { | |
14898 | (char *) "self", NULL | |
14899 | }; | |
14900 | ||
14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14904 | { | |
14905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14906 | (arg1)->ArrangeIcons(); | |
14907 | ||
14908 | wxPyEndAllowThreads(__tstate); | |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
14911 | Py_INCREF(Py_None); resultobj = Py_None; | |
14912 | return resultobj; | |
14913 | fail: | |
14914 | return NULL; | |
14915 | } | |
14916 | ||
14917 | ||
14918 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14919 | PyObject *resultobj; | |
14920 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14921 | PyObject * obj0 = 0 ; | |
14922 | char *kwnames[] = { | |
14923 | (char *) "self", NULL | |
14924 | }; | |
14925 | ||
14926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14929 | { | |
14930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14931 | (arg1)->Cascade(); | |
14932 | ||
14933 | wxPyEndAllowThreads(__tstate); | |
14934 | if (PyErr_Occurred()) SWIG_fail; | |
14935 | } | |
14936 | Py_INCREF(Py_None); resultobj = Py_None; | |
14937 | return resultobj; | |
14938 | fail: | |
14939 | return NULL; | |
14940 | } | |
14941 | ||
14942 | ||
14943 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14944 | PyObject *resultobj; | |
14945 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14946 | wxMDIChildFrame *result; | |
14947 | PyObject * obj0 = 0 ; | |
14948 | char *kwnames[] = { | |
14949 | (char *) "self", NULL | |
14950 | }; | |
14951 | ||
14952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14955 | { | |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14958 | ||
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | { | |
412d302d | 14963 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14964 | } |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
14971 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14972 | PyObject *resultobj; | |
14973 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14974 | wxMDIClientWindow *result; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | char *kwnames[] = { | |
14977 | (char *) "self", NULL | |
14978 | }; | |
14979 | ||
14980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
14990 | { | |
412d302d | 14991 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14992 | } |
14993 | return resultobj; | |
14994 | fail: | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
14999 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15000 | PyObject *resultobj; | |
15001 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15002 | wxWindow *result; | |
15003 | PyObject * obj0 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "self", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
15009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15011 | { | |
15012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15013 | result = (wxWindow *)(arg1)->GetToolBar(); | |
15014 | ||
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
15018 | { | |
412d302d | 15019 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15020 | } |
15021 | return resultobj; | |
15022 | fail: | |
15023 | return NULL; | |
15024 | } | |
15025 | ||
15026 | ||
15027 | static PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15028 | PyObject *resultobj; | |
15029 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15030 | wxMenu *result; | |
15031 | PyObject * obj0 = 0 ; | |
15032 | char *kwnames[] = { | |
15033 | (char *) "self", NULL | |
15034 | }; | |
15035 | ||
15036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetWindowMenu",kwnames,&obj0)) goto fail; | |
15037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15039 | { | |
15040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15041 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
15042 | ||
15043 | wxPyEndAllowThreads(__tstate); | |
15044 | if (PyErr_Occurred()) SWIG_fail; | |
15045 | } | |
15046 | { | |
412d302d | 15047 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15048 | } |
15049 | return resultobj; | |
15050 | fail: | |
15051 | return NULL; | |
15052 | } | |
15053 | ||
15054 | ||
15055 | static PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15056 | PyObject *resultobj; | |
15057 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15058 | wxMenu *arg2 = (wxMenu *) 0 ; | |
15059 | PyObject * obj0 = 0 ; | |
15060 | PyObject * obj1 = 0 ; | |
15061 | char *kwnames[] = { | |
15062 | (char *) "self",(char *) "menu", NULL | |
15063 | }; | |
15064 | ||
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) goto fail; | |
15066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
15069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15070 | { | |
15071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15072 | (arg1)->SetWindowMenu(arg2); | |
15073 | ||
15074 | wxPyEndAllowThreads(__tstate); | |
15075 | if (PyErr_Occurred()) SWIG_fail; | |
15076 | } | |
15077 | Py_INCREF(Py_None); resultobj = Py_None; | |
15078 | return resultobj; | |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | static PyObject *_wrap_MDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15085 | PyObject *resultobj; | |
15086 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15087 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
15088 | PyObject * obj0 = 0 ; | |
15089 | PyObject * obj1 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self",(char *) "toolbar", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
15095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
15098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15099 | { | |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | (arg1)->SetToolBar(arg2); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
15106 | Py_INCREF(Py_None); resultobj = Py_None; | |
15107 | return resultobj; | |
15108 | fail: | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
15113 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15114 | PyObject *resultobj; | |
15115 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15116 | PyObject * obj0 = 0 ; | |
15117 | char *kwnames[] = { | |
15118 | (char *) "self", NULL | |
15119 | }; | |
15120 | ||
15121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
15122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15124 | { | |
15125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15126 | (arg1)->Tile(); | |
15127 | ||
15128 | wxPyEndAllowThreads(__tstate); | |
15129 | if (PyErr_Occurred()) SWIG_fail; | |
15130 | } | |
15131 | Py_INCREF(Py_None); resultobj = Py_None; | |
15132 | return resultobj; | |
15133 | fail: | |
15134 | return NULL; | |
15135 | } | |
15136 | ||
15137 | ||
15138 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
15139 | PyObject *obj; | |
15140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15141 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
15142 | Py_INCREF(obj); | |
15143 | return Py_BuildValue((char *)""); | |
15144 | } | |
15145 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15146 | PyObject *resultobj; | |
15147 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
248ed943 RD |
15148 | int arg2 = (int) (int)-1 ; |
15149 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15150 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
15151 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15152 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15153 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15154 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15155 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
15156 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
15157 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15158 | wxMDIChildFrame *result; | |
15159 | bool temp3 = False ; | |
15160 | wxPoint temp4 ; | |
15161 | wxSize temp5 ; | |
15162 | bool temp7 = False ; | |
15163 | PyObject * obj0 = 0 ; | |
15164 | PyObject * obj1 = 0 ; | |
15165 | PyObject * obj2 = 0 ; | |
15166 | PyObject * obj3 = 0 ; | |
15167 | PyObject * obj4 = 0 ; | |
15168 | PyObject * obj5 = 0 ; | |
15169 | PyObject * obj6 = 0 ; | |
15170 | char *kwnames[] = { | |
15171 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15172 | }; | |
15173 | ||
248ed943 | 15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, |
15176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15177 | if (obj1) { |
15178 | arg2 = (int const) SWIG_AsInt(obj1); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
15180 | } | |
15181 | if (obj2) { | |
15182 | { | |
15183 | arg3 = wxString_in_helper(obj2); | |
15184 | if (arg3 == NULL) SWIG_fail; | |
15185 | temp3 = True; | |
15186 | } | |
d55e5bfc RD |
15187 | } |
15188 | if (obj3) { | |
15189 | { | |
15190 | arg4 = &temp4; | |
15191 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15192 | } | |
15193 | } | |
15194 | if (obj4) { | |
15195 | { | |
15196 | arg5 = &temp5; | |
15197 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15198 | } | |
15199 | } | |
15200 | if (obj5) { | |
15201 | arg6 = (long) SWIG_AsLong(obj5); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | if (obj6) { | |
15205 | { | |
15206 | arg7 = wxString_in_helper(obj6); | |
15207 | if (arg7 == NULL) SWIG_fail; | |
15208 | temp7 = True; | |
15209 | } | |
15210 | } | |
15211 | { | |
0439c23b | 15212 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15214 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15215 | ||
15216 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15217 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15218 | } |
b0f7404b | 15219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIChildFrame, 1); |
d55e5bfc RD |
15220 | { |
15221 | if (temp3) | |
15222 | delete arg3; | |
15223 | } | |
15224 | { | |
15225 | if (temp7) | |
15226 | delete arg7; | |
15227 | } | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | { | |
15231 | if (temp3) | |
15232 | delete arg3; | |
15233 | } | |
15234 | { | |
15235 | if (temp7) | |
15236 | delete arg7; | |
15237 | } | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
15242 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15243 | PyObject *resultobj; | |
15244 | wxMDIChildFrame *result; | |
15245 | char *kwnames[] = { | |
15246 | NULL | |
15247 | }; | |
15248 | ||
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
15250 | { | |
0439c23b | 15251 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15253 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15256 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15257 | } |
b0f7404b | 15258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIChildFrame, 1); |
d55e5bfc RD |
15259 | return resultobj; |
15260 | fail: | |
15261 | return NULL; | |
15262 | } | |
15263 | ||
15264 | ||
15265 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15266 | PyObject *resultobj; | |
15267 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15268 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
248ed943 RD |
15269 | int arg3 = (int) (int)-1 ; |
15270 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15271 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
15272 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15273 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15274 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15275 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15276 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
15277 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
15278 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15279 | bool result; | |
15280 | bool temp4 = False ; | |
15281 | wxPoint temp5 ; | |
15282 | wxSize temp6 ; | |
15283 | bool temp8 = False ; | |
15284 | PyObject * obj0 = 0 ; | |
15285 | PyObject * obj1 = 0 ; | |
15286 | PyObject * obj2 = 0 ; | |
15287 | PyObject * obj3 = 0 ; | |
15288 | PyObject * obj4 = 0 ; | |
15289 | PyObject * obj5 = 0 ; | |
15290 | PyObject * obj6 = 0 ; | |
15291 | PyObject * obj7 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15294 | }; | |
15295 | ||
248ed943 | 15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
15297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, |
15298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15301 | if (obj2) { |
15302 | arg3 = (int const) SWIG_AsInt(obj2); | |
15303 | if (PyErr_Occurred()) SWIG_fail; | |
15304 | } | |
15305 | if (obj3) { | |
15306 | { | |
15307 | arg4 = wxString_in_helper(obj3); | |
15308 | if (arg4 == NULL) SWIG_fail; | |
15309 | temp4 = True; | |
15310 | } | |
d55e5bfc RD |
15311 | } |
15312 | if (obj4) { | |
15313 | { | |
15314 | arg5 = &temp5; | |
15315 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15316 | } | |
15317 | } | |
15318 | if (obj5) { | |
15319 | { | |
15320 | arg6 = &temp6; | |
15321 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15322 | } | |
15323 | } | |
15324 | if (obj6) { | |
15325 | arg7 = (long) SWIG_AsLong(obj6); | |
15326 | if (PyErr_Occurred()) SWIG_fail; | |
15327 | } | |
15328 | if (obj7) { | |
15329 | { | |
15330 | arg8 = wxString_in_helper(obj7); | |
15331 | if (arg8 == NULL) SWIG_fail; | |
15332 | temp8 = True; | |
15333 | } | |
15334 | } | |
15335 | { | |
15336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15337 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
15338 | ||
15339 | wxPyEndAllowThreads(__tstate); | |
15340 | if (PyErr_Occurred()) SWIG_fail; | |
15341 | } | |
15342 | { | |
15343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15344 | } | |
15345 | { | |
15346 | if (temp4) | |
15347 | delete arg4; | |
15348 | } | |
15349 | { | |
15350 | if (temp8) | |
15351 | delete arg8; | |
15352 | } | |
15353 | return resultobj; | |
15354 | fail: | |
15355 | { | |
15356 | if (temp4) | |
15357 | delete arg4; | |
15358 | } | |
15359 | { | |
15360 | if (temp8) | |
15361 | delete arg8; | |
15362 | } | |
15363 | return NULL; | |
15364 | } | |
15365 | ||
15366 | ||
15367 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15368 | PyObject *resultobj; | |
15369 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15370 | PyObject * obj0 = 0 ; | |
15371 | char *kwnames[] = { | |
15372 | (char *) "self", NULL | |
15373 | }; | |
15374 | ||
15375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
15376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | (arg1)->Activate(); | |
15381 | ||
15382 | wxPyEndAllowThreads(__tstate); | |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
15384 | } | |
15385 | Py_INCREF(Py_None); resultobj = Py_None; | |
15386 | return resultobj; | |
15387 | fail: | |
15388 | return NULL; | |
15389 | } | |
15390 | ||
15391 | ||
15392 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15393 | PyObject *resultobj; | |
15394 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15395 | bool arg2 ; | |
15396 | PyObject * obj0 = 0 ; | |
15397 | PyObject * obj1 = 0 ; | |
15398 | char *kwnames[] = { | |
15399 | (char *) "self",(char *) "maximize", NULL | |
15400 | }; | |
15401 | ||
15402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
15403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15405 | arg2 = (bool) SWIG_AsBool(obj1); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | { | |
15408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15409 | (arg1)->Maximize(arg2); | |
15410 | ||
15411 | wxPyEndAllowThreads(__tstate); | |
15412 | if (PyErr_Occurred()) SWIG_fail; | |
15413 | } | |
15414 | Py_INCREF(Py_None); resultobj = Py_None; | |
15415 | return resultobj; | |
15416 | fail: | |
15417 | return NULL; | |
15418 | } | |
15419 | ||
15420 | ||
15421 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15422 | PyObject *resultobj; | |
15423 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15424 | PyObject * obj0 = 0 ; | |
15425 | char *kwnames[] = { | |
15426 | (char *) "self", NULL | |
15427 | }; | |
15428 | ||
15429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
15430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15432 | { | |
15433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15434 | (arg1)->Restore(); | |
15435 | ||
15436 | wxPyEndAllowThreads(__tstate); | |
15437 | if (PyErr_Occurred()) SWIG_fail; | |
15438 | } | |
15439 | Py_INCREF(Py_None); resultobj = Py_None; | |
15440 | return resultobj; | |
15441 | fail: | |
15442 | return NULL; | |
15443 | } | |
15444 | ||
15445 | ||
15446 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
15447 | PyObject *obj; | |
15448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15449 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
15450 | Py_INCREF(obj); | |
15451 | return Py_BuildValue((char *)""); | |
15452 | } | |
15453 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15454 | PyObject *resultobj; | |
15455 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15456 | long arg2 = (long) 0 ; | |
15457 | wxMDIClientWindow *result; | |
15458 | PyObject * obj0 = 0 ; | |
15459 | PyObject * obj1 = 0 ; | |
15460 | char *kwnames[] = { | |
15461 | (char *) "parent",(char *) "style", NULL | |
15462 | }; | |
15463 | ||
15464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
15465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15467 | if (obj1) { | |
15468 | arg2 = (long) SWIG_AsLong(obj1); | |
15469 | if (PyErr_Occurred()) SWIG_fail; | |
15470 | } | |
15471 | { | |
0439c23b | 15472 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15474 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15477 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15478 | } |
b0f7404b | 15479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIClientWindow, 1); |
d55e5bfc RD |
15480 | return resultobj; |
15481 | fail: | |
15482 | return NULL; | |
15483 | } | |
15484 | ||
15485 | ||
15486 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15487 | PyObject *resultobj; | |
15488 | wxMDIClientWindow *result; | |
15489 | char *kwnames[] = { | |
15490 | NULL | |
15491 | }; | |
15492 | ||
15493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
15494 | { | |
0439c23b | 15495 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15497 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
15498 | ||
15499 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15500 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15501 | } |
b0f7404b | 15502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIClientWindow, 1); |
d55e5bfc RD |
15503 | return resultobj; |
15504 | fail: | |
15505 | return NULL; | |
15506 | } | |
15507 | ||
15508 | ||
15509 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15510 | PyObject *resultobj; | |
15511 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
15512 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15513 | long arg3 = (long) 0 ; | |
15514 | bool result; | |
15515 | PyObject * obj0 = 0 ; | |
15516 | PyObject * obj1 = 0 ; | |
15517 | PyObject * obj2 = 0 ; | |
15518 | char *kwnames[] = { | |
15519 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15520 | }; | |
15521 | ||
15522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15527 | if (obj2) { | |
15528 | arg3 = (long) SWIG_AsLong(obj2); | |
15529 | if (PyErr_Occurred()) SWIG_fail; | |
15530 | } | |
15531 | { | |
15532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15533 | result = (bool)(arg1)->Create(arg2,arg3); | |
15534 | ||
15535 | wxPyEndAllowThreads(__tstate); | |
15536 | if (PyErr_Occurred()) SWIG_fail; | |
15537 | } | |
15538 | { | |
15539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15540 | } | |
15541 | return resultobj; | |
15542 | fail: | |
15543 | return NULL; | |
15544 | } | |
15545 | ||
15546 | ||
15547 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15548 | PyObject *obj; | |
15549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15550 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15551 | Py_INCREF(obj); | |
15552 | return Py_BuildValue((char *)""); | |
15553 | } | |
15554 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15555 | PyObject *resultobj; | |
15556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 15557 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
15558 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15559 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15560 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15561 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15562 | long arg5 = (long) 0 ; | |
15563 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15564 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15565 | wxPyWindow *result; | |
15566 | wxPoint temp3 ; | |
15567 | wxSize temp4 ; | |
15568 | bool temp6 = False ; | |
15569 | PyObject * obj0 = 0 ; | |
15570 | PyObject * obj1 = 0 ; | |
15571 | PyObject * obj2 = 0 ; | |
15572 | PyObject * obj3 = 0 ; | |
15573 | PyObject * obj4 = 0 ; | |
15574 | PyObject * obj5 = 0 ; | |
15575 | char *kwnames[] = { | |
15576 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15577 | }; | |
15578 | ||
248ed943 | 15579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
15580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15582 | if (obj1) { |
15583 | arg2 = (int const) SWIG_AsInt(obj1); | |
15584 | if (PyErr_Occurred()) SWIG_fail; | |
15585 | } | |
d55e5bfc RD |
15586 | if (obj2) { |
15587 | { | |
15588 | arg3 = &temp3; | |
15589 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15590 | } | |
15591 | } | |
15592 | if (obj3) { | |
15593 | { | |
15594 | arg4 = &temp4; | |
15595 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15596 | } | |
15597 | } | |
15598 | if (obj4) { | |
15599 | arg5 = (long) SWIG_AsLong(obj4); | |
15600 | if (PyErr_Occurred()) SWIG_fail; | |
15601 | } | |
15602 | if (obj5) { | |
15603 | { | |
15604 | arg6 = wxString_in_helper(obj5); | |
15605 | if (arg6 == NULL) SWIG_fail; | |
15606 | temp6 = True; | |
15607 | } | |
15608 | } | |
15609 | { | |
0439c23b | 15610 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15612 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15613 | ||
15614 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15615 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15616 | } |
15617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15618 | { | |
15619 | if (temp6) | |
15620 | delete arg6; | |
15621 | } | |
15622 | return resultobj; | |
15623 | fail: | |
15624 | { | |
15625 | if (temp6) | |
15626 | delete arg6; | |
15627 | } | |
15628 | return NULL; | |
15629 | } | |
15630 | ||
15631 | ||
15632 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15633 | PyObject *resultobj; | |
15634 | wxPyWindow *result; | |
15635 | char *kwnames[] = { | |
15636 | NULL | |
15637 | }; | |
15638 | ||
15639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15640 | { | |
0439c23b | 15641 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15643 | result = (wxPyWindow *)new wxPyWindow(); | |
15644 | ||
15645 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15646 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15647 | } |
15648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15649 | return resultobj; | |
15650 | fail: | |
15651 | return NULL; | |
15652 | } | |
15653 | ||
15654 | ||
15655 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15656 | PyObject *resultobj; | |
15657 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15658 | PyObject *arg2 = (PyObject *) 0 ; | |
15659 | PyObject *arg3 = (PyObject *) 0 ; | |
15660 | PyObject * obj0 = 0 ; | |
15661 | PyObject * obj1 = 0 ; | |
15662 | PyObject * obj2 = 0 ; | |
15663 | char *kwnames[] = { | |
15664 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15665 | }; | |
15666 | ||
15667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15670 | arg2 = obj1; | |
15671 | arg3 = obj2; | |
15672 | { | |
15673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15674 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15675 | ||
15676 | wxPyEndAllowThreads(__tstate); | |
15677 | if (PyErr_Occurred()) SWIG_fail; | |
15678 | } | |
15679 | Py_INCREF(Py_None); resultobj = Py_None; | |
15680 | return resultobj; | |
15681 | fail: | |
15682 | return NULL; | |
15683 | } | |
15684 | ||
15685 | ||
caef1a4d RD |
15686 | static PyObject *_wrap_PyWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
15687 | PyObject *resultobj; | |
15688 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15689 | wxSize *arg2 = 0 ; | |
15690 | wxSize temp2 ; | |
15691 | PyObject * obj0 = 0 ; | |
15692 | PyObject * obj1 = 0 ; | |
15693 | char *kwnames[] = { | |
15694 | (char *) "self",(char *) "size", NULL | |
15695 | }; | |
15696 | ||
15697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
15698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15700 | { | |
15701 | arg2 = &temp2; | |
15702 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15703 | } | |
15704 | { | |
15705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15706 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
15707 | ||
15708 | wxPyEndAllowThreads(__tstate); | |
15709 | if (PyErr_Occurred()) SWIG_fail; | |
15710 | } | |
15711 | Py_INCREF(Py_None); resultobj = Py_None; | |
15712 | return resultobj; | |
15713 | fail: | |
15714 | return NULL; | |
15715 | } | |
15716 | ||
15717 | ||
d55e5bfc RD |
15718 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
15719 | PyObject *resultobj; | |
15720 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15721 | int arg2 ; | |
15722 | int arg3 ; | |
15723 | int arg4 ; | |
15724 | int arg5 ; | |
15725 | PyObject * obj0 = 0 ; | |
15726 | PyObject * obj1 = 0 ; | |
15727 | PyObject * obj2 = 0 ; | |
15728 | PyObject * obj3 = 0 ; | |
15729 | PyObject * obj4 = 0 ; | |
15730 | char *kwnames[] = { | |
15731 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15732 | }; | |
15733 | ||
15734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15737 | arg2 = (int) SWIG_AsInt(obj1); | |
15738 | if (PyErr_Occurred()) SWIG_fail; | |
15739 | arg3 = (int) SWIG_AsInt(obj2); | |
15740 | if (PyErr_Occurred()) SWIG_fail; | |
15741 | arg4 = (int) SWIG_AsInt(obj3); | |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
15743 | arg5 = (int) SWIG_AsInt(obj4); | |
15744 | if (PyErr_Occurred()) SWIG_fail; | |
15745 | { | |
15746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15747 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
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 | ||
15759 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15760 | PyObject *resultobj; | |
15761 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15762 | int arg2 ; | |
15763 | int arg3 ; | |
15764 | int arg4 ; | |
15765 | int arg5 ; | |
15766 | int arg6 = (int) wxSIZE_AUTO ; | |
15767 | PyObject * obj0 = 0 ; | |
15768 | PyObject * obj1 = 0 ; | |
15769 | PyObject * obj2 = 0 ; | |
15770 | PyObject * obj3 = 0 ; | |
15771 | PyObject * obj4 = 0 ; | |
15772 | PyObject * obj5 = 0 ; | |
15773 | char *kwnames[] = { | |
15774 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15775 | }; | |
15776 | ||
15777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15780 | arg2 = (int) SWIG_AsInt(obj1); | |
15781 | if (PyErr_Occurred()) SWIG_fail; | |
15782 | arg3 = (int) SWIG_AsInt(obj2); | |
15783 | if (PyErr_Occurred()) SWIG_fail; | |
15784 | arg4 = (int) SWIG_AsInt(obj3); | |
15785 | if (PyErr_Occurred()) SWIG_fail; | |
15786 | arg5 = (int) SWIG_AsInt(obj4); | |
15787 | if (PyErr_Occurred()) SWIG_fail; | |
15788 | if (obj5) { | |
15789 | arg6 = (int) SWIG_AsInt(obj5); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
15792 | { | |
15793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15794 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15795 | ||
15796 | wxPyEndAllowThreads(__tstate); | |
15797 | if (PyErr_Occurred()) SWIG_fail; | |
15798 | } | |
15799 | Py_INCREF(Py_None); resultobj = Py_None; | |
15800 | return resultobj; | |
15801 | fail: | |
15802 | return NULL; | |
15803 | } | |
15804 | ||
15805 | ||
15806 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15807 | PyObject *resultobj; | |
15808 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15809 | int arg2 ; | |
15810 | int arg3 ; | |
15811 | PyObject * obj0 = 0 ; | |
15812 | PyObject * obj1 = 0 ; | |
15813 | PyObject * obj2 = 0 ; | |
15814 | char *kwnames[] = { | |
15815 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15816 | }; | |
15817 | ||
15818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15821 | arg2 = (int) SWIG_AsInt(obj1); | |
15822 | if (PyErr_Occurred()) SWIG_fail; | |
15823 | arg3 = (int) SWIG_AsInt(obj2); | |
15824 | if (PyErr_Occurred()) SWIG_fail; | |
15825 | { | |
15826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15827 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15828 | ||
15829 | wxPyEndAllowThreads(__tstate); | |
15830 | if (PyErr_Occurred()) SWIG_fail; | |
15831 | } | |
15832 | Py_INCREF(Py_None); resultobj = Py_None; | |
15833 | return resultobj; | |
15834 | fail: | |
15835 | return NULL; | |
15836 | } | |
15837 | ||
15838 | ||
15839 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15840 | PyObject *resultobj; | |
15841 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15842 | int arg2 ; | |
15843 | int arg3 ; | |
15844 | PyObject * obj0 = 0 ; | |
15845 | PyObject * obj1 = 0 ; | |
15846 | PyObject * obj2 = 0 ; | |
15847 | char *kwnames[] = { | |
15848 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15849 | }; | |
15850 | ||
15851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15854 | arg2 = (int) SWIG_AsInt(obj1); | |
15855 | if (PyErr_Occurred()) SWIG_fail; | |
15856 | arg3 = (int) SWIG_AsInt(obj2); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | { | |
15859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15860 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15861 | ||
15862 | wxPyEndAllowThreads(__tstate); | |
15863 | if (PyErr_Occurred()) SWIG_fail; | |
15864 | } | |
15865 | Py_INCREF(Py_None); resultobj = Py_None; | |
15866 | return resultobj; | |
15867 | fail: | |
15868 | return NULL; | |
15869 | } | |
15870 | ||
15871 | ||
15872 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15873 | PyObject *resultobj; | |
15874 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15875 | int *arg2 = (int *) 0 ; | |
15876 | int *arg3 = (int *) 0 ; | |
15877 | int temp2 ; | |
15878 | int temp3 ; | |
15879 | PyObject * obj0 = 0 ; | |
15880 | char *kwnames[] = { | |
15881 | (char *) "self", NULL | |
15882 | }; | |
15883 | ||
15884 | arg2 = &temp2; | |
15885 | arg3 = &temp3; | |
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15889 | { | |
15890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15891 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15892 | ||
15893 | wxPyEndAllowThreads(__tstate); | |
15894 | if (PyErr_Occurred()) SWIG_fail; | |
15895 | } | |
15896 | Py_INCREF(Py_None); resultobj = Py_None; | |
15897 | { | |
15898 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15899 | resultobj = t_output_helper(resultobj,o); | |
15900 | } | |
15901 | { | |
15902 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15903 | resultobj = t_output_helper(resultobj,o); | |
15904 | } | |
15905 | return resultobj; | |
15906 | fail: | |
15907 | return NULL; | |
15908 | } | |
15909 | ||
15910 | ||
15911 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15912 | PyObject *resultobj; | |
15913 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15914 | int *arg2 = (int *) 0 ; | |
15915 | int *arg3 = (int *) 0 ; | |
15916 | int temp2 ; | |
15917 | int temp3 ; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | char *kwnames[] = { | |
15920 | (char *) "self", NULL | |
15921 | }; | |
15922 | ||
15923 | arg2 = &temp2; | |
15924 | arg3 = &temp3; | |
15925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15928 | { | |
15929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15930 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15931 | ||
15932 | wxPyEndAllowThreads(__tstate); | |
15933 | if (PyErr_Occurred()) SWIG_fail; | |
15934 | } | |
15935 | Py_INCREF(Py_None); resultobj = Py_None; | |
15936 | { | |
15937 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15938 | resultobj = t_output_helper(resultobj,o); | |
15939 | } | |
15940 | { | |
15941 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15942 | resultobj = t_output_helper(resultobj,o); | |
15943 | } | |
15944 | return resultobj; | |
15945 | fail: | |
15946 | return NULL; | |
15947 | } | |
15948 | ||
15949 | ||
15950 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15951 | PyObject *resultobj; | |
15952 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15953 | int *arg2 = (int *) 0 ; | |
15954 | int *arg3 = (int *) 0 ; | |
15955 | int temp2 ; | |
15956 | int temp3 ; | |
15957 | PyObject * obj0 = 0 ; | |
15958 | char *kwnames[] = { | |
15959 | (char *) "self", NULL | |
15960 | }; | |
15961 | ||
15962 | arg2 = &temp2; | |
15963 | arg3 = &temp3; | |
15964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15967 | { | |
15968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15969 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15970 | ||
15971 | wxPyEndAllowThreads(__tstate); | |
15972 | if (PyErr_Occurred()) SWIG_fail; | |
15973 | } | |
15974 | Py_INCREF(Py_None); resultobj = Py_None; | |
15975 | { | |
15976 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15977 | resultobj = t_output_helper(resultobj,o); | |
15978 | } | |
15979 | { | |
15980 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15981 | resultobj = t_output_helper(resultobj,o); | |
15982 | } | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | return NULL; | |
15986 | } | |
15987 | ||
15988 | ||
15989 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15990 | PyObject *resultobj; | |
15991 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15992 | wxSize result; | |
15993 | PyObject * obj0 = 0 ; | |
15994 | char *kwnames[] = { | |
15995 | (char *) "self", NULL | |
15996 | }; | |
15997 | ||
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",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 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | { | |
16009 | wxSize * resultptr; | |
16010 | resultptr = new wxSize((wxSize &) result); | |
16011 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16012 | } | |
16013 | return resultobj; | |
16014 | fail: | |
16015 | return NULL; | |
16016 | } | |
16017 | ||
16018 | ||
16019 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16020 | PyObject *resultobj; | |
16021 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16022 | wxSize result; | |
16023 | PyObject * obj0 = 0 ; | |
16024 | char *kwnames[] = { | |
16025 | (char *) "self", NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16031 | { | |
16032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16033 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
16034 | ||
16035 | wxPyEndAllowThreads(__tstate); | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
16037 | } | |
16038 | { | |
16039 | wxSize * resultptr; | |
16040 | resultptr = new wxSize((wxSize &) result); | |
16041 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16042 | } | |
16043 | return resultobj; | |
16044 | fail: | |
16045 | return NULL; | |
16046 | } | |
16047 | ||
16048 | ||
16049 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16050 | PyObject *resultobj; | |
16051 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16052 | PyObject * obj0 = 0 ; | |
16053 | char *kwnames[] = { | |
16054 | (char *) "self", NULL | |
16055 | }; | |
16056 | ||
16057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
16058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16060 | { | |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16062 | (arg1)->base_InitDialog(); | |
16063 | ||
16064 | wxPyEndAllowThreads(__tstate); | |
16065 | if (PyErr_Occurred()) SWIG_fail; | |
16066 | } | |
16067 | Py_INCREF(Py_None); resultobj = Py_None; | |
16068 | return resultobj; | |
16069 | fail: | |
16070 | return NULL; | |
16071 | } | |
16072 | ||
16073 | ||
16074 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16075 | PyObject *resultobj; | |
16076 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16077 | bool result; | |
16078 | PyObject * obj0 = 0 ; | |
16079 | char *kwnames[] = { | |
16080 | (char *) "self", NULL | |
16081 | }; | |
16082 | ||
16083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16086 | { | |
16087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16088 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16089 | ||
16090 | wxPyEndAllowThreads(__tstate); | |
16091 | if (PyErr_Occurred()) SWIG_fail; | |
16092 | } | |
16093 | { | |
16094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16095 | } | |
16096 | return resultobj; | |
16097 | fail: | |
16098 | return NULL; | |
16099 | } | |
16100 | ||
16101 | ||
16102 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16103 | PyObject *resultobj; | |
16104 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16105 | bool result; | |
16106 | PyObject * obj0 = 0 ; | |
16107 | char *kwnames[] = { | |
16108 | (char *) "self", NULL | |
16109 | }; | |
16110 | ||
16111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16114 | { | |
16115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16116 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16117 | ||
16118 | wxPyEndAllowThreads(__tstate); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
16121 | { | |
16122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16123 | } | |
16124 | return resultobj; | |
16125 | fail: | |
16126 | return NULL; | |
16127 | } | |
16128 | ||
16129 | ||
16130 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16131 | PyObject *resultobj; | |
16132 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16133 | bool result; | |
16134 | PyObject * obj0 = 0 ; | |
16135 | char *kwnames[] = { | |
16136 | (char *) "self", NULL | |
16137 | }; | |
16138 | ||
16139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
16140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16142 | { | |
16143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16144 | result = (bool)(arg1)->base_Validate(); | |
16145 | ||
16146 | wxPyEndAllowThreads(__tstate); | |
16147 | if (PyErr_Occurred()) SWIG_fail; | |
16148 | } | |
16149 | { | |
16150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16151 | } | |
16152 | return resultobj; | |
16153 | fail: | |
16154 | return NULL; | |
16155 | } | |
16156 | ||
16157 | ||
16158 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16159 | PyObject *resultobj; | |
16160 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16161 | bool result; | |
16162 | PyObject * obj0 = 0 ; | |
16163 | char *kwnames[] = { | |
16164 | (char *) "self", NULL | |
16165 | }; | |
16166 | ||
16167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16170 | { | |
16171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16172 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
16173 | ||
16174 | wxPyEndAllowThreads(__tstate); | |
16175 | if (PyErr_Occurred()) SWIG_fail; | |
16176 | } | |
16177 | { | |
16178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16179 | } | |
16180 | return resultobj; | |
16181 | fail: | |
16182 | return NULL; | |
16183 | } | |
16184 | ||
16185 | ||
16186 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16187 | PyObject *resultobj; | |
16188 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16189 | bool result; | |
16190 | PyObject * obj0 = 0 ; | |
16191 | char *kwnames[] = { | |
16192 | (char *) "self", NULL | |
16193 | }; | |
16194 | ||
16195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16198 | { | |
16199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16200 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16201 | ||
16202 | wxPyEndAllowThreads(__tstate); | |
16203 | if (PyErr_Occurred()) SWIG_fail; | |
16204 | } | |
16205 | { | |
16206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16207 | } | |
16208 | return resultobj; | |
16209 | fail: | |
16210 | return NULL; | |
16211 | } | |
16212 | ||
16213 | ||
16214 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16215 | PyObject *resultobj; | |
16216 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16217 | wxSize result; | |
16218 | PyObject * obj0 = 0 ; | |
16219 | char *kwnames[] = { | |
16220 | (char *) "self", NULL | |
16221 | }; | |
16222 | ||
16223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16226 | { | |
16227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16228 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
16229 | ||
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | { | |
16234 | wxSize * resultptr; | |
16235 | resultptr = new wxSize((wxSize &) result); | |
16236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16237 | } | |
16238 | return resultobj; | |
16239 | fail: | |
16240 | return NULL; | |
16241 | } | |
16242 | ||
16243 | ||
16244 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16245 | PyObject *resultobj; | |
16246 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16248 | PyObject * obj0 = 0 ; | |
16249 | PyObject * obj1 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self",(char *) "child", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16259 | { | |
16260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16261 | (arg1)->base_AddChild(arg2); | |
16262 | ||
16263 | wxPyEndAllowThreads(__tstate); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
16266 | Py_INCREF(Py_None); resultobj = Py_None; | |
16267 | return resultobj; | |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
16273 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16274 | PyObject *resultobj; | |
16275 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16276 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16277 | PyObject * obj0 = 0 ; | |
16278 | PyObject * obj1 = 0 ; | |
16279 | char *kwnames[] = { | |
16280 | (char *) "self",(char *) "child", NULL | |
16281 | }; | |
16282 | ||
16283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16286 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16288 | { | |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | (arg1)->base_RemoveChild(arg2); | |
16291 | ||
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
16295 | Py_INCREF(Py_None); resultobj = Py_None; | |
16296 | return resultobj; | |
16297 | fail: | |
16298 | return NULL; | |
16299 | } | |
16300 | ||
16301 | ||
16302 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16303 | PyObject *resultobj; | |
16304 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16305 | bool result; | |
16306 | PyObject * obj0 = 0 ; | |
16307 | char *kwnames[] = { | |
16308 | (char *) "self", NULL | |
16309 | }; | |
16310 | ||
16311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16314 | { | |
16315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 16316 | result = (bool)((wxPyWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
16317 | |
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | { | |
16322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16323 | } | |
16324 | return resultobj; | |
16325 | fail: | |
16326 | return NULL; | |
16327 | } | |
16328 | ||
16329 | ||
16330 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16331 | PyObject *resultobj; | |
16332 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16333 | wxColour *arg2 = 0 ; | |
16334 | wxColour temp2 ; | |
16335 | PyObject * obj0 = 0 ; | |
16336 | PyObject * obj1 = 0 ; | |
16337 | char *kwnames[] = { | |
16338 | (char *) "self",(char *) "c", NULL | |
16339 | }; | |
16340 | ||
16341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16344 | { | |
16345 | arg2 = &temp2; | |
16346 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16347 | } | |
16348 | { | |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16350 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16351 | ||
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
16355 | Py_INCREF(Py_None); resultobj = Py_None; | |
16356 | return resultobj; | |
16357 | fail: | |
16358 | return NULL; | |
16359 | } | |
16360 | ||
16361 | ||
caef1a4d RD |
16362 | static PyObject *_wrap_PyWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
16363 | PyObject *resultobj; | |
16364 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16365 | wxVisualAttributes result; | |
16366 | PyObject * obj0 = 0 ; | |
16367 | char *kwnames[] = { | |
16368 | (char *) "self", NULL | |
16369 | }; | |
16370 | ||
16371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
16372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16374 | { | |
16375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16376 | result = (arg1)->base_GetDefaultAttributes(); | |
16377 | ||
16378 | wxPyEndAllowThreads(__tstate); | |
16379 | if (PyErr_Occurred()) SWIG_fail; | |
16380 | } | |
16381 | { | |
16382 | wxVisualAttributes * resultptr; | |
16383 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
16384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16385 | } | |
16386 | return resultobj; | |
16387 | fail: | |
16388 | return NULL; | |
16389 | } | |
16390 | ||
16391 | ||
d55e5bfc RD |
16392 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { |
16393 | PyObject *obj; | |
16394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16395 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
16396 | Py_INCREF(obj); | |
16397 | return Py_BuildValue((char *)""); | |
16398 | } | |
16399 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16400 | PyObject *resultobj; | |
16401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 16402 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
16403 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16404 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16405 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16406 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16407 | long arg5 = (long) 0 ; | |
16408 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16409 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16410 | wxPyPanel *result; | |
16411 | wxPoint temp3 ; | |
16412 | wxSize temp4 ; | |
16413 | bool temp6 = False ; | |
16414 | PyObject * obj0 = 0 ; | |
16415 | PyObject * obj1 = 0 ; | |
16416 | PyObject * obj2 = 0 ; | |
16417 | PyObject * obj3 = 0 ; | |
16418 | PyObject * obj4 = 0 ; | |
16419 | PyObject * obj5 = 0 ; | |
16420 | char *kwnames[] = { | |
16421 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16422 | }; | |
16423 | ||
248ed943 | 16424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
16425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
16427 | if (obj1) { |
16428 | arg2 = (int const) SWIG_AsInt(obj1); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
16430 | } | |
d55e5bfc RD |
16431 | if (obj2) { |
16432 | { | |
16433 | arg3 = &temp3; | |
16434 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16435 | } | |
16436 | } | |
16437 | if (obj3) { | |
16438 | { | |
16439 | arg4 = &temp4; | |
16440 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16441 | } | |
16442 | } | |
16443 | if (obj4) { | |
16444 | arg5 = (long) SWIG_AsLong(obj4); | |
16445 | if (PyErr_Occurred()) SWIG_fail; | |
16446 | } | |
16447 | if (obj5) { | |
16448 | { | |
16449 | arg6 = wxString_in_helper(obj5); | |
16450 | if (arg6 == NULL) SWIG_fail; | |
16451 | temp6 = True; | |
16452 | } | |
16453 | } | |
16454 | { | |
0439c23b | 16455 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16457 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16458 | ||
16459 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16460 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16461 | } |
16462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16463 | { | |
16464 | if (temp6) | |
16465 | delete arg6; | |
16466 | } | |
16467 | return resultobj; | |
16468 | fail: | |
16469 | { | |
16470 | if (temp6) | |
16471 | delete arg6; | |
16472 | } | |
16473 | return NULL; | |
16474 | } | |
16475 | ||
16476 | ||
16477 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16478 | PyObject *resultobj; | |
16479 | wxPyPanel *result; | |
16480 | char *kwnames[] = { | |
16481 | NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
16485 | { | |
0439c23b | 16486 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16488 | result = (wxPyPanel *)new wxPyPanel(); | |
16489 | ||
16490 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16491 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16492 | } |
16493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj; | |
16502 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16503 | PyObject *arg2 = (PyObject *) 0 ; | |
16504 | PyObject *arg3 = (PyObject *) 0 ; | |
16505 | PyObject * obj0 = 0 ; | |
16506 | PyObject * obj1 = 0 ; | |
16507 | PyObject * obj2 = 0 ; | |
16508 | char *kwnames[] = { | |
16509 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16510 | }; | |
16511 | ||
16512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16515 | arg2 = obj1; | |
16516 | arg3 = obj2; | |
16517 | { | |
16518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16519 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16520 | ||
16521 | wxPyEndAllowThreads(__tstate); | |
16522 | if (PyErr_Occurred()) SWIG_fail; | |
16523 | } | |
16524 | Py_INCREF(Py_None); resultobj = Py_None; | |
16525 | return resultobj; | |
16526 | fail: | |
16527 | return NULL; | |
16528 | } | |
16529 | ||
16530 | ||
caef1a4d RD |
16531 | static PyObject *_wrap_PyPanel_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16532 | PyObject *resultobj; | |
16533 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16534 | wxSize *arg2 = 0 ; | |
16535 | wxSize temp2 ; | |
16536 | PyObject * obj0 = 0 ; | |
16537 | PyObject * obj1 = 0 ; | |
16538 | char *kwnames[] = { | |
16539 | (char *) "self",(char *) "size", NULL | |
16540 | }; | |
16541 | ||
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16545 | { | |
16546 | arg2 = &temp2; | |
16547 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16548 | } | |
16549 | { | |
16550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16551 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16552 | ||
16553 | wxPyEndAllowThreads(__tstate); | |
16554 | if (PyErr_Occurred()) SWIG_fail; | |
16555 | } | |
16556 | Py_INCREF(Py_None); resultobj = Py_None; | |
16557 | return resultobj; | |
16558 | fail: | |
16559 | return NULL; | |
16560 | } | |
16561 | ||
16562 | ||
d55e5bfc RD |
16563 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16564 | PyObject *resultobj; | |
16565 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16566 | int arg2 ; | |
16567 | int arg3 ; | |
16568 | int arg4 ; | |
16569 | int arg5 ; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | PyObject * obj2 = 0 ; | |
16573 | PyObject * obj3 = 0 ; | |
16574 | PyObject * obj4 = 0 ; | |
16575 | char *kwnames[] = { | |
16576 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16577 | }; | |
16578 | ||
16579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16582 | arg2 = (int) SWIG_AsInt(obj1); | |
16583 | if (PyErr_Occurred()) SWIG_fail; | |
16584 | arg3 = (int) SWIG_AsInt(obj2); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | arg4 = (int) SWIG_AsInt(obj3); | |
16587 | if (PyErr_Occurred()) SWIG_fail; | |
16588 | arg5 = (int) SWIG_AsInt(obj4); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | { | |
16591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16592 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
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 | ||
16604 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16605 | PyObject *resultobj; | |
16606 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16607 | int arg2 ; | |
16608 | int arg3 ; | |
16609 | int arg4 ; | |
16610 | int arg5 ; | |
16611 | int arg6 = (int) wxSIZE_AUTO ; | |
16612 | PyObject * obj0 = 0 ; | |
16613 | PyObject * obj1 = 0 ; | |
16614 | PyObject * obj2 = 0 ; | |
16615 | PyObject * obj3 = 0 ; | |
16616 | PyObject * obj4 = 0 ; | |
16617 | PyObject * obj5 = 0 ; | |
16618 | char *kwnames[] = { | |
16619 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16620 | }; | |
16621 | ||
16622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16625 | arg2 = (int) SWIG_AsInt(obj1); | |
16626 | if (PyErr_Occurred()) SWIG_fail; | |
16627 | arg3 = (int) SWIG_AsInt(obj2); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | arg4 = (int) SWIG_AsInt(obj3); | |
16630 | if (PyErr_Occurred()) SWIG_fail; | |
16631 | arg5 = (int) SWIG_AsInt(obj4); | |
16632 | if (PyErr_Occurred()) SWIG_fail; | |
16633 | if (obj5) { | |
16634 | arg6 = (int) SWIG_AsInt(obj5); | |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
16636 | } | |
16637 | { | |
16638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16639 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16640 | ||
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
16644 | Py_INCREF(Py_None); resultobj = Py_None; | |
16645 | return resultobj; | |
16646 | fail: | |
16647 | return NULL; | |
16648 | } | |
16649 | ||
16650 | ||
16651 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16652 | PyObject *resultobj; | |
16653 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16654 | int arg2 ; | |
16655 | int arg3 ; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | PyObject * obj1 = 0 ; | |
16658 | PyObject * obj2 = 0 ; | |
16659 | char *kwnames[] = { | |
16660 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16661 | }; | |
16662 | ||
16663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16666 | arg2 = (int) SWIG_AsInt(obj1); | |
16667 | if (PyErr_Occurred()) SWIG_fail; | |
16668 | arg3 = (int) SWIG_AsInt(obj2); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
16670 | { | |
16671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16672 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16673 | ||
16674 | wxPyEndAllowThreads(__tstate); | |
16675 | if (PyErr_Occurred()) SWIG_fail; | |
16676 | } | |
16677 | Py_INCREF(Py_None); resultobj = Py_None; | |
16678 | return resultobj; | |
16679 | fail: | |
16680 | return NULL; | |
16681 | } | |
16682 | ||
16683 | ||
16684 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16685 | PyObject *resultobj; | |
16686 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16687 | int arg2 ; | |
16688 | int arg3 ; | |
16689 | PyObject * obj0 = 0 ; | |
16690 | PyObject * obj1 = 0 ; | |
16691 | PyObject * obj2 = 0 ; | |
16692 | char *kwnames[] = { | |
16693 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16694 | }; | |
16695 | ||
16696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16699 | arg2 = (int) SWIG_AsInt(obj1); | |
16700 | if (PyErr_Occurred()) SWIG_fail; | |
16701 | arg3 = (int) SWIG_AsInt(obj2); | |
16702 | if (PyErr_Occurred()) SWIG_fail; | |
16703 | { | |
16704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16705 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16706 | ||
16707 | wxPyEndAllowThreads(__tstate); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | Py_INCREF(Py_None); resultobj = Py_None; | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | return NULL; | |
16714 | } | |
16715 | ||
16716 | ||
16717 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16718 | PyObject *resultobj; | |
16719 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16720 | int *arg2 = (int *) 0 ; | |
16721 | int *arg3 = (int *) 0 ; | |
16722 | int temp2 ; | |
16723 | int temp3 ; | |
16724 | PyObject * obj0 = 0 ; | |
16725 | char *kwnames[] = { | |
16726 | (char *) "self", NULL | |
16727 | }; | |
16728 | ||
16729 | arg2 = &temp2; | |
16730 | arg3 = &temp3; | |
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16734 | { | |
16735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16736 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16737 | ||
16738 | wxPyEndAllowThreads(__tstate); | |
16739 | if (PyErr_Occurred()) SWIG_fail; | |
16740 | } | |
16741 | Py_INCREF(Py_None); resultobj = Py_None; | |
16742 | { | |
16743 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16744 | resultobj = t_output_helper(resultobj,o); | |
16745 | } | |
16746 | { | |
16747 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16748 | resultobj = t_output_helper(resultobj,o); | |
16749 | } | |
16750 | return resultobj; | |
16751 | fail: | |
16752 | return NULL; | |
16753 | } | |
16754 | ||
16755 | ||
16756 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16757 | PyObject *resultobj; | |
16758 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16759 | int *arg2 = (int *) 0 ; | |
16760 | int *arg3 = (int *) 0 ; | |
16761 | int temp2 ; | |
16762 | int temp3 ; | |
16763 | PyObject * obj0 = 0 ; | |
16764 | char *kwnames[] = { | |
16765 | (char *) "self", NULL | |
16766 | }; | |
16767 | ||
16768 | arg2 = &temp2; | |
16769 | arg3 = &temp3; | |
16770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16773 | { | |
16774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16775 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16776 | ||
16777 | wxPyEndAllowThreads(__tstate); | |
16778 | if (PyErr_Occurred()) SWIG_fail; | |
16779 | } | |
16780 | Py_INCREF(Py_None); resultobj = Py_None; | |
16781 | { | |
16782 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16783 | resultobj = t_output_helper(resultobj,o); | |
16784 | } | |
16785 | { | |
16786 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16787 | resultobj = t_output_helper(resultobj,o); | |
16788 | } | |
16789 | return resultobj; | |
16790 | fail: | |
16791 | return NULL; | |
16792 | } | |
16793 | ||
16794 | ||
16795 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16796 | PyObject *resultobj; | |
16797 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16798 | int *arg2 = (int *) 0 ; | |
16799 | int *arg3 = (int *) 0 ; | |
16800 | int temp2 ; | |
16801 | int temp3 ; | |
16802 | PyObject * obj0 = 0 ; | |
16803 | char *kwnames[] = { | |
16804 | (char *) "self", NULL | |
16805 | }; | |
16806 | ||
16807 | arg2 = &temp2; | |
16808 | arg3 = &temp3; | |
16809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16812 | { | |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | Py_INCREF(Py_None); resultobj = Py_None; | |
16820 | { | |
16821 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16822 | resultobj = t_output_helper(resultobj,o); | |
16823 | } | |
16824 | { | |
16825 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16826 | resultobj = t_output_helper(resultobj,o); | |
16827 | } | |
16828 | return resultobj; | |
16829 | fail: | |
16830 | return NULL; | |
16831 | } | |
16832 | ||
16833 | ||
16834 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16835 | PyObject *resultobj; | |
16836 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16837 | wxSize result; | |
16838 | PyObject * obj0 = 0 ; | |
16839 | char *kwnames[] = { | |
16840 | (char *) "self", NULL | |
16841 | }; | |
16842 | ||
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",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 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16849 | ||
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | { | |
16854 | wxSize * resultptr; | |
16855 | resultptr = new wxSize((wxSize &) result); | |
16856 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16857 | } | |
16858 | return resultobj; | |
16859 | fail: | |
16860 | return NULL; | |
16861 | } | |
16862 | ||
16863 | ||
16864 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16865 | PyObject *resultobj; | |
16866 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16867 | wxSize result; | |
16868 | PyObject * obj0 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16876 | { | |
16877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16878 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16879 | ||
16880 | wxPyEndAllowThreads(__tstate); | |
16881 | if (PyErr_Occurred()) SWIG_fail; | |
16882 | } | |
16883 | { | |
16884 | wxSize * resultptr; | |
16885 | resultptr = new wxSize((wxSize &) result); | |
16886 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16887 | } | |
16888 | return resultobj; | |
16889 | fail: | |
16890 | return NULL; | |
16891 | } | |
16892 | ||
16893 | ||
16894 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16895 | PyObject *resultobj; | |
16896 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16897 | PyObject * obj0 = 0 ; | |
16898 | char *kwnames[] = { | |
16899 | (char *) "self", NULL | |
16900 | }; | |
16901 | ||
16902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16905 | { | |
16906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16907 | (arg1)->base_InitDialog(); | |
16908 | ||
16909 | wxPyEndAllowThreads(__tstate); | |
16910 | if (PyErr_Occurred()) SWIG_fail; | |
16911 | } | |
16912 | Py_INCREF(Py_None); resultobj = Py_None; | |
16913 | return resultobj; | |
16914 | fail: | |
16915 | return NULL; | |
16916 | } | |
16917 | ||
16918 | ||
16919 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16920 | PyObject *resultobj; | |
16921 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16922 | bool result; | |
16923 | PyObject * obj0 = 0 ; | |
16924 | char *kwnames[] = { | |
16925 | (char *) "self", NULL | |
16926 | }; | |
16927 | ||
16928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16931 | { | |
16932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16933 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16934 | ||
16935 | wxPyEndAllowThreads(__tstate); | |
16936 | if (PyErr_Occurred()) SWIG_fail; | |
16937 | } | |
16938 | { | |
16939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16940 | } | |
16941 | return resultobj; | |
16942 | fail: | |
16943 | return NULL; | |
16944 | } | |
16945 | ||
16946 | ||
16947 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16948 | PyObject *resultobj; | |
16949 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16950 | bool result; | |
16951 | PyObject * obj0 = 0 ; | |
16952 | char *kwnames[] = { | |
16953 | (char *) "self", NULL | |
16954 | }; | |
16955 | ||
16956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16959 | { | |
16960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16961 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16962 | ||
16963 | wxPyEndAllowThreads(__tstate); | |
16964 | if (PyErr_Occurred()) SWIG_fail; | |
16965 | } | |
16966 | { | |
16967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16968 | } | |
16969 | return resultobj; | |
16970 | fail: | |
16971 | return NULL; | |
16972 | } | |
16973 | ||
16974 | ||
16975 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16976 | PyObject *resultobj; | |
16977 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16978 | bool result; | |
16979 | PyObject * obj0 = 0 ; | |
16980 | char *kwnames[] = { | |
16981 | (char *) "self", NULL | |
16982 | }; | |
16983 | ||
16984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16987 | { | |
16988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16989 | result = (bool)(arg1)->base_Validate(); | |
16990 | ||
16991 | wxPyEndAllowThreads(__tstate); | |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
16994 | { | |
16995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16996 | } | |
16997 | return resultobj; | |
16998 | fail: | |
16999 | return NULL; | |
17000 | } | |
17001 | ||
17002 | ||
17003 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17004 | PyObject *resultobj; | |
17005 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17006 | bool result; | |
17007 | PyObject * obj0 = 0 ; | |
17008 | char *kwnames[] = { | |
17009 | (char *) "self", NULL | |
17010 | }; | |
17011 | ||
17012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17015 | { | |
17016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17017 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
17018 | ||
17019 | wxPyEndAllowThreads(__tstate); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
17021 | } | |
17022 | { | |
17023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17024 | } | |
17025 | return resultobj; | |
17026 | fail: | |
17027 | return NULL; | |
17028 | } | |
17029 | ||
17030 | ||
17031 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17032 | PyObject *resultobj; | |
17033 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17034 | bool result; | |
17035 | PyObject * obj0 = 0 ; | |
17036 | char *kwnames[] = { | |
17037 | (char *) "self", NULL | |
17038 | }; | |
17039 | ||
17040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17043 | { | |
17044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17045 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17046 | ||
17047 | wxPyEndAllowThreads(__tstate); | |
17048 | if (PyErr_Occurred()) SWIG_fail; | |
17049 | } | |
17050 | { | |
17051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17052 | } | |
17053 | return resultobj; | |
17054 | fail: | |
17055 | return NULL; | |
17056 | } | |
17057 | ||
17058 | ||
17059 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17060 | PyObject *resultobj; | |
17061 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17062 | wxSize result; | |
17063 | PyObject * obj0 = 0 ; | |
17064 | char *kwnames[] = { | |
17065 | (char *) "self", NULL | |
17066 | }; | |
17067 | ||
17068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17071 | { | |
17072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17073 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
17074 | ||
17075 | wxPyEndAllowThreads(__tstate); | |
17076 | if (PyErr_Occurred()) SWIG_fail; | |
17077 | } | |
17078 | { | |
17079 | wxSize * resultptr; | |
17080 | resultptr = new wxSize((wxSize &) result); | |
17081 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17082 | } | |
17083 | return resultobj; | |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
17089 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17090 | PyObject *resultobj; | |
17091 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17092 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | PyObject * obj1 = 0 ; | |
17095 | char *kwnames[] = { | |
17096 | (char *) "self",(char *) "child", NULL | |
17097 | }; | |
17098 | ||
17099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17104 | { | |
17105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17106 | (arg1)->base_AddChild(arg2); | |
17107 | ||
17108 | wxPyEndAllowThreads(__tstate); | |
17109 | if (PyErr_Occurred()) SWIG_fail; | |
17110 | } | |
17111 | Py_INCREF(Py_None); resultobj = Py_None; | |
17112 | return resultobj; | |
17113 | fail: | |
17114 | return NULL; | |
17115 | } | |
17116 | ||
17117 | ||
17118 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17119 | PyObject *resultobj; | |
17120 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17121 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17122 | PyObject * obj0 = 0 ; | |
17123 | PyObject * obj1 = 0 ; | |
17124 | char *kwnames[] = { | |
17125 | (char *) "self",(char *) "child", NULL | |
17126 | }; | |
17127 | ||
17128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17133 | { | |
17134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17135 | (arg1)->base_RemoveChild(arg2); | |
17136 | ||
17137 | wxPyEndAllowThreads(__tstate); | |
17138 | if (PyErr_Occurred()) SWIG_fail; | |
17139 | } | |
17140 | Py_INCREF(Py_None); resultobj = Py_None; | |
17141 | return resultobj; | |
17142 | fail: | |
17143 | return NULL; | |
17144 | } | |
17145 | ||
17146 | ||
17147 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17148 | PyObject *resultobj; | |
17149 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17150 | bool result; | |
17151 | PyObject * obj0 = 0 ; | |
17152 | char *kwnames[] = { | |
17153 | (char *) "self", NULL | |
17154 | }; | |
17155 | ||
17156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17159 | { | |
17160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 17161 | result = (bool)((wxPyPanel const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
17162 | |
17163 | wxPyEndAllowThreads(__tstate); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
17166 | { | |
17167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17168 | } | |
17169 | return resultobj; | |
17170 | fail: | |
17171 | return NULL; | |
17172 | } | |
17173 | ||
17174 | ||
17175 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17176 | PyObject *resultobj; | |
17177 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17178 | wxColour *arg2 = 0 ; | |
17179 | wxColour temp2 ; | |
17180 | PyObject * obj0 = 0 ; | |
17181 | PyObject * obj1 = 0 ; | |
17182 | char *kwnames[] = { | |
17183 | (char *) "self",(char *) "c", NULL | |
17184 | }; | |
17185 | ||
17186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17189 | { | |
17190 | arg2 = &temp2; | |
17191 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17192 | } | |
17193 | { | |
17194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17195 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17196 | ||
17197 | wxPyEndAllowThreads(__tstate); | |
17198 | if (PyErr_Occurred()) SWIG_fail; | |
17199 | } | |
17200 | Py_INCREF(Py_None); resultobj = Py_None; | |
17201 | return resultobj; | |
17202 | fail: | |
17203 | return NULL; | |
17204 | } | |
17205 | ||
17206 | ||
caef1a4d RD |
17207 | static PyObject *_wrap_PyPanel_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
17208 | PyObject *resultobj; | |
17209 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17210 | wxVisualAttributes result; | |
17211 | PyObject * obj0 = 0 ; | |
17212 | char *kwnames[] = { | |
17213 | (char *) "self", NULL | |
17214 | }; | |
17215 | ||
17216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
17217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17219 | { | |
17220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17221 | result = (arg1)->base_GetDefaultAttributes(); | |
17222 | ||
17223 | wxPyEndAllowThreads(__tstate); | |
17224 | if (PyErr_Occurred()) SWIG_fail; | |
17225 | } | |
17226 | { | |
17227 | wxVisualAttributes * resultptr; | |
17228 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
17229 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
17230 | } | |
17231 | return resultobj; | |
17232 | fail: | |
17233 | return NULL; | |
17234 | } | |
17235 | ||
17236 | ||
d55e5bfc RD |
17237 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { |
17238 | PyObject *obj; | |
17239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17240 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
17241 | Py_INCREF(obj); | |
17242 | return Py_BuildValue((char *)""); | |
17243 | } | |
17244 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17245 | PyObject *resultobj; | |
17246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 17247 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
17248 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17249 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17250 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17251 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17252 | long arg5 = (long) 0 ; | |
17253 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
17254 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17255 | wxPyScrolledWindow *result; | |
17256 | wxPoint temp3 ; | |
17257 | wxSize temp4 ; | |
17258 | bool temp6 = False ; | |
17259 | PyObject * obj0 = 0 ; | |
17260 | PyObject * obj1 = 0 ; | |
17261 | PyObject * obj2 = 0 ; | |
17262 | PyObject * obj3 = 0 ; | |
17263 | PyObject * obj4 = 0 ; | |
17264 | PyObject * obj5 = 0 ; | |
17265 | char *kwnames[] = { | |
17266 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17267 | }; | |
17268 | ||
248ed943 | 17269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
17270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
17272 | if (obj1) { |
17273 | arg2 = (int const) SWIG_AsInt(obj1); | |
17274 | if (PyErr_Occurred()) SWIG_fail; | |
17275 | } | |
d55e5bfc RD |
17276 | if (obj2) { |
17277 | { | |
17278 | arg3 = &temp3; | |
17279 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17280 | } | |
17281 | } | |
17282 | if (obj3) { | |
17283 | { | |
17284 | arg4 = &temp4; | |
17285 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17286 | } | |
17287 | } | |
17288 | if (obj4) { | |
17289 | arg5 = (long) SWIG_AsLong(obj4); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | if (obj5) { | |
17293 | { | |
17294 | arg6 = wxString_in_helper(obj5); | |
17295 | if (arg6 == NULL) SWIG_fail; | |
17296 | temp6 = True; | |
17297 | } | |
17298 | } | |
17299 | { | |
0439c23b | 17300 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17302 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17303 | ||
17304 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17305 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17306 | } |
17307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17308 | { | |
17309 | if (temp6) | |
17310 | delete arg6; | |
17311 | } | |
17312 | return resultobj; | |
17313 | fail: | |
17314 | { | |
17315 | if (temp6) | |
17316 | delete arg6; | |
17317 | } | |
17318 | return NULL; | |
17319 | } | |
17320 | ||
17321 | ||
17322 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17323 | PyObject *resultobj; | |
17324 | wxPyScrolledWindow *result; | |
17325 | char *kwnames[] = { | |
17326 | NULL | |
17327 | }; | |
17328 | ||
17329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
17330 | { | |
0439c23b | 17331 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17333 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17336 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17337 | } |
17338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17339 | return resultobj; | |
17340 | fail: | |
17341 | return NULL; | |
17342 | } | |
17343 | ||
17344 | ||
17345 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17346 | PyObject *resultobj; | |
17347 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17348 | PyObject *arg2 = (PyObject *) 0 ; | |
17349 | PyObject *arg3 = (PyObject *) 0 ; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | PyObject * obj1 = 0 ; | |
17352 | PyObject * obj2 = 0 ; | |
17353 | char *kwnames[] = { | |
17354 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17355 | }; | |
17356 | ||
17357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17360 | arg2 = obj1; | |
17361 | arg3 = obj2; | |
17362 | { | |
17363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17364 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17365 | ||
17366 | wxPyEndAllowThreads(__tstate); | |
17367 | if (PyErr_Occurred()) SWIG_fail; | |
17368 | } | |
17369 | Py_INCREF(Py_None); resultobj = Py_None; | |
17370 | return resultobj; | |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
caef1a4d RD |
17376 | static PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
17377 | PyObject *resultobj; | |
17378 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17379 | wxSize *arg2 = 0 ; | |
17380 | wxSize temp2 ; | |
17381 | PyObject * obj0 = 0 ; | |
17382 | PyObject * obj1 = 0 ; | |
17383 | char *kwnames[] = { | |
17384 | (char *) "self",(char *) "size", NULL | |
17385 | }; | |
17386 | ||
17387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
17388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17390 | { | |
17391 | arg2 = &temp2; | |
17392 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17393 | } | |
17394 | { | |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
17397 | ||
17398 | wxPyEndAllowThreads(__tstate); | |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
17400 | } | |
17401 | Py_INCREF(Py_None); resultobj = Py_None; | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
d55e5bfc RD |
17408 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
17409 | PyObject *resultobj; | |
17410 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17411 | int arg2 ; | |
17412 | int arg3 ; | |
17413 | int arg4 ; | |
17414 | int arg5 ; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | PyObject * obj1 = 0 ; | |
17417 | PyObject * obj2 = 0 ; | |
17418 | PyObject * obj3 = 0 ; | |
17419 | PyObject * obj4 = 0 ; | |
17420 | char *kwnames[] = { | |
17421 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17422 | }; | |
17423 | ||
17424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17427 | arg2 = (int) SWIG_AsInt(obj1); | |
17428 | if (PyErr_Occurred()) SWIG_fail; | |
17429 | arg3 = (int) SWIG_AsInt(obj2); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | arg4 = (int) SWIG_AsInt(obj3); | |
17432 | if (PyErr_Occurred()) SWIG_fail; | |
17433 | arg5 = (int) SWIG_AsInt(obj4); | |
17434 | if (PyErr_Occurred()) SWIG_fail; | |
17435 | { | |
17436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17437 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
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 | ||
17449 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17450 | PyObject *resultobj; | |
17451 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17452 | int arg2 ; | |
17453 | int arg3 ; | |
17454 | int arg4 ; | |
17455 | int arg5 ; | |
17456 | int arg6 = (int) wxSIZE_AUTO ; | |
17457 | PyObject * obj0 = 0 ; | |
17458 | PyObject * obj1 = 0 ; | |
17459 | PyObject * obj2 = 0 ; | |
17460 | PyObject * obj3 = 0 ; | |
17461 | PyObject * obj4 = 0 ; | |
17462 | PyObject * obj5 = 0 ; | |
17463 | char *kwnames[] = { | |
17464 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
17465 | }; | |
17466 | ||
17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17470 | arg2 = (int) SWIG_AsInt(obj1); | |
17471 | if (PyErr_Occurred()) SWIG_fail; | |
17472 | arg3 = (int) SWIG_AsInt(obj2); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | arg4 = (int) SWIG_AsInt(obj3); | |
17475 | if (PyErr_Occurred()) SWIG_fail; | |
17476 | arg5 = (int) SWIG_AsInt(obj4); | |
17477 | if (PyErr_Occurred()) SWIG_fail; | |
17478 | if (obj5) { | |
17479 | arg6 = (int) SWIG_AsInt(obj5); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
17482 | { | |
17483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17484 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
17485 | ||
17486 | wxPyEndAllowThreads(__tstate); | |
17487 | if (PyErr_Occurred()) SWIG_fail; | |
17488 | } | |
17489 | Py_INCREF(Py_None); resultobj = Py_None; | |
17490 | return resultobj; | |
17491 | fail: | |
17492 | return NULL; | |
17493 | } | |
17494 | ||
17495 | ||
17496 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17497 | PyObject *resultobj; | |
17498 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17499 | int arg2 ; | |
17500 | int arg3 ; | |
17501 | PyObject * obj0 = 0 ; | |
17502 | PyObject * obj1 = 0 ; | |
17503 | PyObject * obj2 = 0 ; | |
17504 | char *kwnames[] = { | |
17505 | (char *) "self",(char *) "width",(char *) "height", NULL | |
17506 | }; | |
17507 | ||
17508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17511 | arg2 = (int) SWIG_AsInt(obj1); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | arg3 = (int) SWIG_AsInt(obj2); | |
17514 | if (PyErr_Occurred()) SWIG_fail; | |
17515 | { | |
17516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17517 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
17518 | ||
17519 | wxPyEndAllowThreads(__tstate); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | } | |
17522 | Py_INCREF(Py_None); resultobj = Py_None; | |
17523 | return resultobj; | |
17524 | fail: | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
17529 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17530 | PyObject *resultobj; | |
17531 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17532 | int arg2 ; | |
17533 | int arg3 ; | |
17534 | PyObject * obj0 = 0 ; | |
17535 | PyObject * obj1 = 0 ; | |
17536 | PyObject * obj2 = 0 ; | |
17537 | char *kwnames[] = { | |
17538 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17539 | }; | |
17540 | ||
17541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17544 | arg2 = (int) SWIG_AsInt(obj1); | |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
17546 | arg3 = (int) SWIG_AsInt(obj2); | |
17547 | if (PyErr_Occurred()) SWIG_fail; | |
17548 | { | |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
17551 | ||
17552 | wxPyEndAllowThreads(__tstate); | |
17553 | if (PyErr_Occurred()) SWIG_fail; | |
17554 | } | |
17555 | Py_INCREF(Py_None); resultobj = Py_None; | |
17556 | return resultobj; | |
17557 | fail: | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
17562 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17563 | PyObject *resultobj; | |
17564 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17565 | int *arg2 = (int *) 0 ; | |
17566 | int *arg3 = (int *) 0 ; | |
17567 | int temp2 ; | |
17568 | int temp3 ; | |
17569 | PyObject * obj0 = 0 ; | |
17570 | char *kwnames[] = { | |
17571 | (char *) "self", NULL | |
17572 | }; | |
17573 | ||
17574 | arg2 = &temp2; | |
17575 | arg3 = &temp3; | |
17576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
17577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17579 | { | |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17581 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
17582 | ||
17583 | wxPyEndAllowThreads(__tstate); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | Py_INCREF(Py_None); resultobj = Py_None; | |
17587 | { | |
17588 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17589 | resultobj = t_output_helper(resultobj,o); | |
17590 | } | |
17591 | { | |
17592 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17593 | resultobj = t_output_helper(resultobj,o); | |
17594 | } | |
17595 | return resultobj; | |
17596 | fail: | |
17597 | return NULL; | |
17598 | } | |
17599 | ||
17600 | ||
17601 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17602 | PyObject *resultobj; | |
17603 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17604 | int *arg2 = (int *) 0 ; | |
17605 | int *arg3 = (int *) 0 ; | |
17606 | int temp2 ; | |
17607 | int temp3 ; | |
17608 | PyObject * obj0 = 0 ; | |
17609 | char *kwnames[] = { | |
17610 | (char *) "self", NULL | |
17611 | }; | |
17612 | ||
17613 | arg2 = &temp2; | |
17614 | arg3 = &temp3; | |
17615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
17616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17618 | { | |
17619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17620 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
17621 | ||
17622 | wxPyEndAllowThreads(__tstate); | |
17623 | if (PyErr_Occurred()) SWIG_fail; | |
17624 | } | |
17625 | Py_INCREF(Py_None); resultobj = Py_None; | |
17626 | { | |
17627 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17628 | resultobj = t_output_helper(resultobj,o); | |
17629 | } | |
17630 | { | |
17631 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17632 | resultobj = t_output_helper(resultobj,o); | |
17633 | } | |
17634 | return resultobj; | |
17635 | fail: | |
17636 | return NULL; | |
17637 | } | |
17638 | ||
17639 | ||
17640 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17641 | PyObject *resultobj; | |
17642 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17643 | int *arg2 = (int *) 0 ; | |
17644 | int *arg3 = (int *) 0 ; | |
17645 | int temp2 ; | |
17646 | int temp3 ; | |
17647 | PyObject * obj0 = 0 ; | |
17648 | char *kwnames[] = { | |
17649 | (char *) "self", NULL | |
17650 | }; | |
17651 | ||
17652 | arg2 = &temp2; | |
17653 | arg3 = &temp3; | |
17654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
17655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17657 | { | |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
17660 | ||
17661 | wxPyEndAllowThreads(__tstate); | |
17662 | if (PyErr_Occurred()) SWIG_fail; | |
17663 | } | |
17664 | Py_INCREF(Py_None); resultobj = Py_None; | |
17665 | { | |
17666 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17667 | resultobj = t_output_helper(resultobj,o); | |
17668 | } | |
17669 | { | |
17670 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17671 | resultobj = t_output_helper(resultobj,o); | |
17672 | } | |
17673 | return resultobj; | |
17674 | fail: | |
17675 | return NULL; | |
17676 | } | |
17677 | ||
17678 | ||
17679 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17680 | PyObject *resultobj; | |
17681 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17682 | wxSize result; | |
17683 | PyObject * obj0 = 0 ; | |
17684 | char *kwnames[] = { | |
17685 | (char *) "self", NULL | |
17686 | }; | |
17687 | ||
17688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",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 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17694 | ||
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | { | |
17699 | wxSize * resultptr; | |
17700 | resultptr = new wxSize((wxSize &) result); | |
17701 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17702 | } | |
17703 | return resultobj; | |
17704 | fail: | |
17705 | return NULL; | |
17706 | } | |
17707 | ||
17708 | ||
17709 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17710 | PyObject *resultobj; | |
17711 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17712 | wxSize result; | |
17713 | PyObject * obj0 = 0 ; | |
17714 | char *kwnames[] = { | |
17715 | (char *) "self", NULL | |
17716 | }; | |
17717 | ||
17718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17724 | ||
17725 | wxPyEndAllowThreads(__tstate); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
17728 | { | |
17729 | wxSize * resultptr; | |
17730 | resultptr = new wxSize((wxSize &) result); | |
17731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17732 | } | |
17733 | return resultobj; | |
17734 | fail: | |
17735 | return NULL; | |
17736 | } | |
17737 | ||
17738 | ||
17739 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17740 | PyObject *resultobj; | |
17741 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17742 | PyObject * obj0 = 0 ; | |
17743 | char *kwnames[] = { | |
17744 | (char *) "self", NULL | |
17745 | }; | |
17746 | ||
17747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17750 | { | |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | (arg1)->base_InitDialog(); | |
17753 | ||
17754 | wxPyEndAllowThreads(__tstate); | |
17755 | if (PyErr_Occurred()) SWIG_fail; | |
17756 | } | |
17757 | Py_INCREF(Py_None); resultobj = Py_None; | |
17758 | return resultobj; | |
17759 | fail: | |
17760 | return NULL; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17765 | PyObject *resultobj; | |
17766 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17767 | bool result; | |
17768 | PyObject * obj0 = 0 ; | |
17769 | char *kwnames[] = { | |
17770 | (char *) "self", NULL | |
17771 | }; | |
17772 | ||
17773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17776 | { | |
17777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17778 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17779 | ||
17780 | wxPyEndAllowThreads(__tstate); | |
17781 | if (PyErr_Occurred()) SWIG_fail; | |
17782 | } | |
17783 | { | |
17784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17785 | } | |
17786 | return resultobj; | |
17787 | fail: | |
17788 | return NULL; | |
17789 | } | |
17790 | ||
17791 | ||
17792 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17793 | PyObject *resultobj; | |
17794 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17795 | bool result; | |
17796 | PyObject * obj0 = 0 ; | |
17797 | char *kwnames[] = { | |
17798 | (char *) "self", NULL | |
17799 | }; | |
17800 | ||
17801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17804 | { | |
17805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17806 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17807 | ||
17808 | wxPyEndAllowThreads(__tstate); | |
17809 | if (PyErr_Occurred()) SWIG_fail; | |
17810 | } | |
17811 | { | |
17812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17813 | } | |
17814 | return resultobj; | |
17815 | fail: | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
17820 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17821 | PyObject *resultobj; | |
17822 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17823 | bool result; | |
17824 | PyObject * obj0 = 0 ; | |
17825 | char *kwnames[] = { | |
17826 | (char *) "self", NULL | |
17827 | }; | |
17828 | ||
17829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17832 | { | |
17833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17834 | result = (bool)(arg1)->base_Validate(); | |
17835 | ||
17836 | wxPyEndAllowThreads(__tstate); | |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
17838 | } | |
17839 | { | |
17840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17841 | } | |
17842 | return resultobj; | |
17843 | fail: | |
17844 | return NULL; | |
17845 | } | |
17846 | ||
17847 | ||
17848 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17849 | PyObject *resultobj; | |
17850 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17851 | bool result; | |
17852 | PyObject * obj0 = 0 ; | |
17853 | char *kwnames[] = { | |
17854 | (char *) "self", NULL | |
17855 | }; | |
17856 | ||
17857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17860 | { | |
17861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17862 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17863 | ||
17864 | wxPyEndAllowThreads(__tstate); | |
17865 | if (PyErr_Occurred()) SWIG_fail; | |
17866 | } | |
17867 | { | |
17868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17869 | } | |
17870 | return resultobj; | |
17871 | fail: | |
17872 | return NULL; | |
17873 | } | |
17874 | ||
17875 | ||
17876 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17877 | PyObject *resultobj; | |
17878 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17879 | bool result; | |
17880 | PyObject * obj0 = 0 ; | |
17881 | char *kwnames[] = { | |
17882 | (char *) "self", NULL | |
17883 | }; | |
17884 | ||
17885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17888 | { | |
17889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17890 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17891 | ||
17892 | wxPyEndAllowThreads(__tstate); | |
17893 | if (PyErr_Occurred()) SWIG_fail; | |
17894 | } | |
17895 | { | |
17896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17897 | } | |
17898 | return resultobj; | |
17899 | fail: | |
17900 | return NULL; | |
17901 | } | |
17902 | ||
17903 | ||
17904 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17905 | PyObject *resultobj; | |
17906 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17907 | wxSize result; | |
17908 | PyObject * obj0 = 0 ; | |
17909 | char *kwnames[] = { | |
17910 | (char *) "self", NULL | |
17911 | }; | |
17912 | ||
17913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17916 | { | |
17917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17918 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17919 | ||
17920 | wxPyEndAllowThreads(__tstate); | |
17921 | if (PyErr_Occurred()) SWIG_fail; | |
17922 | } | |
17923 | { | |
17924 | wxSize * resultptr; | |
17925 | resultptr = new wxSize((wxSize &) result); | |
17926 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17927 | } | |
17928 | return resultobj; | |
17929 | fail: | |
17930 | return NULL; | |
17931 | } | |
17932 | ||
17933 | ||
17934 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17935 | PyObject *resultobj; | |
17936 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17937 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17938 | PyObject * obj0 = 0 ; | |
17939 | PyObject * obj1 = 0 ; | |
17940 | char *kwnames[] = { | |
17941 | (char *) "self",(char *) "child", NULL | |
17942 | }; | |
17943 | ||
17944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17949 | { | |
17950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17951 | (arg1)->base_AddChild(arg2); | |
17952 | ||
17953 | wxPyEndAllowThreads(__tstate); | |
17954 | if (PyErr_Occurred()) SWIG_fail; | |
17955 | } | |
17956 | Py_INCREF(Py_None); resultobj = Py_None; | |
17957 | return resultobj; | |
17958 | fail: | |
17959 | return NULL; | |
17960 | } | |
17961 | ||
17962 | ||
17963 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17964 | PyObject *resultobj; | |
17965 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17966 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17967 | PyObject * obj0 = 0 ; | |
17968 | PyObject * obj1 = 0 ; | |
17969 | char *kwnames[] = { | |
17970 | (char *) "self",(char *) "child", NULL | |
17971 | }; | |
17972 | ||
17973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17978 | { | |
17979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17980 | (arg1)->base_RemoveChild(arg2); | |
17981 | ||
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | Py_INCREF(Py_None); resultobj = Py_None; | |
17986 | return resultobj; | |
17987 | fail: | |
17988 | return NULL; | |
17989 | } | |
17990 | ||
17991 | ||
17992 | static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17993 | PyObject *resultobj; | |
17994 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17995 | bool result; | |
17996 | PyObject * obj0 = 0 ; | |
17997 | char *kwnames[] = { | |
17998 | (char *) "self", NULL | |
17999 | }; | |
18000 | ||
18001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
18002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18004 | { | |
18005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 18006 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
18007 | |
18008 | wxPyEndAllowThreads(__tstate); | |
18009 | if (PyErr_Occurred()) SWIG_fail; | |
18010 | } | |
18011 | { | |
18012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18013 | } | |
18014 | return resultobj; | |
18015 | fail: | |
18016 | return NULL; | |
18017 | } | |
18018 | ||
18019 | ||
18020 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18021 | PyObject *resultobj; | |
18022 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18023 | wxColour *arg2 = 0 ; | |
18024 | wxColour temp2 ; | |
18025 | PyObject * obj0 = 0 ; | |
18026 | PyObject * obj1 = 0 ; | |
18027 | char *kwnames[] = { | |
18028 | (char *) "self",(char *) "c", NULL | |
18029 | }; | |
18030 | ||
18031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
18032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18034 | { | |
18035 | arg2 = &temp2; | |
18036 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18037 | } | |
18038 | { | |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
18045 | Py_INCREF(Py_None); resultobj = Py_None; | |
18046 | return resultobj; | |
18047 | fail: | |
18048 | return NULL; | |
18049 | } | |
18050 | ||
18051 | ||
caef1a4d RD |
18052 | static PyObject *_wrap_PyScrolledWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18053 | PyObject *resultobj; | |
18054 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18055 | wxVisualAttributes result; | |
18056 | PyObject * obj0 = 0 ; | |
18057 | char *kwnames[] = { | |
18058 | (char *) "self", NULL | |
18059 | }; | |
18060 | ||
18061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
18062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18064 | { | |
18065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18066 | result = (arg1)->base_GetDefaultAttributes(); | |
18067 | ||
18068 | wxPyEndAllowThreads(__tstate); | |
18069 | if (PyErr_Occurred()) SWIG_fail; | |
18070 | } | |
18071 | { | |
18072 | wxVisualAttributes * resultptr; | |
18073 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18074 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18075 | } | |
18076 | return resultobj; | |
18077 | fail: | |
18078 | return NULL; | |
18079 | } | |
18080 | ||
18081 | ||
d55e5bfc RD |
18082 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
18083 | PyObject *obj; | |
18084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18085 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
18086 | Py_INCREF(obj); | |
18087 | return Py_BuildValue((char *)""); | |
18088 | } | |
18089 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
18090 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
18091 | return 1; | |
18092 | } | |
18093 | ||
18094 | ||
18095 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
18096 | PyObject *pyobj; | |
18097 | ||
18098 | { | |
18099 | #if wxUSE_UNICODE | |
18100 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
18101 | #else | |
18102 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
18103 | #endif | |
18104 | } | |
18105 | return pyobj; | |
18106 | } | |
18107 | ||
18108 | ||
18109 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
18110 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
18111 | return 1; | |
18112 | } | |
18113 | ||
18114 | ||
18115 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
18116 | PyObject *pyobj; | |
18117 | ||
18118 | { | |
18119 | #if wxUSE_UNICODE | |
18120 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
18121 | #else | |
18122 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
18123 | #endif | |
18124 | } | |
18125 | return pyobj; | |
18126 | } | |
18127 | ||
18128 | ||
09c21d3b | 18129 | static PyObject *_wrap_new_PrintData__SWIG_0(PyObject *self, PyObject *args) { |
d55e5bfc RD |
18130 | PyObject *resultobj; |
18131 | wxPrintData *result; | |
d55e5bfc | 18132 | |
09c21d3b | 18133 | if(!PyArg_ParseTuple(args,(char *)":new_PrintData")) goto fail; |
d55e5bfc RD |
18134 | { |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = (wxPrintData *)new wxPrintData(); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
09c21d3b RD |
18148 | static PyObject *_wrap_new_PrintData__SWIG_1(PyObject *self, PyObject *args) { |
18149 | PyObject *resultobj; | |
18150 | wxPrintData *arg1 = 0 ; | |
18151 | wxPrintData *result; | |
18152 | PyObject * obj0 = 0 ; | |
18153 | ||
18154 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintData",&obj0)) goto fail; | |
18155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18157 | SWIG_fail; | |
18158 | if (arg1 == NULL) { | |
18159 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18160 | SWIG_fail; | |
18161 | } | |
18162 | { | |
18163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18164 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
18165 | ||
18166 | wxPyEndAllowThreads(__tstate); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
18170 | return resultobj; | |
18171 | fail: | |
18172 | return NULL; | |
18173 | } | |
18174 | ||
18175 | ||
18176 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { | |
18177 | int argc; | |
18178 | PyObject *argv[2]; | |
18179 | int ii; | |
18180 | ||
18181 | argc = PyObject_Length(args); | |
18182 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
18183 | argv[ii] = PyTuple_GetItem(args,ii); | |
18184 | } | |
18185 | if (argc == 0) { | |
18186 | return _wrap_new_PrintData__SWIG_0(self,args); | |
18187 | } | |
18188 | if (argc == 1) { | |
18189 | int _v; | |
18190 | { | |
18191 | void *ptr; | |
18192 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
18193 | _v = 0; | |
18194 | PyErr_Clear(); | |
18195 | } else { | |
18196 | _v = 1; | |
18197 | } | |
18198 | } | |
18199 | if (_v) { | |
18200 | return _wrap_new_PrintData__SWIG_1(self,args); | |
18201 | } | |
18202 | } | |
18203 | ||
18204 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintData'"); | |
18205 | return NULL; | |
18206 | } | |
18207 | ||
18208 | ||
d55e5bfc RD |
18209 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
18210 | PyObject *resultobj; | |
18211 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18212 | PyObject * obj0 = 0 ; | |
18213 | char *kwnames[] = { | |
18214 | (char *) "self", NULL | |
18215 | }; | |
18216 | ||
18217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
18218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18220 | { | |
18221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18222 | delete arg1; | |
18223 | ||
18224 | wxPyEndAllowThreads(__tstate); | |
18225 | if (PyErr_Occurred()) SWIG_fail; | |
18226 | } | |
18227 | Py_INCREF(Py_None); resultobj = Py_None; | |
18228 | return resultobj; | |
18229 | fail: | |
18230 | return NULL; | |
18231 | } | |
18232 | ||
18233 | ||
18234 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18235 | PyObject *resultobj; | |
18236 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18237 | int result; | |
18238 | PyObject * obj0 = 0 ; | |
18239 | char *kwnames[] = { | |
18240 | (char *) "self", NULL | |
18241 | }; | |
18242 | ||
18243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
18244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18246 | { | |
18247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18248 | result = (int)(arg1)->GetNoCopies(); | |
18249 | ||
18250 | wxPyEndAllowThreads(__tstate); | |
18251 | if (PyErr_Occurred()) SWIG_fail; | |
18252 | } | |
18253 | resultobj = SWIG_FromInt((int)result); | |
18254 | return resultobj; | |
18255 | fail: | |
18256 | return NULL; | |
18257 | } | |
18258 | ||
18259 | ||
18260 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18261 | PyObject *resultobj; | |
18262 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18263 | bool result; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | char *kwnames[] = { | |
18266 | (char *) "self", NULL | |
18267 | }; | |
18268 | ||
18269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
18270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18272 | { | |
18273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18274 | result = (bool)(arg1)->GetCollate(); | |
18275 | ||
18276 | wxPyEndAllowThreads(__tstate); | |
18277 | if (PyErr_Occurred()) SWIG_fail; | |
18278 | } | |
18279 | { | |
18280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18281 | } | |
18282 | return resultobj; | |
18283 | fail: | |
18284 | return NULL; | |
18285 | } | |
18286 | ||
18287 | ||
18288 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18289 | PyObject *resultobj; | |
18290 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18291 | int result; | |
18292 | PyObject * obj0 = 0 ; | |
18293 | char *kwnames[] = { | |
18294 | (char *) "self", NULL | |
18295 | }; | |
18296 | ||
18297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
18298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | result = (int)(arg1)->GetOrientation(); | |
18303 | ||
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
18307 | resultobj = SWIG_FromInt((int)result); | |
18308 | return resultobj; | |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
18314 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18315 | PyObject *resultobj; | |
18316 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18317 | bool result; | |
18318 | PyObject * obj0 = 0 ; | |
18319 | char *kwnames[] = { | |
18320 | (char *) "self", NULL | |
18321 | }; | |
18322 | ||
18323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
18324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18326 | { | |
18327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18328 | result = (bool)(arg1)->Ok(); | |
18329 | ||
18330 | wxPyEndAllowThreads(__tstate); | |
18331 | if (PyErr_Occurred()) SWIG_fail; | |
18332 | } | |
18333 | { | |
18334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18335 | } | |
18336 | return resultobj; | |
18337 | fail: | |
18338 | return NULL; | |
18339 | } | |
18340 | ||
18341 | ||
18342 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18343 | PyObject *resultobj; | |
18344 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18345 | wxString *result; | |
18346 | PyObject * obj0 = 0 ; | |
18347 | char *kwnames[] = { | |
18348 | (char *) "self", NULL | |
18349 | }; | |
18350 | ||
18351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
18352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18354 | { | |
18355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18356 | { | |
18357 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
18358 | result = (wxString *) &_result_ref; | |
18359 | } | |
18360 | ||
18361 | wxPyEndAllowThreads(__tstate); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
18364 | { | |
18365 | #if wxUSE_UNICODE | |
18366 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18367 | #else | |
18368 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18369 | #endif | |
18370 | } | |
18371 | return resultobj; | |
18372 | fail: | |
18373 | return NULL; | |
18374 | } | |
18375 | ||
18376 | ||
18377 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18378 | PyObject *resultobj; | |
18379 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18380 | bool result; | |
18381 | PyObject * obj0 = 0 ; | |
18382 | char *kwnames[] = { | |
18383 | (char *) "self", NULL | |
18384 | }; | |
18385 | ||
18386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
18387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18389 | { | |
18390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18391 | result = (bool)(arg1)->GetColour(); | |
18392 | ||
18393 | wxPyEndAllowThreads(__tstate); | |
18394 | if (PyErr_Occurred()) SWIG_fail; | |
18395 | } | |
18396 | { | |
18397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18398 | } | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
18405 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18406 | PyObject *resultobj; | |
18407 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18408 | int result; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
18415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18417 | { | |
18418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18419 | result = (int)(arg1)->GetDuplex(); | |
18420 | ||
18421 | wxPyEndAllowThreads(__tstate); | |
18422 | if (PyErr_Occurred()) SWIG_fail; | |
18423 | } | |
18424 | resultobj = SWIG_FromInt((int)result); | |
18425 | return resultobj; | |
18426 | fail: | |
18427 | return NULL; | |
18428 | } | |
18429 | ||
18430 | ||
18431 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18432 | PyObject *resultobj; | |
18433 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18434 | int result; | |
18435 | PyObject * obj0 = 0 ; | |
18436 | char *kwnames[] = { | |
18437 | (char *) "self", NULL | |
18438 | }; | |
18439 | ||
18440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
18441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18443 | { | |
18444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18445 | result = (int)(arg1)->GetPaperId(); | |
18446 | ||
18447 | wxPyEndAllowThreads(__tstate); | |
18448 | if (PyErr_Occurred()) SWIG_fail; | |
18449 | } | |
18450 | resultobj = SWIG_FromInt((int)result); | |
18451 | return resultobj; | |
18452 | fail: | |
18453 | return NULL; | |
18454 | } | |
18455 | ||
18456 | ||
18457 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18458 | PyObject *resultobj; | |
18459 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18460 | wxSize *result; | |
18461 | PyObject * obj0 = 0 ; | |
18462 | char *kwnames[] = { | |
18463 | (char *) "self", NULL | |
18464 | }; | |
18465 | ||
18466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18469 | { | |
18470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18471 | { | |
18472 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
18473 | result = (wxSize *) &_result_ref; | |
18474 | } | |
18475 | ||
18476 | wxPyEndAllowThreads(__tstate); | |
18477 | if (PyErr_Occurred()) SWIG_fail; | |
18478 | } | |
18479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
18480 | return resultobj; | |
18481 | fail: | |
18482 | return NULL; | |
18483 | } | |
18484 | ||
18485 | ||
18486 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18487 | PyObject *resultobj; | |
18488 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18489 | int result; | |
18490 | PyObject * obj0 = 0 ; | |
18491 | char *kwnames[] = { | |
18492 | (char *) "self", NULL | |
18493 | }; | |
18494 | ||
18495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
18496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18498 | { | |
18499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18500 | result = (int)(arg1)->GetQuality(); | |
18501 | ||
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
18505 | resultobj = SWIG_FromInt((int)result); | |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
18512 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18513 | PyObject *resultobj; | |
18514 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18515 | int arg2 ; | |
18516 | PyObject * obj0 = 0 ; | |
18517 | PyObject * obj1 = 0 ; | |
18518 | char *kwnames[] = { | |
18519 | (char *) "self",(char *) "v", NULL | |
18520 | }; | |
18521 | ||
18522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
18523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18525 | arg2 = (int) SWIG_AsInt(obj1); | |
18526 | if (PyErr_Occurred()) SWIG_fail; | |
18527 | { | |
18528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18529 | (arg1)->SetNoCopies(arg2); | |
18530 | ||
18531 | wxPyEndAllowThreads(__tstate); | |
18532 | if (PyErr_Occurred()) SWIG_fail; | |
18533 | } | |
18534 | Py_INCREF(Py_None); resultobj = Py_None; | |
18535 | return resultobj; | |
18536 | fail: | |
18537 | return NULL; | |
18538 | } | |
18539 | ||
18540 | ||
18541 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18542 | PyObject *resultobj; | |
18543 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18544 | bool arg2 ; | |
18545 | PyObject * obj0 = 0 ; | |
18546 | PyObject * obj1 = 0 ; | |
18547 | char *kwnames[] = { | |
18548 | (char *) "self",(char *) "flag", NULL | |
18549 | }; | |
18550 | ||
18551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
18552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18554 | arg2 = (bool) SWIG_AsBool(obj1); | |
18555 | if (PyErr_Occurred()) SWIG_fail; | |
18556 | { | |
18557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18558 | (arg1)->SetCollate(arg2); | |
18559 | ||
18560 | wxPyEndAllowThreads(__tstate); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | } | |
18563 | Py_INCREF(Py_None); resultobj = Py_None; | |
18564 | return resultobj; | |
18565 | fail: | |
18566 | return NULL; | |
18567 | } | |
18568 | ||
18569 | ||
18570 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18571 | PyObject *resultobj; | |
18572 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18573 | int arg2 ; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | PyObject * obj1 = 0 ; | |
18576 | char *kwnames[] = { | |
18577 | (char *) "self",(char *) "orient", NULL | |
18578 | }; | |
18579 | ||
18580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18583 | arg2 = (int) SWIG_AsInt(obj1); | |
18584 | if (PyErr_Occurred()) SWIG_fail; | |
18585 | { | |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | (arg1)->SetOrientation(arg2); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | Py_INCREF(Py_None); resultobj = Py_None; | |
18593 | return resultobj; | |
18594 | fail: | |
18595 | return NULL; | |
18596 | } | |
18597 | ||
18598 | ||
18599 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18600 | PyObject *resultobj; | |
18601 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18602 | wxString *arg2 = 0 ; | |
18603 | bool temp2 = False ; | |
18604 | PyObject * obj0 = 0 ; | |
18605 | PyObject * obj1 = 0 ; | |
18606 | char *kwnames[] = { | |
18607 | (char *) "self",(char *) "name", NULL | |
18608 | }; | |
18609 | ||
18610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
18611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18613 | { | |
18614 | arg2 = wxString_in_helper(obj1); | |
18615 | if (arg2 == NULL) SWIG_fail; | |
18616 | temp2 = True; | |
18617 | } | |
18618 | { | |
18619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18620 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
18621 | ||
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | Py_INCREF(Py_None); resultobj = Py_None; | |
18626 | { | |
18627 | if (temp2) | |
18628 | delete arg2; | |
18629 | } | |
18630 | return resultobj; | |
18631 | fail: | |
18632 | { | |
18633 | if (temp2) | |
18634 | delete arg2; | |
18635 | } | |
18636 | return NULL; | |
18637 | } | |
18638 | ||
18639 | ||
18640 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18641 | PyObject *resultobj; | |
18642 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18643 | bool arg2 ; | |
18644 | PyObject * obj0 = 0 ; | |
18645 | PyObject * obj1 = 0 ; | |
18646 | char *kwnames[] = { | |
18647 | (char *) "self",(char *) "colour", NULL | |
18648 | }; | |
18649 | ||
18650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
18651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18653 | arg2 = (bool) SWIG_AsBool(obj1); | |
18654 | if (PyErr_Occurred()) SWIG_fail; | |
18655 | { | |
18656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18657 | (arg1)->SetColour(arg2); | |
18658 | ||
18659 | wxPyEndAllowThreads(__tstate); | |
18660 | if (PyErr_Occurred()) SWIG_fail; | |
18661 | } | |
18662 | Py_INCREF(Py_None); resultobj = Py_None; | |
18663 | return resultobj; | |
18664 | fail: | |
18665 | return NULL; | |
18666 | } | |
18667 | ||
18668 | ||
18669 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18670 | PyObject *resultobj; | |
18671 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18672 | int arg2 ; | |
18673 | PyObject * obj0 = 0 ; | |
18674 | PyObject * obj1 = 0 ; | |
18675 | char *kwnames[] = { | |
18676 | (char *) "self",(char *) "duplex", NULL | |
18677 | }; | |
18678 | ||
18679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
18680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18682 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
18683 | if (PyErr_Occurred()) SWIG_fail; | |
18684 | { | |
18685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18686 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
18687 | ||
18688 | wxPyEndAllowThreads(__tstate); | |
18689 | if (PyErr_Occurred()) SWIG_fail; | |
18690 | } | |
18691 | Py_INCREF(Py_None); resultobj = Py_None; | |
18692 | return resultobj; | |
18693 | fail: | |
18694 | return NULL; | |
18695 | } | |
18696 | ||
18697 | ||
18698 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18699 | PyObject *resultobj; | |
18700 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18701 | int arg2 ; | |
18702 | PyObject * obj0 = 0 ; | |
18703 | PyObject * obj1 = 0 ; | |
18704 | char *kwnames[] = { | |
18705 | (char *) "self",(char *) "sizeId", NULL | |
18706 | }; | |
18707 | ||
18708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18711 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | { | |
18714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18715 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18716 | ||
18717 | wxPyEndAllowThreads(__tstate); | |
18718 | if (PyErr_Occurred()) SWIG_fail; | |
18719 | } | |
18720 | Py_INCREF(Py_None); resultobj = Py_None; | |
18721 | return resultobj; | |
18722 | fail: | |
18723 | return NULL; | |
18724 | } | |
18725 | ||
18726 | ||
18727 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18728 | PyObject *resultobj; | |
18729 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18730 | wxSize *arg2 = 0 ; | |
18731 | wxSize temp2 ; | |
18732 | PyObject * obj0 = 0 ; | |
18733 | PyObject * obj1 = 0 ; | |
18734 | char *kwnames[] = { | |
18735 | (char *) "self",(char *) "sz", NULL | |
18736 | }; | |
18737 | ||
18738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18741 | { | |
18742 | arg2 = &temp2; | |
18743 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18744 | } | |
18745 | { | |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18748 | ||
18749 | wxPyEndAllowThreads(__tstate); | |
18750 | if (PyErr_Occurred()) SWIG_fail; | |
18751 | } | |
18752 | Py_INCREF(Py_None); resultobj = Py_None; | |
18753 | return resultobj; | |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj; | |
18761 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18762 | int arg2 ; | |
18763 | PyObject * obj0 = 0 ; | |
18764 | PyObject * obj1 = 0 ; | |
18765 | char *kwnames[] = { | |
18766 | (char *) "self",(char *) "quality", NULL | |
18767 | }; | |
18768 | ||
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
18770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18772 | arg2 = (int) SWIG_AsInt(obj1); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | { | |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | (arg1)->SetQuality(arg2); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | Py_INCREF(Py_None); resultobj = Py_None; | |
18782 | return resultobj; | |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
18788 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18791 | wxString *result; | |
18792 | PyObject * obj0 = 0 ; | |
18793 | char *kwnames[] = { | |
18794 | (char *) "self", NULL | |
18795 | }; | |
18796 | ||
18797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18800 | { | |
18801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18802 | { | |
18803 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18804 | result = (wxString *) &_result_ref; | |
18805 | } | |
18806 | ||
18807 | wxPyEndAllowThreads(__tstate); | |
18808 | if (PyErr_Occurred()) SWIG_fail; | |
18809 | } | |
18810 | { | |
18811 | #if wxUSE_UNICODE | |
18812 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18813 | #else | |
18814 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18815 | #endif | |
18816 | } | |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
18823 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18824 | PyObject *resultobj; | |
18825 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18826 | wxString *result; | |
18827 | PyObject * obj0 = 0 ; | |
18828 | char *kwnames[] = { | |
18829 | (char *) "self", NULL | |
18830 | }; | |
18831 | ||
18832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18835 | { | |
18836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18837 | { | |
18838 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18839 | result = (wxString *) &_result_ref; | |
18840 | } | |
18841 | ||
18842 | wxPyEndAllowThreads(__tstate); | |
18843 | if (PyErr_Occurred()) SWIG_fail; | |
18844 | } | |
18845 | { | |
18846 | #if wxUSE_UNICODE | |
18847 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18848 | #else | |
18849 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18850 | #endif | |
18851 | } | |
18852 | return resultobj; | |
18853 | fail: | |
18854 | return NULL; | |
18855 | } | |
18856 | ||
18857 | ||
18858 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18859 | PyObject *resultobj; | |
18860 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18861 | wxString *result; | |
18862 | PyObject * obj0 = 0 ; | |
18863 | char *kwnames[] = { | |
18864 | (char *) "self", NULL | |
18865 | }; | |
18866 | ||
18867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18870 | { | |
18871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18872 | { | |
18873 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18874 | result = (wxString *) &_result_ref; | |
18875 | } | |
18876 | ||
18877 | wxPyEndAllowThreads(__tstate); | |
18878 | if (PyErr_Occurred()) SWIG_fail; | |
18879 | } | |
18880 | { | |
18881 | #if wxUSE_UNICODE | |
18882 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18883 | #else | |
18884 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18885 | #endif | |
18886 | } | |
18887 | return resultobj; | |
18888 | fail: | |
18889 | return NULL; | |
18890 | } | |
18891 | ||
18892 | ||
18893 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18894 | PyObject *resultobj; | |
18895 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18896 | wxString *result; | |
18897 | PyObject * obj0 = 0 ; | |
18898 | char *kwnames[] = { | |
18899 | (char *) "self", NULL | |
18900 | }; | |
18901 | ||
18902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18905 | { | |
18906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18907 | { | |
18908 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18909 | result = (wxString *) &_result_ref; | |
18910 | } | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
18915 | { | |
18916 | #if wxUSE_UNICODE | |
18917 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18918 | #else | |
18919 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18920 | #endif | |
18921 | } | |
18922 | return resultobj; | |
18923 | fail: | |
18924 | return NULL; | |
18925 | } | |
18926 | ||
18927 | ||
18928 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18929 | PyObject *resultobj; | |
18930 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18931 | wxString *result; | |
18932 | PyObject * obj0 = 0 ; | |
18933 | char *kwnames[] = { | |
18934 | (char *) "self", NULL | |
18935 | }; | |
18936 | ||
18937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
18938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18940 | { | |
18941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18942 | { | |
18943 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
18944 | result = (wxString *) &_result_ref; | |
18945 | } | |
18946 | ||
18947 | wxPyEndAllowThreads(__tstate); | |
18948 | if (PyErr_Occurred()) SWIG_fail; | |
18949 | } | |
18950 | { | |
18951 | #if wxUSE_UNICODE | |
18952 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18953 | #else | |
18954 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18955 | #endif | |
18956 | } | |
18957 | return resultobj; | |
18958 | fail: | |
18959 | return NULL; | |
18960 | } | |
18961 | ||
18962 | ||
18963 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18964 | PyObject *resultobj; | |
18965 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18966 | double result; | |
18967 | PyObject * obj0 = 0 ; | |
18968 | char *kwnames[] = { | |
18969 | (char *) "self", NULL | |
18970 | }; | |
18971 | ||
18972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
18973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18975 | { | |
18976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18977 | result = (double)(arg1)->GetPrinterScaleX(); | |
18978 | ||
18979 | wxPyEndAllowThreads(__tstate); | |
18980 | if (PyErr_Occurred()) SWIG_fail; | |
18981 | } | |
18982 | resultobj = SWIG_FromDouble((double)result); | |
18983 | return resultobj; | |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
18989 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18990 | PyObject *resultobj; | |
18991 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18992 | double result; | |
18993 | PyObject * obj0 = 0 ; | |
18994 | char *kwnames[] = { | |
18995 | (char *) "self", NULL | |
18996 | }; | |
18997 | ||
18998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
18999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19001 | { | |
19002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19003 | result = (double)(arg1)->GetPrinterScaleY(); | |
19004 | ||
19005 | wxPyEndAllowThreads(__tstate); | |
19006 | if (PyErr_Occurred()) SWIG_fail; | |
19007 | } | |
19008 | resultobj = SWIG_FromDouble((double)result); | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | return NULL; | |
19012 | } | |
19013 | ||
19014 | ||
19015 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19016 | PyObject *resultobj; | |
19017 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19018 | long result; | |
19019 | PyObject * obj0 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = (long)(arg1)->GetPrinterTranslateX(); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
19034 | resultobj = SWIG_FromLong((long)result); | |
19035 | return resultobj; | |
19036 | fail: | |
19037 | return NULL; | |
19038 | } | |
19039 | ||
19040 | ||
19041 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19042 | PyObject *resultobj; | |
19043 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19044 | long result; | |
19045 | PyObject * obj0 = 0 ; | |
19046 | char *kwnames[] = { | |
19047 | (char *) "self", NULL | |
19048 | }; | |
19049 | ||
19050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
19051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19053 | { | |
19054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19055 | result = (long)(arg1)->GetPrinterTranslateY(); | |
19056 | ||
19057 | wxPyEndAllowThreads(__tstate); | |
19058 | if (PyErr_Occurred()) SWIG_fail; | |
19059 | } | |
19060 | resultobj = SWIG_FromLong((long)result); | |
19061 | return resultobj; | |
19062 | fail: | |
19063 | return NULL; | |
19064 | } | |
19065 | ||
19066 | ||
19067 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19068 | PyObject *resultobj; | |
19069 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19070 | int result; | |
19071 | PyObject * obj0 = 0 ; | |
19072 | char *kwnames[] = { | |
19073 | (char *) "self", NULL | |
19074 | }; | |
19075 | ||
19076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
19077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19079 | { | |
19080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19081 | result = (int)(arg1)->GetPrintMode(); | |
19082 | ||
19083 | wxPyEndAllowThreads(__tstate); | |
19084 | if (PyErr_Occurred()) SWIG_fail; | |
19085 | } | |
19086 | resultobj = SWIG_FromInt((int)result); | |
19087 | return resultobj; | |
19088 | fail: | |
19089 | return NULL; | |
19090 | } | |
19091 | ||
19092 | ||
19093 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19094 | PyObject *resultobj; | |
19095 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19096 | wxString *arg2 = 0 ; | |
19097 | bool temp2 = False ; | |
19098 | PyObject * obj0 = 0 ; | |
19099 | PyObject * obj1 = 0 ; | |
19100 | char *kwnames[] = { | |
19101 | (char *) "self",(char *) "command", NULL | |
19102 | }; | |
19103 | ||
19104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
19105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19107 | { | |
19108 | arg2 = wxString_in_helper(obj1); | |
19109 | if (arg2 == NULL) SWIG_fail; | |
19110 | temp2 = True; | |
19111 | } | |
19112 | { | |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | Py_INCREF(Py_None); resultobj = Py_None; | |
19120 | { | |
19121 | if (temp2) | |
19122 | delete arg2; | |
19123 | } | |
19124 | return resultobj; | |
19125 | fail: | |
19126 | { | |
19127 | if (temp2) | |
19128 | delete arg2; | |
19129 | } | |
19130 | return NULL; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19135 | PyObject *resultobj; | |
19136 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19137 | wxString *arg2 = 0 ; | |
19138 | bool temp2 = False ; | |
19139 | PyObject * obj0 = 0 ; | |
19140 | PyObject * obj1 = 0 ; | |
19141 | char *kwnames[] = { | |
19142 | (char *) "self",(char *) "options", NULL | |
19143 | }; | |
19144 | ||
19145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
19146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19148 | { | |
19149 | arg2 = wxString_in_helper(obj1); | |
19150 | if (arg2 == NULL) SWIG_fail; | |
19151 | temp2 = True; | |
19152 | } | |
19153 | { | |
19154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19155 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
19156 | ||
19157 | wxPyEndAllowThreads(__tstate); | |
19158 | if (PyErr_Occurred()) SWIG_fail; | |
19159 | } | |
19160 | Py_INCREF(Py_None); resultobj = Py_None; | |
19161 | { | |
19162 | if (temp2) | |
19163 | delete arg2; | |
19164 | } | |
19165 | return resultobj; | |
19166 | fail: | |
19167 | { | |
19168 | if (temp2) | |
19169 | delete arg2; | |
19170 | } | |
19171 | return NULL; | |
19172 | } | |
19173 | ||
19174 | ||
19175 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19176 | PyObject *resultobj; | |
19177 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19178 | wxString *arg2 = 0 ; | |
19179 | bool temp2 = False ; | |
19180 | PyObject * obj0 = 0 ; | |
19181 | PyObject * obj1 = 0 ; | |
19182 | char *kwnames[] = { | |
19183 | (char *) "self",(char *) "command", NULL | |
19184 | }; | |
19185 | ||
19186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
19187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19189 | { | |
19190 | arg2 = wxString_in_helper(obj1); | |
19191 | if (arg2 == NULL) SWIG_fail; | |
19192 | temp2 = True; | |
19193 | } | |
19194 | { | |
19195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19196 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
19197 | ||
19198 | wxPyEndAllowThreads(__tstate); | |
19199 | if (PyErr_Occurred()) SWIG_fail; | |
19200 | } | |
19201 | Py_INCREF(Py_None); resultobj = Py_None; | |
19202 | { | |
19203 | if (temp2) | |
19204 | delete arg2; | |
19205 | } | |
19206 | return resultobj; | |
19207 | fail: | |
19208 | { | |
19209 | if (temp2) | |
19210 | delete arg2; | |
19211 | } | |
19212 | return NULL; | |
19213 | } | |
19214 | ||
19215 | ||
19216 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19217 | PyObject *resultobj; | |
19218 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19219 | wxString *arg2 = 0 ; | |
19220 | bool temp2 = False ; | |
19221 | PyObject * obj0 = 0 ; | |
19222 | PyObject * obj1 = 0 ; | |
19223 | char *kwnames[] = { | |
19224 | (char *) "self",(char *) "filename", NULL | |
19225 | }; | |
19226 | ||
19227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
19228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19230 | { | |
19231 | arg2 = wxString_in_helper(obj1); | |
19232 | if (arg2 == NULL) SWIG_fail; | |
19233 | temp2 = True; | |
19234 | } | |
19235 | { | |
19236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19237 | (arg1)->SetFilename((wxString const &)*arg2); | |
19238 | ||
19239 | wxPyEndAllowThreads(__tstate); | |
19240 | if (PyErr_Occurred()) SWIG_fail; | |
19241 | } | |
19242 | Py_INCREF(Py_None); resultobj = Py_None; | |
19243 | { | |
19244 | if (temp2) | |
19245 | delete arg2; | |
19246 | } | |
19247 | return resultobj; | |
19248 | fail: | |
19249 | { | |
19250 | if (temp2) | |
19251 | delete arg2; | |
19252 | } | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19260 | wxString *arg2 = 0 ; | |
19261 | bool temp2 = False ; | |
19262 | PyObject * obj0 = 0 ; | |
19263 | PyObject * obj1 = 0 ; | |
19264 | char *kwnames[] = { | |
19265 | (char *) "self",(char *) "path", NULL | |
19266 | }; | |
19267 | ||
19268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
19269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19271 | { | |
19272 | arg2 = wxString_in_helper(obj1); | |
19273 | if (arg2 == NULL) SWIG_fail; | |
19274 | temp2 = True; | |
19275 | } | |
19276 | { | |
19277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19278 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
19279 | ||
19280 | wxPyEndAllowThreads(__tstate); | |
19281 | if (PyErr_Occurred()) SWIG_fail; | |
19282 | } | |
19283 | Py_INCREF(Py_None); resultobj = Py_None; | |
19284 | { | |
19285 | if (temp2) | |
19286 | delete arg2; | |
19287 | } | |
19288 | return resultobj; | |
19289 | fail: | |
19290 | { | |
19291 | if (temp2) | |
19292 | delete arg2; | |
19293 | } | |
19294 | return NULL; | |
19295 | } | |
19296 | ||
19297 | ||
19298 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19299 | PyObject *resultobj; | |
19300 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19301 | double arg2 ; | |
19302 | PyObject * obj0 = 0 ; | |
19303 | PyObject * obj1 = 0 ; | |
19304 | char *kwnames[] = { | |
19305 | (char *) "self",(char *) "x", NULL | |
19306 | }; | |
19307 | ||
19308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
19309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19311 | arg2 = (double) SWIG_AsDouble(obj1); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | { | |
19314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19315 | (arg1)->SetPrinterScaleX(arg2); | |
19316 | ||
19317 | wxPyEndAllowThreads(__tstate); | |
19318 | if (PyErr_Occurred()) SWIG_fail; | |
19319 | } | |
19320 | Py_INCREF(Py_None); resultobj = Py_None; | |
19321 | return resultobj; | |
19322 | fail: | |
19323 | return NULL; | |
19324 | } | |
19325 | ||
19326 | ||
19327 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19328 | PyObject *resultobj; | |
19329 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19330 | double arg2 ; | |
19331 | PyObject * obj0 = 0 ; | |
19332 | PyObject * obj1 = 0 ; | |
19333 | char *kwnames[] = { | |
19334 | (char *) "self",(char *) "y", NULL | |
19335 | }; | |
19336 | ||
19337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
19338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19340 | arg2 = (double) SWIG_AsDouble(obj1); | |
19341 | if (PyErr_Occurred()) SWIG_fail; | |
19342 | { | |
19343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19344 | (arg1)->SetPrinterScaleY(arg2); | |
19345 | ||
19346 | wxPyEndAllowThreads(__tstate); | |
19347 | if (PyErr_Occurred()) SWIG_fail; | |
19348 | } | |
19349 | Py_INCREF(Py_None); resultobj = Py_None; | |
19350 | return resultobj; | |
19351 | fail: | |
19352 | return NULL; | |
19353 | } | |
19354 | ||
19355 | ||
19356 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19357 | PyObject *resultobj; | |
19358 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19359 | double arg2 ; | |
19360 | double arg3 ; | |
19361 | PyObject * obj0 = 0 ; | |
19362 | PyObject * obj1 = 0 ; | |
19363 | PyObject * obj2 = 0 ; | |
19364 | char *kwnames[] = { | |
19365 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19366 | }; | |
19367 | ||
19368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19371 | arg2 = (double) SWIG_AsDouble(obj1); | |
19372 | if (PyErr_Occurred()) SWIG_fail; | |
19373 | arg3 = (double) SWIG_AsDouble(obj2); | |
19374 | if (PyErr_Occurred()) SWIG_fail; | |
19375 | { | |
19376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19377 | (arg1)->SetPrinterScaling(arg2,arg3); | |
19378 | ||
19379 | wxPyEndAllowThreads(__tstate); | |
19380 | if (PyErr_Occurred()) SWIG_fail; | |
19381 | } | |
19382 | Py_INCREF(Py_None); resultobj = Py_None; | |
19383 | return resultobj; | |
19384 | fail: | |
19385 | return NULL; | |
19386 | } | |
19387 | ||
19388 | ||
19389 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19390 | PyObject *resultobj; | |
19391 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19392 | long arg2 ; | |
19393 | PyObject * obj0 = 0 ; | |
19394 | PyObject * obj1 = 0 ; | |
19395 | char *kwnames[] = { | |
19396 | (char *) "self",(char *) "x", NULL | |
19397 | }; | |
19398 | ||
19399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
19400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19402 | arg2 = (long) SWIG_AsLong(obj1); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | { | |
19405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19406 | (arg1)->SetPrinterTranslateX(arg2); | |
19407 | ||
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | Py_INCREF(Py_None); resultobj = Py_None; | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj; | |
19420 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19421 | long arg2 ; | |
19422 | PyObject * obj0 = 0 ; | |
19423 | PyObject * obj1 = 0 ; | |
19424 | char *kwnames[] = { | |
19425 | (char *) "self",(char *) "y", NULL | |
19426 | }; | |
19427 | ||
19428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
19429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19431 | arg2 = (long) SWIG_AsLong(obj1); | |
19432 | if (PyErr_Occurred()) SWIG_fail; | |
19433 | { | |
19434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19435 | (arg1)->SetPrinterTranslateY(arg2); | |
19436 | ||
19437 | wxPyEndAllowThreads(__tstate); | |
19438 | if (PyErr_Occurred()) SWIG_fail; | |
19439 | } | |
19440 | Py_INCREF(Py_None); resultobj = Py_None; | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
19447 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19448 | PyObject *resultobj; | |
19449 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19450 | long arg2 ; | |
19451 | long arg3 ; | |
19452 | PyObject * obj0 = 0 ; | |
19453 | PyObject * obj1 = 0 ; | |
19454 | PyObject * obj2 = 0 ; | |
19455 | char *kwnames[] = { | |
19456 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19457 | }; | |
19458 | ||
19459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19462 | arg2 = (long) SWIG_AsLong(obj1); | |
19463 | if (PyErr_Occurred()) SWIG_fail; | |
19464 | arg3 = (long) SWIG_AsLong(obj2); | |
19465 | if (PyErr_Occurred()) SWIG_fail; | |
19466 | { | |
19467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19468 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
19469 | ||
19470 | wxPyEndAllowThreads(__tstate); | |
19471 | if (PyErr_Occurred()) SWIG_fail; | |
19472 | } | |
19473 | Py_INCREF(Py_None); resultobj = Py_None; | |
19474 | return resultobj; | |
19475 | fail: | |
19476 | return NULL; | |
19477 | } | |
19478 | ||
19479 | ||
19480 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19481 | PyObject *resultobj; | |
19482 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19483 | int arg2 ; | |
19484 | PyObject * obj0 = 0 ; | |
19485 | PyObject * obj1 = 0 ; | |
19486 | char *kwnames[] = { | |
19487 | (char *) "self",(char *) "printMode", NULL | |
19488 | }; | |
19489 | ||
19490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
19491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19493 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
19494 | if (PyErr_Occurred()) SWIG_fail; | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
19502 | Py_INCREF(Py_None); resultobj = Py_None; | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19512 | wxOutputStream *result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
19519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19521 | { | |
19522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19523 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
19524 | ||
19525 | wxPyEndAllowThreads(__tstate); | |
19526 | if (PyErr_Occurred()) SWIG_fail; | |
19527 | } | |
19528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
19529 | return resultobj; | |
19530 | fail: | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
19535 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19536 | PyObject *resultobj; | |
19537 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19538 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
19539 | PyObject * obj0 = 0 ; | |
19540 | PyObject * obj1 = 0 ; | |
19541 | char *kwnames[] = { | |
19542 | (char *) "self",(char *) "outputstream", NULL | |
19543 | }; | |
19544 | ||
19545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
19546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
19549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | (arg1)->SetOutputStream(arg2); | |
19553 | ||
19554 | wxPyEndAllowThreads(__tstate); | |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
19556 | } | |
19557 | Py_INCREF(Py_None); resultobj = Py_None; | |
19558 | return resultobj; | |
19559 | fail: | |
19560 | return NULL; | |
19561 | } | |
19562 | ||
19563 | ||
19564 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
19565 | PyObject *obj; | |
19566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19567 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
19568 | Py_INCREF(obj); | |
19569 | return Py_BuildValue((char *)""); | |
19570 | } | |
09c21d3b | 19571 | static PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *self, PyObject *args) { |
d55e5bfc RD |
19572 | PyObject *resultobj; |
19573 | wxPageSetupDialogData *result; | |
d55e5bfc | 19574 | |
09c21d3b | 19575 | if(!PyArg_ParseTuple(args,(char *)":new_PageSetupDialogData")) goto fail; |
d55e5bfc RD |
19576 | { |
19577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19578 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
19579 | ||
19580 | wxPyEndAllowThreads(__tstate); | |
19581 | if (PyErr_Occurred()) SWIG_fail; | |
19582 | } | |
19583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19584 | return resultobj; | |
19585 | fail: | |
19586 | return NULL; | |
19587 | } | |
19588 | ||
19589 | ||
09c21d3b RD |
19590 | static PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *self, PyObject *args) { |
19591 | PyObject *resultobj; | |
19592 | wxPageSetupDialogData *arg1 = 0 ; | |
19593 | wxPageSetupDialogData *result; | |
19594 | PyObject * obj0 = 0 ; | |
19595 | ||
19596 | if(!PyArg_ParseTuple(args,(char *)"O:new_PageSetupDialogData",&obj0)) goto fail; | |
19597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19598 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19599 | SWIG_fail; | |
19600 | if (arg1 == NULL) { | |
19601 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19602 | SWIG_fail; | |
19603 | } | |
19604 | { | |
19605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19606 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
19607 | ||
19608 | wxPyEndAllowThreads(__tstate); | |
19609 | if (PyErr_Occurred()) SWIG_fail; | |
19610 | } | |
19611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19612 | return resultobj; | |
19613 | fail: | |
19614 | return NULL; | |
19615 | } | |
19616 | ||
19617 | ||
19618 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { | |
19619 | int argc; | |
19620 | PyObject *argv[2]; | |
19621 | int ii; | |
19622 | ||
19623 | argc = PyObject_Length(args); | |
19624 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
19625 | argv[ii] = PyTuple_GetItem(args,ii); | |
19626 | } | |
19627 | if (argc == 0) { | |
19628 | return _wrap_new_PageSetupDialogData__SWIG_0(self,args); | |
19629 | } | |
19630 | if (argc == 1) { | |
19631 | int _v; | |
19632 | { | |
19633 | void *ptr; | |
19634 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPageSetupDialogData, 0) == -1) { | |
19635 | _v = 0; | |
19636 | PyErr_Clear(); | |
19637 | } else { | |
19638 | _v = 1; | |
19639 | } | |
19640 | } | |
19641 | if (_v) { | |
19642 | return _wrap_new_PageSetupDialogData__SWIG_1(self,args); | |
19643 | } | |
19644 | } | |
19645 | ||
19646 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
19647 | return NULL; | |
19648 | } | |
19649 | ||
19650 | ||
d55e5bfc RD |
19651 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
19652 | PyObject *resultobj; | |
19653 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19654 | PyObject * obj0 = 0 ; | |
19655 | char *kwnames[] = { | |
19656 | (char *) "self", NULL | |
19657 | }; | |
19658 | ||
19659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
19660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19662 | { | |
19663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19664 | delete arg1; | |
19665 | ||
19666 | wxPyEndAllowThreads(__tstate); | |
19667 | if (PyErr_Occurred()) SWIG_fail; | |
19668 | } | |
19669 | Py_INCREF(Py_None); resultobj = Py_None; | |
19670 | return resultobj; | |
19671 | fail: | |
19672 | return NULL; | |
19673 | } | |
19674 | ||
19675 | ||
19676 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19677 | PyObject *resultobj; | |
19678 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19679 | bool arg2 ; | |
19680 | PyObject * obj0 = 0 ; | |
19681 | PyObject * obj1 = 0 ; | |
19682 | char *kwnames[] = { | |
19683 | (char *) "self",(char *) "flag", NULL | |
19684 | }; | |
19685 | ||
19686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19689 | arg2 = (bool) SWIG_AsBool(obj1); | |
19690 | if (PyErr_Occurred()) SWIG_fail; | |
19691 | { | |
19692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19693 | (arg1)->EnableHelp(arg2); | |
19694 | ||
19695 | wxPyEndAllowThreads(__tstate); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
19697 | } | |
19698 | Py_INCREF(Py_None); resultobj = Py_None; | |
19699 | return resultobj; | |
19700 | fail: | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
19705 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19706 | PyObject *resultobj; | |
19707 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19708 | bool arg2 ; | |
19709 | PyObject * obj0 = 0 ; | |
19710 | PyObject * obj1 = 0 ; | |
19711 | char *kwnames[] = { | |
19712 | (char *) "self",(char *) "flag", NULL | |
19713 | }; | |
19714 | ||
19715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
19716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19718 | arg2 = (bool) SWIG_AsBool(obj1); | |
19719 | if (PyErr_Occurred()) SWIG_fail; | |
19720 | { | |
19721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19722 | (arg1)->EnableMargins(arg2); | |
19723 | ||
19724 | wxPyEndAllowThreads(__tstate); | |
19725 | if (PyErr_Occurred()) SWIG_fail; | |
19726 | } | |
19727 | Py_INCREF(Py_None); resultobj = Py_None; | |
19728 | return resultobj; | |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19737 | bool arg2 ; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | PyObject * obj1 = 0 ; | |
19740 | char *kwnames[] = { | |
19741 | (char *) "self",(char *) "flag", NULL | |
19742 | }; | |
19743 | ||
19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
19745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19747 | arg2 = (bool) SWIG_AsBool(obj1); | |
19748 | if (PyErr_Occurred()) SWIG_fail; | |
19749 | { | |
19750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19751 | (arg1)->EnableOrientation(arg2); | |
19752 | ||
19753 | wxPyEndAllowThreads(__tstate); | |
19754 | if (PyErr_Occurred()) SWIG_fail; | |
19755 | } | |
19756 | Py_INCREF(Py_None); resultobj = Py_None; | |
19757 | return resultobj; | |
19758 | fail: | |
19759 | return NULL; | |
19760 | } | |
19761 | ||
19762 | ||
19763 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19764 | PyObject *resultobj; | |
19765 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19766 | bool arg2 ; | |
19767 | PyObject * obj0 = 0 ; | |
19768 | PyObject * obj1 = 0 ; | |
19769 | char *kwnames[] = { | |
19770 | (char *) "self",(char *) "flag", NULL | |
19771 | }; | |
19772 | ||
19773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
19774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19776 | arg2 = (bool) SWIG_AsBool(obj1); | |
19777 | if (PyErr_Occurred()) SWIG_fail; | |
19778 | { | |
19779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19780 | (arg1)->EnablePaper(arg2); | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
19785 | Py_INCREF(Py_None); resultobj = Py_None; | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
19792 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19793 | PyObject *resultobj; | |
19794 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19795 | bool arg2 ; | |
19796 | PyObject * obj0 = 0 ; | |
19797 | PyObject * obj1 = 0 ; | |
19798 | char *kwnames[] = { | |
19799 | (char *) "self",(char *) "flag", NULL | |
19800 | }; | |
19801 | ||
19802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
19803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19805 | arg2 = (bool) SWIG_AsBool(obj1); | |
19806 | if (PyErr_Occurred()) SWIG_fail; | |
19807 | { | |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | (arg1)->EnablePrinter(arg2); | |
19810 | ||
19811 | wxPyEndAllowThreads(__tstate); | |
19812 | if (PyErr_Occurred()) SWIG_fail; | |
19813 | } | |
19814 | Py_INCREF(Py_None); resultobj = Py_None; | |
19815 | return resultobj; | |
19816 | fail: | |
19817 | return NULL; | |
19818 | } | |
19819 | ||
19820 | ||
19821 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19822 | PyObject *resultobj; | |
19823 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19824 | bool result; | |
19825 | PyObject * obj0 = 0 ; | |
19826 | char *kwnames[] = { | |
19827 | (char *) "self", NULL | |
19828 | }; | |
19829 | ||
19830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
19831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19833 | { | |
19834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19835 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
19836 | ||
19837 | wxPyEndAllowThreads(__tstate); | |
19838 | if (PyErr_Occurred()) SWIG_fail; | |
19839 | } | |
19840 | { | |
19841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19842 | } | |
19843 | return resultobj; | |
19844 | fail: | |
19845 | return NULL; | |
19846 | } | |
19847 | ||
19848 | ||
19849 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19850 | PyObject *resultobj; | |
19851 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19852 | bool result; | |
19853 | PyObject * obj0 = 0 ; | |
19854 | char *kwnames[] = { | |
19855 | (char *) "self", NULL | |
19856 | }; | |
19857 | ||
19858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19861 | { | |
19862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19863 | result = (bool)(arg1)->GetEnableMargins(); | |
19864 | ||
19865 | wxPyEndAllowThreads(__tstate); | |
19866 | if (PyErr_Occurred()) SWIG_fail; | |
19867 | } | |
19868 | { | |
19869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19870 | } | |
19871 | return resultobj; | |
19872 | fail: | |
19873 | return NULL; | |
19874 | } | |
19875 | ||
19876 | ||
19877 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19878 | PyObject *resultobj; | |
19879 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19880 | bool result; | |
19881 | PyObject * obj0 = 0 ; | |
19882 | char *kwnames[] = { | |
19883 | (char *) "self", NULL | |
19884 | }; | |
19885 | ||
19886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19889 | { | |
19890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19891 | result = (bool)(arg1)->GetEnableOrientation(); | |
19892 | ||
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | { | |
19897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19898 | } | |
19899 | return resultobj; | |
19900 | fail: | |
19901 | return NULL; | |
19902 | } | |
19903 | ||
19904 | ||
19905 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19906 | PyObject *resultobj; | |
19907 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19908 | bool result; | |
19909 | PyObject * obj0 = 0 ; | |
19910 | char *kwnames[] = { | |
19911 | (char *) "self", NULL | |
19912 | }; | |
19913 | ||
19914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19917 | { | |
19918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19919 | result = (bool)(arg1)->GetEnablePaper(); | |
19920 | ||
19921 | wxPyEndAllowThreads(__tstate); | |
19922 | if (PyErr_Occurred()) SWIG_fail; | |
19923 | } | |
19924 | { | |
19925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19926 | } | |
19927 | return resultobj; | |
19928 | fail: | |
19929 | return NULL; | |
19930 | } | |
19931 | ||
19932 | ||
19933 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19934 | PyObject *resultobj; | |
19935 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19936 | bool result; | |
19937 | PyObject * obj0 = 0 ; | |
19938 | char *kwnames[] = { | |
19939 | (char *) "self", NULL | |
19940 | }; | |
19941 | ||
19942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
19943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19945 | { | |
19946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19947 | result = (bool)(arg1)->GetEnablePrinter(); | |
19948 | ||
19949 | wxPyEndAllowThreads(__tstate); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | { | |
19953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19954 | } | |
19955 | return resultobj; | |
19956 | fail: | |
19957 | return NULL; | |
19958 | } | |
19959 | ||
19960 | ||
19961 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19962 | PyObject *resultobj; | |
19963 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19964 | bool result; | |
19965 | PyObject * obj0 = 0 ; | |
19966 | char *kwnames[] = { | |
19967 | (char *) "self", NULL | |
19968 | }; | |
19969 | ||
19970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19973 | { | |
19974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19975 | result = (bool)(arg1)->GetEnableHelp(); | |
19976 | ||
19977 | wxPyEndAllowThreads(__tstate); | |
19978 | if (PyErr_Occurred()) SWIG_fail; | |
19979 | } | |
19980 | { | |
19981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19982 | } | |
19983 | return resultobj; | |
19984 | fail: | |
19985 | return NULL; | |
19986 | } | |
19987 | ||
19988 | ||
19989 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19990 | PyObject *resultobj; | |
19991 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19992 | bool result; | |
19993 | PyObject * obj0 = 0 ; | |
19994 | char *kwnames[] = { | |
19995 | (char *) "self", NULL | |
19996 | }; | |
19997 | ||
19998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
19999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20001 | { | |
20002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20003 | result = (bool)(arg1)->GetDefaultInfo(); | |
20004 | ||
20005 | wxPyEndAllowThreads(__tstate); | |
20006 | if (PyErr_Occurred()) SWIG_fail; | |
20007 | } | |
20008 | { | |
20009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20010 | } | |
20011 | return resultobj; | |
20012 | fail: | |
20013 | return NULL; | |
20014 | } | |
20015 | ||
20016 | ||
20017 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20018 | PyObject *resultobj; | |
20019 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20020 | wxPoint result; | |
20021 | PyObject * obj0 = 0 ; | |
20022 | char *kwnames[] = { | |
20023 | (char *) "self", NULL | |
20024 | }; | |
20025 | ||
20026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
20027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (arg1)->GetMarginTopLeft(); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | { | |
20037 | wxPoint * resultptr; | |
20038 | resultptr = new wxPoint((wxPoint &) result); | |
20039 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20040 | } | |
20041 | return resultobj; | |
20042 | fail: | |
20043 | return NULL; | |
20044 | } | |
20045 | ||
20046 | ||
20047 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20048 | PyObject *resultobj; | |
20049 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20050 | wxPoint result; | |
20051 | PyObject * obj0 = 0 ; | |
20052 | char *kwnames[] = { | |
20053 | (char *) "self", NULL | |
20054 | }; | |
20055 | ||
20056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
20057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20059 | { | |
20060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20061 | result = (arg1)->GetMarginBottomRight(); | |
20062 | ||
20063 | wxPyEndAllowThreads(__tstate); | |
20064 | if (PyErr_Occurred()) SWIG_fail; | |
20065 | } | |
20066 | { | |
20067 | wxPoint * resultptr; | |
20068 | resultptr = new wxPoint((wxPoint &) result); | |
20069 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20070 | } | |
20071 | return resultobj; | |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
20077 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20078 | PyObject *resultobj; | |
20079 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20080 | wxPoint result; | |
20081 | PyObject * obj0 = 0 ; | |
20082 | char *kwnames[] = { | |
20083 | (char *) "self", NULL | |
20084 | }; | |
20085 | ||
20086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
20087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20089 | { | |
20090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20091 | result = (arg1)->GetMinMarginTopLeft(); | |
20092 | ||
20093 | wxPyEndAllowThreads(__tstate); | |
20094 | if (PyErr_Occurred()) SWIG_fail; | |
20095 | } | |
20096 | { | |
20097 | wxPoint * resultptr; | |
20098 | resultptr = new wxPoint((wxPoint &) result); | |
20099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20100 | } | |
20101 | return resultobj; | |
20102 | fail: | |
20103 | return NULL; | |
20104 | } | |
20105 | ||
20106 | ||
20107 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20108 | PyObject *resultobj; | |
20109 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20110 | wxPoint result; | |
20111 | PyObject * obj0 = 0 ; | |
20112 | char *kwnames[] = { | |
20113 | (char *) "self", NULL | |
20114 | }; | |
20115 | ||
20116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
20117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20119 | { | |
20120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20121 | result = (arg1)->GetMinMarginBottomRight(); | |
20122 | ||
20123 | wxPyEndAllowThreads(__tstate); | |
20124 | if (PyErr_Occurred()) SWIG_fail; | |
20125 | } | |
20126 | { | |
20127 | wxPoint * resultptr; | |
20128 | resultptr = new wxPoint((wxPoint &) result); | |
20129 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20130 | } | |
20131 | return resultobj; | |
20132 | fail: | |
20133 | return NULL; | |
20134 | } | |
20135 | ||
20136 | ||
20137 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20138 | PyObject *resultobj; | |
20139 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20140 | int result; | |
20141 | PyObject * obj0 = 0 ; | |
20142 | char *kwnames[] = { | |
20143 | (char *) "self", NULL | |
20144 | }; | |
20145 | ||
20146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
20147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20149 | { | |
20150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20151 | result = (int)(arg1)->GetPaperId(); | |
20152 | ||
20153 | wxPyEndAllowThreads(__tstate); | |
20154 | if (PyErr_Occurred()) SWIG_fail; | |
20155 | } | |
20156 | resultobj = SWIG_FromInt((int)result); | |
20157 | return resultobj; | |
20158 | fail: | |
20159 | return NULL; | |
20160 | } | |
20161 | ||
20162 | ||
20163 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20164 | PyObject *resultobj; | |
20165 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20166 | wxSize result; | |
20167 | PyObject * obj0 = 0 ; | |
20168 | char *kwnames[] = { | |
20169 | (char *) "self", NULL | |
20170 | }; | |
20171 | ||
20172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
20173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20175 | { | |
20176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20177 | result = (arg1)->GetPaperSize(); | |
20178 | ||
20179 | wxPyEndAllowThreads(__tstate); | |
20180 | if (PyErr_Occurred()) SWIG_fail; | |
20181 | } | |
20182 | { | |
20183 | wxSize * resultptr; | |
20184 | resultptr = new wxSize((wxSize &) result); | |
20185 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20186 | } | |
20187 | return resultobj; | |
20188 | fail: | |
20189 | return NULL; | |
20190 | } | |
20191 | ||
20192 | ||
20193 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20194 | PyObject *resultobj; | |
20195 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20196 | wxPrintData *result; | |
20197 | PyObject * obj0 = 0 ; | |
20198 | char *kwnames[] = { | |
20199 | (char *) "self", NULL | |
20200 | }; | |
20201 | ||
20202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
20203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20205 | { | |
20206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20207 | { | |
20208 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
20209 | result = (wxPrintData *) &_result_ref; | |
20210 | } | |
20211 | ||
20212 | wxPyEndAllowThreads(__tstate); | |
20213 | if (PyErr_Occurred()) SWIG_fail; | |
20214 | } | |
20215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
20216 | return resultobj; | |
20217 | fail: | |
20218 | return NULL; | |
20219 | } | |
20220 | ||
20221 | ||
20222 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20223 | PyObject *resultobj; | |
20224 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20225 | bool result; | |
20226 | PyObject * obj0 = 0 ; | |
20227 | char *kwnames[] = { | |
20228 | (char *) "self", NULL | |
20229 | }; | |
20230 | ||
20231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
20232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20234 | { | |
20235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20236 | result = (bool)(arg1)->Ok(); | |
20237 | ||
20238 | wxPyEndAllowThreads(__tstate); | |
20239 | if (PyErr_Occurred()) SWIG_fail; | |
20240 | } | |
20241 | { | |
20242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20243 | } | |
20244 | return resultobj; | |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
20250 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20251 | PyObject *resultobj; | |
20252 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20253 | bool arg2 ; | |
20254 | PyObject * obj0 = 0 ; | |
20255 | PyObject * obj1 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self",(char *) "flag", NULL | |
20258 | }; | |
20259 | ||
20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20263 | arg2 = (bool) SWIG_AsBool(obj1); | |
20264 | if (PyErr_Occurred()) SWIG_fail; | |
20265 | { | |
20266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20267 | (arg1)->SetDefaultInfo(arg2); | |
20268 | ||
20269 | wxPyEndAllowThreads(__tstate); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
20271 | } | |
20272 | Py_INCREF(Py_None); resultobj = Py_None; | |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20280 | PyObject *resultobj; | |
20281 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20282 | bool arg2 ; | |
20283 | PyObject * obj0 = 0 ; | |
20284 | PyObject * obj1 = 0 ; | |
20285 | char *kwnames[] = { | |
20286 | (char *) "self",(char *) "flag", NULL | |
20287 | }; | |
20288 | ||
20289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
20290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20292 | arg2 = (bool) SWIG_AsBool(obj1); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | (arg1)->SetDefaultMinMargins(arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | Py_INCREF(Py_None); resultobj = Py_None; | |
20302 | return resultobj; | |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
20308 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20309 | PyObject *resultobj; | |
20310 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20311 | wxPoint *arg2 = 0 ; | |
20312 | wxPoint temp2 ; | |
20313 | PyObject * obj0 = 0 ; | |
20314 | PyObject * obj1 = 0 ; | |
20315 | char *kwnames[] = { | |
20316 | (char *) "self",(char *) "pt", NULL | |
20317 | }; | |
20318 | ||
20319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
20320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20322 | { | |
20323 | arg2 = &temp2; | |
20324 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20325 | } | |
20326 | { | |
20327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20328 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
20329 | ||
20330 | wxPyEndAllowThreads(__tstate); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
20333 | Py_INCREF(Py_None); resultobj = Py_None; | |
20334 | return resultobj; | |
20335 | fail: | |
20336 | return NULL; | |
20337 | } | |
20338 | ||
20339 | ||
20340 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20341 | PyObject *resultobj; | |
20342 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20343 | wxPoint *arg2 = 0 ; | |
20344 | wxPoint temp2 ; | |
20345 | PyObject * obj0 = 0 ; | |
20346 | PyObject * obj1 = 0 ; | |
20347 | char *kwnames[] = { | |
20348 | (char *) "self",(char *) "pt", NULL | |
20349 | }; | |
20350 | ||
20351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
20352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20354 | { | |
20355 | arg2 = &temp2; | |
20356 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20357 | } | |
20358 | { | |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
20361 | ||
20362 | wxPyEndAllowThreads(__tstate); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | Py_INCREF(Py_None); resultobj = Py_None; | |
20366 | return resultobj; | |
20367 | fail: | |
20368 | return NULL; | |
20369 | } | |
20370 | ||
20371 | ||
20372 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20373 | PyObject *resultobj; | |
20374 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20375 | wxPoint *arg2 = 0 ; | |
20376 | wxPoint temp2 ; | |
20377 | PyObject * obj0 = 0 ; | |
20378 | PyObject * obj1 = 0 ; | |
20379 | char *kwnames[] = { | |
20380 | (char *) "self",(char *) "pt", NULL | |
20381 | }; | |
20382 | ||
20383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
20384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20386 | { | |
20387 | arg2 = &temp2; | |
20388 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20389 | } | |
20390 | { | |
20391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20392 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
20393 | ||
20394 | wxPyEndAllowThreads(__tstate); | |
20395 | if (PyErr_Occurred()) SWIG_fail; | |
20396 | } | |
20397 | Py_INCREF(Py_None); resultobj = Py_None; | |
20398 | return resultobj; | |
20399 | fail: | |
20400 | return NULL; | |
20401 | } | |
20402 | ||
20403 | ||
20404 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20405 | PyObject *resultobj; | |
20406 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20407 | wxPoint *arg2 = 0 ; | |
20408 | wxPoint temp2 ; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | PyObject * obj1 = 0 ; | |
20411 | char *kwnames[] = { | |
20412 | (char *) "self",(char *) "pt", NULL | |
20413 | }; | |
20414 | ||
20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
20416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20418 | { | |
20419 | arg2 = &temp2; | |
20420 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20421 | } | |
20422 | { | |
20423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20424 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
20425 | ||
20426 | wxPyEndAllowThreads(__tstate); | |
20427 | if (PyErr_Occurred()) SWIG_fail; | |
20428 | } | |
20429 | Py_INCREF(Py_None); resultobj = Py_None; | |
20430 | return resultobj; | |
20431 | fail: | |
20432 | return NULL; | |
20433 | } | |
20434 | ||
20435 | ||
20436 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20437 | PyObject *resultobj; | |
20438 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20439 | int arg2 ; | |
20440 | PyObject * obj0 = 0 ; | |
20441 | PyObject * obj1 = 0 ; | |
20442 | char *kwnames[] = { | |
20443 | (char *) "self",(char *) "id", NULL | |
20444 | }; | |
20445 | ||
20446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
20447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20449 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
20450 | if (PyErr_Occurred()) SWIG_fail; | |
20451 | { | |
20452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20453 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
20454 | ||
20455 | wxPyEndAllowThreads(__tstate); | |
20456 | if (PyErr_Occurred()) SWIG_fail; | |
20457 | } | |
20458 | Py_INCREF(Py_None); resultobj = Py_None; | |
20459 | return resultobj; | |
20460 | fail: | |
20461 | return NULL; | |
20462 | } | |
20463 | ||
20464 | ||
20465 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20466 | PyObject *resultobj; | |
20467 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20468 | wxSize *arg2 = 0 ; | |
20469 | wxSize temp2 ; | |
20470 | PyObject * obj0 = 0 ; | |
20471 | PyObject * obj1 = 0 ; | |
20472 | char *kwnames[] = { | |
20473 | (char *) "self",(char *) "size", NULL | |
20474 | }; | |
20475 | ||
20476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
20477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20479 | { | |
20480 | arg2 = &temp2; | |
20481 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20482 | } | |
20483 | { | |
20484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20485 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
20486 | ||
20487 | wxPyEndAllowThreads(__tstate); | |
20488 | if (PyErr_Occurred()) SWIG_fail; | |
20489 | } | |
20490 | Py_INCREF(Py_None); resultobj = Py_None; | |
20491 | return resultobj; | |
20492 | fail: | |
20493 | return NULL; | |
20494 | } | |
20495 | ||
20496 | ||
20497 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20498 | PyObject *resultobj; | |
20499 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20500 | wxPrintData *arg2 = 0 ; | |
20501 | PyObject * obj0 = 0 ; | |
20502 | PyObject * obj1 = 0 ; | |
20503 | char *kwnames[] = { | |
20504 | (char *) "self",(char *) "printData", NULL | |
20505 | }; | |
20506 | ||
20507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
20508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
20511 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20512 | SWIG_fail; | |
20513 | if (arg2 == NULL) { | |
20514 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20515 | SWIG_fail; | |
20516 | } | |
20517 | { | |
20518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20519 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
20520 | ||
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
20524 | Py_INCREF(Py_None); resultobj = Py_None; | |
20525 | return resultobj; | |
20526 | fail: | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
20531 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
20532 | PyObject *obj; | |
20533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20534 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
20535 | Py_INCREF(obj); | |
20536 | return Py_BuildValue((char *)""); | |
20537 | } | |
20538 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20539 | PyObject *resultobj; | |
20540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20541 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
20542 | wxPageSetupDialog *result; | |
20543 | PyObject * obj0 = 0 ; | |
20544 | PyObject * obj1 = 0 ; | |
20545 | char *kwnames[] = { | |
20546 | (char *) "parent",(char *) "data", NULL | |
20547 | }; | |
20548 | ||
20549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20552 | if (obj1) { | |
20553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
20554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20555 | } | |
20556 | { | |
0439c23b | 20557 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20559 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
20560 | ||
20561 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20562 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
20563 | } |
20564 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
20565 | return resultobj; | |
20566 | fail: | |
20567 | return NULL; | |
20568 | } | |
20569 | ||
20570 | ||
20571 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20572 | PyObject *resultobj; | |
20573 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20574 | wxPageSetupDialogData *result; | |
20575 | PyObject * obj0 = 0 ; | |
20576 | char *kwnames[] = { | |
20577 | (char *) "self", NULL | |
20578 | }; | |
20579 | ||
20580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
20581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20583 | { | |
20584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20585 | { | |
20586 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
20587 | result = (wxPageSetupDialogData *) &_result_ref; | |
20588 | } | |
20589 | ||
20590 | wxPyEndAllowThreads(__tstate); | |
20591 | if (PyErr_Occurred()) SWIG_fail; | |
20592 | } | |
20593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
20594 | return resultobj; | |
20595 | fail: | |
20596 | return NULL; | |
20597 | } | |
20598 | ||
20599 | ||
20600 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20601 | PyObject *resultobj; | |
20602 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20603 | int result; | |
20604 | PyObject * obj0 = 0 ; | |
20605 | char *kwnames[] = { | |
20606 | (char *) "self", NULL | |
20607 | }; | |
20608 | ||
20609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
20610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20612 | { | |
20613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20614 | result = (int)(arg1)->ShowModal(); | |
20615 | ||
20616 | wxPyEndAllowThreads(__tstate); | |
20617 | if (PyErr_Occurred()) SWIG_fail; | |
20618 | } | |
20619 | resultobj = SWIG_FromInt((int)result); | |
20620 | return resultobj; | |
20621 | fail: | |
20622 | return NULL; | |
20623 | } | |
20624 | ||
20625 | ||
20626 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
20627 | PyObject *obj; | |
20628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20629 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
20630 | Py_INCREF(obj); | |
20631 | return Py_BuildValue((char *)""); | |
20632 | } | |
20633 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
20634 | PyObject *resultobj; | |
20635 | wxPrintDialogData *result; | |
20636 | ||
20637 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
20638 | { | |
20639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20640 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
20641 | ||
20642 | wxPyEndAllowThreads(__tstate); | |
20643 | if (PyErr_Occurred()) SWIG_fail; | |
20644 | } | |
20645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20646 | return resultobj; | |
20647 | fail: | |
20648 | return NULL; | |
20649 | } | |
20650 | ||
20651 | ||
20652 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
20653 | PyObject *resultobj; | |
20654 | wxPrintData *arg1 = 0 ; | |
20655 | wxPrintDialogData *result; | |
20656 | PyObject * obj0 = 0 ; | |
20657 | ||
20658 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
20659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
20660 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20661 | SWIG_fail; | |
20662 | if (arg1 == NULL) { | |
20663 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20664 | SWIG_fail; | |
20665 | } | |
20666 | { | |
20667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20668 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
20669 | ||
20670 | wxPyEndAllowThreads(__tstate); | |
20671 | if (PyErr_Occurred()) SWIG_fail; | |
20672 | } | |
20673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20674 | return resultobj; | |
20675 | fail: | |
20676 | return NULL; | |
20677 | } | |
20678 | ||
20679 | ||
20680 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
20681 | int argc; | |
20682 | PyObject *argv[2]; | |
20683 | int ii; | |
20684 | ||
20685 | argc = PyObject_Length(args); | |
20686 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
20687 | argv[ii] = PyTuple_GetItem(args,ii); | |
20688 | } | |
20689 | if (argc == 0) { | |
20690 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
20691 | } | |
20692 | if (argc == 1) { | |
20693 | int _v; | |
20694 | { | |
20695 | void *ptr; | |
20696 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
20697 | _v = 0; | |
20698 | PyErr_Clear(); | |
20699 | } else { | |
20700 | _v = 1; | |
20701 | } | |
20702 | } | |
20703 | if (_v) { | |
20704 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
20705 | } | |
20706 | } | |
20707 | ||
20708 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
20709 | return NULL; | |
20710 | } | |
20711 | ||
20712 | ||
20713 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20714 | PyObject *resultobj; | |
20715 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20716 | PyObject * obj0 = 0 ; | |
20717 | char *kwnames[] = { | |
20718 | (char *) "self", NULL | |
20719 | }; | |
20720 | ||
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
20722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20724 | { | |
20725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20726 | delete arg1; | |
20727 | ||
20728 | wxPyEndAllowThreads(__tstate); | |
20729 | if (PyErr_Occurred()) SWIG_fail; | |
20730 | } | |
20731 | Py_INCREF(Py_None); resultobj = Py_None; | |
20732 | return resultobj; | |
20733 | fail: | |
20734 | return NULL; | |
20735 | } | |
20736 | ||
20737 | ||
20738 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20739 | PyObject *resultobj; | |
20740 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20741 | int result; | |
20742 | PyObject * obj0 = 0 ; | |
20743 | char *kwnames[] = { | |
20744 | (char *) "self", NULL | |
20745 | }; | |
20746 | ||
20747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
20748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20750 | { | |
20751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20752 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
20753 | ||
20754 | wxPyEndAllowThreads(__tstate); | |
20755 | if (PyErr_Occurred()) SWIG_fail; | |
20756 | } | |
20757 | resultobj = SWIG_FromInt((int)result); | |
20758 | return resultobj; | |
20759 | fail: | |
20760 | return NULL; | |
20761 | } | |
20762 | ||
20763 | ||
20764 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20765 | PyObject *resultobj; | |
20766 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20767 | int result; | |
20768 | PyObject * obj0 = 0 ; | |
20769 | char *kwnames[] = { | |
20770 | (char *) "self", NULL | |
20771 | }; | |
20772 | ||
20773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
20774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20776 | { | |
20777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20778 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
20779 | ||
20780 | wxPyEndAllowThreads(__tstate); | |
20781 | if (PyErr_Occurred()) SWIG_fail; | |
20782 | } | |
20783 | resultobj = SWIG_FromInt((int)result); | |
20784 | return resultobj; | |
20785 | fail: | |
20786 | return NULL; | |
20787 | } | |
20788 | ||
20789 | ||
20790 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20791 | PyObject *resultobj; | |
20792 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20793 | int result; | |
20794 | PyObject * obj0 = 0 ; | |
20795 | char *kwnames[] = { | |
20796 | (char *) "self", NULL | |
20797 | }; | |
20798 | ||
20799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
20800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20802 | { | |
20803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20804 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
20805 | ||
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | resultobj = SWIG_FromInt((int)result); | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | return NULL; | |
20813 | } | |
20814 | ||
20815 | ||
20816 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20817 | PyObject *resultobj; | |
20818 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20819 | int result; | |
20820 | PyObject * obj0 = 0 ; | |
20821 | char *kwnames[] = { | |
20822 | (char *) "self", NULL | |
20823 | }; | |
20824 | ||
20825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
20826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20828 | { | |
20829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20830 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
20831 | ||
20832 | wxPyEndAllowThreads(__tstate); | |
20833 | if (PyErr_Occurred()) SWIG_fail; | |
20834 | } | |
20835 | resultobj = SWIG_FromInt((int)result); | |
20836 | return resultobj; | |
20837 | fail: | |
20838 | return NULL; | |
20839 | } | |
20840 | ||
20841 | ||
20842 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20843 | PyObject *resultobj; | |
20844 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20845 | int result; | |
20846 | PyObject * obj0 = 0 ; | |
20847 | char *kwnames[] = { | |
20848 | (char *) "self", NULL | |
20849 | }; | |
20850 | ||
20851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20854 | { | |
20855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20856 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20857 | ||
20858 | wxPyEndAllowThreads(__tstate); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
20860 | } | |
20861 | resultobj = SWIG_FromInt((int)result); | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20869 | PyObject *resultobj; | |
20870 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20871 | bool result; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | char *kwnames[] = { | |
20874 | (char *) "self", NULL | |
20875 | }; | |
20876 | ||
20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20880 | { | |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20882 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20883 | ||
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
20887 | { | |
20888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20889 | } | |
20890 | return resultobj; | |
20891 | fail: | |
20892 | return NULL; | |
20893 | } | |
20894 | ||
20895 | ||
20896 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20897 | PyObject *resultobj; | |
20898 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20899 | bool result; | |
20900 | PyObject * obj0 = 0 ; | |
20901 | char *kwnames[] = { | |
20902 | (char *) "self", NULL | |
20903 | }; | |
20904 | ||
20905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20908 | { | |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | { | |
20916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20917 | } | |
20918 | return resultobj; | |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20925 | PyObject *resultobj; | |
20926 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20927 | bool result; | |
20928 | PyObject * obj0 = 0 ; | |
20929 | char *kwnames[] = { | |
20930 | (char *) "self", NULL | |
20931 | }; | |
20932 | ||
20933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
20934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20936 | { | |
20937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20938 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
20939 | ||
20940 | wxPyEndAllowThreads(__tstate); | |
20941 | if (PyErr_Occurred()) SWIG_fail; | |
20942 | } | |
20943 | { | |
20944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20945 | } | |
20946 | return resultobj; | |
20947 | fail: | |
20948 | return NULL; | |
20949 | } | |
20950 | ||
20951 | ||
20952 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20953 | PyObject *resultobj; | |
20954 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20955 | bool result; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | char *kwnames[] = { | |
20958 | (char *) "self", NULL | |
20959 | }; | |
20960 | ||
20961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
20962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20964 | { | |
20965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20966 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
20967 | ||
20968 | wxPyEndAllowThreads(__tstate); | |
20969 | if (PyErr_Occurred()) SWIG_fail; | |
20970 | } | |
20971 | { | |
20972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20973 | } | |
20974 | return resultobj; | |
20975 | fail: | |
20976 | return NULL; | |
20977 | } | |
20978 | ||
20979 | ||
20980 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20981 | PyObject *resultobj; | |
20982 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20983 | bool result; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
20990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
20995 | ||
20996 | wxPyEndAllowThreads(__tstate); | |
20997 | if (PyErr_Occurred()) SWIG_fail; | |
20998 | } | |
20999 | { | |
21000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21001 | } | |
21002 | return resultobj; | |
21003 | fail: | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
21008 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21009 | PyObject *resultobj; | |
21010 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21011 | int arg2 ; | |
21012 | PyObject * obj0 = 0 ; | |
21013 | PyObject * obj1 = 0 ; | |
21014 | char *kwnames[] = { | |
21015 | (char *) "self",(char *) "v", NULL | |
21016 | }; | |
21017 | ||
21018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
21019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21021 | arg2 = (int) SWIG_AsInt(obj1); | |
21022 | if (PyErr_Occurred()) SWIG_fail; | |
21023 | { | |
21024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21025 | (arg1)->SetFromPage(arg2); | |
21026 | ||
21027 | wxPyEndAllowThreads(__tstate); | |
21028 | if (PyErr_Occurred()) SWIG_fail; | |
21029 | } | |
21030 | Py_INCREF(Py_None); resultobj = Py_None; | |
21031 | return resultobj; | |
21032 | fail: | |
21033 | return NULL; | |
21034 | } | |
21035 | ||
21036 | ||
21037 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21038 | PyObject *resultobj; | |
21039 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21040 | int arg2 ; | |
21041 | PyObject * obj0 = 0 ; | |
21042 | PyObject * obj1 = 0 ; | |
21043 | char *kwnames[] = { | |
21044 | (char *) "self",(char *) "v", NULL | |
21045 | }; | |
21046 | ||
21047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
21048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21050 | arg2 = (int) SWIG_AsInt(obj1); | |
21051 | if (PyErr_Occurred()) SWIG_fail; | |
21052 | { | |
21053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21054 | (arg1)->SetToPage(arg2); | |
21055 | ||
21056 | wxPyEndAllowThreads(__tstate); | |
21057 | if (PyErr_Occurred()) SWIG_fail; | |
21058 | } | |
21059 | Py_INCREF(Py_None); resultobj = Py_None; | |
21060 | return resultobj; | |
21061 | fail: | |
21062 | return NULL; | |
21063 | } | |
21064 | ||
21065 | ||
21066 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21067 | PyObject *resultobj; | |
21068 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21069 | int arg2 ; | |
21070 | PyObject * obj0 = 0 ; | |
21071 | PyObject * obj1 = 0 ; | |
21072 | char *kwnames[] = { | |
21073 | (char *) "self",(char *) "v", NULL | |
21074 | }; | |
21075 | ||
21076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
21077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21079 | arg2 = (int) SWIG_AsInt(obj1); | |
21080 | if (PyErr_Occurred()) SWIG_fail; | |
21081 | { | |
21082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21083 | (arg1)->SetMinPage(arg2); | |
21084 | ||
21085 | wxPyEndAllowThreads(__tstate); | |
21086 | if (PyErr_Occurred()) SWIG_fail; | |
21087 | } | |
21088 | Py_INCREF(Py_None); resultobj = Py_None; | |
21089 | return resultobj; | |
21090 | fail: | |
21091 | return NULL; | |
21092 | } | |
21093 | ||
21094 | ||
21095 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21096 | PyObject *resultobj; | |
21097 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21098 | int arg2 ; | |
21099 | PyObject * obj0 = 0 ; | |
21100 | PyObject * obj1 = 0 ; | |
21101 | char *kwnames[] = { | |
21102 | (char *) "self",(char *) "v", NULL | |
21103 | }; | |
21104 | ||
21105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
21106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21108 | arg2 = (int) SWIG_AsInt(obj1); | |
21109 | if (PyErr_Occurred()) SWIG_fail; | |
21110 | { | |
21111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21112 | (arg1)->SetMaxPage(arg2); | |
21113 | ||
21114 | wxPyEndAllowThreads(__tstate); | |
21115 | if (PyErr_Occurred()) SWIG_fail; | |
21116 | } | |
21117 | Py_INCREF(Py_None); resultobj = Py_None; | |
21118 | return resultobj; | |
21119 | fail: | |
21120 | return NULL; | |
21121 | } | |
21122 | ||
21123 | ||
21124 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21125 | PyObject *resultobj; | |
21126 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21127 | int arg2 ; | |
21128 | PyObject * obj0 = 0 ; | |
21129 | PyObject * obj1 = 0 ; | |
21130 | char *kwnames[] = { | |
21131 | (char *) "self",(char *) "v", NULL | |
21132 | }; | |
21133 | ||
21134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
21135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21137 | arg2 = (int) SWIG_AsInt(obj1); | |
21138 | if (PyErr_Occurred()) SWIG_fail; | |
21139 | { | |
21140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21141 | (arg1)->SetNoCopies(arg2); | |
21142 | ||
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | Py_INCREF(Py_None); resultobj = Py_None; | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | return NULL; | |
21150 | } | |
21151 | ||
21152 | ||
21153 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21154 | PyObject *resultobj; | |
21155 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21156 | bool arg2 ; | |
21157 | PyObject * obj0 = 0 ; | |
21158 | PyObject * obj1 = 0 ; | |
21159 | char *kwnames[] = { | |
21160 | (char *) "self",(char *) "flag", NULL | |
21161 | }; | |
21162 | ||
21163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
21164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21166 | arg2 = (bool) SWIG_AsBool(obj1); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | { | |
21169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21170 | (arg1)->SetAllPages(arg2); | |
21171 | ||
21172 | wxPyEndAllowThreads(__tstate); | |
21173 | if (PyErr_Occurred()) SWIG_fail; | |
21174 | } | |
21175 | Py_INCREF(Py_None); resultobj = Py_None; | |
21176 | return resultobj; | |
21177 | fail: | |
21178 | return NULL; | |
21179 | } | |
21180 | ||
21181 | ||
21182 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21183 | PyObject *resultobj; | |
21184 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21185 | bool arg2 ; | |
21186 | PyObject * obj0 = 0 ; | |
21187 | PyObject * obj1 = 0 ; | |
21188 | char *kwnames[] = { | |
21189 | (char *) "self",(char *) "flag", NULL | |
21190 | }; | |
21191 | ||
21192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
21193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21195 | arg2 = (bool) SWIG_AsBool(obj1); | |
21196 | if (PyErr_Occurred()) SWIG_fail; | |
21197 | { | |
21198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21199 | (arg1)->SetSelection(arg2); | |
21200 | ||
21201 | wxPyEndAllowThreads(__tstate); | |
21202 | if (PyErr_Occurred()) SWIG_fail; | |
21203 | } | |
21204 | Py_INCREF(Py_None); resultobj = Py_None; | |
21205 | return resultobj; | |
21206 | fail: | |
21207 | return NULL; | |
21208 | } | |
21209 | ||
21210 | ||
21211 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21212 | PyObject *resultobj; | |
21213 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21214 | bool arg2 ; | |
21215 | PyObject * obj0 = 0 ; | |
21216 | PyObject * obj1 = 0 ; | |
21217 | char *kwnames[] = { | |
21218 | (char *) "self",(char *) "flag", NULL | |
21219 | }; | |
21220 | ||
21221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
21222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21224 | arg2 = (bool) SWIG_AsBool(obj1); | |
21225 | if (PyErr_Occurred()) SWIG_fail; | |
21226 | { | |
21227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21228 | (arg1)->SetCollate(arg2); | |
21229 | ||
21230 | wxPyEndAllowThreads(__tstate); | |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
21232 | } | |
21233 | Py_INCREF(Py_None); resultobj = Py_None; | |
21234 | return resultobj; | |
21235 | fail: | |
21236 | return NULL; | |
21237 | } | |
21238 | ||
21239 | ||
21240 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21241 | PyObject *resultobj; | |
21242 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21243 | bool arg2 ; | |
21244 | PyObject * obj0 = 0 ; | |
21245 | PyObject * obj1 = 0 ; | |
21246 | char *kwnames[] = { | |
21247 | (char *) "self",(char *) "flag", NULL | |
21248 | }; | |
21249 | ||
21250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
21251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21253 | arg2 = (bool) SWIG_AsBool(obj1); | |
21254 | if (PyErr_Occurred()) SWIG_fail; | |
21255 | { | |
21256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21257 | (arg1)->SetPrintToFile(arg2); | |
21258 | ||
21259 | wxPyEndAllowThreads(__tstate); | |
21260 | if (PyErr_Occurred()) SWIG_fail; | |
21261 | } | |
21262 | Py_INCREF(Py_None); resultobj = Py_None; | |
21263 | return resultobj; | |
21264 | fail: | |
21265 | return NULL; | |
21266 | } | |
21267 | ||
21268 | ||
21269 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21270 | PyObject *resultobj; | |
21271 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21272 | bool arg2 ; | |
21273 | PyObject * obj0 = 0 ; | |
21274 | PyObject * obj1 = 0 ; | |
21275 | char *kwnames[] = { | |
21276 | (char *) "self",(char *) "flag", NULL | |
21277 | }; | |
21278 | ||
21279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
21280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21282 | arg2 = (bool) SWIG_AsBool(obj1); | |
21283 | if (PyErr_Occurred()) SWIG_fail; | |
21284 | { | |
21285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21286 | (arg1)->SetSetupDialog(arg2); | |
21287 | ||
21288 | wxPyEndAllowThreads(__tstate); | |
21289 | if (PyErr_Occurred()) SWIG_fail; | |
21290 | } | |
21291 | Py_INCREF(Py_None); resultobj = Py_None; | |
21292 | return resultobj; | |
21293 | fail: | |
21294 | return NULL; | |
21295 | } | |
21296 | ||
21297 | ||
21298 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21299 | PyObject *resultobj; | |
21300 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21301 | bool arg2 ; | |
21302 | PyObject * obj0 = 0 ; | |
21303 | PyObject * obj1 = 0 ; | |
21304 | char *kwnames[] = { | |
21305 | (char *) "self",(char *) "flag", NULL | |
21306 | }; | |
21307 | ||
21308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
21309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21311 | arg2 = (bool) SWIG_AsBool(obj1); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | { | |
21314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21315 | (arg1)->EnablePrintToFile(arg2); | |
21316 | ||
21317 | wxPyEndAllowThreads(__tstate); | |
21318 | if (PyErr_Occurred()) SWIG_fail; | |
21319 | } | |
21320 | Py_INCREF(Py_None); resultobj = Py_None; | |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21328 | PyObject *resultobj; | |
21329 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21330 | bool arg2 ; | |
21331 | PyObject * obj0 = 0 ; | |
21332 | PyObject * obj1 = 0 ; | |
21333 | char *kwnames[] = { | |
21334 | (char *) "self",(char *) "flag", NULL | |
21335 | }; | |
21336 | ||
21337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
21338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21340 | arg2 = (bool) SWIG_AsBool(obj1); | |
21341 | if (PyErr_Occurred()) SWIG_fail; | |
21342 | { | |
21343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21344 | (arg1)->EnableSelection(arg2); | |
21345 | ||
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | Py_INCREF(Py_None); resultobj = Py_None; | |
21350 | return resultobj; | |
21351 | fail: | |
21352 | return NULL; | |
21353 | } | |
21354 | ||
21355 | ||
21356 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21357 | PyObject *resultobj; | |
21358 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21359 | bool arg2 ; | |
21360 | PyObject * obj0 = 0 ; | |
21361 | PyObject * obj1 = 0 ; | |
21362 | char *kwnames[] = { | |
21363 | (char *) "self",(char *) "flag", NULL | |
21364 | }; | |
21365 | ||
21366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
21367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21369 | arg2 = (bool) SWIG_AsBool(obj1); | |
21370 | if (PyErr_Occurred()) SWIG_fail; | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | (arg1)->EnablePageNumbers(arg2); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | Py_INCREF(Py_None); resultobj = Py_None; | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj; | |
21387 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21388 | bool arg2 ; | |
21389 | PyObject * obj0 = 0 ; | |
21390 | PyObject * obj1 = 0 ; | |
21391 | char *kwnames[] = { | |
21392 | (char *) "self",(char *) "flag", NULL | |
21393 | }; | |
21394 | ||
21395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
21396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21398 | arg2 = (bool) SWIG_AsBool(obj1); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | { | |
21401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21402 | (arg1)->EnableHelp(arg2); | |
21403 | ||
21404 | wxPyEndAllowThreads(__tstate); | |
21405 | if (PyErr_Occurred()) SWIG_fail; | |
21406 | } | |
21407 | Py_INCREF(Py_None); resultobj = Py_None; | |
21408 | return resultobj; | |
21409 | fail: | |
21410 | return NULL; | |
21411 | } | |
21412 | ||
21413 | ||
21414 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21415 | PyObject *resultobj; | |
21416 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21417 | bool result; | |
21418 | PyObject * obj0 = 0 ; | |
21419 | char *kwnames[] = { | |
21420 | (char *) "self", NULL | |
21421 | }; | |
21422 | ||
21423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
21424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21426 | { | |
21427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21428 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
21429 | ||
21430 | wxPyEndAllowThreads(__tstate); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
21433 | { | |
21434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21435 | } | |
21436 | return resultobj; | |
21437 | fail: | |
21438 | return NULL; | |
21439 | } | |
21440 | ||
21441 | ||
21442 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21443 | PyObject *resultobj; | |
21444 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21445 | bool result; | |
21446 | PyObject * obj0 = 0 ; | |
21447 | char *kwnames[] = { | |
21448 | (char *) "self", NULL | |
21449 | }; | |
21450 | ||
21451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
21452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21454 | { | |
21455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21456 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
21457 | ||
21458 | wxPyEndAllowThreads(__tstate); | |
21459 | if (PyErr_Occurred()) SWIG_fail; | |
21460 | } | |
21461 | { | |
21462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21463 | } | |
21464 | return resultobj; | |
21465 | fail: | |
21466 | return NULL; | |
21467 | } | |
21468 | ||
21469 | ||
21470 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21471 | PyObject *resultobj; | |
21472 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21473 | bool result; | |
21474 | PyObject * obj0 = 0 ; | |
21475 | char *kwnames[] = { | |
21476 | (char *) "self", NULL | |
21477 | }; | |
21478 | ||
21479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
21480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21482 | { | |
21483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21484 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
21485 | ||
21486 | wxPyEndAllowThreads(__tstate); | |
21487 | if (PyErr_Occurred()) SWIG_fail; | |
21488 | } | |
21489 | { | |
21490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21491 | } | |
21492 | return resultobj; | |
21493 | fail: | |
21494 | return NULL; | |
21495 | } | |
21496 | ||
21497 | ||
21498 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21499 | PyObject *resultobj; | |
21500 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21501 | bool result; | |
21502 | PyObject * obj0 = 0 ; | |
21503 | char *kwnames[] = { | |
21504 | (char *) "self", NULL | |
21505 | }; | |
21506 | ||
21507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
21508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21510 | { | |
21511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21512 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
21513 | ||
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | { | |
21518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21519 | } | |
21520 | return resultobj; | |
21521 | fail: | |
21522 | return NULL; | |
21523 | } | |
21524 | ||
21525 | ||
21526 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21527 | PyObject *resultobj; | |
21528 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21529 | bool result; | |
21530 | PyObject * obj0 = 0 ; | |
21531 | char *kwnames[] = { | |
21532 | (char *) "self", NULL | |
21533 | }; | |
21534 | ||
21535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
21536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21538 | { | |
21539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21540 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
21541 | ||
21542 | wxPyEndAllowThreads(__tstate); | |
21543 | if (PyErr_Occurred()) SWIG_fail; | |
21544 | } | |
21545 | { | |
21546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21547 | } | |
21548 | return resultobj; | |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
21554 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21555 | PyObject *resultobj; | |
21556 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21557 | wxPrintData *result; | |
21558 | PyObject * obj0 = 0 ; | |
21559 | char *kwnames[] = { | |
21560 | (char *) "self", NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
21564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21566 | { | |
21567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21568 | { | |
21569 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
21570 | result = (wxPrintData *) &_result_ref; | |
21571 | } | |
21572 | ||
21573 | wxPyEndAllowThreads(__tstate); | |
21574 | if (PyErr_Occurred()) SWIG_fail; | |
21575 | } | |
21576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
21577 | return resultobj; | |
21578 | fail: | |
21579 | return NULL; | |
21580 | } | |
21581 | ||
21582 | ||
21583 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21584 | PyObject *resultobj; | |
21585 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21586 | wxPrintData *arg2 = 0 ; | |
21587 | PyObject * obj0 = 0 ; | |
21588 | PyObject * obj1 = 0 ; | |
21589 | char *kwnames[] = { | |
21590 | (char *) "self",(char *) "printData", NULL | |
21591 | }; | |
21592 | ||
21593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
21594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
21597 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21598 | SWIG_fail; | |
21599 | if (arg2 == NULL) { | |
21600 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21601 | SWIG_fail; | |
21602 | } | |
21603 | { | |
21604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21605 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21606 | ||
21607 | wxPyEndAllowThreads(__tstate); | |
21608 | if (PyErr_Occurred()) SWIG_fail; | |
21609 | } | |
21610 | Py_INCREF(Py_None); resultobj = Py_None; | |
21611 | return resultobj; | |
21612 | fail: | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
21617 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
21618 | PyObject *obj; | |
21619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21620 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
21621 | Py_INCREF(obj); | |
21622 | return Py_BuildValue((char *)""); | |
21623 | } | |
21624 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21625 | PyObject *resultobj; | |
21626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21627 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
21628 | wxPrintDialog *result; | |
21629 | PyObject * obj0 = 0 ; | |
21630 | PyObject * obj1 = 0 ; | |
21631 | char *kwnames[] = { | |
21632 | (char *) "parent",(char *) "data", NULL | |
21633 | }; | |
21634 | ||
21635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21638 | if (obj1) { | |
21639 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
21640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21641 | } | |
21642 | { | |
0439c23b | 21643 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21645 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
21646 | ||
21647 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21648 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21649 | } |
21650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
21651 | return resultobj; | |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
21657 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21658 | PyObject *resultobj; | |
21659 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21660 | wxPrintDialogData *result; | |
21661 | PyObject * obj0 = 0 ; | |
21662 | char *kwnames[] = { | |
21663 | (char *) "self", NULL | |
21664 | }; | |
21665 | ||
21666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21669 | { | |
21670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21671 | { | |
21672 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21673 | result = (wxPrintDialogData *) &_result_ref; | |
21674 | } | |
21675 | ||
21676 | wxPyEndAllowThreads(__tstate); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
21679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21680 | return resultobj; | |
21681 | fail: | |
21682 | return NULL; | |
21683 | } | |
21684 | ||
21685 | ||
21686 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21687 | PyObject *resultobj; | |
21688 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21689 | wxDC *result; | |
21690 | PyObject * obj0 = 0 ; | |
21691 | char *kwnames[] = { | |
21692 | (char *) "self", NULL | |
21693 | }; | |
21694 | ||
21695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
21696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21698 | { | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = (wxDC *)(arg1)->GetPrintDC(); | |
21701 | ||
21702 | wxPyEndAllowThreads(__tstate); | |
21703 | if (PyErr_Occurred()) SWIG_fail; | |
21704 | } | |
21705 | { | |
412d302d | 21706 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
21707 | } |
21708 | return resultobj; | |
21709 | fail: | |
21710 | return NULL; | |
21711 | } | |
21712 | ||
21713 | ||
21714 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21715 | PyObject *resultobj; | |
21716 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21717 | int result; | |
21718 | PyObject * obj0 = 0 ; | |
21719 | char *kwnames[] = { | |
21720 | (char *) "self", NULL | |
21721 | }; | |
21722 | ||
21723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
21724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21726 | { | |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | result = (int)(arg1)->ShowModal(); | |
21729 | ||
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
21733 | resultobj = SWIG_FromInt((int)result); | |
21734 | return resultobj; | |
21735 | fail: | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
21740 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
21741 | PyObject *obj; | |
21742 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21743 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
21744 | Py_INCREF(obj); | |
21745 | return Py_BuildValue((char *)""); | |
21746 | } | |
21747 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21748 | PyObject *resultobj; | |
21749 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
21750 | wxPrinter *result; | |
21751 | PyObject * obj0 = 0 ; | |
21752 | char *kwnames[] = { | |
21753 | (char *) "data", NULL | |
21754 | }; | |
21755 | ||
21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
21757 | if (obj0) { | |
21758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21760 | } | |
21761 | { | |
0439c23b | 21762 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21764 | result = (wxPrinter *)new wxPrinter(arg1); | |
21765 | ||
21766 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21767 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21768 | } |
21769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
21770 | return resultobj; | |
21771 | fail: | |
21772 | return NULL; | |
21773 | } | |
21774 | ||
21775 | ||
21776 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21777 | PyObject *resultobj; | |
21778 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21779 | PyObject * obj0 = 0 ; | |
21780 | char *kwnames[] = { | |
21781 | (char *) "self", NULL | |
21782 | }; | |
21783 | ||
21784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
21785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21787 | { | |
21788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21789 | delete arg1; | |
21790 | ||
21791 | wxPyEndAllowThreads(__tstate); | |
21792 | if (PyErr_Occurred()) SWIG_fail; | |
21793 | } | |
21794 | Py_INCREF(Py_None); resultobj = Py_None; | |
21795 | return resultobj; | |
21796 | fail: | |
21797 | return NULL; | |
21798 | } | |
21799 | ||
21800 | ||
21801 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21802 | PyObject *resultobj; | |
21803 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21804 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21805 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21806 | PyObject * obj0 = 0 ; | |
21807 | PyObject * obj1 = 0 ; | |
21808 | PyObject * obj2 = 0 ; | |
21809 | char *kwnames[] = { | |
21810 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
21811 | }; | |
21812 | ||
21813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21818 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21820 | { | |
21821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21822 | (arg1)->CreateAbortWindow(arg2,arg3); | |
21823 | ||
21824 | wxPyEndAllowThreads(__tstate); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
21826 | } | |
21827 | Py_INCREF(Py_None); resultobj = Py_None; | |
21828 | return resultobj; | |
21829 | fail: | |
21830 | return NULL; | |
21831 | } | |
21832 | ||
21833 | ||
21834 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21835 | PyObject *resultobj; | |
21836 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21837 | wxPrintDialogData *result; | |
21838 | PyObject * obj0 = 0 ; | |
21839 | char *kwnames[] = { | |
21840 | (char *) "self", NULL | |
21841 | }; | |
21842 | ||
21843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21846 | { | |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | { | |
21849 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21850 | result = (wxPrintDialogData *) &_result_ref; | |
21851 | } | |
21852 | ||
21853 | wxPyEndAllowThreads(__tstate); | |
21854 | if (PyErr_Occurred()) SWIG_fail; | |
21855 | } | |
21856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21857 | return resultobj; | |
21858 | fail: | |
21859 | return NULL; | |
21860 | } | |
21861 | ||
21862 | ||
21863 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21864 | PyObject *resultobj; | |
21865 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21866 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21867 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21868 | int arg4 = (int) True ; | |
21869 | bool result; | |
21870 | PyObject * obj0 = 0 ; | |
21871 | PyObject * obj1 = 0 ; | |
21872 | PyObject * obj2 = 0 ; | |
21873 | PyObject * obj3 = 0 ; | |
21874 | char *kwnames[] = { | |
21875 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21876 | }; | |
21877 | ||
21878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21881 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21883 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21885 | if (obj3) { | |
21886 | arg4 = (int) SWIG_AsInt(obj3); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | { | |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21892 | ||
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | { | |
21897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21898 | } | |
21899 | return resultobj; | |
21900 | fail: | |
21901 | return NULL; | |
21902 | } | |
21903 | ||
21904 | ||
21905 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21906 | PyObject *resultobj; | |
21907 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21908 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21909 | wxDC *result; | |
21910 | PyObject * obj0 = 0 ; | |
21911 | PyObject * obj1 = 0 ; | |
21912 | char *kwnames[] = { | |
21913 | (char *) "self",(char *) "parent", NULL | |
21914 | }; | |
21915 | ||
21916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21921 | { | |
21922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21923 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21924 | ||
21925 | wxPyEndAllowThreads(__tstate); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
21928 | { | |
412d302d | 21929 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21930 | } |
21931 | return resultobj; | |
21932 | fail: | |
21933 | return NULL; | |
21934 | } | |
21935 | ||
21936 | ||
21937 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21938 | PyObject *resultobj; | |
21939 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21940 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21941 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21942 | wxString *arg4 = 0 ; | |
21943 | bool temp4 = False ; | |
21944 | PyObject * obj0 = 0 ; | |
21945 | PyObject * obj1 = 0 ; | |
21946 | PyObject * obj2 = 0 ; | |
21947 | PyObject * obj3 = 0 ; | |
21948 | char *kwnames[] = { | |
21949 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
21950 | }; | |
21951 | ||
21952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21955 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21957 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21959 | { | |
21960 | arg4 = wxString_in_helper(obj3); | |
21961 | if (arg4 == NULL) SWIG_fail; | |
21962 | temp4 = True; | |
21963 | } | |
21964 | { | |
21965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21966 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
21967 | ||
21968 | wxPyEndAllowThreads(__tstate); | |
21969 | if (PyErr_Occurred()) SWIG_fail; | |
21970 | } | |
21971 | Py_INCREF(Py_None); resultobj = Py_None; | |
21972 | { | |
21973 | if (temp4) | |
21974 | delete arg4; | |
21975 | } | |
21976 | return resultobj; | |
21977 | fail: | |
21978 | { | |
21979 | if (temp4) | |
21980 | delete arg4; | |
21981 | } | |
21982 | return NULL; | |
21983 | } | |
21984 | ||
21985 | ||
21986 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21987 | PyObject *resultobj; | |
21988 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21989 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21990 | bool result; | |
21991 | PyObject * obj0 = 0 ; | |
21992 | PyObject * obj1 = 0 ; | |
21993 | char *kwnames[] = { | |
21994 | (char *) "self",(char *) "parent", NULL | |
21995 | }; | |
21996 | ||
21997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
21998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22002 | { | |
22003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22004 | result = (bool)(arg1)->Setup(arg2); | |
22005 | ||
22006 | wxPyEndAllowThreads(__tstate); | |
22007 | if (PyErr_Occurred()) SWIG_fail; | |
22008 | } | |
22009 | { | |
22010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22011 | } | |
22012 | return resultobj; | |
22013 | fail: | |
22014 | return NULL; | |
22015 | } | |
22016 | ||
22017 | ||
22018 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22019 | PyObject *resultobj; | |
22020 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
22021 | bool result; | |
22022 | PyObject * obj0 = 0 ; | |
22023 | char *kwnames[] = { | |
22024 | (char *) "self", NULL | |
22025 | }; | |
22026 | ||
22027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
22028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
22029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22030 | { | |
22031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22032 | result = (bool)(arg1)->GetAbort(); | |
22033 | ||
22034 | wxPyEndAllowThreads(__tstate); | |
22035 | if (PyErr_Occurred()) SWIG_fail; | |
22036 | } | |
22037 | { | |
22038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22039 | } | |
22040 | return resultobj; | |
22041 | fail: | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
22046 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22047 | PyObject *resultobj; | |
22048 | int result; | |
22049 | char *kwnames[] = { | |
22050 | NULL | |
22051 | }; | |
22052 | ||
22053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
22054 | { | |
22055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22056 | result = (int)wxPrinter::GetLastError(); | |
22057 | ||
22058 | wxPyEndAllowThreads(__tstate); | |
22059 | if (PyErr_Occurred()) SWIG_fail; | |
22060 | } | |
22061 | resultobj = SWIG_FromInt((int)result); | |
22062 | return resultobj; | |
22063 | fail: | |
22064 | return NULL; | |
22065 | } | |
22066 | ||
22067 | ||
22068 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
22069 | PyObject *obj; | |
22070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22071 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
22072 | Py_INCREF(obj); | |
22073 | return Py_BuildValue((char *)""); | |
22074 | } | |
22075 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22076 | PyObject *resultobj; | |
22077 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
22078 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22079 | wxPyPrintout *result; | |
22080 | bool temp1 = False ; | |
22081 | PyObject * obj0 = 0 ; | |
22082 | char *kwnames[] = { | |
22083 | (char *) "title", NULL | |
22084 | }; | |
22085 | ||
22086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
22087 | if (obj0) { | |
22088 | { | |
22089 | arg1 = wxString_in_helper(obj0); | |
22090 | if (arg1 == NULL) SWIG_fail; | |
22091 | temp1 = True; | |
22092 | } | |
22093 | } | |
22094 | { | |
0439c23b | 22095 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22097 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
22098 | ||
22099 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22100 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22101 | } |
22102 | { | |
412d302d | 22103 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
22104 | } |
22105 | { | |
22106 | if (temp1) | |
22107 | delete arg1; | |
22108 | } | |
22109 | return resultobj; | |
22110 | fail: | |
22111 | { | |
22112 | if (temp1) | |
22113 | delete arg1; | |
22114 | } | |
22115 | return NULL; | |
22116 | } | |
22117 | ||
22118 | ||
22119 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22120 | PyObject *resultobj; | |
22121 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22122 | PyObject *arg2 = (PyObject *) 0 ; | |
22123 | PyObject *arg3 = (PyObject *) 0 ; | |
22124 | PyObject * obj0 = 0 ; | |
22125 | PyObject * obj1 = 0 ; | |
22126 | PyObject * obj2 = 0 ; | |
22127 | char *kwnames[] = { | |
22128 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22129 | }; | |
22130 | ||
22131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22134 | arg2 = obj1; | |
22135 | arg3 = obj2; | |
22136 | { | |
22137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22138 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22139 | ||
22140 | wxPyEndAllowThreads(__tstate); | |
22141 | if (PyErr_Occurred()) SWIG_fail; | |
22142 | } | |
22143 | Py_INCREF(Py_None); resultobj = Py_None; | |
22144 | return resultobj; | |
22145 | fail: | |
22146 | return NULL; | |
22147 | } | |
22148 | ||
22149 | ||
22150 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22151 | PyObject *resultobj; | |
22152 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22153 | wxString result; | |
22154 | PyObject * obj0 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "self", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
22160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22162 | { | |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22164 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
22165 | ||
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | { | |
22170 | #if wxUSE_UNICODE | |
22171 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22172 | #else | |
22173 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22174 | #endif | |
22175 | } | |
22176 | return resultobj; | |
22177 | fail: | |
22178 | return NULL; | |
22179 | } | |
22180 | ||
22181 | ||
22182 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22183 | PyObject *resultobj; | |
22184 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22185 | wxDC *result; | |
22186 | PyObject * obj0 = 0 ; | |
22187 | char *kwnames[] = { | |
22188 | (char *) "self", NULL | |
22189 | }; | |
22190 | ||
22191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
22192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22194 | { | |
22195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22196 | result = (wxDC *)(arg1)->GetDC(); | |
22197 | ||
22198 | wxPyEndAllowThreads(__tstate); | |
22199 | if (PyErr_Occurred()) SWIG_fail; | |
22200 | } | |
22201 | { | |
412d302d | 22202 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22203 | } |
22204 | return resultobj; | |
22205 | fail: | |
22206 | return NULL; | |
22207 | } | |
22208 | ||
22209 | ||
22210 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22211 | PyObject *resultobj; | |
22212 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22213 | wxDC *arg2 = (wxDC *) 0 ; | |
22214 | PyObject * obj0 = 0 ; | |
22215 | PyObject * obj1 = 0 ; | |
22216 | char *kwnames[] = { | |
22217 | (char *) "self",(char *) "dc", NULL | |
22218 | }; | |
22219 | ||
22220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
22221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22225 | { | |
22226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22227 | (arg1)->SetDC(arg2); | |
22228 | ||
22229 | wxPyEndAllowThreads(__tstate); | |
22230 | if (PyErr_Occurred()) SWIG_fail; | |
22231 | } | |
22232 | Py_INCREF(Py_None); resultobj = Py_None; | |
22233 | return resultobj; | |
22234 | fail: | |
22235 | return NULL; | |
22236 | } | |
22237 | ||
22238 | ||
22239 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22240 | PyObject *resultobj; | |
22241 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22242 | int arg2 ; | |
22243 | int arg3 ; | |
22244 | PyObject * obj0 = 0 ; | |
22245 | PyObject * obj1 = 0 ; | |
22246 | PyObject * obj2 = 0 ; | |
22247 | char *kwnames[] = { | |
22248 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22249 | }; | |
22250 | ||
22251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22254 | arg2 = (int) SWIG_AsInt(obj1); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | arg3 = (int) SWIG_AsInt(obj2); | |
22257 | if (PyErr_Occurred()) SWIG_fail; | |
22258 | { | |
22259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22260 | (arg1)->SetPageSizePixels(arg2,arg3); | |
22261 | ||
22262 | wxPyEndAllowThreads(__tstate); | |
22263 | if (PyErr_Occurred()) SWIG_fail; | |
22264 | } | |
22265 | Py_INCREF(Py_None); resultobj = Py_None; | |
22266 | return resultobj; | |
22267 | fail: | |
22268 | return NULL; | |
22269 | } | |
22270 | ||
22271 | ||
22272 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22273 | PyObject *resultobj; | |
22274 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22275 | int *arg2 = (int *) 0 ; | |
22276 | int *arg3 = (int *) 0 ; | |
22277 | int temp2 ; | |
22278 | int temp3 ; | |
22279 | PyObject * obj0 = 0 ; | |
22280 | char *kwnames[] = { | |
22281 | (char *) "self", NULL | |
22282 | }; | |
22283 | ||
22284 | arg2 = &temp2; | |
22285 | arg3 = &temp3; | |
22286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
22287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | (arg1)->GetPageSizePixels(arg2,arg3); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | Py_INCREF(Py_None); resultobj = Py_None; | |
22297 | { | |
22298 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22299 | resultobj = t_output_helper(resultobj,o); | |
22300 | } | |
22301 | { | |
22302 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22303 | resultobj = t_output_helper(resultobj,o); | |
22304 | } | |
22305 | return resultobj; | |
22306 | fail: | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
22311 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22312 | PyObject *resultobj; | |
22313 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22314 | int arg2 ; | |
22315 | int arg3 ; | |
22316 | PyObject * obj0 = 0 ; | |
22317 | PyObject * obj1 = 0 ; | |
22318 | PyObject * obj2 = 0 ; | |
22319 | char *kwnames[] = { | |
22320 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22321 | }; | |
22322 | ||
22323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22326 | arg2 = (int) SWIG_AsInt(obj1); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | arg3 = (int) SWIG_AsInt(obj2); | |
22329 | if (PyErr_Occurred()) SWIG_fail; | |
22330 | { | |
22331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22332 | (arg1)->SetPageSizeMM(arg2,arg3); | |
22333 | ||
22334 | wxPyEndAllowThreads(__tstate); | |
22335 | if (PyErr_Occurred()) SWIG_fail; | |
22336 | } | |
22337 | Py_INCREF(Py_None); resultobj = Py_None; | |
22338 | return resultobj; | |
22339 | fail: | |
22340 | return NULL; | |
22341 | } | |
22342 | ||
22343 | ||
22344 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22345 | PyObject *resultobj; | |
22346 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22347 | int *arg2 = (int *) 0 ; | |
22348 | int *arg3 = (int *) 0 ; | |
22349 | int temp2 ; | |
22350 | int temp3 ; | |
22351 | PyObject * obj0 = 0 ; | |
22352 | char *kwnames[] = { | |
22353 | (char *) "self", NULL | |
22354 | }; | |
22355 | ||
22356 | arg2 = &temp2; | |
22357 | arg3 = &temp3; | |
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22361 | { | |
22362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22363 | (arg1)->GetPageSizeMM(arg2,arg3); | |
22364 | ||
22365 | wxPyEndAllowThreads(__tstate); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | } | |
22368 | Py_INCREF(Py_None); resultobj = Py_None; | |
22369 | { | |
22370 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22371 | resultobj = t_output_helper(resultobj,o); | |
22372 | } | |
22373 | { | |
22374 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22375 | resultobj = t_output_helper(resultobj,o); | |
22376 | } | |
22377 | return resultobj; | |
22378 | fail: | |
22379 | return NULL; | |
22380 | } | |
22381 | ||
22382 | ||
22383 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22384 | PyObject *resultobj; | |
22385 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22386 | int arg2 ; | |
22387 | int arg3 ; | |
22388 | PyObject * obj0 = 0 ; | |
22389 | PyObject * obj1 = 0 ; | |
22390 | PyObject * obj2 = 0 ; | |
22391 | char *kwnames[] = { | |
22392 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22393 | }; | |
22394 | ||
22395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22398 | arg2 = (int) SWIG_AsInt(obj1); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | arg3 = (int) SWIG_AsInt(obj2); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | { | |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | (arg1)->SetPPIScreen(arg2,arg3); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | Py_INCREF(Py_None); resultobj = Py_None; | |
22410 | return resultobj; | |
22411 | fail: | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
22416 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22417 | PyObject *resultobj; | |
22418 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22419 | int *arg2 = (int *) 0 ; | |
22420 | int *arg3 = (int *) 0 ; | |
22421 | int temp2 ; | |
22422 | int temp3 ; | |
22423 | PyObject * obj0 = 0 ; | |
22424 | char *kwnames[] = { | |
22425 | (char *) "self", NULL | |
22426 | }; | |
22427 | ||
22428 | arg2 = &temp2; | |
22429 | arg3 = &temp3; | |
22430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
22431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22433 | { | |
22434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22435 | (arg1)->GetPPIScreen(arg2,arg3); | |
22436 | ||
22437 | wxPyEndAllowThreads(__tstate); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
22440 | Py_INCREF(Py_None); resultobj = Py_None; | |
22441 | { | |
22442 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22443 | resultobj = t_output_helper(resultobj,o); | |
22444 | } | |
22445 | { | |
22446 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22447 | resultobj = t_output_helper(resultobj,o); | |
22448 | } | |
22449 | return resultobj; | |
22450 | fail: | |
22451 | return NULL; | |
22452 | } | |
22453 | ||
22454 | ||
22455 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22456 | PyObject *resultobj; | |
22457 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22458 | int arg2 ; | |
22459 | int arg3 ; | |
22460 | PyObject * obj0 = 0 ; | |
22461 | PyObject * obj1 = 0 ; | |
22462 | PyObject * obj2 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22470 | arg2 = (int) SWIG_AsInt(obj1); | |
22471 | if (PyErr_Occurred()) SWIG_fail; | |
22472 | arg3 = (int) SWIG_AsInt(obj2); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | { | |
22475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22476 | (arg1)->SetPPIPrinter(arg2,arg3); | |
22477 | ||
22478 | wxPyEndAllowThreads(__tstate); | |
22479 | if (PyErr_Occurred()) SWIG_fail; | |
22480 | } | |
22481 | Py_INCREF(Py_None); resultobj = Py_None; | |
22482 | return resultobj; | |
22483 | fail: | |
22484 | return NULL; | |
22485 | } | |
22486 | ||
22487 | ||
22488 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22489 | PyObject *resultobj; | |
22490 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22491 | int *arg2 = (int *) 0 ; | |
22492 | int *arg3 = (int *) 0 ; | |
22493 | int temp2 ; | |
22494 | int temp3 ; | |
22495 | PyObject * obj0 = 0 ; | |
22496 | char *kwnames[] = { | |
22497 | (char *) "self", NULL | |
22498 | }; | |
22499 | ||
22500 | arg2 = &temp2; | |
22501 | arg3 = &temp3; | |
22502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
22503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22505 | { | |
22506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22507 | (arg1)->GetPPIPrinter(arg2,arg3); | |
22508 | ||
22509 | wxPyEndAllowThreads(__tstate); | |
22510 | if (PyErr_Occurred()) SWIG_fail; | |
22511 | } | |
22512 | Py_INCREF(Py_None); resultobj = Py_None; | |
22513 | { | |
22514 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22515 | resultobj = t_output_helper(resultobj,o); | |
22516 | } | |
22517 | { | |
22518 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22519 | resultobj = t_output_helper(resultobj,o); | |
22520 | } | |
22521 | return resultobj; | |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
22527 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22528 | PyObject *resultobj; | |
22529 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22530 | bool result; | |
22531 | PyObject * obj0 = 0 ; | |
22532 | char *kwnames[] = { | |
22533 | (char *) "self", NULL | |
22534 | }; | |
22535 | ||
22536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
22537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22539 | { | |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | result = (bool)(arg1)->IsPreview(); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | { | |
22547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22548 | } | |
22549 | return resultobj; | |
22550 | fail: | |
22551 | return NULL; | |
22552 | } | |
22553 | ||
22554 | ||
22555 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22556 | PyObject *resultobj; | |
22557 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22558 | bool arg2 ; | |
22559 | PyObject * obj0 = 0 ; | |
22560 | PyObject * obj1 = 0 ; | |
22561 | char *kwnames[] = { | |
22562 | (char *) "self",(char *) "p", NULL | |
22563 | }; | |
22564 | ||
22565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
22566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22568 | arg2 = (bool) SWIG_AsBool(obj1); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | { | |
22571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22572 | (arg1)->SetIsPreview(arg2); | |
22573 | ||
22574 | wxPyEndAllowThreads(__tstate); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | Py_INCREF(Py_None); resultobj = Py_None; | |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
22584 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22585 | PyObject *resultobj; | |
22586 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22587 | int arg2 ; | |
22588 | int arg3 ; | |
22589 | bool result; | |
22590 | PyObject * obj0 = 0 ; | |
22591 | PyObject * obj1 = 0 ; | |
22592 | PyObject * obj2 = 0 ; | |
22593 | char *kwnames[] = { | |
22594 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
22595 | }; | |
22596 | ||
22597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22600 | arg2 = (int) SWIG_AsInt(obj1); | |
22601 | if (PyErr_Occurred()) SWIG_fail; | |
22602 | arg3 = (int) SWIG_AsInt(obj2); | |
22603 | if (PyErr_Occurred()) SWIG_fail; | |
22604 | { | |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22606 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
22607 | ||
22608 | wxPyEndAllowThreads(__tstate); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
22611 | { | |
22612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22613 | } | |
22614 | return resultobj; | |
22615 | fail: | |
22616 | return NULL; | |
22617 | } | |
22618 | ||
22619 | ||
22620 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22621 | PyObject *resultobj; | |
22622 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22623 | PyObject * obj0 = 0 ; | |
22624 | char *kwnames[] = { | |
22625 | (char *) "self", NULL | |
22626 | }; | |
22627 | ||
22628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
22629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22631 | { | |
22632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22633 | (arg1)->base_OnEndDocument(); | |
22634 | ||
22635 | wxPyEndAllowThreads(__tstate); | |
22636 | if (PyErr_Occurred()) SWIG_fail; | |
22637 | } | |
22638 | Py_INCREF(Py_None); resultobj = Py_None; | |
22639 | return resultobj; | |
22640 | fail: | |
22641 | return NULL; | |
22642 | } | |
22643 | ||
22644 | ||
22645 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22646 | PyObject *resultobj; | |
22647 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22648 | PyObject * obj0 = 0 ; | |
22649 | char *kwnames[] = { | |
22650 | (char *) "self", NULL | |
22651 | }; | |
22652 | ||
22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
22654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22656 | { | |
22657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22658 | (arg1)->base_OnBeginPrinting(); | |
22659 | ||
22660 | wxPyEndAllowThreads(__tstate); | |
22661 | if (PyErr_Occurred()) SWIG_fail; | |
22662 | } | |
22663 | Py_INCREF(Py_None); resultobj = Py_None; | |
22664 | return resultobj; | |
22665 | fail: | |
22666 | return NULL; | |
22667 | } | |
22668 | ||
22669 | ||
22670 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22671 | PyObject *resultobj; | |
22672 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22673 | PyObject * obj0 = 0 ; | |
22674 | char *kwnames[] = { | |
22675 | (char *) "self", NULL | |
22676 | }; | |
22677 | ||
22678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
22679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22681 | { | |
22682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22683 | (arg1)->base_OnEndPrinting(); | |
22684 | ||
22685 | wxPyEndAllowThreads(__tstate); | |
22686 | if (PyErr_Occurred()) SWIG_fail; | |
22687 | } | |
22688 | Py_INCREF(Py_None); resultobj = Py_None; | |
22689 | return resultobj; | |
22690 | fail: | |
22691 | return NULL; | |
22692 | } | |
22693 | ||
22694 | ||
22695 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22696 | PyObject *resultobj; | |
22697 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22698 | PyObject * obj0 = 0 ; | |
22699 | char *kwnames[] = { | |
22700 | (char *) "self", NULL | |
22701 | }; | |
22702 | ||
22703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
22704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22706 | { | |
22707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22708 | (arg1)->base_OnPreparePrinting(); | |
22709 | ||
22710 | wxPyEndAllowThreads(__tstate); | |
22711 | if (PyErr_Occurred()) SWIG_fail; | |
22712 | } | |
22713 | Py_INCREF(Py_None); resultobj = Py_None; | |
22714 | return resultobj; | |
22715 | fail: | |
22716 | return NULL; | |
22717 | } | |
22718 | ||
22719 | ||
22720 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22721 | PyObject *resultobj; | |
22722 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22723 | int arg2 ; | |
22724 | bool result; | |
22725 | PyObject * obj0 = 0 ; | |
22726 | PyObject * obj1 = 0 ; | |
22727 | char *kwnames[] = { | |
22728 | (char *) "self",(char *) "page", NULL | |
22729 | }; | |
22730 | ||
22731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
22732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22734 | arg2 = (int) SWIG_AsInt(obj1); | |
22735 | if (PyErr_Occurred()) SWIG_fail; | |
22736 | { | |
22737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22738 | result = (bool)(arg1)->base_HasPage(arg2); | |
22739 | ||
22740 | wxPyEndAllowThreads(__tstate); | |
22741 | if (PyErr_Occurred()) SWIG_fail; | |
22742 | } | |
22743 | { | |
22744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22745 | } | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
22752 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22753 | PyObject *resultobj; | |
22754 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22755 | int *arg2 = (int *) 0 ; | |
22756 | int *arg3 = (int *) 0 ; | |
22757 | int *arg4 = (int *) 0 ; | |
22758 | int *arg5 = (int *) 0 ; | |
22759 | int temp2 ; | |
22760 | int temp3 ; | |
22761 | int temp4 ; | |
22762 | int temp5 ; | |
22763 | PyObject * obj0 = 0 ; | |
22764 | char *kwnames[] = { | |
22765 | (char *) "self", NULL | |
22766 | }; | |
22767 | ||
22768 | arg2 = &temp2; | |
22769 | arg3 = &temp3; | |
22770 | arg4 = &temp4; | |
22771 | arg5 = &temp5; | |
22772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
22773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22775 | { | |
22776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22777 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
22778 | ||
22779 | wxPyEndAllowThreads(__tstate); | |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
22781 | } | |
22782 | Py_INCREF(Py_None); resultobj = Py_None; | |
22783 | { | |
22784 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22785 | resultobj = t_output_helper(resultobj,o); | |
22786 | } | |
22787 | { | |
22788 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22789 | resultobj = t_output_helper(resultobj,o); | |
22790 | } | |
22791 | { | |
22792 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22793 | resultobj = t_output_helper(resultobj,o); | |
22794 | } | |
22795 | { | |
22796 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22797 | resultobj = t_output_helper(resultobj,o); | |
22798 | } | |
22799 | return resultobj; | |
22800 | fail: | |
22801 | return NULL; | |
22802 | } | |
22803 | ||
22804 | ||
22805 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
22806 | PyObject *obj; | |
22807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22808 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
22809 | Py_INCREF(obj); | |
22810 | return Py_BuildValue((char *)""); | |
22811 | } | |
22812 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22813 | PyObject *resultobj; | |
22814 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22815 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22816 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22817 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22818 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22819 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22820 | long arg5 = (long) 0 ; | |
22821 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
22822 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22823 | wxPreviewCanvas *result; | |
22824 | wxPoint temp3 ; | |
22825 | wxSize temp4 ; | |
22826 | bool temp6 = False ; | |
22827 | PyObject * obj0 = 0 ; | |
22828 | PyObject * obj1 = 0 ; | |
22829 | PyObject * obj2 = 0 ; | |
22830 | PyObject * obj3 = 0 ; | |
22831 | PyObject * obj4 = 0 ; | |
22832 | PyObject * obj5 = 0 ; | |
22833 | char *kwnames[] = { | |
22834 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22835 | }; | |
22836 | ||
22837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22840 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22842 | if (obj2) { | |
22843 | { | |
22844 | arg3 = &temp3; | |
22845 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22846 | } | |
22847 | } | |
22848 | if (obj3) { | |
22849 | { | |
22850 | arg4 = &temp4; | |
22851 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22852 | } | |
22853 | } | |
22854 | if (obj4) { | |
22855 | arg5 = (long) SWIG_AsLong(obj4); | |
22856 | if (PyErr_Occurred()) SWIG_fail; | |
22857 | } | |
22858 | if (obj5) { | |
22859 | { | |
22860 | arg6 = wxString_in_helper(obj5); | |
22861 | if (arg6 == NULL) SWIG_fail; | |
22862 | temp6 = True; | |
22863 | } | |
22864 | } | |
22865 | { | |
0439c23b | 22866 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22868 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22869 | ||
22870 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22871 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22872 | } |
22873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22874 | { | |
22875 | if (temp6) | |
22876 | delete arg6; | |
22877 | } | |
22878 | return resultobj; | |
22879 | fail: | |
22880 | { | |
22881 | if (temp6) | |
22882 | delete arg6; | |
22883 | } | |
22884 | return NULL; | |
22885 | } | |
22886 | ||
22887 | ||
22888 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22889 | PyObject *obj; | |
22890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22891 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22892 | Py_INCREF(obj); | |
22893 | return Py_BuildValue((char *)""); | |
22894 | } | |
22895 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22896 | PyObject *resultobj; | |
22897 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22898 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22899 | wxString *arg3 = 0 ; | |
22900 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22901 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22902 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22903 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22904 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22905 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22906 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22907 | wxPreviewFrame *result; | |
22908 | bool temp3 = False ; | |
22909 | wxPoint temp4 ; | |
22910 | wxSize temp5 ; | |
22911 | bool temp7 = False ; | |
22912 | PyObject * obj0 = 0 ; | |
22913 | PyObject * obj1 = 0 ; | |
22914 | PyObject * obj2 = 0 ; | |
22915 | PyObject * obj3 = 0 ; | |
22916 | PyObject * obj4 = 0 ; | |
22917 | PyObject * obj5 = 0 ; | |
22918 | PyObject * obj6 = 0 ; | |
22919 | char *kwnames[] = { | |
22920 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22921 | }; | |
22922 | ||
22923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22928 | { | |
22929 | arg3 = wxString_in_helper(obj2); | |
22930 | if (arg3 == NULL) SWIG_fail; | |
22931 | temp3 = True; | |
22932 | } | |
22933 | if (obj3) { | |
22934 | { | |
22935 | arg4 = &temp4; | |
22936 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22937 | } | |
22938 | } | |
22939 | if (obj4) { | |
22940 | { | |
22941 | arg5 = &temp5; | |
22942 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22943 | } | |
22944 | } | |
22945 | if (obj5) { | |
22946 | arg6 = (long) SWIG_AsLong(obj5); | |
22947 | if (PyErr_Occurred()) SWIG_fail; | |
22948 | } | |
22949 | if (obj6) { | |
22950 | { | |
22951 | arg7 = wxString_in_helper(obj6); | |
22952 | if (arg7 == NULL) SWIG_fail; | |
22953 | temp7 = True; | |
22954 | } | |
22955 | } | |
22956 | { | |
0439c23b | 22957 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22959 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22960 | ||
22961 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22962 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22963 | } |
22964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
22965 | { | |
22966 | if (temp3) | |
22967 | delete arg3; | |
22968 | } | |
22969 | { | |
22970 | if (temp7) | |
22971 | delete arg7; | |
22972 | } | |
22973 | return resultobj; | |
22974 | fail: | |
22975 | { | |
22976 | if (temp3) | |
22977 | delete arg3; | |
22978 | } | |
22979 | { | |
22980 | if (temp7) | |
22981 | delete arg7; | |
22982 | } | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
22987 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22988 | PyObject *resultobj; | |
22989 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
22990 | PyObject * obj0 = 0 ; | |
22991 | char *kwnames[] = { | |
22992 | (char *) "self", NULL | |
22993 | }; | |
22994 | ||
22995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
22996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
22997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22998 | { | |
22999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23000 | (arg1)->Initialize(); | |
23001 | ||
23002 | wxPyEndAllowThreads(__tstate); | |
23003 | if (PyErr_Occurred()) SWIG_fail; | |
23004 | } | |
23005 | Py_INCREF(Py_None); resultobj = Py_None; | |
23006 | return resultobj; | |
23007 | fail: | |
23008 | return NULL; | |
23009 | } | |
23010 | ||
23011 | ||
23012 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23013 | PyObject *resultobj; | |
23014 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23015 | PyObject * obj0 = 0 ; | |
23016 | char *kwnames[] = { | |
23017 | (char *) "self", NULL | |
23018 | }; | |
23019 | ||
23020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
23021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23023 | { | |
23024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23025 | (arg1)->CreateControlBar(); | |
23026 | ||
23027 | wxPyEndAllowThreads(__tstate); | |
23028 | if (PyErr_Occurred()) SWIG_fail; | |
23029 | } | |
23030 | Py_INCREF(Py_None); resultobj = Py_None; | |
23031 | return resultobj; | |
23032 | fail: | |
23033 | return NULL; | |
23034 | } | |
23035 | ||
23036 | ||
23037 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23038 | PyObject *resultobj; | |
23039 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23040 | PyObject * obj0 = 0 ; | |
23041 | char *kwnames[] = { | |
23042 | (char *) "self", NULL | |
23043 | }; | |
23044 | ||
23045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
23046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23048 | { | |
23049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23050 | (arg1)->CreateCanvas(); | |
23051 | ||
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | Py_INCREF(Py_None); resultobj = Py_None; | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
23062 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23063 | PyObject *resultobj; | |
23064 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23065 | wxPreviewControlBar *result; | |
23066 | PyObject * obj0 = 0 ; | |
23067 | char *kwnames[] = { | |
23068 | (char *) "self", NULL | |
23069 | }; | |
23070 | ||
23071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
23072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23074 | { | |
23075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23076 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
23077 | ||
23078 | wxPyEndAllowThreads(__tstate); | |
23079 | if (PyErr_Occurred()) SWIG_fail; | |
23080 | } | |
23081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
23082 | return resultobj; | |
23083 | fail: | |
23084 | return NULL; | |
23085 | } | |
23086 | ||
23087 | ||
23088 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
23089 | PyObject *obj; | |
23090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23091 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
23092 | Py_INCREF(obj); | |
23093 | return Py_BuildValue((char *)""); | |
23094 | } | |
23095 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23096 | PyObject *resultobj; | |
23097 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23098 | long arg2 ; | |
23099 | wxWindow *arg3 = (wxWindow *) 0 ; | |
23100 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23101 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23102 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23103 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23104 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
23105 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
23106 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23107 | wxPreviewControlBar *result; | |
23108 | wxPoint temp4 ; | |
23109 | wxSize temp5 ; | |
23110 | bool temp7 = False ; | |
23111 | PyObject * obj0 = 0 ; | |
23112 | PyObject * obj1 = 0 ; | |
23113 | PyObject * obj2 = 0 ; | |
23114 | PyObject * obj3 = 0 ; | |
23115 | PyObject * obj4 = 0 ; | |
23116 | PyObject * obj5 = 0 ; | |
23117 | PyObject * obj6 = 0 ; | |
23118 | char *kwnames[] = { | |
23119 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
23120 | }; | |
23121 | ||
23122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23125 | arg2 = (long) SWIG_AsLong(obj1); | |
23126 | if (PyErr_Occurred()) SWIG_fail; | |
23127 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
23128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23129 | if (obj3) { | |
23130 | { | |
23131 | arg4 = &temp4; | |
23132 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23133 | } | |
23134 | } | |
23135 | if (obj4) { | |
23136 | { | |
23137 | arg5 = &temp5; | |
23138 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23139 | } | |
23140 | } | |
23141 | if (obj5) { | |
23142 | arg6 = (long) SWIG_AsLong(obj5); | |
23143 | if (PyErr_Occurred()) SWIG_fail; | |
23144 | } | |
23145 | if (obj6) { | |
23146 | { | |
23147 | arg7 = wxString_in_helper(obj6); | |
23148 | if (arg7 == NULL) SWIG_fail; | |
23149 | temp7 = True; | |
23150 | } | |
23151 | } | |
23152 | { | |
0439c23b | 23153 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23155 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
23156 | ||
23157 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23158 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23159 | } |
23160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
23161 | { | |
23162 | if (temp7) | |
23163 | delete arg7; | |
23164 | } | |
23165 | return resultobj; | |
23166 | fail: | |
23167 | { | |
23168 | if (temp7) | |
23169 | delete arg7; | |
23170 | } | |
23171 | return NULL; | |
23172 | } | |
23173 | ||
23174 | ||
23175 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23176 | PyObject *resultobj; | |
23177 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23178 | int result; | |
23179 | PyObject * obj0 = 0 ; | |
23180 | char *kwnames[] = { | |
23181 | (char *) "self", NULL | |
23182 | }; | |
23183 | ||
23184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
23185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23187 | { | |
23188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23189 | result = (int)(arg1)->GetZoomControl(); | |
23190 | ||
23191 | wxPyEndAllowThreads(__tstate); | |
23192 | if (PyErr_Occurred()) SWIG_fail; | |
23193 | } | |
23194 | resultobj = SWIG_FromInt((int)result); | |
23195 | return resultobj; | |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23202 | PyObject *resultobj; | |
23203 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23204 | int arg2 ; | |
23205 | PyObject * obj0 = 0 ; | |
23206 | PyObject * obj1 = 0 ; | |
23207 | char *kwnames[] = { | |
23208 | (char *) "self",(char *) "zoom", NULL | |
23209 | }; | |
23210 | ||
23211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
23212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23214 | arg2 = (int) SWIG_AsInt(obj1); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
23216 | { | |
23217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23218 | (arg1)->SetZoomControl(arg2); | |
23219 | ||
23220 | wxPyEndAllowThreads(__tstate); | |
23221 | if (PyErr_Occurred()) SWIG_fail; | |
23222 | } | |
23223 | Py_INCREF(Py_None); resultobj = Py_None; | |
23224 | return resultobj; | |
23225 | fail: | |
23226 | return NULL; | |
23227 | } | |
23228 | ||
23229 | ||
23230 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23231 | PyObject *resultobj; | |
23232 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23233 | wxPrintPreview *result; | |
23234 | PyObject * obj0 = 0 ; | |
23235 | char *kwnames[] = { | |
23236 | (char *) "self", NULL | |
23237 | }; | |
23238 | ||
23239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
23240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23242 | { | |
23243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23244 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
23245 | ||
23246 | wxPyEndAllowThreads(__tstate); | |
23247 | if (PyErr_Occurred()) SWIG_fail; | |
23248 | } | |
23249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
23250 | return resultobj; | |
23251 | fail: | |
23252 | return NULL; | |
23253 | } | |
23254 | ||
23255 | ||
23256 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23257 | PyObject *resultobj; | |
23258 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | char *kwnames[] = { | |
23261 | (char *) "self", NULL | |
23262 | }; | |
23263 | ||
23264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
23265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23267 | { | |
23268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23269 | (arg1)->OnNext(); | |
23270 | ||
23271 | wxPyEndAllowThreads(__tstate); | |
23272 | if (PyErr_Occurred()) SWIG_fail; | |
23273 | } | |
23274 | Py_INCREF(Py_None); resultobj = Py_None; | |
23275 | return resultobj; | |
23276 | fail: | |
23277 | return NULL; | |
23278 | } | |
23279 | ||
23280 | ||
23281 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23282 | PyObject *resultobj; | |
23283 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23284 | PyObject * obj0 = 0 ; | |
23285 | char *kwnames[] = { | |
23286 | (char *) "self", NULL | |
23287 | }; | |
23288 | ||
23289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
23290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23292 | { | |
23293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23294 | (arg1)->OnPrevious(); | |
23295 | ||
23296 | wxPyEndAllowThreads(__tstate); | |
23297 | if (PyErr_Occurred()) SWIG_fail; | |
23298 | } | |
23299 | Py_INCREF(Py_None); resultobj = Py_None; | |
23300 | return resultobj; | |
23301 | fail: | |
23302 | return NULL; | |
23303 | } | |
23304 | ||
23305 | ||
23306 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23307 | PyObject *resultobj; | |
23308 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23309 | PyObject * obj0 = 0 ; | |
23310 | char *kwnames[] = { | |
23311 | (char *) "self", NULL | |
23312 | }; | |
23313 | ||
23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
23315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23317 | { | |
23318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23319 | (arg1)->OnFirst(); | |
23320 | ||
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
23324 | Py_INCREF(Py_None); resultobj = Py_None; | |
23325 | return resultobj; | |
23326 | fail: | |
23327 | return NULL; | |
23328 | } | |
23329 | ||
23330 | ||
23331 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23332 | PyObject *resultobj; | |
23333 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23334 | PyObject * obj0 = 0 ; | |
23335 | char *kwnames[] = { | |
23336 | (char *) "self", NULL | |
23337 | }; | |
23338 | ||
23339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
23340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23342 | { | |
23343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23344 | (arg1)->OnLast(); | |
23345 | ||
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
23349 | Py_INCREF(Py_None); resultobj = Py_None; | |
23350 | return resultobj; | |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
23356 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23357 | PyObject *resultobj; | |
23358 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23359 | PyObject * obj0 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
23365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23367 | { | |
23368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23369 | (arg1)->OnGoto(); | |
23370 | ||
23371 | wxPyEndAllowThreads(__tstate); | |
23372 | if (PyErr_Occurred()) SWIG_fail; | |
23373 | } | |
23374 | Py_INCREF(Py_None); resultobj = Py_None; | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
23382 | PyObject *obj; | |
23383 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23384 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
23385 | Py_INCREF(obj); | |
23386 | return Py_BuildValue((char *)""); | |
23387 | } | |
23388 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23389 | PyObject *resultobj; | |
23390 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23391 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23392 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23393 | wxPrintPreview *result; | |
23394 | PyObject * obj0 = 0 ; | |
23395 | PyObject * obj1 = 0 ; | |
23396 | PyObject * obj2 = 0 ; | |
23397 | ||
23398 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23403 | if (obj2) { | |
23404 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23406 | } | |
23407 | { | |
0439c23b | 23408 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23410 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
23411 | ||
23412 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23413 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23414 | } |
23415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
23416 | return resultobj; | |
23417 | fail: | |
23418 | return NULL; | |
23419 | } | |
23420 | ||
23421 | ||
23422 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23423 | PyObject *resultobj; | |
23424 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23425 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23426 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23427 | wxPrintPreview *result; | |
23428 | PyObject * obj0 = 0 ; | |
23429 | PyObject * obj1 = 0 ; | |
23430 | PyObject * obj2 = 0 ; | |
23431 | ||
23432 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23435 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23437 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23439 | { | |
0439c23b | 23440 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23442 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23445 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23446 | } |
23447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
23448 | return resultobj; | |
23449 | fail: | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
23454 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
23455 | int argc; | |
23456 | PyObject *argv[4]; | |
23457 | int ii; | |
23458 | ||
23459 | argc = PyObject_Length(args); | |
23460 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23461 | argv[ii] = PyTuple_GetItem(args,ii); | |
23462 | } | |
23463 | if ((argc >= 2) && (argc <= 3)) { | |
23464 | int _v; | |
23465 | { | |
23466 | void *ptr; | |
23467 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23468 | _v = 0; | |
23469 | PyErr_Clear(); | |
23470 | } else { | |
23471 | _v = 1; | |
23472 | } | |
23473 | } | |
23474 | if (_v) { | |
23475 | { | |
23476 | void *ptr; | |
23477 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23478 | _v = 0; | |
23479 | PyErr_Clear(); | |
23480 | } else { | |
23481 | _v = 1; | |
23482 | } | |
23483 | } | |
23484 | if (_v) { | |
23485 | if (argc <= 2) { | |
23486 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23487 | } | |
23488 | { | |
23489 | void *ptr; | |
23490 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23491 | _v = 0; | |
23492 | PyErr_Clear(); | |
23493 | } else { | |
23494 | _v = 1; | |
23495 | } | |
23496 | } | |
23497 | if (_v) { | |
23498 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23499 | } | |
23500 | } | |
23501 | } | |
23502 | } | |
23503 | if (argc == 3) { | |
23504 | int _v; | |
23505 | { | |
23506 | void *ptr; | |
23507 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23508 | _v = 0; | |
23509 | PyErr_Clear(); | |
23510 | } else { | |
23511 | _v = 1; | |
23512 | } | |
23513 | } | |
23514 | if (_v) { | |
23515 | { | |
23516 | void *ptr; | |
23517 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23518 | _v = 0; | |
23519 | PyErr_Clear(); | |
23520 | } else { | |
23521 | _v = 1; | |
23522 | } | |
23523 | } | |
23524 | if (_v) { | |
23525 | { | |
23526 | void *ptr; | |
23527 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23528 | _v = 0; | |
23529 | PyErr_Clear(); | |
23530 | } else { | |
23531 | _v = 1; | |
23532 | } | |
23533 | } | |
23534 | if (_v) { | |
23535 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
23536 | } | |
23537 | } | |
23538 | } | |
23539 | } | |
23540 | ||
23541 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
23542 | return NULL; | |
23543 | } | |
23544 | ||
23545 | ||
23546 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23547 | PyObject *resultobj; | |
23548 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23549 | int arg2 ; | |
23550 | bool result; | |
23551 | PyObject * obj0 = 0 ; | |
23552 | PyObject * obj1 = 0 ; | |
23553 | char *kwnames[] = { | |
23554 | (char *) "self",(char *) "pageNum", NULL | |
23555 | }; | |
23556 | ||
23557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23560 | arg2 = (int) SWIG_AsInt(obj1); | |
23561 | if (PyErr_Occurred()) SWIG_fail; | |
23562 | { | |
23563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23564 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
23565 | ||
23566 | wxPyEndAllowThreads(__tstate); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
23568 | } | |
23569 | { | |
23570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23571 | } | |
23572 | return resultobj; | |
23573 | fail: | |
23574 | return NULL; | |
23575 | } | |
23576 | ||
23577 | ||
23578 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23579 | PyObject *resultobj; | |
23580 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23581 | int result; | |
23582 | PyObject * obj0 = 0 ; | |
23583 | char *kwnames[] = { | |
23584 | (char *) "self", NULL | |
23585 | }; | |
23586 | ||
23587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
23588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23590 | { | |
23591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23592 | result = (int)(arg1)->GetCurrentPage(); | |
23593 | ||
23594 | wxPyEndAllowThreads(__tstate); | |
23595 | if (PyErr_Occurred()) SWIG_fail; | |
23596 | } | |
23597 | resultobj = SWIG_FromInt((int)result); | |
23598 | return resultobj; | |
23599 | fail: | |
23600 | return NULL; | |
23601 | } | |
23602 | ||
23603 | ||
23604 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23605 | PyObject *resultobj; | |
23606 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23607 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23608 | PyObject * obj0 = 0 ; | |
23609 | PyObject * obj1 = 0 ; | |
23610 | char *kwnames[] = { | |
23611 | (char *) "self",(char *) "printout", NULL | |
23612 | }; | |
23613 | ||
23614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
23615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23619 | { | |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | (arg1)->SetPrintout(arg2); | |
23622 | ||
23623 | wxPyEndAllowThreads(__tstate); | |
23624 | if (PyErr_Occurred()) SWIG_fail; | |
23625 | } | |
23626 | Py_INCREF(Py_None); resultobj = Py_None; | |
23627 | return resultobj; | |
23628 | fail: | |
23629 | return NULL; | |
23630 | } | |
23631 | ||
23632 | ||
23633 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23634 | PyObject *resultobj; | |
23635 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23636 | wxPyPrintout *result; | |
23637 | PyObject * obj0 = 0 ; | |
23638 | char *kwnames[] = { | |
23639 | (char *) "self", NULL | |
23640 | }; | |
23641 | ||
23642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
23643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23645 | { | |
23646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23647 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
23648 | ||
23649 | wxPyEndAllowThreads(__tstate); | |
23650 | if (PyErr_Occurred()) SWIG_fail; | |
23651 | } | |
23652 | { | |
412d302d | 23653 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23654 | } |
23655 | return resultobj; | |
23656 | fail: | |
23657 | return NULL; | |
23658 | } | |
23659 | ||
23660 | ||
23661 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23662 | PyObject *resultobj; | |
23663 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23664 | wxPyPrintout *result; | |
23665 | PyObject * obj0 = 0 ; | |
23666 | char *kwnames[] = { | |
23667 | (char *) "self", NULL | |
23668 | }; | |
23669 | ||
23670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
23671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23673 | { | |
23674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23675 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
23676 | ||
23677 | wxPyEndAllowThreads(__tstate); | |
23678 | if (PyErr_Occurred()) SWIG_fail; | |
23679 | } | |
23680 | { | |
412d302d | 23681 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23682 | } |
23683 | return resultobj; | |
23684 | fail: | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
23689 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj; | |
23691 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23692 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23693 | PyObject * obj0 = 0 ; | |
23694 | PyObject * obj1 = 0 ; | |
23695 | char *kwnames[] = { | |
23696 | (char *) "self",(char *) "frame", NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
23700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23704 | { | |
23705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23706 | (arg1)->SetFrame(arg2); | |
23707 | ||
23708 | wxPyEndAllowThreads(__tstate); | |
23709 | if (PyErr_Occurred()) SWIG_fail; | |
23710 | } | |
23711 | Py_INCREF(Py_None); resultobj = Py_None; | |
23712 | return resultobj; | |
23713 | fail: | |
23714 | return NULL; | |
23715 | } | |
23716 | ||
23717 | ||
23718 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23719 | PyObject *resultobj; | |
23720 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23721 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23722 | PyObject * obj0 = 0 ; | |
23723 | PyObject * obj1 = 0 ; | |
23724 | char *kwnames[] = { | |
23725 | (char *) "self",(char *) "canvas", NULL | |
23726 | }; | |
23727 | ||
23728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23733 | { | |
23734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23735 | (arg1)->SetCanvas(arg2); | |
23736 | ||
23737 | wxPyEndAllowThreads(__tstate); | |
23738 | if (PyErr_Occurred()) SWIG_fail; | |
23739 | } | |
23740 | Py_INCREF(Py_None); resultobj = Py_None; | |
23741 | return resultobj; | |
23742 | fail: | |
23743 | return NULL; | |
23744 | } | |
23745 | ||
23746 | ||
23747 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23748 | PyObject *resultobj; | |
23749 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23750 | wxFrame *result; | |
23751 | PyObject * obj0 = 0 ; | |
23752 | char *kwnames[] = { | |
23753 | (char *) "self", NULL | |
23754 | }; | |
23755 | ||
23756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
23757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23759 | { | |
23760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23761 | result = (wxFrame *)(arg1)->GetFrame(); | |
23762 | ||
23763 | wxPyEndAllowThreads(__tstate); | |
23764 | if (PyErr_Occurred()) SWIG_fail; | |
23765 | } | |
23766 | { | |
412d302d | 23767 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23768 | } |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23776 | PyObject *resultobj; | |
23777 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23778 | wxPreviewCanvas *result; | |
23779 | PyObject * obj0 = 0 ; | |
23780 | char *kwnames[] = { | |
23781 | (char *) "self", NULL | |
23782 | }; | |
23783 | ||
23784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
23785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23787 | { | |
23788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23789 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
23790 | ||
23791 | wxPyEndAllowThreads(__tstate); | |
23792 | if (PyErr_Occurred()) SWIG_fail; | |
23793 | } | |
23794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
23795 | return resultobj; | |
23796 | fail: | |
23797 | return NULL; | |
23798 | } | |
23799 | ||
23800 | ||
23801 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23802 | PyObject *resultobj; | |
23803 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23804 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23805 | wxDC *arg3 = 0 ; | |
23806 | bool result; | |
23807 | PyObject * obj0 = 0 ; | |
23808 | PyObject * obj1 = 0 ; | |
23809 | PyObject * obj2 = 0 ; | |
23810 | char *kwnames[] = { | |
23811 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23812 | }; | |
23813 | ||
23814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23819 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23821 | SWIG_fail; | |
23822 | if (arg3 == NULL) { | |
23823 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23824 | SWIG_fail; | |
23825 | } | |
23826 | { | |
23827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23828 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
23829 | ||
23830 | wxPyEndAllowThreads(__tstate); | |
23831 | if (PyErr_Occurred()) SWIG_fail; | |
23832 | } | |
23833 | { | |
23834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23835 | } | |
23836 | return resultobj; | |
23837 | fail: | |
23838 | return NULL; | |
23839 | } | |
23840 | ||
23841 | ||
23842 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23843 | PyObject *resultobj; | |
23844 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23845 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23846 | wxDC *arg3 = 0 ; | |
23847 | bool result; | |
23848 | PyObject * obj0 = 0 ; | |
23849 | PyObject * obj1 = 0 ; | |
23850 | PyObject * obj2 = 0 ; | |
23851 | char *kwnames[] = { | |
23852 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23853 | }; | |
23854 | ||
23855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23860 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23861 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23862 | SWIG_fail; | |
23863 | if (arg3 == NULL) { | |
23864 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23865 | SWIG_fail; | |
23866 | } | |
23867 | { | |
23868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23869 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23870 | ||
23871 | wxPyEndAllowThreads(__tstate); | |
23872 | if (PyErr_Occurred()) SWIG_fail; | |
23873 | } | |
23874 | { | |
23875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23876 | } | |
23877 | return resultobj; | |
23878 | fail: | |
23879 | return NULL; | |
23880 | } | |
23881 | ||
23882 | ||
23883 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23884 | PyObject *resultobj; | |
23885 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23886 | int arg2 ; | |
23887 | bool result; | |
23888 | PyObject * obj0 = 0 ; | |
23889 | PyObject * obj1 = 0 ; | |
23890 | char *kwnames[] = { | |
23891 | (char *) "self",(char *) "pageNum", NULL | |
23892 | }; | |
23893 | ||
23894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23897 | arg2 = (int) SWIG_AsInt(obj1); | |
23898 | if (PyErr_Occurred()) SWIG_fail; | |
23899 | { | |
23900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23901 | result = (bool)(arg1)->RenderPage(arg2); | |
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_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23916 | PyObject *resultobj; | |
23917 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23918 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23919 | PyObject * obj0 = 0 ; | |
23920 | PyObject * obj1 = 0 ; | |
23921 | char *kwnames[] = { | |
23922 | (char *) "self",(char *) "canvas", NULL | |
23923 | }; | |
23924 | ||
23925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23930 | { | |
23931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23932 | (arg1)->AdjustScrollbars(arg2); | |
23933 | ||
23934 | wxPyEndAllowThreads(__tstate); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
23937 | Py_INCREF(Py_None); resultobj = Py_None; | |
23938 | return resultobj; | |
23939 | fail: | |
23940 | return NULL; | |
23941 | } | |
23942 | ||
23943 | ||
23944 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23945 | PyObject *resultobj; | |
23946 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23947 | wxPrintDialogData *result; | |
23948 | PyObject * obj0 = 0 ; | |
23949 | char *kwnames[] = { | |
23950 | (char *) "self", NULL | |
23951 | }; | |
23952 | ||
23953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
23954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23956 | { | |
23957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23958 | { | |
23959 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
23960 | result = (wxPrintDialogData *) &_result_ref; | |
23961 | } | |
23962 | ||
23963 | wxPyEndAllowThreads(__tstate); | |
23964 | if (PyErr_Occurred()) SWIG_fail; | |
23965 | } | |
23966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
23970 | } | |
23971 | ||
23972 | ||
23973 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23974 | PyObject *resultobj; | |
23975 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23976 | int arg2 ; | |
23977 | PyObject * obj0 = 0 ; | |
23978 | PyObject * obj1 = 0 ; | |
23979 | char *kwnames[] = { | |
23980 | (char *) "self",(char *) "percent", NULL | |
23981 | }; | |
23982 | ||
23983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
23984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23986 | arg2 = (int) SWIG_AsInt(obj1); | |
23987 | if (PyErr_Occurred()) SWIG_fail; | |
23988 | { | |
23989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23990 | (arg1)->SetZoom(arg2); | |
23991 | ||
23992 | wxPyEndAllowThreads(__tstate); | |
23993 | if (PyErr_Occurred()) SWIG_fail; | |
23994 | } | |
23995 | Py_INCREF(Py_None); resultobj = Py_None; | |
23996 | return resultobj; | |
23997 | fail: | |
23998 | return NULL; | |
23999 | } | |
24000 | ||
24001 | ||
24002 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24003 | PyObject *resultobj; | |
24004 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24005 | int result; | |
24006 | PyObject * obj0 = 0 ; | |
24007 | char *kwnames[] = { | |
24008 | (char *) "self", NULL | |
24009 | }; | |
24010 | ||
24011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
24012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24014 | { | |
24015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24016 | result = (int)(arg1)->GetZoom(); | |
24017 | ||
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
24021 | resultobj = SWIG_FromInt((int)result); | |
24022 | return resultobj; | |
24023 | fail: | |
24024 | return NULL; | |
24025 | } | |
24026 | ||
24027 | ||
24028 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24029 | PyObject *resultobj; | |
24030 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24031 | int result; | |
24032 | PyObject * obj0 = 0 ; | |
24033 | char *kwnames[] = { | |
24034 | (char *) "self", NULL | |
24035 | }; | |
24036 | ||
24037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
24038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24040 | { | |
24041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24042 | result = (int)(arg1)->GetMaxPage(); | |
24043 | ||
24044 | wxPyEndAllowThreads(__tstate); | |
24045 | if (PyErr_Occurred()) SWIG_fail; | |
24046 | } | |
24047 | resultobj = SWIG_FromInt((int)result); | |
24048 | return resultobj; | |
24049 | fail: | |
24050 | return NULL; | |
24051 | } | |
24052 | ||
24053 | ||
24054 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24055 | PyObject *resultobj; | |
24056 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24057 | int result; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | char *kwnames[] = { | |
24060 | (char *) "self", NULL | |
24061 | }; | |
24062 | ||
24063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
24064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24066 | { | |
24067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24068 | result = (int)(arg1)->GetMinPage(); | |
24069 | ||
24070 | wxPyEndAllowThreads(__tstate); | |
24071 | if (PyErr_Occurred()) SWIG_fail; | |
24072 | } | |
24073 | resultobj = SWIG_FromInt((int)result); | |
24074 | return resultobj; | |
24075 | fail: | |
24076 | return NULL; | |
24077 | } | |
24078 | ||
24079 | ||
24080 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24081 | PyObject *resultobj; | |
24082 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24083 | bool result; | |
24084 | PyObject * obj0 = 0 ; | |
24085 | char *kwnames[] = { | |
24086 | (char *) "self", NULL | |
24087 | }; | |
24088 | ||
24089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
24090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24092 | { | |
24093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24094 | result = (bool)(arg1)->Ok(); | |
24095 | ||
24096 | wxPyEndAllowThreads(__tstate); | |
24097 | if (PyErr_Occurred()) SWIG_fail; | |
24098 | } | |
24099 | { | |
24100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24101 | } | |
24102 | return resultobj; | |
24103 | fail: | |
24104 | return NULL; | |
24105 | } | |
24106 | ||
24107 | ||
24108 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24109 | PyObject *resultobj; | |
24110 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24111 | bool arg2 ; | |
24112 | PyObject * obj0 = 0 ; | |
24113 | PyObject * obj1 = 0 ; | |
24114 | char *kwnames[] = { | |
24115 | (char *) "self",(char *) "ok", NULL | |
24116 | }; | |
24117 | ||
24118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
24119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24121 | arg2 = (bool) SWIG_AsBool(obj1); | |
24122 | if (PyErr_Occurred()) SWIG_fail; | |
24123 | { | |
24124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24125 | (arg1)->SetOk(arg2); | |
24126 | ||
24127 | wxPyEndAllowThreads(__tstate); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | Py_INCREF(Py_None); resultobj = Py_None; | |
24131 | return resultobj; | |
24132 | fail: | |
24133 | return NULL; | |
24134 | } | |
24135 | ||
24136 | ||
24137 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24138 | PyObject *resultobj; | |
24139 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24140 | bool arg2 ; | |
24141 | bool result; | |
24142 | PyObject * obj0 = 0 ; | |
24143 | PyObject * obj1 = 0 ; | |
24144 | char *kwnames[] = { | |
24145 | (char *) "self",(char *) "interactive", NULL | |
24146 | }; | |
24147 | ||
24148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
24149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24151 | arg2 = (bool) SWIG_AsBool(obj1); | |
24152 | if (PyErr_Occurred()) SWIG_fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | result = (bool)(arg1)->Print(arg2); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | { | |
24161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24162 | } | |
24163 | return resultobj; | |
24164 | fail: | |
24165 | return NULL; | |
24166 | } | |
24167 | ||
24168 | ||
24169 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24170 | PyObject *resultobj; | |
24171 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24172 | PyObject * obj0 = 0 ; | |
24173 | char *kwnames[] = { | |
24174 | (char *) "self", NULL | |
24175 | }; | |
24176 | ||
24177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
24178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24180 | { | |
24181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24182 | (arg1)->DetermineScaling(); | |
24183 | ||
24184 | wxPyEndAllowThreads(__tstate); | |
24185 | if (PyErr_Occurred()) SWIG_fail; | |
24186 | } | |
24187 | Py_INCREF(Py_None); resultobj = Py_None; | |
24188 | return resultobj; | |
24189 | fail: | |
24190 | return NULL; | |
24191 | } | |
24192 | ||
24193 | ||
24194 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24195 | PyObject *obj; | |
24196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24197 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
24198 | Py_INCREF(obj); | |
24199 | return Py_BuildValue((char *)""); | |
24200 | } | |
24201 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
24202 | PyObject *resultobj; | |
24203 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
24204 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
24205 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
24206 | wxPyPrintPreview *result; | |
24207 | PyObject * obj0 = 0 ; | |
24208 | PyObject * obj1 = 0 ; | |
24209 | PyObject * obj2 = 0 ; | |
24210 | ||
24211 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
24212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
24213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24214 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
24215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24216 | if (obj2) { | |
24217 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
24218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24219 | } | |
24220 | { | |
0439c23b | 24221 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24223 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
24224 | ||
24225 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24226 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24227 | } |
24228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
24229 | return resultobj; | |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
24235 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
24236 | PyObject *resultobj; | |
24237 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
24238 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
24239 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
24240 | wxPyPrintPreview *result; | |
24241 | PyObject * obj0 = 0 ; | |
24242 | PyObject * obj1 = 0 ; | |
24243 | PyObject * obj2 = 0 ; | |
24244 | ||
24245 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
24246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
24247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
24249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24250 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
24251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24252 | { | |
0439c23b | 24253 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24255 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
24256 | ||
24257 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24258 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24259 | } |
24260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
24261 | return resultobj; | |
24262 | fail: | |
24263 | return NULL; | |
24264 | } | |
24265 | ||
24266 | ||
24267 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
24268 | int argc; | |
24269 | PyObject *argv[4]; | |
24270 | int ii; | |
24271 | ||
24272 | argc = PyObject_Length(args); | |
24273 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
24274 | argv[ii] = PyTuple_GetItem(args,ii); | |
24275 | } | |
24276 | if ((argc >= 2) && (argc <= 3)) { | |
24277 | int _v; | |
24278 | { | |
24279 | void *ptr; | |
24280 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24281 | _v = 0; | |
24282 | PyErr_Clear(); | |
24283 | } else { | |
24284 | _v = 1; | |
24285 | } | |
24286 | } | |
24287 | if (_v) { | |
24288 | { | |
24289 | void *ptr; | |
24290 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24291 | _v = 0; | |
24292 | PyErr_Clear(); | |
24293 | } else { | |
24294 | _v = 1; | |
24295 | } | |
24296 | } | |
24297 | if (_v) { | |
24298 | if (argc <= 2) { | |
24299 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
24300 | } | |
24301 | { | |
24302 | void *ptr; | |
24303 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
24304 | _v = 0; | |
24305 | PyErr_Clear(); | |
24306 | } else { | |
24307 | _v = 1; | |
24308 | } | |
24309 | } | |
24310 | if (_v) { | |
24311 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
24312 | } | |
24313 | } | |
24314 | } | |
24315 | } | |
24316 | if (argc == 3) { | |
24317 | int _v; | |
24318 | { | |
24319 | void *ptr; | |
24320 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24321 | _v = 0; | |
24322 | PyErr_Clear(); | |
24323 | } else { | |
24324 | _v = 1; | |
24325 | } | |
24326 | } | |
24327 | if (_v) { | |
24328 | { | |
24329 | void *ptr; | |
24330 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24331 | _v = 0; | |
24332 | PyErr_Clear(); | |
24333 | } else { | |
24334 | _v = 1; | |
24335 | } | |
24336 | } | |
24337 | if (_v) { | |
24338 | { | |
24339 | void *ptr; | |
24340 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
24341 | _v = 0; | |
24342 | PyErr_Clear(); | |
24343 | } else { | |
24344 | _v = 1; | |
24345 | } | |
24346 | } | |
24347 | if (_v) { | |
24348 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
24349 | } | |
24350 | } | |
24351 | } | |
24352 | } | |
24353 | ||
24354 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
24355 | return NULL; | |
24356 | } | |
24357 | ||
24358 | ||
24359 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24360 | PyObject *resultobj; | |
24361 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24362 | PyObject *arg2 = (PyObject *) 0 ; | |
24363 | PyObject *arg3 = (PyObject *) 0 ; | |
24364 | PyObject * obj0 = 0 ; | |
24365 | PyObject * obj1 = 0 ; | |
24366 | PyObject * obj2 = 0 ; | |
24367 | char *kwnames[] = { | |
24368 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24369 | }; | |
24370 | ||
24371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24374 | arg2 = obj1; | |
24375 | arg3 = obj2; | |
24376 | { | |
24377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24378 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24379 | ||
24380 | wxPyEndAllowThreads(__tstate); | |
24381 | if (PyErr_Occurred()) SWIG_fail; | |
24382 | } | |
24383 | Py_INCREF(Py_None); resultobj = Py_None; | |
24384 | return resultobj; | |
24385 | fail: | |
24386 | return NULL; | |
24387 | } | |
24388 | ||
24389 | ||
24390 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24391 | PyObject *resultobj; | |
24392 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24393 | int arg2 ; | |
24394 | bool result; | |
24395 | PyObject * obj0 = 0 ; | |
24396 | PyObject * obj1 = 0 ; | |
24397 | char *kwnames[] = { | |
24398 | (char *) "self",(char *) "pageNum", NULL | |
24399 | }; | |
24400 | ||
24401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
24402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24404 | arg2 = (int) SWIG_AsInt(obj1); | |
24405 | if (PyErr_Occurred()) SWIG_fail; | |
24406 | { | |
24407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24408 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
24409 | ||
24410 | wxPyEndAllowThreads(__tstate); | |
24411 | if (PyErr_Occurred()) SWIG_fail; | |
24412 | } | |
24413 | { | |
24414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24415 | } | |
24416 | return resultobj; | |
24417 | fail: | |
24418 | return NULL; | |
24419 | } | |
24420 | ||
24421 | ||
24422 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24423 | PyObject *resultobj; | |
24424 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24425 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24426 | wxDC *arg3 = 0 ; | |
24427 | bool result; | |
24428 | PyObject * obj0 = 0 ; | |
24429 | PyObject * obj1 = 0 ; | |
24430 | PyObject * obj2 = 0 ; | |
24431 | char *kwnames[] = { | |
24432 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
24433 | }; | |
24434 | ||
24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24440 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24442 | SWIG_fail; | |
24443 | if (arg3 == NULL) { | |
24444 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24445 | SWIG_fail; | |
24446 | } | |
24447 | { | |
24448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24449 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
24450 | ||
24451 | wxPyEndAllowThreads(__tstate); | |
24452 | if (PyErr_Occurred()) SWIG_fail; | |
24453 | } | |
24454 | { | |
24455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24456 | } | |
24457 | return resultobj; | |
24458 | fail: | |
24459 | return NULL; | |
24460 | } | |
24461 | ||
24462 | ||
24463 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24464 | PyObject *resultobj; | |
24465 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24466 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24467 | wxDC *arg3 = 0 ; | |
24468 | bool result; | |
24469 | PyObject * obj0 = 0 ; | |
24470 | PyObject * obj1 = 0 ; | |
24471 | PyObject * obj2 = 0 ; | |
24472 | char *kwnames[] = { | |
24473 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
24474 | }; | |
24475 | ||
24476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24481 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24483 | SWIG_fail; | |
24484 | if (arg3 == NULL) { | |
24485 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24486 | SWIG_fail; | |
24487 | } | |
24488 | { | |
24489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24490 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
24491 | ||
24492 | wxPyEndAllowThreads(__tstate); | |
24493 | if (PyErr_Occurred()) SWIG_fail; | |
24494 | } | |
24495 | { | |
24496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24497 | } | |
24498 | return resultobj; | |
24499 | fail: | |
24500 | return NULL; | |
24501 | } | |
24502 | ||
24503 | ||
24504 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24505 | PyObject *resultobj; | |
24506 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24507 | int arg2 ; | |
24508 | bool result; | |
24509 | PyObject * obj0 = 0 ; | |
24510 | PyObject * obj1 = 0 ; | |
24511 | char *kwnames[] = { | |
24512 | (char *) "self",(char *) "pageNum", NULL | |
24513 | }; | |
24514 | ||
24515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
24516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24518 | arg2 = (int) SWIG_AsInt(obj1); | |
24519 | if (PyErr_Occurred()) SWIG_fail; | |
24520 | { | |
24521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24522 | result = (bool)(arg1)->base_RenderPage(arg2); | |
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_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24537 | PyObject *resultobj; | |
24538 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24539 | int arg2 ; | |
24540 | PyObject * obj0 = 0 ; | |
24541 | PyObject * obj1 = 0 ; | |
24542 | char *kwnames[] = { | |
24543 | (char *) "self",(char *) "percent", NULL | |
24544 | }; | |
24545 | ||
24546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
24547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24549 | arg2 = (int) SWIG_AsInt(obj1); | |
24550 | if (PyErr_Occurred()) SWIG_fail; | |
24551 | { | |
24552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24553 | (arg1)->base_SetZoom(arg2); | |
24554 | ||
24555 | wxPyEndAllowThreads(__tstate); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | Py_INCREF(Py_None); resultobj = Py_None; | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
24565 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24566 | PyObject *resultobj; | |
24567 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24568 | bool arg2 ; | |
24569 | bool result; | |
24570 | PyObject * obj0 = 0 ; | |
24571 | PyObject * obj1 = 0 ; | |
24572 | char *kwnames[] = { | |
24573 | (char *) "self",(char *) "interactive", NULL | |
24574 | }; | |
24575 | ||
24576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
24577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24579 | arg2 = (bool) SWIG_AsBool(obj1); | |
24580 | if (PyErr_Occurred()) SWIG_fail; | |
24581 | { | |
24582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24583 | result = (bool)(arg1)->base_Print(arg2); | |
24584 | ||
24585 | wxPyEndAllowThreads(__tstate); | |
24586 | if (PyErr_Occurred()) SWIG_fail; | |
24587 | } | |
24588 | { | |
24589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24590 | } | |
24591 | return resultobj; | |
24592 | fail: | |
24593 | return NULL; | |
24594 | } | |
24595 | ||
24596 | ||
24597 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24598 | PyObject *resultobj; | |
24599 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24600 | PyObject * obj0 = 0 ; | |
24601 | char *kwnames[] = { | |
24602 | (char *) "self", NULL | |
24603 | }; | |
24604 | ||
24605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
24606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24608 | { | |
24609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24610 | (arg1)->base_DetermineScaling(); | |
24611 | ||
24612 | wxPyEndAllowThreads(__tstate); | |
24613 | if (PyErr_Occurred()) SWIG_fail; | |
24614 | } | |
24615 | Py_INCREF(Py_None); resultobj = Py_None; | |
24616 | return resultobj; | |
24617 | fail: | |
24618 | return NULL; | |
24619 | } | |
24620 | ||
24621 | ||
24622 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24623 | PyObject *obj; | |
24624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24625 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
24626 | Py_INCREF(obj); | |
24627 | return Py_BuildValue((char *)""); | |
24628 | } | |
24629 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24630 | PyObject *resultobj; | |
24631 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24632 | wxFrame *arg2 = (wxFrame *) 0 ; | |
24633 | wxString *arg3 = 0 ; | |
24634 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24635 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24636 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24637 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24638 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
24639 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
24640 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24641 | wxPyPreviewFrame *result; | |
24642 | bool temp3 = False ; | |
24643 | wxPoint temp4 ; | |
24644 | wxSize temp5 ; | |
24645 | bool temp7 = False ; | |
24646 | PyObject * obj0 = 0 ; | |
24647 | PyObject * obj1 = 0 ; | |
24648 | PyObject * obj2 = 0 ; | |
24649 | PyObject * obj3 = 0 ; | |
24650 | PyObject * obj4 = 0 ; | |
24651 | PyObject * obj5 = 0 ; | |
24652 | PyObject * obj6 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
24661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24662 | { | |
24663 | arg3 = wxString_in_helper(obj2); | |
24664 | if (arg3 == NULL) SWIG_fail; | |
24665 | temp3 = True; | |
24666 | } | |
24667 | if (obj3) { | |
24668 | { | |
24669 | arg4 = &temp4; | |
24670 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24671 | } | |
24672 | } | |
24673 | if (obj4) { | |
24674 | { | |
24675 | arg5 = &temp5; | |
24676 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24677 | } | |
24678 | } | |
24679 | if (obj5) { | |
24680 | arg6 = (long) SWIG_AsLong(obj5); | |
24681 | if (PyErr_Occurred()) SWIG_fail; | |
24682 | } | |
24683 | if (obj6) { | |
24684 | { | |
24685 | arg7 = wxString_in_helper(obj6); | |
24686 | if (arg7 == NULL) SWIG_fail; | |
24687 | temp7 = True; | |
24688 | } | |
24689 | } | |
24690 | { | |
0439c23b | 24691 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24693 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24694 | ||
24695 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24696 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24697 | } |
24698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
24699 | { | |
24700 | if (temp3) | |
24701 | delete arg3; | |
24702 | } | |
24703 | { | |
24704 | if (temp7) | |
24705 | delete arg7; | |
24706 | } | |
24707 | return resultobj; | |
24708 | fail: | |
24709 | { | |
24710 | if (temp3) | |
24711 | delete arg3; | |
24712 | } | |
24713 | { | |
24714 | if (temp7) | |
24715 | delete arg7; | |
24716 | } | |
24717 | return NULL; | |
24718 | } | |
24719 | ||
24720 | ||
24721 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24722 | PyObject *resultobj; | |
24723 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24724 | PyObject *arg2 = (PyObject *) 0 ; | |
24725 | PyObject *arg3 = (PyObject *) 0 ; | |
24726 | PyObject * obj0 = 0 ; | |
24727 | PyObject * obj1 = 0 ; | |
24728 | PyObject * obj2 = 0 ; | |
24729 | char *kwnames[] = { | |
24730 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24731 | }; | |
24732 | ||
24733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24736 | arg2 = obj1; | |
24737 | arg3 = obj2; | |
24738 | { | |
24739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24740 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24741 | ||
24742 | wxPyEndAllowThreads(__tstate); | |
24743 | if (PyErr_Occurred()) SWIG_fail; | |
24744 | } | |
24745 | Py_INCREF(Py_None); resultobj = Py_None; | |
24746 | return resultobj; | |
24747 | fail: | |
24748 | return NULL; | |
24749 | } | |
24750 | ||
24751 | ||
24752 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24753 | PyObject *resultobj; | |
24754 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24755 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24756 | PyObject * obj0 = 0 ; | |
24757 | PyObject * obj1 = 0 ; | |
24758 | char *kwnames[] = { | |
24759 | (char *) "self",(char *) "canvas", NULL | |
24760 | }; | |
24761 | ||
24762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
24763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24767 | { | |
24768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24769 | (arg1)->SetPreviewCanvas(arg2); | |
24770 | ||
24771 | wxPyEndAllowThreads(__tstate); | |
24772 | if (PyErr_Occurred()) SWIG_fail; | |
24773 | } | |
24774 | Py_INCREF(Py_None); resultobj = Py_None; | |
24775 | return resultobj; | |
24776 | fail: | |
24777 | return NULL; | |
24778 | } | |
24779 | ||
24780 | ||
24781 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24782 | PyObject *resultobj; | |
24783 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24784 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
24785 | PyObject * obj0 = 0 ; | |
24786 | PyObject * obj1 = 0 ; | |
24787 | char *kwnames[] = { | |
24788 | (char *) "self",(char *) "bar", NULL | |
24789 | }; | |
24790 | ||
24791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
24792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24794 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
24795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24796 | { | |
24797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24798 | (arg1)->SetControlBar(arg2); | |
24799 | ||
24800 | wxPyEndAllowThreads(__tstate); | |
24801 | if (PyErr_Occurred()) SWIG_fail; | |
24802 | } | |
24803 | Py_INCREF(Py_None); resultobj = Py_None; | |
24804 | return resultobj; | |
24805 | fail: | |
24806 | return NULL; | |
24807 | } | |
24808 | ||
24809 | ||
24810 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24811 | PyObject *resultobj; | |
24812 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24813 | PyObject * obj0 = 0 ; | |
24814 | char *kwnames[] = { | |
24815 | (char *) "self", NULL | |
24816 | }; | |
24817 | ||
24818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
24819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24821 | { | |
24822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24823 | (arg1)->base_Initialize(); | |
24824 | ||
24825 | wxPyEndAllowThreads(__tstate); | |
24826 | if (PyErr_Occurred()) SWIG_fail; | |
24827 | } | |
24828 | Py_INCREF(Py_None); resultobj = Py_None; | |
24829 | return resultobj; | |
24830 | fail: | |
24831 | return NULL; | |
24832 | } | |
24833 | ||
24834 | ||
24835 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24836 | PyObject *resultobj; | |
24837 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24838 | PyObject * obj0 = 0 ; | |
24839 | char *kwnames[] = { | |
24840 | (char *) "self", NULL | |
24841 | }; | |
24842 | ||
24843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
24844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24846 | { | |
24847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24848 | (arg1)->base_CreateCanvas(); | |
24849 | ||
24850 | wxPyEndAllowThreads(__tstate); | |
24851 | if (PyErr_Occurred()) SWIG_fail; | |
24852 | } | |
24853 | Py_INCREF(Py_None); resultobj = Py_None; | |
24854 | return resultobj; | |
24855 | fail: | |
24856 | return NULL; | |
24857 | } | |
24858 | ||
24859 | ||
24860 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24861 | PyObject *resultobj; | |
24862 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24863 | PyObject * obj0 = 0 ; | |
24864 | char *kwnames[] = { | |
24865 | (char *) "self", NULL | |
24866 | }; | |
24867 | ||
24868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24871 | { | |
24872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24873 | (arg1)->base_CreateControlBar(); | |
24874 | ||
24875 | wxPyEndAllowThreads(__tstate); | |
24876 | if (PyErr_Occurred()) SWIG_fail; | |
24877 | } | |
24878 | Py_INCREF(Py_None); resultobj = Py_None; | |
24879 | return resultobj; | |
24880 | fail: | |
24881 | return NULL; | |
24882 | } | |
24883 | ||
24884 | ||
24885 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24886 | PyObject *obj; | |
24887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24888 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24889 | Py_INCREF(obj); | |
24890 | return Py_BuildValue((char *)""); | |
24891 | } | |
24892 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24893 | PyObject *resultobj; | |
24894 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24895 | long arg2 ; | |
24896 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24897 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24898 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24899 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24900 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24901 | long arg6 = (long) 0 ; | |
24902 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24903 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24904 | wxPyPreviewControlBar *result; | |
24905 | wxPoint temp4 ; | |
24906 | wxSize temp5 ; | |
24907 | bool temp7 = False ; | |
24908 | PyObject * obj0 = 0 ; | |
24909 | PyObject * obj1 = 0 ; | |
24910 | PyObject * obj2 = 0 ; | |
24911 | PyObject * obj3 = 0 ; | |
24912 | PyObject * obj4 = 0 ; | |
24913 | PyObject * obj5 = 0 ; | |
24914 | PyObject * obj6 = 0 ; | |
24915 | char *kwnames[] = { | |
24916 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24917 | }; | |
24918 | ||
24919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24922 | arg2 = (long) SWIG_AsLong(obj1); | |
24923 | if (PyErr_Occurred()) SWIG_fail; | |
24924 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24926 | if (obj3) { | |
24927 | { | |
24928 | arg4 = &temp4; | |
24929 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24930 | } | |
24931 | } | |
24932 | if (obj4) { | |
24933 | { | |
24934 | arg5 = &temp5; | |
24935 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24936 | } | |
24937 | } | |
24938 | if (obj5) { | |
24939 | arg6 = (long) SWIG_AsLong(obj5); | |
24940 | if (PyErr_Occurred()) SWIG_fail; | |
24941 | } | |
24942 | if (obj6) { | |
24943 | { | |
24944 | arg7 = wxString_in_helper(obj6); | |
24945 | if (arg7 == NULL) SWIG_fail; | |
24946 | temp7 = True; | |
24947 | } | |
24948 | } | |
24949 | { | |
0439c23b | 24950 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24952 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24953 | ||
24954 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24955 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24956 | } |
24957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
24958 | { | |
24959 | if (temp7) | |
24960 | delete arg7; | |
24961 | } | |
24962 | return resultobj; | |
24963 | fail: | |
24964 | { | |
24965 | if (temp7) | |
24966 | delete arg7; | |
24967 | } | |
24968 | return NULL; | |
24969 | } | |
24970 | ||
24971 | ||
24972 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24973 | PyObject *resultobj; | |
24974 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
24975 | PyObject *arg2 = (PyObject *) 0 ; | |
24976 | PyObject *arg3 = (PyObject *) 0 ; | |
24977 | PyObject * obj0 = 0 ; | |
24978 | PyObject * obj1 = 0 ; | |
24979 | PyObject * obj2 = 0 ; | |
24980 | char *kwnames[] = { | |
24981 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24982 | }; | |
24983 | ||
24984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
24986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24987 | arg2 = obj1; | |
24988 | arg3 = obj2; | |
24989 | { | |
24990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24991 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24992 | ||
24993 | wxPyEndAllowThreads(__tstate); | |
24994 | if (PyErr_Occurred()) SWIG_fail; | |
24995 | } | |
24996 | Py_INCREF(Py_None); resultobj = Py_None; | |
24997 | return resultobj; | |
24998 | fail: | |
24999 | return NULL; | |
25000 | } | |
25001 | ||
25002 | ||
25003 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25004 | PyObject *resultobj; | |
25005 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25006 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
25007 | PyObject * obj0 = 0 ; | |
25008 | PyObject * obj1 = 0 ; | |
25009 | char *kwnames[] = { | |
25010 | (char *) "self",(char *) "preview", NULL | |
25011 | }; | |
25012 | ||
25013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
25014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25016 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
25017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25018 | { | |
25019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25020 | (arg1)->SetPrintPreview(arg2); | |
25021 | ||
25022 | wxPyEndAllowThreads(__tstate); | |
25023 | if (PyErr_Occurred()) SWIG_fail; | |
25024 | } | |
25025 | Py_INCREF(Py_None); resultobj = Py_None; | |
25026 | return resultobj; | |
25027 | fail: | |
25028 | return NULL; | |
25029 | } | |
25030 | ||
25031 | ||
25032 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25033 | PyObject *resultobj; | |
25034 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25035 | PyObject * obj0 = 0 ; | |
25036 | char *kwnames[] = { | |
25037 | (char *) "self", NULL | |
25038 | }; | |
25039 | ||
25040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
25041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25043 | { | |
25044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25045 | (arg1)->base_CreateButtons(); | |
25046 | ||
25047 | wxPyEndAllowThreads(__tstate); | |
25048 | if (PyErr_Occurred()) SWIG_fail; | |
25049 | } | |
25050 | Py_INCREF(Py_None); resultobj = Py_None; | |
25051 | return resultobj; | |
25052 | fail: | |
25053 | return NULL; | |
25054 | } | |
25055 | ||
25056 | ||
25057 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25058 | PyObject *resultobj; | |
25059 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25060 | int arg2 ; | |
25061 | PyObject * obj0 = 0 ; | |
25062 | PyObject * obj1 = 0 ; | |
25063 | char *kwnames[] = { | |
25064 | (char *) "self",(char *) "zoom", NULL | |
25065 | }; | |
25066 | ||
25067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
25068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25070 | arg2 = (int) SWIG_AsInt(obj1); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | { | |
25073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25074 | (arg1)->base_SetZoomControl(arg2); | |
25075 | ||
25076 | wxPyEndAllowThreads(__tstate); | |
25077 | if (PyErr_Occurred()) SWIG_fail; | |
25078 | } | |
25079 | Py_INCREF(Py_None); resultobj = Py_None; | |
25080 | return resultobj; | |
25081 | fail: | |
25082 | return NULL; | |
25083 | } | |
25084 | ||
25085 | ||
25086 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
25087 | PyObject *obj; | |
25088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25089 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
25090 | Py_INCREF(obj); | |
25091 | return Py_BuildValue((char *)""); | |
25092 | } | |
25093 | static PyMethodDef SwigMethods[] = { | |
25094 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25098 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25099 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, |
25100 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
25115 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
25116 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25122 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25123 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, |
25124 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
25138 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25160 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25161 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, |
25162 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25171 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25172 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25173 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, |
25174 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
25178 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
25182 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
25187 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25201 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25202 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, |
25203 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25229 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25230 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, |
25231 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
25235 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
25236 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
25238 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
25246 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25252 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25254 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
25260 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
25261 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
25267 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
25269 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
25270 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
25271 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25273 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
25275 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25276 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25277 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25278 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25279 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
25281 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25283 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
25285 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
25287 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25292 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25294 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25295 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
25296 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
25297 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
25299 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
25302 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
25304 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25305 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, | |
25306 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
25307 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25310 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, | |
25312 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
25313 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
25314 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
25316 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
25317 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25318 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25319 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25320 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25321 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
25322 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
25323 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
25324 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
25325 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
25326 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
25327 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
25328 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
25329 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
25330 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
25331 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
25332 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
25333 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
25334 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
25335 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
25336 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
25337 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25338 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25339 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
25340 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
25341 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25342 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
25343 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
25344 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
25345 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
25346 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
25347 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25348 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
25349 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
25350 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25351 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25352 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
25353 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
25354 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
25355 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
25356 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
25357 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25358 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
25359 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
25360 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
25361 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
25362 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
25363 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25364 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25365 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
25366 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 25367 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25368 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, |
25369 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
25370 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
25371 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
25372 | { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
25373 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, | |
25374 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25375 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, | |
25376 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
25377 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
25378 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
25379 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
25380 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
25381 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
25382 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
25383 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25384 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
25385 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
25386 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25387 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
25388 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
25389 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
25390 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
25391 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
25392 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
25393 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25394 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25395 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25396 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25397 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25398 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
25399 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
25400 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25401 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25402 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
25403 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25404 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
25405 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25406 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
25407 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25408 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25409 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
25410 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25411 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
25412 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25413 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
25414 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25415 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
25416 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
25417 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25418 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25419 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25420 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
25421 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25422 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25423 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25424 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25425 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
25426 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
25427 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25428 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25429 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
25430 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
25431 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
25432 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
25433 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
25434 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25435 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
25436 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
25437 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
25438 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
25439 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
25440 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
25441 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25442 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
25443 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25444 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
25445 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
25446 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
25447 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
25448 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
25449 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
25450 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
25451 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
25452 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
25453 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
25454 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
25455 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
25456 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25457 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25458 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25459 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
25460 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25461 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25462 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25463 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
25464 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
25465 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
25466 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25467 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25468 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25469 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25470 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25471 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25472 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
25473 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25474 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25475 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
25476 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25477 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25478 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
25479 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25480 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25481 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25482 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
25483 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
25484 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
25485 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
25486 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
25487 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25488 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25489 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25490 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25491 | { (char *)"MDIParentFrame_SetToolBar", (PyCFunction) _wrap_MDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25492 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
25493 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
25494 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25495 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25496 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25497 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
25498 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25499 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25500 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
25501 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25502 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25503 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25504 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
25505 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25506 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25507 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25508 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25509 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25510 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25511 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25512 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25513 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25514 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25515 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25516 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25517 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25518 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25519 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25520 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25521 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25522 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25523 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25524 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25525 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25526 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25527 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25528 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25529 | { (char *)"PyWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25530 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, |
25531 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25532 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25533 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25534 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25535 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25536 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25537 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25538 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25539 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25540 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25541 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25542 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25543 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25544 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25545 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25546 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25547 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25548 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25549 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25550 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25551 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25552 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25553 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25554 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25555 | { (char *)"PyPanel_base_GetDefaultAttributes", (PyCFunction) _wrap_PyPanel_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25556 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, |
25557 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25558 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25559 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25560 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25561 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25562 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25563 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25564 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25565 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25566 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25567 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25568 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25569 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25570 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25571 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25572 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25573 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25574 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25575 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25576 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25577 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25578 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25579 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25580 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25581 | { (char *)"PyScrolledWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyScrolledWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 25582 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, |
09c21d3b | 25583 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS }, |
d55e5bfc RD |
25584 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, |
25585 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25586 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25587 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25588 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25589 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25590 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25591 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25592 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25593 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25594 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25595 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25596 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25597 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25598 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25599 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25600 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25601 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25602 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25603 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25604 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25605 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25606 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25607 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25608 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25609 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25610 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25611 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25612 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25613 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25614 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25615 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25616 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25617 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25618 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25619 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25620 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25621 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
25622 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25623 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25624 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
25625 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25626 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25627 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25628 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
09c21d3b | 25629 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS }, |
d55e5bfc RD |
25630 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, |
25631 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25632 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25633 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25634 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25635 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25636 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25637 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25638 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25639 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25640 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25641 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25642 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25643 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25644 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25645 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25646 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25647 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25648 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25649 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25650 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25651 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25652 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25653 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25654 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25655 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25656 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25657 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25658 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25659 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25660 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
25661 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25662 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
25663 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25664 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
25665 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
25666 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25667 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25668 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25669 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25670 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25671 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25672 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25673 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25674 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25675 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25676 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25677 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25678 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25679 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25680 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25681 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25682 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25683 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25684 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25685 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25686 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25687 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25688 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25689 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25690 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25691 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25692 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25693 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25694 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25695 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25696 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25697 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25698 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
25699 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25700 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25701 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
25702 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25703 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
25704 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25705 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25706 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
25707 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25708 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
25709 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25710 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
25711 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
25712 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
25713 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
25714 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
25715 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
25716 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25717 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25718 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
25719 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
25720 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25721 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25722 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25723 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25724 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25725 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25726 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25727 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25728 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25729 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25730 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
25731 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
25732 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25733 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25734 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
25735 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
25736 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
25737 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
25738 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25739 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
25740 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25741 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25742 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25743 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25744 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25745 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
25746 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25747 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25748 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25749 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25750 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
25751 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
25752 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
25753 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
25754 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
25755 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
25756 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
25757 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25758 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25759 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25760 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25761 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25762 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25763 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25764 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25765 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25766 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25767 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25768 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25769 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25770 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25771 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25772 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25773 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25774 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25775 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25776 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
25777 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
25778 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25779 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
25780 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
25781 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25782 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25783 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25784 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25785 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25786 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25787 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
25788 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25789 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
25790 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25791 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25792 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25793 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25794 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25795 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25796 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25797 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
25798 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25799 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25800 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25801 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
25802 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25803 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
25804 | { NULL, NULL } | |
25805 | }; | |
25806 | ||
25807 | ||
25808 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25809 | ||
25810 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
25811 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25812 | } | |
25813 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25814 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25815 | } | |
25816 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25817 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25818 | } | |
25819 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25820 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25821 | } | |
25822 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25823 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25824 | } | |
25825 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25826 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25827 | } | |
25828 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25829 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25830 | } | |
25831 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
25832 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25833 | } | |
25834 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25835 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25836 | } | |
25837 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25838 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25839 | } | |
25840 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
25841 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25842 | } | |
25843 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25844 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25845 | } | |
25846 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25847 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25848 | } | |
25849 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
25850 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25851 | } | |
25852 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25853 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25854 | } | |
25855 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25856 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25857 | } | |
25858 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25859 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25860 | } | |
25861 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25862 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25863 | } | |
25864 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25865 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25866 | } | |
25867 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25868 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25869 | } | |
25870 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25871 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25872 | } | |
25873 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25874 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25875 | } | |
25876 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25877 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25878 | } | |
25879 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25880 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25881 | } | |
25882 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25883 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25884 | } | |
25885 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25886 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25887 | } | |
25888 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25889 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25890 | } | |
25891 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25892 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25893 | } | |
25894 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25895 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25896 | } | |
25897 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25898 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25899 | } | |
25900 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25901 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25902 | } | |
25903 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25904 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25905 | } | |
25906 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25907 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25908 | } | |
25909 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25910 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25911 | } | |
25912 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25913 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25914 | } | |
25915 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25916 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25917 | } | |
25918 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25919 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25920 | } | |
25921 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25922 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25923 | } | |
25924 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25925 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25926 | } | |
25927 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25928 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25929 | } | |
25930 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25931 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25932 | } | |
25933 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
25934 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25935 | } | |
25936 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
25937 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25938 | } | |
25939 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
25940 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25941 | } | |
25942 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
25943 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25944 | } | |
25945 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
25946 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25947 | } | |
25948 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25949 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25950 | } | |
25951 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25952 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25953 | } | |
25954 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25955 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25956 | } | |
25957 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25958 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25959 | } | |
25960 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
25961 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25962 | } | |
25963 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25964 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
25965 | } | |
25966 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25967 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
25968 | } | |
25969 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
25970 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
25971 | } | |
25972 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
25973 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
25974 | } | |
25975 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
25976 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
25977 | } | |
25978 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
25979 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
25980 | } | |
25981 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
25982 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
25983 | } | |
25984 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
25985 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
25986 | } | |
25987 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
25988 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
25989 | } | |
25990 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
25991 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
25992 | } | |
25993 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
25994 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
25995 | } | |
25996 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
25997 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
25998 | } | |
25999 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
26000 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26001 | } | |
26002 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
26003 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
26004 | } | |
26005 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
26006 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
26007 | } | |
26008 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
26009 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
26010 | } | |
26011 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
26012 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
26013 | } | |
26014 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26015 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
26016 | } | |
26017 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
26018 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
26019 | } | |
26020 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
26021 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
26022 | } | |
26023 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26024 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26025 | } | |
26026 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
26027 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
26028 | } | |
26029 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
26030 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26031 | } | |
26032 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
26033 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26034 | } | |
26035 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
26036 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26037 | } | |
26038 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
26039 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
26040 | } | |
26041 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
26042 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26043 | } | |
26044 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
26045 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
26046 | } | |
26047 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
26048 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26049 | } | |
26050 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
26051 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26052 | } | |
26053 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
26054 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26055 | } | |
26056 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
26057 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
26058 | } | |
26059 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
26060 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26061 | } | |
26062 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
26063 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
26064 | } | |
26065 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
26066 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
26067 | } | |
26068 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
26069 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26070 | } | |
26071 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
26072 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26073 | } | |
26074 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
26075 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26076 | } | |
26077 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
26078 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
26079 | } | |
26080 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
26081 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26082 | } | |
26083 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
26084 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26085 | } | |
26086 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
26087 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26088 | } | |
26089 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
26090 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26091 | } | |
26092 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
26093 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
26094 | } | |
26095 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
26096 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
26097 | } | |
26098 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
26099 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
26100 | } | |
26101 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
26102 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26103 | } | |
26104 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
26105 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
26106 | } | |
26107 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
26108 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
26109 | } | |
26110 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
26111 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
26112 | } | |
26113 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
26114 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
26115 | } | |
26116 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
26117 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
26118 | } | |
26119 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
26120 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26121 | } | |
26122 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
26123 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26124 | } | |
26125 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
26126 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
26127 | } | |
26128 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
26129 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
26130 | } | |
26131 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
26132 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
26133 | } | |
26134 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
26135 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
26136 | } | |
26137 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
26138 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26139 | } | |
26140 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
26141 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
26142 | } | |
26143 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
26144 | return (void *)((wxObject *) ((wxSizer *) x)); | |
26145 | } | |
26146 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
26147 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26148 | } | |
26149 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
26150 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26151 | } | |
26152 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
26153 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
26154 | } | |
26155 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
26156 | return (void *)((wxObject *) ((wxEvent *) x)); | |
26157 | } | |
26158 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
26159 | return (void *)((wxObject *) ((wxFontData *) x)); | |
26160 | } | |
26161 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
26162 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
26163 | } | |
26164 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
26165 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26166 | } | |
26167 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
26168 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
26169 | } | |
26170 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
26171 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
26172 | } | |
26173 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
26174 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
26175 | } | |
26176 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
26177 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
26178 | } | |
26179 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
26180 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26181 | } | |
26182 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
26183 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
26184 | } | |
26185 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
26186 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
26187 | } | |
26188 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
26189 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26190 | } | |
26191 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
26192 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26193 | } | |
26194 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
26195 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26196 | } | |
26197 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
26198 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26199 | } | |
26200 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
26201 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26202 | } | |
26203 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
26204 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
26205 | } | |
26206 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
26207 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
26208 | } | |
26209 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
26210 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26211 | } | |
26212 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
26213 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
26214 | } | |
26215 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
26216 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
26217 | } | |
26218 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
26219 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
26220 | } | |
26221 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
26222 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26223 | } | |
26224 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
26225 | return (void *)((wxObject *) ((wxColourData *) x)); | |
26226 | } | |
26227 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
26228 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
26229 | } | |
26230 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
26231 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26232 | } | |
26233 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
26234 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
26235 | } | |
26236 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
26237 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26238 | } | |
26239 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
26240 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26241 | } | |
26242 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
26243 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26244 | } | |
26245 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
26246 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26247 | } | |
26248 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
26249 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26250 | } | |
26251 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
26252 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26253 | } | |
26254 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
26255 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26256 | } | |
26257 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
26258 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26259 | } | |
26260 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
26261 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
26262 | } | |
26263 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
26264 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
26265 | } | |
26266 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
26267 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
26268 | } | |
26269 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
26270 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
26271 | } | |
26272 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
26273 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26274 | } | |
26275 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
26276 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26277 | } | |
26278 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
26279 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
26280 | } | |
26281 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
26282 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
26283 | } | |
26284 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
26285 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
26286 | } | |
26287 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
26288 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
26289 | } | |
26290 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
26291 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
26292 | } | |
26293 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
26294 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
26295 | } | |
26296 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
26297 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
26298 | } | |
26299 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
26300 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
26301 | } | |
26302 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
26303 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
26304 | } | |
26305 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
26306 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
26307 | } | |
26308 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
26309 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
26310 | } | |
26311 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
26312 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
26313 | } | |
26314 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
26315 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
26316 | } | |
26317 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
26318 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
26319 | } | |
26320 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
26321 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
26322 | } | |
26323 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
26324 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
26325 | } | |
26326 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
26327 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
26328 | } | |
26329 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
26330 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
26331 | } | |
26332 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
26333 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
26334 | } | |
26335 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
26336 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26337 | } | |
26338 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
26339 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26340 | } | |
26341 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
26342 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
26343 | } | |
26344 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
26345 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26346 | } | |
26347 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
26348 | return (void *)((wxObject *) ((wxImage *) x)); | |
26349 | } | |
26350 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
26351 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
26352 | } | |
26353 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
26354 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
26355 | } | |
26356 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
26357 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
26358 | } | |
26359 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
26360 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
26361 | } | |
26362 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
26363 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
26364 | } | |
26365 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
26366 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26367 | } | |
26368 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26369 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26370 | } | |
26371 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26372 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26373 | } | |
26374 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26375 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26376 | } | |
26377 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26378 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26379 | } | |
26380 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26381 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26382 | } | |
26383 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26384 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26385 | } | |
26386 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
26387 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
26388 | } | |
26389 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
26390 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
26391 | } | |
26392 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
26393 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
26394 | } | |
26395 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
26396 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
26397 | } | |
26398 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
26399 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
26400 | } | |
26401 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
26402 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26403 | } | |
26404 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
26405 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
26406 | } | |
26407 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
26408 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26409 | } | |
26410 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
26411 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26412 | } | |
26413 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
26414 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26415 | } | |
26416 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
26417 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
26418 | } | |
26419 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
26420 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26421 | } | |
26422 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
26423 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
26424 | } | |
26425 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
26426 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
26427 | } | |
26428 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
26429 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26430 | } | |
26431 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
26432 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
26433 | } | |
26434 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
26435 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
26436 | } | |
26437 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
26438 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26439 | } | |
26440 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
26441 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26442 | } | |
26443 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
26444 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26445 | } | |
26446 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
26447 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26448 | } | |
26449 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
26450 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26451 | } | |
26452 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
26453 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26454 | } | |
26455 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26456 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26457 | } | |
26458 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26459 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26460 | } | |
26461 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26462 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26463 | } | |
26464 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26465 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26466 | } | |
26467 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26468 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26469 | } | |
26470 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26471 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26472 | } | |
26473 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26474 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26475 | } | |
26476 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26477 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26478 | } | |
26479 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
26480 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
26481 | } | |
26482 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
26483 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26484 | } | |
26485 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26486 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26487 | } | |
26488 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26489 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26490 | } | |
26491 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26492 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26493 | } | |
26494 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26495 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26496 | } | |
26497 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
26498 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
26499 | } | |
26500 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
26501 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
26502 | } | |
26503 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26504 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26505 | } | |
26506 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26507 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26508 | } | |
26509 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26510 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26511 | } | |
26512 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26513 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26514 | } | |
26515 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
26516 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26517 | } | |
26518 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
26519 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26520 | } | |
26521 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
26522 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26523 | } | |
26524 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
26525 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26526 | } | |
26527 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
26528 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
26529 | } | |
26530 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
26531 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
26532 | } | |
26533 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
26534 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
26535 | } | |
26536 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
26537 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
26538 | } | |
26539 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
26540 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
26541 | } | |
26542 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
26543 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
26544 | } | |
26545 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
26546 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
26547 | } | |
26548 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
26549 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
26550 | } | |
26551 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
26552 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
26553 | } | |
26554 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
26555 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
26556 | } | |
26557 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
26558 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
26559 | } | |
26560 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
26561 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
26562 | } | |
26563 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
26564 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
26565 | } | |
26566 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
26567 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
26568 | } | |
26569 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
26570 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
26571 | } | |
26572 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26573 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26574 | } | |
26575 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26576 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26577 | } | |
26578 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
26579 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
26580 | } | |
26581 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26582 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
26583 | } | |
26584 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26585 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26586 | } | |
26587 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
26588 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26589 | } | |
26590 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
26591 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26592 | } | |
26593 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
26594 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
26595 | } | |
26596 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26597 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26598 | } | |
26599 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
26600 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26601 | } | |
26602 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
26603 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26604 | } | |
26605 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
26606 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26607 | } | |
26608 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
26609 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26610 | } | |
26611 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
26612 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26613 | } | |
26614 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
26615 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26616 | } | |
26617 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
26618 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26619 | } | |
26620 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
26621 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
26622 | } | |
26623 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
26624 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
26625 | } | |
26626 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
26627 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
26628 | } | |
26629 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
26630 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26631 | } | |
26632 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
26633 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26634 | } | |
26635 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
26636 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26637 | } | |
26638 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
26639 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
26640 | } | |
26641 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
26642 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26643 | } | |
26644 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
26645 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
26646 | } | |
26647 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
26648 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
26649 | } | |
26650 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
26651 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
26652 | } | |
26653 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
26654 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
26655 | } | |
26656 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
26657 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
26658 | } | |
26659 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
26660 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26661 | } | |
26662 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26663 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26664 | } | |
26665 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
26666 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26667 | } | |
26668 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
26669 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26670 | } | |
26671 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
26672 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26673 | } | |
26674 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26675 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26676 | } | |
26677 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
26678 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
26679 | } | |
26680 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
26681 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26682 | } | |
26683 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
26684 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26685 | } | |
26686 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
26687 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26688 | } | |
26689 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
26690 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
26691 | } | |
26692 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
26693 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26694 | } | |
26695 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
26696 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
26697 | } | |
26698 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
26699 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26700 | } | |
26701 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
26702 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26703 | } | |
26704 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
26705 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26706 | } | |
26707 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
26708 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
26709 | } | |
26710 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
26711 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26712 | } | |
26713 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
26714 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26715 | } | |
26716 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
26717 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26718 | } | |
26719 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
26720 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26721 | } | |
26722 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
26723 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26724 | } | |
26725 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
26726 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26727 | } | |
26728 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
26729 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
26730 | } | |
26731 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
26732 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
26733 | } | |
26734 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
26735 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
26736 | } | |
26737 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
26738 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
26739 | } | |
26740 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
26741 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
26742 | } | |
26743 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
26744 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
26745 | } | |
26746 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
26747 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26748 | } | |
26749 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
26750 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26751 | } | |
26752 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
26753 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
26754 | } | |
26755 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
26756 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
26757 | } | |
26758 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
26759 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
26760 | } | |
26761 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
26762 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
26763 | } | |
26764 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
26765 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26766 | } | |
26767 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
26768 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26769 | } | |
26770 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
26771 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26772 | } | |
26773 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
26774 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26775 | } | |
26776 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
26777 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
26778 | } | |
26779 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
26780 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26781 | } | |
26782 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
26783 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
26784 | } | |
26785 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
26786 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26787 | } | |
26788 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
26789 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26790 | } | |
26791 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
26792 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
26793 | } | |
26794 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
26795 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26796 | } | |
26797 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
26798 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26799 | } | |
26800 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
26801 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26802 | } | |
26803 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
26804 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26805 | } | |
26806 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
26807 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26808 | } | |
26809 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
26810 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26811 | } | |
26812 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
26813 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26814 | } | |
26815 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
26816 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26817 | } | |
26818 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
26819 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
26820 | } | |
26821 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
26822 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26823 | } | |
26824 | 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}}; | |
26825 | 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}}; | |
26826 | 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}}; | |
26827 | 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}}; | |
26828 | 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}}; | |
09c21d3b | 26829 | 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 |
26830 | 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}}; |
26831 | 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}}; | |
26832 | 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}}; | |
26833 | 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}}; | |
26834 | 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}}; | |
26835 | 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}}; | |
26836 | 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}}; | |
26837 | 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}}; | |
26838 | 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}}; | |
26839 | 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}}; | |
26840 | 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}}; | |
26841 | 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}}; | |
26842 | 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}}; | |
26843 | 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}}; | |
26844 | 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 | 26845 | 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 |
26846 | 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}}; |
26847 | 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}}; | |
26848 | 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}}; | |
26849 | 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}}; | |
26850 | 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}}; | |
26851 | 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}}; | |
26852 | 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}}; | |
26853 | 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}}; | |
26854 | 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}}; | |
26855 | 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}}; | |
26856 | 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}}; | |
26857 | 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}}; | |
26858 | 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}}; | |
26859 | 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}}; | |
26860 | 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}}; | |
26861 | 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}}; | |
26862 | 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}}; | |
26863 | 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}}; | |
26864 | 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}}; | |
26865 | 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}}; | |
26866 | 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}}; | |
26867 | 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}}; | |
26868 | 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}}; | |
26869 | 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}}; | |
26870 | 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}}; | |
26871 | 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}}; | |
26872 | 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}}; | |
26873 | 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}}; | |
26874 | 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}}; | |
26875 | 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 |
26876 | 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}}; |
26877 | 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}}; | |
26878 | 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}}; | |
26879 | 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}}; | |
26880 | 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 | 26881 | 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 |
26882 | 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}}; |
26883 | 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}}; | |
26884 | 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}}; | |
26885 | 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}}; | |
26886 | 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}}; | |
26887 | 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}}; | |
26888 | 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 |
26889 | 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}}; |
26890 | 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}}; | |
26891 | 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}}; | |
26892 | 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}}; | |
26893 | 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}}; | |
26894 | 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}}; | |
26895 | 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}}; | |
26896 | 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}}; | |
26897 | 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}}; | |
26898 | 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}}; | |
26899 | 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}}; | |
26900 | 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 | 26901 | 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 |
26902 | 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}}; |
26903 | 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}}; | |
26904 | 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}}; | |
26905 | 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}}; | |
26906 | 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}}; | |
26907 | 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}}; | |
26908 | 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}}; | |
26909 | 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}}; | |
26910 | ||
26911 | static swig_type_info *swig_types_initial[] = { | |
26912 | _swigt__p_wxQueryLayoutInfoEvent, | |
26913 | _swigt__p_wxPreviewFrame, | |
26914 | _swigt__p_wxPyPreviewFrame, | |
26915 | _swigt__p_wxPyPanel, | |
26916 | _swigt__p_wxMenu, | |
09c21d3b | 26917 | _swigt__p_wxPrintData, |
d55e5bfc RD |
26918 | _swigt__p_wxFontData, |
26919 | _swigt__p_wxEvent, | |
26920 | _swigt__p_wxTaskBarIcon, | |
26921 | _swigt__p_wxIconBundle, | |
26922 | _swigt__p_wxLayoutAlgorithm, | |
26923 | _swigt__p_wxFindDialogEvent, | |
26924 | _swigt__p_wxPreviewCanvas, | |
26925 | _swigt__p_wxFont, | |
26926 | _swigt__p_wxSplitterEvent, | |
26927 | _swigt__p_wxRegion, | |
26928 | _swigt__p_wxFindReplaceData, | |
26929 | _swigt__p_int, | |
26930 | _swigt__p_wxSize, | |
26931 | _swigt__p_wxDC, | |
26932 | _swigt__p_wxIcon, | |
f20a2e1f | 26933 | _swigt__p_wxVisualAttributes, |
d55e5bfc RD |
26934 | _swigt__p_wxMDIChildFrame, |
26935 | _swigt__p_wxColourData, | |
26936 | _swigt__p_wxNotifyEvent, | |
26937 | _swigt__p_wxPyWindow, | |
26938 | _swigt__p_wxSplashScreen, | |
26939 | _swigt__p_wxFindReplaceDialog, | |
26940 | _swigt__p_wxProgressDialog, | |
26941 | _swigt__p_wxMessageDialog, | |
26942 | _swigt__p_wxTextEntryDialog, | |
26943 | _swigt__p_wxSingleChoiceDialog, | |
26944 | _swigt__p_wxMultiChoiceDialog, | |
26945 | _swigt__p_wxFileDialog, | |
26946 | _swigt__p_wxPrinter, | |
26947 | _swigt__p_wxArrayInt, | |
26948 | _swigt__p_wxEvtHandler, | |
26949 | _swigt__p_wxCalculateLayoutEvent, | |
26950 | _swigt__p_wxPyHtmlListBox, | |
26951 | _swigt__p_wxPyVListBox, | |
26952 | _swigt__p_wxRect, | |
26953 | _swigt__p_char, | |
26954 | _swigt__p_wxMiniFrame, | |
26955 | _swigt__p_wxFrame, | |
26956 | _swigt__p_wxPyPrintout, | |
26957 | _swigt__p_wxTaskBarIconEvent, | |
26958 | _swigt__p_wxScrollWinEvent, | |
26959 | _swigt__p_wxStatusBar, | |
26960 | _swigt__p_wxMDIParentFrame, | |
26961 | _swigt__p_wxPoint, | |
26962 | _swigt__p_wxObject, | |
26963 | _swigt__p_wxOutputStream, | |
d55e5bfc RD |
26964 | _swigt__p_wxPyScrolledWindow, |
26965 | _swigt__p_wxMDIClientWindow, | |
26966 | _swigt__p_wxTipWindow, | |
26967 | _swigt__p_wxSashLayoutWindow, | |
26968 | _swigt__p_wxSplitterWindow, | |
f20a2e1f | 26969 | _swigt__p_wxSplashScreenWindow, |
d55e5bfc RD |
26970 | _swigt__p_wxPyVScrolledWindow, |
26971 | _swigt__p_wxPyPopupTransientWindow, | |
26972 | _swigt__p_wxPopupWindow, | |
26973 | _swigt__p_wxSashWindow, | |
26974 | _swigt__p_wxTopLevelWindow, | |
26975 | _swigt__p_wxWindow, | |
26976 | _swigt__p_wxScrolledWindow, | |
d55e5bfc RD |
26977 | _swigt__p_wxMenuBar, |
26978 | _swigt__p_wxPrintPreview, | |
26979 | _swigt__p_wxSashEvent, | |
26980 | _swigt__p_wxString, | |
26981 | _swigt__p_wxPyPrintPreview, | |
26982 | _swigt__p_wxFontDialog, | |
26983 | _swigt__p_wxDirDialog, | |
26984 | _swigt__p_wxColourDialog, | |
26985 | _swigt__p_wxDialog, | |
26986 | _swigt__p_wxPanel, | |
26987 | _swigt__p_wxPageSetupDialog, | |
26988 | _swigt__p_wxPrintDialog, | |
c24da6d6 | 26989 | _swigt__p_wxFileSystem, |
d55e5bfc RD |
26990 | _swigt__p_wxBitmap, |
26991 | _swigt__p_wxCommandEvent, | |
26992 | _swigt__p_wxPreviewControlBar, | |
26993 | _swigt__p_wxPyPreviewControlBar, | |
26994 | _swigt__p_wxColour, | |
26995 | _swigt__p_wxToolBar, | |
26996 | _swigt__p_wxPageSetupDialogData, | |
26997 | _swigt__p_wxPrintDialogData, | |
26998 | 0 | |
26999 | }; | |
27000 | ||
27001 | ||
27002 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27003 | ||
27004 | static swig_const_info swig_const_table[] = { | |
27005 | {0}}; | |
27006 | ||
27007 | #ifdef __cplusplus | |
27008 | } | |
27009 | #endif | |
27010 | ||
27011 | #ifdef __cplusplus | |
27012 | extern "C" | |
27013 | #endif | |
27014 | SWIGEXPORT(void) SWIG_init(void) { | |
27015 | static PyObject *SWIG_globals = 0; | |
27016 | static int typeinit = 0; | |
27017 | PyObject *m, *d; | |
27018 | int i; | |
27019 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
27020 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27021 | d = PyModule_GetDict(m); | |
27022 | ||
27023 | if (!typeinit) { | |
27024 | for (i = 0; swig_types_initial[i]; i++) { | |
27025 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
27026 | } | |
27027 | typeinit = 1; | |
27028 | } | |
27029 | SWIG_InstallConstants(d,swig_const_table); | |
27030 | ||
27031 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
27032 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
27033 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
27034 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
27035 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
27036 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
27037 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
27038 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
27039 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
27040 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
27041 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
27042 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
27043 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
27044 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
27045 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
27046 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
27047 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
27048 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
27049 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
27050 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
27051 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
27052 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
27053 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
27054 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
27055 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
27056 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
27057 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
27058 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
27059 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
27060 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
27061 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
27062 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
27063 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
27064 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
27065 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
27066 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
27067 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
27068 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
27069 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
27070 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
27071 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
27072 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
27073 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
27074 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
27075 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
27076 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
27077 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
27078 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
27079 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
27080 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
27081 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
27082 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
27083 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
27084 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
27085 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
27086 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
27087 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
27088 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
27089 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
27090 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
27091 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
27092 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
27093 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
27094 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
27095 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
27096 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
27097 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
27098 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
27099 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
27100 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
27101 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
27102 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
27103 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
27104 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
27105 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
27106 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
27107 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
27108 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
27109 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
27110 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
27111 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
27112 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
27113 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
27114 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
27115 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
27116 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
27117 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
27118 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
27119 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
27120 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
27121 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
27122 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
27123 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
27124 | ||
27125 | // Map renamed classes back to their common name for OOR | |
27126 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
27127 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
27128 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
27129 | ||
27130 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
27131 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
27132 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
27133 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
27134 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
27135 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
27136 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
27137 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
27138 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
27139 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
27140 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
27141 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
27142 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
27143 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
27144 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
27145 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
27146 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
27147 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
27148 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
27149 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
27150 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
27151 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
27152 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
27153 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
27154 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
27155 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
27156 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
27157 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
27158 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
27159 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
27160 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
27161 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
27162 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
27163 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
27164 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
27165 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
27166 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
27167 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
27168 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
27169 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
27170 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
27171 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
27172 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
27173 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
27174 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
27175 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
27176 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
27177 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
27178 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
27179 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
27180 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
27181 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
27182 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
27183 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
27184 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
27185 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
27186 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
27187 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
27188 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
27189 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
27190 | ||
27191 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
27192 | ||
27193 | } | |
27194 |